HeadlinesBriefing favicon HeadlinesBriefing.com

Rev-dep: 20x Faster Go Alternative to knip.dev for JS/TS Dependency Analysis

Hacker News •
×

A new dependency analysis tool called Rev-dep promises to be 20x faster than knip.dev for JavaScript and TypeScript projects. Built in Go rather than Node.js, this static analysis toolkit aims to solve the growing complexity of managing dependencies in large codebases by enforcing architecture integrity and dependency hygiene.

Rev-dep executes a full suite of governance checks—including circularity, orphans, module boundaries, and more—in a single parallelized pass. The tool can audit a 500k+ LoC project in approximately 500ms, offering 10x-200x faster execution than alternatives. This dramatic performance improvement comes from processing files in parallel and bypassing the performance bottlenecks inherent in Node-based analysis.

Beyond passive scanning, Rev-dep serves as an active enforcer for CI pipelines, answering critical questions about architecture integrity, dead code, refactoring safety, and workspace hygiene. The toolkit includes both config-based governance for automated checks and CLI commands for exploratory analysis. With first-class monorepo support for modern workspaces like pnpm, yarn, and npm, Rev-dep natively resolves package.json exports/imports maps and TypeScript aliases across package boundaries.