Madge
Analyze and visualize module dependency graphs in your codebase.
Dev workflow and config npm MIT
How Madge is used
Madge is a dependency in 16 of the 6,211 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,980); counting those, it appears in 24 projects, and what it is used with below comes from all of them. Projects that use it most often also use Testing Library (45.8%), Knip (41.7%), TypeScript (95.8%).
Madge popularity over time
Gid Score 52: downloads 68, use in agent projects 30, GitHub stars 50, downloads trend 55 (each 0-100). How it is calculated.
Often used with Madge
| Testing Library | 45.8% of Madge projects · 4.5× more than average |
|---|---|
| Knip | 41.7% of Madge projects · 18.1× more than average |
| TypeScript | 95.8% of Madge projects · 1.7× more than average |
| dotenv | 50.0% of Madge projects · 3.2× more than average |
| ESLint | 75.0% of Madge projects · 2.1× more than average |
| Model Context Protocol SDK (JavaScript) | 37.5% of Madge projects · 4.0× more than average |
| Playwright (JavaScript) | 50.0% of Madge projects · 2.9× more than average |
| Husky | 37.5% of Madge projects · 3.7× more than average |
From all 24 projects in our scan that use Madge, including the dependency samples.
By coding agent
| Claude Code | 0.3% of projects set up for it |
|---|---|
| Cursor | 0.4% of projects set up for it |
| GitHub Copilot | 0.2% of projects set up for it |
Share of public repos configured for each agent that list Madge as a dependency.
How Madge is funded
Ways to fund Madge
As the maintainers list them in the npm package. Checked Oct 20, 2026.
Install
| Package | npm install madge |
|---|---|
| Main stacks | TypeScript / JavaScript (13), Next.js (8), React Native / Expo (1), Rust (1) |
| Example projects | ag-grid/ag-charts, kovrichard/catalyst, bartstc/vite-ts-react-template, Synerise/synerise-design, BabylonSocial/babylon |
Alternatives to Madge
In our scan, none of the most used tools in Dev workflow and config does the same job as Madge: they are add-ons, companions or tools for a different task.
More in Dev workflow and config: dotenv Husky python-dotenv concurrently lint-staged Rich Pydantic Settings cross-env