Package.json Dependents

1 min read

this is a cool tool for finding github repositories that depend on a particular NPM package:

https://github.com/pkgjs/dependents?tab=readme-ov-file

Once set up with the GITHUB key…

console
npx dependents --package svelte --sort stars --number 100

It returns output like this:

console
{"@junk-temporary-prototypes/svelte-vite":{"downloads":1,"forks":8895,"stars":82878,"watchers":919,"url":"github.com/storybookjs/storybook"}}
{"graphql-language-service-server":{"downloads":3094,"forks":1638,"stars":15688,"watchers":235,"url":"github.com/graphql/graphiql"}}
{"@jsx-lite/core":{"downloads":152,"forks":463,"stars":10801,"watchers":88,"url":"github.com/BuilderIO/jsx-lite"}}
{"@builder.io/mitosis":{"downloads":3561,"forks":463,"stars":10801,"watchers":88,"url":"github.com/BuilderIO/mitosis"}}

You may see some console errors as some connections seem to point to currently unavailable repositories.

I don’t understand some of the keys (like the first one above), but the repository URLs seem accurate (use those!).