How to see who uses an npm package before you change it
Updated December 3, 2026
On this page
What's the quickest way to see who uses an npm package?
Use the Dependents tab on npmjs.com for packages, and GitHub's Dependents view for repositories. Both are free, need no install, and answer in one click. Neither tells you how anyone uses the package, so when you're about to change a function, search code for that function too.
Here's what each source said for vite on December 3, 2026. The numbers are far apart because each one counts something different, which is the first thing to know before you quote any of them.
| Source | What it counts | vite |
|---|---|---|
| npmjs.com Dependents tab | Packages on npm that depend on it | 7,316 dependents |
| GitHub dependents | Public repositories and packages whose manifests name it | 10,114,824 repositories and 210,564 packages, which GitHub calls approximate |
| ecosyste.ms packages | Dependent packages and repositories it has read | 31,388 packages and 363,358 repositories |
| GitHub code search | Files that contain a string, on default branches | 1,372 TypeScript files mention splitVendorChunkPlugin |
Pick the source by the question. "How many packages build on mine?" is the npm tab. "How many projects would notice a major release?" is GitHub's dependents. "Who calls the function I'm removing?" is code search, the only source here that looks inside the code.
How do I see which npm packages depend on mine?
Open the package's page on npmjs.com and click the Dependents tab. For vite it read Dependents (7316) today, with the list of package names below it. It counts packages published to npm, so apps, internal tools and anything never published don't show up.
There's no npm command for this. Some answers, including Bing's answer box for this query today, suggest npm view <package> dependents. npm view reads fields from the package's own registry entry, and there's no dependents field, so it prints nothing and exits 0:
$ npm view vite dependents
$ echo $?
0An empty answer with a zero exit code looks like "nobody uses it". Don't put that command in a script.
If you need the dependents as data rather than a web page, the ecosyste.ms packages API is free and returns counts per package, including dependent_packages_count and dependent_repos_count. Its numbers for vite (31,388 packages, 363,358 repositories on December 3, 2026) differ from npm's and GitHub's because it reads its own set of packages and repositories.
How do I see which GitHub repositories use my package?
Open the package's source repository on GitHub, go to Insights, then Dependency graph, then Dependents. The direct URL is github.com/<owner>/<repo>/network/dependents, for example vite's dependents. It lists repositories by default, and a Packages count above the list switches to packages.
Three limits from GitHub's own docs and the page itself:
- GitHub only determines dependents for public repositories. A private app that uses your package is never counted.
- The counts are approximate and may not match the list below them. GitHub's page says so in a note under the numbers.
- The view hangs off the repository that publishes the package. A fork or a monorepo that ships many packages can split or merge the counts.
Use it for a rough sense of scale and to browse who's out there, sorted by owner. Don't use it to decide whether a change is safe: it says a repository declares your package, not which version or which functions it uses.
How do I find who calls a specific function in my package?
Search GitHub code for the function's name. In the browser that's GitHub code search with a qualifier such as language:TypeScript or path:vite.config.ts. From the command line, the REST endpoint gives you a count:
$ gh api -X GET search/code --jq .total_count \
-f q='splitVendorChunkPlugin language:TypeScript'
1372
$ gh api -X GET search/code --jq .total_count \
-f q='splitVendorChunkPlugin filename:vite.config.ts'
1196I picked splitVendorChunkPlugin because Vite deprecated it in 5.2.7 and removed it in 7.0.0 (Vite's v7 migration guide). Anyone still importing it breaks on the upgrade.
The count is a ceiling, not an answer. In the first five results today: one file defined its own function with the same name, one had the call commented out, and two were copies of Vite's own source. A text match can't tell a call from a definition, a comment or a vendored copy, so read the hits before you quote a number.
The REST search docs list the other limits: code search needs authentication, allows 10 requests a minute, returns up to 1,000 results per search, reads only the default branch, and only files smaller than 384 KB.
How do I find which of my dependencies uses a package?
Run npm ls <package> in your project. It's the other question people mean by "who uses this package": which of my own dependencies pulled it in. In a project with only vitest installed, npm ls shows vite arriving through vitest (first line, the project path, left out):
$ npm ls vite
`-- vitest@4.1.12
+-- @vitest/mocker@4.1.12
| `-- vite@8.4.1 deduped
`-- vite@8.4.1npm explain gives the reason for each path, with the range each parent asked for:
$ npm explain vite | head -4
vite@8.4.1
node_modules/vite
peerOptional vite@"^6.0.0 || ^7.0.0 || ^8.0.0"
from @vitest/mocker@4.1.12(The fourth line is wrapped here to fit; npm printed it as one line.)
npm query selects packages in your installed tree with CSS-like selectors. It reads your node_modules, not the registry, so it can't list other people's projects. Some answers say it can; here's what it returns:
$ npm query '[name="vite"]' | jq -r '.[].location'
node_modules/viteHow do I check who a breaking change will affect before I release it?
Count three things: who declares the package, which of them are on a version the release changes, and who calls what you're changing. Then warn the callers before you ship.
- List exactly what changes: each function, option or type you remove, rename or change the signature of.
- Get the size of the audience from the npm and GitHub dependents counts above.
- Check their ranges. A caret range on your current major won't take a new major, but an open range such as
*orlatesttakes every release on the next fresh install (how ^ and ~ ranges work). - Search code for each name from step 1, then read the hits to drop definitions, comments and copies.
- Ship a deprecation first, then the removal. A runtime warning reaches people who run the code; npm deprecate shows a message on install for a version you name.
- Write the replacement into the release notes next to each removed name, so a search for the old name lands on the fix.
Vite did steps 5 and 6 for splitVendorChunkPlugin: it was deprecated in 5.2.7, removed in 7.0.0, and the migration guide names build.rollupOptions.output.manualChunks as the way to control chunking instead.
Can I see how many projects call a function a release removed?
Yes, for popular packages. Release impact on Since.dev shows, for each package's newest breaking releases, how many public repositories it has read declare the package, how many are on a version before the release, and how many call each thing the release removed or changed. It's counts only; no repository is named. The same data is free as JSON with no key:
$ U=https://api.since.dev/v1/impact/npm/vite
$ curl -s "$U?version=7.0.0" | jq .downstream.declared
{
"repositories": 730,
"before": 289,
"past": 437,
"unplaced": 4,
"takesRelease": 9,
"openRanges": 45
}Read on December 3, 2026: of the 3,080 public repositories read, 730 declare vite. 289 stand on a version before 7.0.0, 437 on 7.0.0 or later, 9 have a range that already takes 7.0.0, and 45 use an open range. Then the removed function:
$ curl -s "$U?version=7.0.0" | jq '.changes[]
| select(.symbol == "splitVendorChunkPlugin")
| {kind, repositories, sites}'
{
"kind": "removed",
"repositories": 37,
"sites": 39
}37 repositories call splitVendorChunkPlugin in 39 places. Unlike a text search, a repository counts only when its code imports, calls or types the name, and a call that matches only the last part of a longer name is counted apart. The page version is the vite release impact page.
The limits are real. These counts cover the public repositories read so far, not every project, so don't quote them as the whole ecosystem. And not every package has a report: today the express report answers 404, while vite, zod and requests answer.
Where Since.dev fits
Since.dev answers the maintainer's question above: who calls what a release changed. The release impact pages are free, and with an API key a publisher can count a whole move from one version to another (API docs). For the other side, when you depend on a package and want to know if its next release breaks your code, a free scan of a public repository lists what changed in what you use.
It reports counts and opens pull requests for review only, and nothing merges or deploys on its own. It doesn't replace npm's or GitHub's dependents lists for browsing who's out there.
Questions
How can I see who uses an npm package on GitHub?
Open the package's source repository and go to Insights, Dependency graph, Dependents, or add /network/dependents to the repository's URL. It lists public repositories and packages whose manifests name the package. GitHub says the counts are approximate, and private repositories are never included.
Is there an npm command to list a package's dependents?
No. npm view reads fields of the package's own registry entry, so npm view vite dependents prints nothing and exits 0. Use the Dependents tab on npmjs.com, GitHub's dependents view, or a dependents API such as ecosyste.ms instead.
How do I find which of my dependencies installs a package?
Run npm ls followed by the package name to see every path to it in your tree, or npm explain with the name to see each path with the version range each parent asked for. Both read your own node_modules, so run npm install first.
Why do npm and GitHub show different dependent counts?
They count different things. npm's Dependents tab counts packages published to npm, while GitHub counts public repositories and packages whose manifests name the package, and says its numbers are approximate. For vite on December 3, 2026 that was 7,316 on npm and 10,114,824 repositories on GitHub.
How do I know if removing a function will break other projects?
Search public code for the function's name, then read the hits, since a text match also finds definitions with the same name, comments and copied source. Deprecate it in one release and remove it in a later one, and name the replacement in the release notes.
Related guides
Comparisons
- Best codemod tools to fix deprecated API callsThe best codemod tools for replacing deprecated APIs, by language and job, with prices, pros and cons, and each one run on a real deprecated call.
How-to
- How to find the breaking changes between two versions of a packageHow to find breaking changes between two versions of a package: list the releases in between, read each changelog, diff the code. Commands for npm, PyPI, Go.
- How to check your dependencies for breaking changes before you upgradeHow to check dependencies for breaking changes before upgrading: the commands, a real failing upgrade, CI that fails on deprecations, and where notices appear.
Explainers
- Caret vs tilde in package.json: what ^ and ~ let inCaret (^) allows minor and patch updates, tilde (~) only patches. The 0.x exception, what your lockfile does, and how ^ and ~ differ in Cargo and Composer.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.