Repository navigation
v0.1.1 — Initial Release
Initial Release
Fallow is a Rust-native dead code analyzer for JavaScript and TypeScript projects — a faster alternative to knip, achieving 25-50x speedups on real-world codebases by leveraging the Oxc parser ecosystem.
Features
- 10 detection types: unused files, exports, types, dependencies, devDependencies, enum members, class members, unresolved imports, unlisted dependencies, duplicate exports
- Re-export chain resolution through barrel files with cycle detection
- 17 framework presets: Next.js, Vite, Vitest, Jest, Storybook, Remix, Astro, Nuxt, Angular, Playwright, Prisma, ESLint, TypeScript, Webpack, Tailwind, GraphQL Codegen, React Router
- Workspace support: npm, yarn, and pnpm workspaces (including
pnpm-workspace.yaml) - Auto-fix: remove unused exports and dependencies with
fallow fix(supports--dry-run) - Watch mode: file watcher with debounced re-analysis
- LSP server: real-time diagnostics, code actions, and quick fixes in your editor
- Multiple output formats: human, JSON, SARIF, compact
- Incremental caching: bincode cache with xxh3 hashing for fast re-analysis
- Baseline support:
--save-baseline/--baselinefor gradual adoption --changed-since: analyze only files changed since a git ref- AI-agent friendly:
schemacommand and structured JSON output for tool integration
Installation
npm install -g fallow
# or
cargo install fallow-cliPerformance
Syntactic analysis only — no TypeScript compiler dependency. Parallel parsing via rayon + oxc_parser. Flat edge storage with contiguous Vec<Edge> for cache-friendly traversal.
npm Distribution
Platform-specific binaries via optional dependencies for macOS (x64/ARM), Linux (x64/ARM, glibc/musl), and Windows (x64).
Full Changelog: https://github.com/BartWaardenburg/fallow/commits/v0.1.1