Visualize your node_modules and inspect duplicate packages and install sizes

AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.

Why it matters

Developers can now see exactly which packages bloat node_modules and which are duplicated, with scriptable CLI reports and MCP tools for AI agents.

Read this as

Node Modules Inspector is a free open-source tool that shows what is inside your project's node_modules folder, the directory where installed code libraries pile up. It renders an interactive web view of your dependencies, their install sizes, and any packages installed in multiple versions. You can run it without installing anything via npx, or try it in the browser at node-modules.dev. It suits developers maintaining projects with many dependencies.

This free, open-source tool from the Anthony Fu ecosystem gives teams visibility into dependency bloat and duplicate packages across pnpm, npm and bun projects. Beyond the web UI, its CLI reports (duplicates, sizes, maintainers) output JSON for automation, and a static build can be hosted for sharing audits, everything.antfu.dev is the example. Teams using AI coding agents gain the most via the bundled MCP server. No pricing applies.

Node Modules Inspector visualizes node_modules for pnpm, npm and bun, with other package managers invited. It ships report duplicates, report sizes and report maintainers CLI commands, each supporting --json with progress logs on stderr for clean piping into jq. The three reports are also exposed as MCP tools over stdio (nmi:report-duplicates, nmi:report-sizes, nmi:report-maintainers) with schemas auto-derived from valibot definitions. An opt-in node-modules-inspector.config.ts enables filters and an experimental publint.dev integration.

Questions this answers

The article above answers these:

  • how do I see what's taking up space in node_modules?
  • how do I find duplicate package versions in npm?
  • can I expose dependency reports to an AI coding agent via MCP?

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Node Modules Inspector node_modules pnpm npm bun MCP publint

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading