Enterprise DNAEnterprise DNA
MMCP ServersDeveloperlow

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

#bundle-size#cli#dependencies#dependency#devtool#devtools#node-module#node-modules
Catalogue record, not a reviewed recommendation. This record can include automatically collected descriptions and setup details. Confirm important claims with the original source. Explore source-reviewed tools.

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

Clients listed in this record (not verified here)

Claude Desktop, Claude Code, Cursor, Windsurf, Cline, VS Code

Notes

4 stars on GitHub. Last updated 2026-09-08. Licensed MIT.

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
Free 27-page guide

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.

No spam. Unsubscribe any time.