PkgDiet — find the dead weight in your node_modules before it ships

by

Every project accumulates dependency bloat — packages you installed once, forgot about, or replaced but never removed. I built PkgDiet to catch that before it costs you build time, bundle size, or a supply-chain risk you don't need.

Run npx pkgdiet in any Node project and it scans your dependency tree for:

  • Unused packages — installed but never imported

  • Bloated packages — heavy deps with lighter alternatives

  • Unhealthy packages — unmaintained, deprecated, or flagged

It's a single CLI command, no config, no dashboard sign-up — just a clean terminal report you can act on immediately.

npm install -g pkgdiet
pkgdiet

Would love feedback, especially on what other "unhealthy" signals would be useful to flag (last publish date, single-maintainer risk, etc.) — planning to expand detection rules based on what people actually want.

GitHub:
npm:

7 views

Add a comment

Replies

Be the first to comment