Git-native history scanning
Walk first-parent history with gix (pure Rust). Store per-commit snapshots locally and reuse cache on repeated scans.
MorphArch scans Git history, builds dependency graphs, computes health scores, and helps you inspect structure, drift, and hotspots — all from a terminal UI designed for large codebases.
$ cargo install morpharch
MorphArch is designed for repeated local analysis — not a one-time graph dump, but an operational tool for ongoing architecture review.
Walk first-parent history with gix (pure Rust). Store per-commit snapshots locally and reuse cache on repeated scans.
Extract dependency edges from Rust, TypeScript, JavaScript, Python, and Go with comment-safe fast paths and tree-sitter AST fallback.
Six-component 0–100 health score that adapts baselines for repository size. No false positives on large monorepos.
Inspect downstream impact for high-risk modules. See which changes are likely to ripple through the dependency graph.
Start with a grouped map view. Drill into cluster details and then individual modules — never start with raw graph chaos.
Ask natural language questions about health, coupling, hotspots, and blast radius. Works with OpenAI, Ollama, or any compatible API.
Each component is weighted, scale-aware, and configurable. The score adapts its baselines to your repository size.
Circular dependency detection via SCC analysis
Back-edges violating layered architecture
God modules with high fan-in and fan-out
Edge weight density and import concentration
Graph complexity and degree excess
Brittle modules via Martin instability metric
Large repositories are easier to review when you start at the cluster level. MorphArch keeps the raw graph available, but only surfaces it when you need it.
Start with grouped clusters so large repositories are readable before looking at individual nodes.
Open a subsystem to inspect members, dependencies, and link pressure between clusters.
Focus one module with a one-hop subgraph. See who depends on it, what it pulls in, and its blast radius.
Press a in the TUI to open the AI panel. It uses the full architecture context — health scores, dependency edges, blast radius, churn hotspots, cycle groups — to answer your questions.
Choose your preferred method. No build dependencies required.
$ cargo install morpharchcargo install morpharchmorpharch watch .Map → Cluster → InspectReview boundaries, coupling, and structural pressure without manually reading a full dependency graph.
Track drift over time, review what changed between commits, and identify parts of the repo that are becoming harder to change.
Answer practical questions — who depends on a module, what it pulls in, and what changes are likely to ripple outward.
MorphArch is Apache-2.0 / MIT licensed. Contributions around language support, clustering, scan correctness, TUI polish, and documentation are welcome.
Install MorphArch, point it at a repository, and see architecture health in under a minute.