Madge

Madge

Module dependency graph tool that traces imports in JavaScript and TypeScript projects, generates circular dependency lists and visualizes the module tree as an image, JSON or interactive web view to spot tangled or orphaned modules.

Madge at github.com/pahen/madge is a free MIT JS and TypeScript module dependency graph tool, npm 8.0.0 Node 18+, scans source files and follows ES module and CommonJS imports, builds a module dependency tree, reports circular dependencies and never-imported modules, renders SVG image JSON or interactive web view, CLI integrates into CI to fail builds on new cycles, visual output helps understand coupling before refactoring, no sold commercial tier (data as of Nov 22, 2026).

Visit Official Website

*This is an affiliate link, we may earn a commission at no extra cost to you.

Is Madge free?

Madge: Madge is free open-source software released under the MIT License; the madge package latest 8.0.0 on npm requires Node 18 or above. It scans source files, follows ES module and CommonJS imports, and builds a tree of how modules depend on one another. It reports circular dependencies, lists modules that are never imported, and can render the graph as an SVG or image, a JSON structure, or an interactive web page for exploration. The CLI integrates into CI to fail a build when new cycles appear, and the visual output helps teams understand module coupling before refactoring. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Check the official page for current status before relying on it.

Frequently Asked Questions

Is Madge free?

The code is free to self-host, but a hosted plan from the vendor may not be. Madge publishes its source, so cost depends on where you run it.

How much does Madge cost?

Madge is free open-source software released under the MIT License; the madge package latest 8.0.0 on npm requires Node 18 or above. It scans source files, follows ES module and CommonJS imports, and builds a tree of how modules depend on one another. It reports circular dependencies, lists modules that are never imported, and can render the graph as an SVG or image, a JSON structure, or an interactive web page for exploration. The CLI integrates into CI to fail a build when new cycles appear, and the visual output helps teams understand module coupling before refactoring. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Usage volume, plan limits and add-ons can push the bill above the figures shown, so confirm the current numbers on the vendor page before committing.

Where can I check Madge's current pricing?

On Madge's official site, linked from this page. We only publish a price after reading the vendor's own pricing page, so if this page shows no number, it means no traceable public price is on file — not that the tool is free.

What is Madge?

The scanner follows imports across files, the graph records parent-child module relationships, cycle detection flags back-edges, and exporters render the tree as an image, JSON or interactive page for review.

How does pricing work?

The CLI and graph exporters install free under MIT with no seat license; renderers and integrations follow their own terms, and commercial support would be outside the open-source project.

How does Madge compare with other tools in Dev Workflow & Productivity?

Madge is listed in the Dev Workflow & Productivity category, alongside 2 other tools we track here. 2 of those 2 peers have a dated price we read from the vendor's own pricing page, and the table below shows each tool's pricing model next to the exact rate on file — so the comparison is between published numbers, not between marketing pages.

ToolPricing modelKey pricing on filePrice checked
MadgeOpen sourceMadge is free open-source software released under the MIT License; the madge package latest 8.0.0 on npm requires Node 18 or above. It scans source files, follows ES module and CommonJS imports, and builds a tree of how modules depend on one another. It reports circular dependencies, lists modules that are never imported, and can render the graph as an SVG or image, a JSON structure, or an interactive web page for exploration. The CLI integrates into CI to fail a build when new cycles appear, and the visual output helps teams understand module coupling before refactoring. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).Nov 22, 2026
Dependency CruiserOpen sourceDependency Cruiser is free open-source software released under the MIT License; the dependency-cruiser package latest 18.8.0 on npm supports Node 22, 24 or 26 and above. It parses imports and require calls across JavaScript, TypeScript and CoffeeScript modules, builds a dependency graph, and checks that graph against declarative rules that allow or forbid certain relationships, such as circular dependencies, layered architecture violations or imports from disallowed folders. Outputs include text, HTML and SVG reports, JSON for CI integration, and metrics on the number of dependencies and cycles. The tool runs locally in a project or in CI to keep module boundaries consistent over time. No paid commercial edition or per-seat license is sold by the core project (data as of Nov 22, 2026).Nov 22, 2026
node-dependency-treeOpen sourcenode-dependency-tree is free open-source software released under the MIT License; the dependency-tree package latest 12.0.1 on npm requires Node 20.19.0 or above, or Node 22.12.0 or above. Given an entry file, it parses require and import statements, resolves each module to its file on disk, and recurses into that module's own dependencies to produce a nested tree of source files and packages. It handles JavaScript and TypeScript resolution through configured loaders and exposes the tree as structured data rather than a rendered report, so other tools can consume it for graphs, audits or bundle analysis. It is a programmatic library rather than a standalone dashboard. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).Nov 22, 2026

3 of these 3 entries carry a specific price we read from the vendor's site. Where the column says there is no dated price on file, we have not verified a rate — treat that as unknown rather than free, and check the vendor's page before you budget for it.

Full pricing breakdown

Madge's source code is publicly available, so you can run or build it yourself. The project may also sell a paid hosted or cloud plan — check the official site for current pricing.

Open source does not always mean every hosted version is free.

Key pricing: Madge is free open-source software released under the MIT License; the madge package latest 8.0.0 on npm requires Node 18 or above. It scans source files, follows ES module and CommonJS imports, and builds a tree of how modules depend on one another. It reports circular dependencies, lists modules that are never imported, and can render the graph as an SVG or image, a JSON structure, or an interactive web page for exploration. The CLI integrates into CI to fail a build when new cycles appear, and the visual output helps teams understand module coupling before refactoring. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).

Estimate your monthly bill with our calculator →Or build a full stack around your budget →

Pricing Guides & Comparisons

Plan prices in these guides are read from each vendor's own pricing page, with the date we checked them.

⭐ Rate this tool

How would you rate this tool?

🚀 Never Miss a New AI Coding Tool

Join 1,000+ developers getting our weekly roundup: new AI tools, student free tiers, exclusive discounts, and side project deals. No spam, unsubscribe anytime.

Tool Information

  • Official Websitegithub.com
  • CategoryDev Workflow & Productivity
  • PricingOpen Source
  • Price checkedNov 22, 2026

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates