List dependent packages and their download counts #146806
Unanswered
darrachequesne
asked this question in
npm
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I would like to list the packages which depend on my package, and sort them by their number of downloads. Is there a way to do this?
Here is what I tried so far:
dependedUpon
view of the registryUnfortunately, https://registry.npmjs.org/-/_view/dependedUpon mentioned here now returns an HTTP 404 error.
depended
page on the websiteUnfortunately, it seems you cannot browse more than 10 pages, as https://www.npmjs.com/browse/depended/express?offset=396 returns
Pagination limit reached
.Related: https://github.com/orgs/community/discussions/128448
dependents-tree
packageUnfortunately, all the packages mentioned here seem to use one of the two previous solutions, so they do not seem suitable.
Is setting up a follower (https://github.com/npm/registry/blob/main/docs/follower.md) and ingesting the data in a database on our side the recommended way? In that case, are there some kind of rate limits when accessing the stream at
https://replicate.npmjs.com
? Should we provide an access token when initializing theChangeStream
object?Thanks in advance !
Beta Was this translation helpful? Give feedback.
All reactions