depcheck-ai
v1.0.0
Published
AI-powered CLI that analyzes package.json and lockfile to identify dependency issues
Maintainers
Readme
depcheckai
AI-powered CLI that analyzes your package.json and lockfile to identify dependency issues.
depcheck only finds unused deps — depcheckai detects unmaintained packages, security risks, size impact, and recommends actions.
Install
npx depcheckaiUsage
# Analyze dependencies in current directory
npx depcheckai
# Analyze a specific project
npx depcheckai --path /path/to/project
# JSON output for CI pipelines
npx depcheckai --json
# Auto-remove unused dependencies
npx depcheckai --fixWhat It Checks
| Category | Details |
|----------|---------|
| Unused Dependencies | Scans source files for imports/requires, flags deps never referenced |
| Unmaintained Packages | Checks npm for deprecated packages and stale publish dates |
| Security Risks | Runs npm audit internally, scores vulnerabilities by severity |
| Size Impact | Shows unpacked size of each dependency, sorted largest first |
| Recommendations | Actionable suggestions based on the analysis |
Why
depcheckonly finds unused deps — no security or maintenance analysisnpm auditonly checks CVEs — no unused dep detection or maintenance scoringbundlephobiarequires manual lookups — no bulk project scanningdepcheckaicombines all of the above in one fast scan
Exit Codes
0— No issues found1— Issues found (unused deps or critical security risks)2— Error (nopackage.jsonfound, etc.)
CI Integration
# GitHub Actions
- name: Check dependencies
run: npx depcheckai --jsonLicense
MIT
