---
title: "Madge"
description: "Generates visual dependency graphs of a module tree and detects circular dependencies, outputting SVG, DOT or JSON."
canonical: "https://vibing.inc/library/madge-vg-0870"
category: "Dev Utilities & Vibe-Coding Tooling"
subcategory: "Codebase hygiene"
license: "MIT"
author: "Patrik Henningsson (@pahen)"
source: "https://github.com/pahen/madge"
---

# Madge
Generates visual dependency graphs of a module tree and detects circular dependencies, outputting SVG, DOT or JSON.
## Facts
- Source: https://github.com/pahen/madge
- Category: Dev Utilities & Vibe-Coding Tooling / Codebase hygiene
- Author: Patrik Henningsson (@pahen)
- Licence: MIT
- Tags: dependency-graph, circular-dependency, visualization, node
## Why it's a gem
The graph image it exports is still the fastest way to explain architecture debt to a PM.
---
Listed in The Vibeary: https://vibing.inc/library/madge-vg-0870 · JSON: https://vibing.inc/api/public/library/gems/madge-vg-0870