Skip to main content

Dependency Graph Visualizer

Paste your package.json to visualize your dependency tree — see all packages by category, version ranges, counts, and spot potential issues like too many dependencies or misplaced dev packages.

✓ dependencies / devDependencies / peer ✓ Version range analysis ✓ Package count stats ✓ No data leaves your browser

Overview

—
dependencies
—
devDependencies
—
peerDependencies

Version Range Guide

^1.2.3 — compatible (minor+patch)
~1.2.3 — patch only
1.2.3 — exact version
* / latest — any (risky)
>=1.0 <2.0 — range
workspace:* — monorepo
Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →

Frequently Asked Questions

What is a dependency graph?▼

A dependency graph is a directed graph where each node is a package and each edge shows that one package requires another. It helps visualize how packages relate, identify deeply nested dependencies, spot duplicate versions, and understand the weight of each top-level dependency. Tools like npm ls and yarn why generate these, but this tool lets you visualize them directly from package.json.

What is the difference between dependencies and devDependencies?▼

dependencies are packages required at runtime — they are bundled into production builds. devDependencies are only needed during development (testing, building, linting) and are not included in production bundles. peerDependencies are packages the host project must provide — common in plugin/library packages. Keeping these three groups correct reduces bundle size and security surface area.

What is dependency depth and why does it matter?▼

Dependency depth is how many levels of indirection separate your code from a package. A depth-1 package is in your package.json. A depth-3 package is a dependency of a dependency of a dependency. Deep dependencies are harder to audit, easier to have multiple conflicting versions, and can cause supply chain security risks (as shown by the leftpad and event-stream incidents).

How do I identify unused dependencies?▼

Run npx depcheck or npx knip to find unused packages. A package in package.json but never imported in your source code wastes bundle space and is a security liability. Regularly audit with npm ls and remove anything not actively used. Note: some tools like babel presets or webpack plugins are used via config files, not direct imports.

What is a circular dependency?▼

A circular dependency is when package A requires B and B requires A (directly or transitively). In Node.js, this can cause one module to receive an incomplete exports object. Tools like madge detect circular dependencies in your own source files. In npm packages, circular deps are prevented by npm's resolution algorithm, but they can still cause subtle loading order issues.