See the blast radius of a code change before you touch it.
npx blast-radius path/to/file
No install required. Or install globally:
npm install -g blast-radius
blast-radius src/auth.js
| Flag | Description |
|---|---|
--depth <n> |
How many import layers outward (default: 3) |
--json |
Output machine-readable JSON |
--output <file> |
Write report to file |
--include-tests |
Include test files in scan (default: ignore) |
--verbose |
Print scan stats |
See DEMO.md for live outputs from real open-source repos.
Run the demo locally:
npm run demo
Dependency graph — Scans JS/TS (and basic Python) files, extracts import/require statements, builds a directed graph of who imports whom.
Reverse traversal — From your target file, walks backward: who imports this file? Who imports those? Up to --depth layers.
scanner.js for more import syntax (Go, Rust, etc.)MIT License