Poor Discoverability of npm/pnpm Selector in Vercel Analytics Setup
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- design, documentation
Research direction
Start with the setup guide section titled “Add @vercel/analytics to your project” and inspect the command selector shown there. Trace the selector’s UI entry point and determine how its package-manager options are presented. Done means users can clearly recognize and switch between npm, yarn, and pnpm without relying on an unlabeled icon.
Written by the indexing model from the issue text.
Description
I ran into an issue while setting up analytics on my website using Vercel.
While following the setup guide, I got to the section “Add @vercel/analytics to your project”. The default command shown was using pnpm, but my project setup uses npm. I tried looking for an option to switch the command, but I couldn’t find it immediately.
At first, it wasn’t clear that there was a way to change the command type. I spent about 20 minutes trying to figure it out and even left the page to search for alternatives. Eventually, I came back and discovered that the small icon in that section was actually meant to switch between different package managers (npm, yarn, pnpm, etc.). When found, it took me less than 5 minutes to set up the feature.
Problem
The main issue is the poor discoverability of the command selector.
- The icon doesn’t clearly communicate that it is clickable or a dropdown.
- There is no visible label like “Select command” to guide the user.
- For a task that should take a few minutes, this caused unnecessary confusion and frustration.
- Users who are not very familiar with documentation patterns or UI conventions may easily miss it completely.
This can lead to a poor user experience, especially for beginners who may assume the documentation is fixed to pnpm only.
Impact
- Wasted time trying to find the correct npm command.
- Temporary frustration over a simple setup step.
- Potential drop-off if a user gives up and tries another tool or guide.
Suggestion
The UI should make this interaction more obvious.
A simple improvement would be:
- Replace or supplement the icon with a clear label like “Select command.”
- Or use a visible dropdown with text, for example:
- “npm”
- “yarn”
- “pnpm”
Since a default command is already shown, users should immediately understand that this section is interactive and meant for switching package managers, not just a static instruction.
Example Reference
Here is a screenshot example of a dropdown that clearly communicates the action to users:
- Dominant language
- TypeScript
- Stars
- 518
- Forks
- 54
- Avg merge
- 6h 21m
- Merged PRs (30d)
- 3
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vercel/analytics
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
React component silently drops pageviews when `route` is set without `path`Possibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Dependencies conflictPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in vercel/analytics
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug:new
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
callstackincubator/simlock#350 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
openwatersio/maritime-zones#33 ·
Maintainers usually reply within 1 day
-
Booking email verification fails for plus aliases with impersonation protection enabledPossibly taken @kankadev claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
calcom/cal.diy#30293 · 1 comment ·
Maintainers usually reply within 5 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
AOSSIE-Org/DebateAI#611 ·
Maintainers usually reply within 3 days