Detect coupling violations
Sibling modules that depend on each other break architectural boundaries. noupling finds every one, scores severity by depth, and tells you exactly which import to fix.
noupling scans your project, builds a dependency graph from actual import statements, and gives you a single health score you can track over time and gate in CI.
# Install
brew tap pererikbergman/noupling
brew install noupling
# Scan, audit, report
noupling scan .
noupling audit . --fail-below 80
noupling report . --format html
Sibling modules that depend on each other break architectural boundaries. noupling finds every one, scores severity by depth, and tells you exactly which import to fix.
Dependency chains that form loops prevent independent development. The XS metric identifies the weakest link in every cycle—the cheapest edge to cut.
A single, risk-weighted number that tracks architectural drift across snapshots. Gate CI with --fail-below. Drill into interactive HTML reports to see exactly where coupling lives.
Tree-sitter parses actual ASTs—no regex. From Kotlin to Rust to Python, the same analysis runs everywhere. Rayon parallelizes scanning across all cores.
Define architectural layers so downward dependencies aren't flagged. Add custom rules to forbid specific import patterns. Tune risk weights per dependency direction. Suppress known violations inline.
Text, JSON, XML, Markdown, interactive HTML, SonarCloud, Mermaid, GraphViz DOT, zoomable Sunburst, an executive Dashboard, PR comment, sprint Briefing, trend Strategy, and the new interactive Explorer. Use --format all to generate every format in one command.
The shift from hoping your architecture holds to knowing it does.
| Coupled State | Noupled State | |
|---|---|---|
| Architecture review | Manual, inconsistent, happens after the damage | Automated on every PR, quantified, gated |
| Circular dependencies | Discovered during a painful refactor | Caught at commit time with exact break cost |
| New developer impact | "I touched one file and 40 tests broke" | Boundaries are explicit and enforced |
| Architecture health | A gut feeling that degrades quarterly | A number: 82.3/100, trending up since March |
| Incremental adoption | All-or-nothing rewrite fantasies | Baseline existing debt, only fail on new violations |