mitchforest.com — nvimPress ? for help

 ███████╗██╗    ██╗███████╗███████╗██████╗  █████╗ 
 ██╔════╝██║    ██║██╔════╝██╔════╝██╔══██╗██╔══██╗
 ███████╗██║ █╗ ██║█████╗  █████╗  ██████╔╝███████║
 ╚════██║██║███╗██║██╔══╝  ██╔══╝  ██╔═══╝ ██╔══██║
 ███████║╚███╔███╔╝███████╗███████╗██║     ██║  ██║
 ╚══════╝ ╚══╝╚══╝ ╚══════╝╚══════╝╚═╝     ╚═╝  ╚═╝
// Dead-code & dependency hygiene for TypeScriptOSS
~/projects/sweepacat 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/sweepasweepa scan --help
~/projects/sweepacat 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/sweepacat example.sh
~/projects/sweepacat tech.md
Built with:
  • ts-morph — TypeScript AST manipulation
  • graphology — graph data structure for call graphs
  • TypeScript — module resolution and type checking
NORMALmain~/mitchforest.com/projects/sweepa.tsx
tsx1:1