Audit mode
Generate reports only. No build changes and no release dependency on artifacts.
Dependency hardening for npm applications
Keep only the dependency code your app actually uses, validate it against your test suite, and ship a reusable hardened artifact.
Problem
Modern npm products retain large dependency trees, including files and functions the application never reaches. Every retained path is still review burden and potential supply-chain attack surface.
Audits find known vulnerabilities, lockfiles pin versions, and tree shaking helps bundle output. None of those prove which dependency source is live for your product or whether a pruned dependency still behaves correctly.
How it works
Record versions, imports, reachable modules, and usage signals.
Operate on copied dependency source instead of the target checkout.
Candidate removals are accepted only when validation supports them.
Rejected removals are restored and recorded with failure evidence.
Release workflows consume artifacts while audit workflows inspect reports.
Workflow fit
Check dependency versions and import or usage fingerprints.
Run full or incremental pruning for affected dependencies.
Validate the generated workspace before adopting artifacts.
Build against validated pruned artifacts with report evidence.
Evidence and reports
chainstrip summarize --report-dir reports/app
dependency retained surface validation
@scope/ui changed passed
date-fns reduced passed
axios unchanged reused
artifact fingerprint: dep+usage:8f31...
Adoption modes
Generate reports only. No build changes and no release dependency on artifacts.
Test pruned dependencies when dependency or usage fingerprints change.
Release builds consume validated artifacts with provenance and review evidence.
Waitlist