Rev-dep
High-speed dependency analysis and codebase governance for JavaScript and TypeScript projects
Why Rev-dep?
Rev-dep is a high-performance CLI tool designed to enforce architecture integrity and dependency hygiene across large-scale JavaScript and TypeScript projects. Built in Go for exceptional speed, it consolidates fragmented checks from multiple tools into a single, parallelized pass.10x-200x Faster
Built in Go to eliminate Node.js performance bottlenecks. Audit 500k+ LoC in ~500ms.
Config-Based Governance
Execute multiple hygiene checks in one parallelized pass. Enforce module boundaries and import conventions.
Monorepo Native
First-class support for modern workspaces. Resolves package.json exports/imports maps and TypeScript aliases.
Exploratory Toolkit
Debug dependency issues with powerful CLI commands. Trace transitive relations and fix problems quickly.
Quick Start
Key Features
Circular Dependency Detection
Detect circular imports that can cause hard-to-debug issues
Unused Code Detection
Find orphan files and unused exports with autofix support
Module Boundaries
Enforce architecture rules between different parts of your codebase
Import Conventions
Standardize import styles with automatic fixes
Dependency Validation
Identify unused, missing, or duplicate node_modules
CI Integration
Fast enough to run on every commit without slowing down CI
Governance Capabilities
Rev-dep moves beyond passive scanning to active enforcement, answering critical questions:- Architecture Integrity: “Is my ‘Domain A’ illegally importing from ‘Domain B’?”
- Dead Code & Bloat: “Are these files unreachable, or are these
node_modulesunused?” - Refactoring Safety: “Which entry points actually use this utility, and are there circular chains?”
- Workspace Hygiene: “Are my imports consistent and are all dependencies declared?”
Explore the CLI Reference
Browse all available commands and their options
Performance Comparison
Rev-dep significantly outperforms alternatives:| Task | Rev-dep | Alternative | Speedup |
|---|---|---|---|
| Find circular dependencies | 289ms | dpdm-fast: 7,061ms | 24x faster |
| Find unused exports | 303ms | knip: 6,606ms | 22x faster |
| Find unused files | 277ms | knip: 6,596ms | 23x faster |
| Find unused node modules | 287ms | knip: 6,572ms | 22x faster |
| Discover entry points | 323ms | madge: 67,000ms | 207x faster |
Next Steps
Installation Guide
Learn how to install Rev-dep globally or locally
Quickstart Tutorial
Get up and running with your first checks
Configuration Guide
Set up config-based checks for your project
Monorepo Support
Learn how to use Rev-dep in monorepo projects
