# pahen/madge

Create graphs from your CommonJS, AMD or ES6 module dependencies

Repository: https://github.com/pahen/madge
Canonical: https://ross.abutalabs.com/products/madge
Language: JavaScript
License: MIT
License Family: permissive
Topics: graphviz, graph, amd, commonjs, es6, sass, stylus, less, dependencies, madge
Last push: 2026-01-21T23:04:43+00:00

## Health v2 (maintenance only)
Score: 61/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 63, release rhythm 35, longevity 100
- inputs: {"age_days": 5218, "days_push": 224, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10162, forks 351 (observed 2026-08-28T04:10:39.716870+00:00)

## What it is
Madge is a JavaScript developer tool that generates visual dependency graphs from CommonJS, AMD, and ES6 modules, as well as Sass, Stylus, and Less files. It also detects circular dependencies and provides a programmatic API for extracting dependency trees.

## Use cases
- generate a dependency graph for my JavaScript project
- find circular dependencies in my codebase
- visualize module dependencies as SVG or DOT
- analyze dependencies in Sass or Less files
- check which modules depend on each other before refactoring
- get a dependency tree as JSON for tooling

## When to choose
- you need to visualize or audit module dependencies in a JavaScript or CSS-preprocessor codebase
- you want to detect and eliminate circular dependencies
- you want a CLI tool plus a programmatic API for dependency analysis

## When to avoid
- you need dependency analysis for non-JavaScript languages like Python, Java, or Go
- you need runtime dependency tracking rather than static analysis
- you require bundler-integrated dependency management rather than a standalone analysis tool

## Facets
- artifact type: cli-tool
- maturity: active
- function: developer-tools, cli, data-visualization, parser
- domain: developer-tools, web-development
- platform: cli, cross-platform
- tags: dependency-graph, circular-dependencies, graphviz, es6-modules, commonjs, amd, css-preprocessors, static-analysis, javascript, command-line, nodejs

## Member repositories
- pahen/madge (main) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:39.716870+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:19:40.317803+00:00, confidence not recorded.
  - readme: https://github.com/pahen/madge (fetched 2026-08-28T04:10:39.716870+00:00, sha 1bba1ccfab29)
  - registry_npm: https://registry.npmjs.org/madge (fetched 2026-08-29T08:19:35.409465+00:00, sha d538aff82352)
- Data as of 2026-08-30T08:39:29.467469+00:00.
