Skip to content

feat: add dependents sorted by download#105

Closed
vinnymac wants to merge 3 commits intonpmx-dev:mainfrom
vinnymac:vt/sort-dependents
Closed

feat: add dependents sorted by download#105
vinnymac wants to merge 3 commits intonpmx-dev:mainfrom
vinnymac:vt/sort-dependents

Conversation

@vinnymac
Copy link
Copy Markdown
Contributor

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

image

Closes #31

@vercel
Copy link
Copy Markdown

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
Copy Markdown

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

Comment thread app/composables/useNpmRegistry.ts Outdated

// 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
Copy Markdown
Member

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
Copy Markdown
Contributor

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
Copy Markdown
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 🥲

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@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.
@serhalp serhalp added the blocked label Feb 6, 2026
@whitep4nth3r
Copy link
Copy Markdown
Contributor

Is this PR still relevant given it was open two weeks ago and a lot has changed since?

@43081j
Copy link
Copy Markdown
Contributor

43081j commented Feb 10, 2026

im going to close it since the search has drastically changed under the hood, and we were already blocked by this thread.

@vinnymac lets revisit this later once we have a better idea of how to query this stuff

@43081j 43081j closed this Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sort dependents by download count

6 participants