-
Notifications
You must be signed in to change notification settings - Fork 91
feat: add dependents sorted by download #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
@vinnymac is attempting to deploy a commit to the danielroe Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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 }) |
There was a problem hiding this comment.
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:
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 🥲
Note: The data from /registry is stale currently, but is being refreshed. Work to add download counts to /live_registry is in progress.
Adds dependents to package page sorted by most downloaded (top 50)
Closes #31