███████╗██╗ ██╗███████╗███████╗██████╗ █████╗ ██╔════╝██║ ██║██╔════╝██╔════╝██╔══██╗██╔══██╗ ███████╗██║ █╗ ██║█████╗ █████╗ ██████╔╝███████║ ╚════██║██║███╗██║██╔══╝ ██╔══╝ ██╔═══╝ ██╔══██║ ███████║╚███╔███╔╝███████╗███████╗██║ ██║ ██║ ╚══════╝ ╚══╝╚══╝ ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═╝
// Dead-code & dependency hygiene for TypeScriptOSS
~/projects/sweepa❯cat README.md
Sweepa finds dead code and dependency issues in TypeScript projects using call-graph reachability analysis.
Similar to Knip, but with a focus on call-graph-based detection for more accurate unused export detection.
~/projects/sweepa❯sweepa scan --help
~/projects/sweepa❯cat features.md
What it detects:
- → unused-dependency — listed in package.json, not used
- → unlisted-dependency — used but not listed
- → misplaced-dependency — prod dep in devDeps or vice versa
- → unused-export — exported but never imported
- → unused-file — file not reachable from entry points
- → unresolved-import — import can't be resolved
~/projects/sweepa❯cat example.sh
~/projects/sweepa❯cat tech.md
Built with:
- → ts-morph — TypeScript AST manipulation
- → graphology — graph data structure for call graphs
- → TypeScript — module resolution and type checking