Package Ecosystem Graph
Who depends on what: resolved dependency graph, duplicates and the blast radius of breaking changes.
How it works
Shows the resolved dependency graph of an npm, PyPI, Cargo or Maven package version from deps.dev (Open Source Insights): direct and transitive dependencies, depth, packages pulled in at several versions, which dependencies the most other packages in the tree rely on (their breaking changes hit hardest), how many published packages depend on this one, and which direct dependencies have a newer major version. Paste a deps.dev graph JSON to work without live lookups.
- Graph: deps.dev v3 GetDependencies (GET api.deps.dev/v3/systems/{system}/packages/{name}/versions/{version}:dependencies), i.e. the dependency tree deps.dev resolved for that release on Linux; your lockfile can resolve differently. Blank version = the package's default version from GetPackage.
- Depth = shortest path from the package (breadth-first). Duplicates = the same package name resolved at more than one version.
- Blast radius inside the tree: for every dependency, the number of other packages in this graph that depend on it directly or transitively, and which of your direct dependencies pull it in. A breaking release of a package high in this list affects the most code paths.
- Dependents (ecosystem-wide blast radius): deps.dev v3alpha GetDependents counts (direct + indirect dependents of this exact version). v3alpha is an unstable API; when it fails the count is omitted.
- Major updates: for up to 20 direct dependencies the default version is fetched from deps.dev; a higher leading version number than the resolved one is a semver-major (potentially breaking) upgrade.
Use this tool in an app
These free programs for your browser have this tool built in, next to everything else the task needs.
-
Provenance Software supply-chain security desk
SBOMs, CVEs, containers and licences in one risk register — free.
Related tools
- Dependency Vulnerability Explorer – Known vulnerabilities in your dependencies, and the version that fixes each one.
- Security Advisory Timeline – Disclosures, affected ranges, fixes and withdrawals for a package on one timeline, with time-to-fix.
How to use the Package Ecosystem Graph
See the full dependency tree of an npm, PyPI, Cargo or Maven release, find duplicated versions and the dependencies with the biggest blast radius.
What it is for
npm install express adds one line to your package.json but brings in dozens of packages. If one of them ships a breaking change, a security fix or a malicious release, you need to know where it sits in your tree and what pulls it in. This tool shows that.
Choose an ecosystem (npm, PyPI, Cargo or Maven), enter a package name and optionally a version. It fetches the resolved dependency graph from deps.dev (Open Source Insights) and reports: direct versus transitive dependencies, how deep the tree goes, which packages appear at more than one version, which dependencies most of the tree relies on, how many published packages depend on this one, and which direct dependencies have a newer major version. You can also paste a deps.dev :dependencies response to work without live lookups.
Keep in mind that deps.dev resolves the tree for a release on Linux, on its own. Your project's lockfile may resolve differently because of other packages, overrides or platform-specific dependencies.
Worked example
The built-in example pastes a small deps.dev graph for a fictional my-app@1.0.0. It has two direct dependencies, express@4.19.2 and chalk@5.3.0. Express pulls in debug@2.6.9, body-parser@1.20.2 and ms (at 2.0.0 via debug, and 2.1.3 directly).
The tool returned:
my-app@1.0.0 (npm) resolves to 6 dependencies (2 direct, 4 transitive, max depth 3); 1 package(s) at multiple versions; widest in-tree impact: ms (3 dependents in the tree).
- Duplicates:
msat 2.0.0 and 2.1.3 - Most depended upon:
ms@2.0.0(3 dependents in the tree, depth 3, pulled in by express), thendebug@2.6.9(2),body-parser@1.20.2(1),ms@2.1.3(1)
The conclusion: everything below the top level comes in through express. chalk adds nothing. If an advisory hit ms@2.0.0, the fix would have to come from express upgrading debug, not from you.
How to read the result
- Counts — total packages, direct, transitive, edges and max depth. Deep trees are harder to update because a fix has to travel through several maintainers.
- Direct dependencies — the resolved version next to the requirement you declared (
^4.19.2). - Duplicates — the same package at several versions. That means extra install size, and sometimes subtle bugs when two copies of a stateful library coexist.
- Most depended upon — the in-tree blast radius. A breaking release of a package near the top of this list touches the most code paths. "pulledInBy" tells you which of your direct dependencies to blame or upgrade.
- Dependents — how many published packages depend on this exact version (from an unstable deps.dev endpoint, so it is left out when that call fails).
- Major updates — direct dependencies whose latest default version has a higher major number. These are potentially breaking upgrades to plan for.
Tips and common mistakes
- Leave the version blank to see the current default release. Enter your exact version to see what you actually ship.
- The graph is capped by "Max packages drawn" (default 40). The counts still cover the whole tree, only the drawing is trimmed.
- For Maven, use
group:artifact, e.g.org.apache.logging.log4j:log4j-core. - Duplicates are normal in npm. Worry when the duplicated package is large, has a known vulnerability in one of its versions, or keeps global state.
- To check the tree for known vulnerabilities, combine this with the Dependency Vulnerability Explorer on your lockfile.
FAQ
Why doesn't the graph match my npm ls output?
deps.dev resolves each release in isolation. Your lockfile also reflects your other dependencies, overrides, optional and platform packages, and when you last installed.
What does "depth" mean here?
The shortest path from the root package. Depth 1 is a direct dependency, depth 2 is a dependency of a dependency, and so on.
Does a major update always break my code?
No. Under semver, a major version may contain breaking changes, so read the changelog before upgrading.
Can I use it for my private project?
Not by name, because deps.dev only knows public packages. You can paste a graph in the same JSON format, as the example does.
Guide last updated:
For scripts and AI agents
- JSON API:
POST https://packageecosystemgraph.usefulweb.site/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://packageecosystemgraph.usefulweb.site/mcp· tool namepackage_ecosystem_graph
Example request
curl -s -X POST https://packageecosystemgraph.usefulweb.site/api/v1/calculate \
-H 'content-type: application/json' \
-d '{…see OpenAPI examples…}'