barad-dur

See everything.
Miss nothing.

barad-dur analyzes any git repository and surfaces health metrics, hotspots, team dynamics, and evolution patterns — in seconds.

View live report →

What it analyzes

barad-dur reads your git history — no code parsing required — and computes four families of metrics.

❤️

Health

Hotspot files, coupling patterns, and an overall 0–100 score that tells you where the risk is.

👥

Team

Ownership distribution, bus factor, and contribution spread across your codebase.

📈

Evolution

Change frequency, age of files, and trend analysis so you can see where churn is accelerating.

🧹

Hygiene

Commit message quality, branch discipline, and merge patterns that reflect process health.

How it works

1

Point it at a repo

Run barad-dur analyze . inside any git repository. It walks the full history and caches the snapshot for future runs.

2

Metrics are computed

Each of the four metric families runs against the snapshot independently. Scores are aggregated into a single overall 0–100 grade.

3

Pick your output

Human-readable CLI output by default. Add --json for machine consumption or --html for a self-contained interactive report.

Output formats

barad-dur produces three output formats from a single analysis pass.

CLI

Compact, color-coded summary. Designed for daily use and CI pipelines.

JSON

Full structured output with --json. Pipe it, store it, diff it over time.

HTML

Self-contained interactive report with --html. No server needed — one file, share anywhere.

barad-dur analyze .                    # CLI output
barad-dur analyze . --json --pretty    # JSON
barad-dur analyze . --html -o report.html  # HTML

Why use it

barad-dur is built for four use cases: