Skip to content

Conversation

@vinnymac
Copy link
Contributor

Adds dependents to package page sorted by most downloaded (top 50)

image

Closes #31

@vercel
Copy link

vercel bot commented Jan 26, 2026

@vinnymac is attempting to deploy a commit to the danielroe Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Jan 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
npmx.dev Ready Ready Preview, Comment Jan 26, 2026 11:44am

Request Review


// Use the existing searchNpmPackages with depends-on: query
// This finds packages that have `name` as a dependency
const response = await searchNpmPackages(`depends-on:${name}`, { size })
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this pulls in correct data:

https://www.npmjs.com/search?q=depends-on%3Anuxt

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in e18e we have a whole other database to do this query because the npm one wasn't capable. so when i saw this, i was very surprised and hoped it was true so we could switch 😂

but im pretty sure the npm api doesn't do what you think here, or it does, but very poorly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Darn, back to the drawing board! Thought the data was correct 🥲

@vinnymac vinnymac marked this pull request as draft January 26, 2026 14:09
Note: The data from /registry is stale currently, but is being refreshed. Work to add download counts to /live_registry is in progress.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sort dependents by download count

3 participants