Works with npm, yarn & pnpm

Find why any dependency
exists in your project

Trace dependency chains, discover which files use a package, and get actionable insights to optimize your bundle.

~/my-project

Everything you need to understand your dependencies

๐Ÿ”

Dependency Chains

See exactly how any package ended up in your node_modules, whether direct or transitive.

๐Ÿ“

File Usage Detection

Find which source files actually import and use a specific package in your codebase.

๐Ÿ“Š

Size Impact Analysis

See how much disk space a package and all its dependencies consume with --size-map.

๐Ÿ’ก

Actionable Suggestions

Get recommendations on whether a package can be removed or optimized.

๐ŸŽจ

Beautiful Output

Color-coded tree view makes it easy to understand complex dependency relationships.

๐Ÿ”ง

CI/CD Ready

JSON output mode for easy integration with your build pipelines and automation.

Get started in seconds

npx whyinstall <package-name>