Skip to main content

madge vs Rev-dep

madge visualizes module dependencies and finds circular dependencies. rev-dep turns the same analysis into enforceable CI checks and runs faster - but madge's signature feature, the graph image, has no rev-dep equivalent.

At a glance​

madgeRev-dep
Primary focusgraph visualization + circular depsdependency hygiene + architecture
RuntimeNodeGo - single parallel pass (up to 207x faster)
Circular dependenciesyesyes
Graph image (SVG / DOT)yesno
"Orphans" / "leaves" / "depends" queriesyesyes (via exploratory commands)
Unused exports / dependenciesnoyes
Architecture rulesnoyes
CI enforcementmanualnon-zero exit codes built in

Where rev-dep is stronger​

Where madge may still fit​

madge's main draw is the visual dependency graph (--image, --dot). rev-dep answers the same "what imports what" questions as text through the exploratory toolkit but renders no images. Keep madge if the picture matters.

Which should you choose?​

  • Want a rendered dependency graph? madge.
  • Want fast, CI-enforceable circular detection plus the rest of a hygiene suite? rev-dep.

Migrating​

See Migrating from madge for the command-to-check mapping.