{DT}DevToolkit

Bun Lockfile Visualizer

Analyze your Bun project dependencies. Paste your package.json or the output of bun pm ls --all to visualize the dependency tree, find duplicates, and understand your package structure.

Input

Paste your package.json to analyze direct dependencies.

Understanding Your Dependencies

Managing dependencies is crucial for maintaining a healthy project. This tool helps you visualize and analyze your Bun project's dependency structure.

Dependency Types

  • Dependencies - Required for your application to run in production
  • Dev Dependencies - Only needed during development (testing, building, etc.)
  • Peer Dependencies - Expected to be provided by the consuming project
  • Optional Dependencies - Will not cause installation failure if unavailable

Analyzing with Bun

For the most comprehensive analysis, run the following command in your project:

bun pm ls --all

This will output the complete dependency tree including all transitive dependencies. Paste the output into this tool for full visualization.

Handling Duplicates

Duplicate packages (same package with different versions) can bloat yournode_modules and cause issues. If you see duplicates:

  • Check if you can update packages to use compatible versions
  • Use bun pm dedupe to reduce duplicate dependencies
  • Consider using overrides in package.json to force specific versions