Paste package.json for instant dependency analysis, version conflicts, and type distribution
Zero Dependencies Β· Works OfflineThe npm Dependency Analyzer is a free online tool that quickly analyzes dependency relationships in your package.json. It supports parsing dependencies, devDependencies, peerDependencies, and more, detecting version ranges, potential conflicts, duplicate dependencies, and visualizing dependency distribution with charts. All analysis runs locally in your browser β your package.json is never uploaded to any server.
1. Paste your package.json content into the input box, or drag and drop the file.
2. Select analysis options (version range analysis, conflict detection).
3. Click "Analyze Dependencies" to see results.
4. Review the dependency type distribution chart and detailed dependency list.
5. Copy or download the analysis report.
When taking over a new project, quickly understand the full dependency landscape and identify core vs. dev dependencies.
Analyze current version ranges for major upgrades (e.g., React 17β18) and identify potential compatibility issues.
Find unused dependencies and replaceable heavy dependencies (lodashβes-toolkit) to optimize bundle size.
Check if dependency version ranges are too broad (e.g., using * or latest) and narrow them to reduce supply chain attack risk.
npm semver version ranges use operators like ^ and ~: ^1.2.3 allows β₯1.2.3 and <2.0.0 (compatible minor updates), while ~1.2.3 allows β₯1.2.3 and <1.3.0 (patch updates only). Using * or latest installs any version, posing security risks. peerDependencies let plugins declare version requirements for host packages β npm v7+ auto-installs peer deps, with warnings on mismatches. Best practice: lock production dependencies to exact versions, use ranges for dev dependencies, and pair with package-lock.json for reproducible builds.
dependencies, devDependencies, peerDependencies, optionalDependencies, and bundledDependencies.
No. Pure frontend β all analysis runs in your browser. Your package.json never leaves your device.
Parses semver ranges and detects incompatible version ranges for the same package across dependency types.
Currently analyzes a single package.json. For monorepos, analyze each sub-package separately.
^ allows compatible minor updates, ~ allows only patch updates, * allows any version (security risk).
Yes. Drag a package.json file onto the input box to auto-read it.