om-tajne/pkgdiet
by Various
Put your nodemodules on a diet — find unused, bloated, and unhealthy npm packages.
MCP
om-tajne/pkgdiet
Added 8 Sept 2026
Overview
pkgdiet is a command-line tool that analyzes a project's npm dependencies and reports which packages are unused, bloated, or unhealthy. It works by inspecting package.json and the installed node_modules tree, giving developers a list of candidates for cleanup.
Best for
Best for
Developers cleaning up stale or oversized dependencies in Node.js projects
Use cases
- Remove unused dependencies from package.json
- Identify oversized packages bloating node_modules
- Audit the health of existing npm dependencies
How to use
Install
npx pkgdiet setup Tested with
Claude Desktop, Claude Code, Cursor, Windsurf, Cline, VS Code
Notes
pkgdiet is a command-line tool that analyzes a project’s npm dependencies and reports which packages are unused, bloated, or unhealthy. It works by inspecting package.json and the installed node_modules tree, giving developers a list of candidates for cleanup.
4 stars on GitHub. Last updated 2026-09-08. Licensed MIT.
Use cases
- Remove unused dependencies from package.json
- Identify oversized packages bloating node_modules
- Audit the health of existing npm dependencies
Pros
- Catches multiple dependency issues in one pass
- Runs locally with no external services required
- Simple workflow for everyday project cleanup
Cons
- Requires manual review before deleting anything
- Health heuristics may miss context-specific problems
- No GUI or interactive editor
Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.
Pros
- Catches multiple dependency issues in one pass
- Runs locally with no external services required
- Simple workflow for everyday project cleanup
Cons
- Requires manual review before deleting anything
- Health heuristics may miss context-specific problems
- No GUI or interactive editor
Get the free Developer’s Field Guide
A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.
Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.
