Skip to content
Agents tracked: 378 Downloads (7d): 244M down 5.7% GitHub stars: 8.4M VS Code installs: 151M Releases (7d): 407 Agent status: 1 with issues Updated Oct 10, 2026

dependency-cruiser

Validate and visualize code dependencies with custom rules for JavaScript/TypeScript.

Linting and formatting npm MIT

Used in agent projects
27
0.2% of 12,697 public repos built with AI coding agents
Rank in linting and formatting
#29 of 40
by use in those projects
Downloads
5.1M
npm, last 7 days, dependency-cruiser
GitHub stars
7,271
last push Oct 10, 2026

How dependency-cruiser is used

dependency-cruiser is a dependency in 27 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.2%), #29 of 40 in linting and formatting. The most used alternative there is ESLint. Projects that use it most often also use Vitest (81.5%), Playwright (JavaScript) (63.0%), jsdom (48.1%).

Often used with dependency-cruiser

Vitest81.5% of dependency-cruiser projects · 6.7× more than average
Playwright (JavaScript)63.0% of dependency-cruiser projects · 7.2× more than average
jsdom48.1% of dependency-cruiser projects · 9.0× more than average
Zod55.6% of dependency-cruiser projects · 3.3× more than average
TypeScript100.0% of dependency-cruiser projects · 1.8× more than average
Knip44.4% of dependency-cruiser projects · 37.6× more than average
Prettier48.1% of dependency-cruiser projects · 2.8× more than average
Testing Library33.3% of dependency-cruiser projects · 4.6× more than average

By coding agent

Claude Code0.6% of projects set up for it
GitHub Copilot0.3% of projects set up for it
OpenAI Codex2.0% of projects set up for it
Cursor0.4% of projects set up for it
Gemini CLI1.6% of projects set up for it
OpenCode1.6% of projects set up for it
Devin Desktop1.8% of projects set up for it

Share of public repos configured for each agent that list dependency-cruiser as a dependency.

Install

Packagenpm install dependency-cruiser
Main stacksTypeScript / JavaScript (20), Next.js (5), Python (1), Rust (1)
Example projectscin12211/orca-q, MarcusXavierr/cata-centavo, proompteng/bilig, blackplume233/Actant, NathanAB/statuslin.es

Alternatives to dependency-cruiser

All linting and formatting

Tool Used in agent projectsDownloads / wk GitHub starsLicense
ESLint npm
Linter that finds and fixes JavaScript code patterns based on AST analysis.
4,833 (38.1%) 162M 27.6K MIT
Prettier npm
Opinionated code formatter for JavaScript, TypeScript, and related languages.
2,218 (17.5%) 138M 52.4K MIT
Biome npm
Fast web toolchain providing linting, formatting and code quality all in one.
445 (3.5%) 17.7M 25.9K MIT OR Apache-2.0
oxlint npm
Fast JavaScript linter written in Rust with zero-config defaults.
206 (1.6%) 25.7M 23K MIT
Knip npm
Find and fix unused dependencies, exports and files in TypeScript/JavaScript projects.
150 (1.2%) 17.5M 12.4K ISC
stylelint npm
Linter that finds and fixes CSS errors and enforces code style conventions.
140 (1.1%) 10.8M 11.5K MIT
oxfmt npm
Fast JavaScript formatter from the Oxc compiler project.
125 (1.0%) 16.3M 23K MIT
ESLint Import Resolver TypeScript npm
ESLint plugin resolver adding TypeScript support to import/export linting.
119 (0.9%) 48.8M 825 ISC
Is dependency-cruiser right for your project? Ask AgentGid →