GitHub - jayu/rev-dep: Dependency analysis and optimization toolkit for modern JavaScript and TypeScript codebases. Enforce dependency graph hygiene and remove unused code with a very fast CLI.

Hacker News
February 26, 2026
AI-Generated Deep Dive Summary
Rev-dep is a high-speed dependency analysis and optimization toolkit designed for modern JavaScript and TypeScript codebases. As projects grow larger, managing dependencies becomes increasingly complex, making it difficult to maintain architectural integrity and identify unused or problematic code. Rev-dep addresses these challenges by providing a fast, efficient solution to enforce dependency graph hygiene. Implemented in Go, it bypasses the performance bottlenecks of Node-based tools, auditing large codebases—such as those with 500k+ lines of code—in just 500 milliseconds. Its parallelized execution and comprehensive suite of checks make it a powerful gatekeeper for CI pipelines, ensuring clean architecture and lean dependencies. The tool goes beyond passive scanning by actively enforcing codebase governance through configuration-based rules. It can detect issues like circular imports, unused modules, dead code, and inconsistent import conventions, offering autofix options to resolve these problems. Rev-dep also supports monorepo environments natively, making it ideal for large-scale projects using modern package managers like pnpm, yarn, or npm. Its exploratory CLI provides additional tools for debugging dependencies, such as tracing dependency paths and identifying circular chains. For developers and organizations focused on efficiency, Rev-dep significantly reduces CI costs and developer wait times by delivering results up to 200x faster than alternative tools. This speed is crucial for maintaining productivity in large-scale projects, where performance bottlenecks can hinder progress. By integrating Rev-dep into CI pipelines, teams can ensure their codebases remain clean, well-structured, and free from unnecessary bloat, ultimately improving maintainability and reducing technical debt. Rev-dep’s ability to automate dependency checks and enforce architectural boundaries makes it an essential tool for developers aiming to streamline their workflows and deliver high-quality code. Its performance optimizations and comprehensive feature set position it as a leader in the field of static analysis tools, particularly for JavaScript and TypeScript projects. By addressing critical issues like dead code removal, circular dependencies, and module consistency, Rev-dep empowers teams to maintain robust and scalable codebases with minimal effort.
Verticals
techstartups
Originally published on Hacker News on 2/26/2026
GitHub - jayu/rev-dep: Dependency analysis and optimization toolkit for modern JavaScript and TypeScript codebases. Enforce dependency graph hygiene and remove unused code with a very fast CLI.