🔍 repoglance
Instant, gorgeous insight into any code repository — in one command.
Point it at any folder. In under a second you get a beautiful terminal report: language breakdown, complexity hotspots, TODO tracker, biggest files, and git activity. Zero config. Zero API keys. Zero telemetry.
Why repoglance?
You clone an unfamiliar repo. What is this thing? How big? What's the messy
part? Where's the unfinished work? cloc gives you a wall of numbers. tokei
is fast but bare. repoglance answers the human questions in one glance:
repoglance .
Seen in the wild
repoglance run against well-known projects (click to view the full report):
| Project | Files | Lines of code | Health |
|---|---|---|---|
| flask | 209 | 25,293 | D (67) |
| httpie | 236 | 20,114 | D (66) |
| requests | 89 | 13,785 | C (72) |
Install
pip install repoglance
Or run without installing:
pipx run repoglance .
Usage
repoglance # analyze current directory
repoglance path/to/repo # analyze another repo
repoglance --json # machine-readable output for scripts / CI
repoglance --csv # per-file CSV
repoglance --sarif # SARIF for GitHub code scanning
repoglance --svg report.svg # export a vector report
repoglance --html report.html # export a browser report
repoglance --badge badge.svg # export an embeddable badge
repoglance --since origin/main # only files changed since a revision
repoglance --baseline base.json # snapshot now
repoglance --compare base.json --fail-on-regression # fail on new complexity
repoglance --ci --fail-under 70 --max-complexity 25 # gate a build
repoglance --include "src/**" --exclude "**/*_pb2.py" # glob filters
repoglance --no-git --jobs 8
JSON output
Pipe structured data anywhere — dashboards, CI gates, badges:
repoglance --json | jq '.languages.Python.code'
What it measures
| Section | What you get |
|---|---|
| Languages | Lines of code per language, ranked, with % bars |
| Complexity hotspots | Real per-function cyclomatic complexity across 15+ languages (C/C++, Java, C#, JS, TS, Go, Rust, Ruby, PHP, Swift, Kotlin, Python…) via lizard |
| Maintainability index | Approximate MI (0–100) from complexity, size and token counts |
| TODO tracker | Every TODO / FIXME / HACK / XXX / BUG with file:line |
| Biggest files & directories | Where the mass and the worst complexity live |
| Git activity | Top authors, most-churned files, active days, project lifespan |
Binary files, node_modules, .venv, build dirs and friends are skipped
automatically.
More than a counter
repoglance isn't just another cloc. Tools like tokei, cloc and scc
answer "how many lines?". repoglance answers "what should I look at?" — and
gives you artifacts you can put in a PR or a README.
| repoglance | tokei | scc | cloc | |
|---|---|---|---|---|
| Lines-of-code by language | ✅ | ✅ | ✅ | ✅ |
| Per-function complexity (15+ langs) | ✅ | ❌ | ⚠️ file-level | ❌ |
| Maintainability index | ✅ | ❌ | ❌ | ❌ |
| TODO / FIXME tracker | ✅ | ❌ | ❌ | ❌ |
| Git activity (authors, churn) | ✅ | ❌ | ❌ | ❌ |
Respects .gitignore |
✅ | ✅ | ✅ | ❌ |
| JSON / CSV / SARIF output | ✅ | ⚠️ | ⚠️ | ⚠️ |
| HTML / SVG report export | ✅ | ❌ | ❌ | ❌ |
| Embeddable repo badge | ✅ | ❌ | ❌ | ❌ |
Diff mode (--since) + baselines |
✅ | ❌ | ❌ | ❌ |
| CI gate + regression ratchet | ✅ | ❌ | ❌ | ❌ |
Config file ([tool.repoglance]) |
✅ | ✅ | ❌ | ❌ |
Share it: badges & reports
Generate a self-contained SVG badge — no shields.io round-trip, no tracking:
repoglance --badge assets/badge.svg
Export the full report as a standalone file to drop in a PR or wiki:
repoglance --svg report.svg # vector, pixel-perfect
repoglance --html report.html # opens in any browser
Guard your codebase in CI
Fail the build when complexity or TODO debt crosses a line:
repoglance --ci --max-complexity 25 --max-todos 100
# .github/workflows/quality.yml
- run: pip install repoglance
- run: repoglance --ci --max-complexity 25
Exit code 0 = clean, 2 = a threshold was exceeded.
Integrations
GitHub Action — comment on every PR
Drop repoglance into any repo. It posts a sticky report comment on pull requests and can gate the build:
# .github/workflows/repoglance.yml
name: repoglance
on: [pull_request]
permissions:
contents: read
pull-requests: write
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: SRJ-ai/repoglance@main
with:
fail-under: "70" # optional health gate
max-complexity: "25" # optional complexity gate
The report also lands in the workflow's job summary every run.
pre-commit hook
# .pre-commit-config.yaml
repos:
- repo: https://github.com/SRJ-ai/repoglance
rev: v0.2.2
hooks:
- id: repoglance
args: ["--ci", "--fail-under", "70"]
Self-updating badge
Commit a shields endpoint file and point a dynamic badge at it — the badge refreshes itself, no service to run:
repoglance --badge-json .repoglance-badge.json # commit this file

Markdown anywhere
repoglance --md # paste into a PR, wiki, or Slack
Configuration file
Set defaults once via .repoglance.toml or a [tool.repoglance] table in
pyproject.toml (CLI flags always win):
[tool.repoglance]
exclude = ["**/*_pb2.py", "vendor/**"]
max_complexity = 25
fail_under = 70
Docker & GitLab
docker run --rm -v "$PWD:/repo" repoglance /repo
A ready-to-copy GitLab CI job lives in
integrations/gitlab-ci.yml.
Design goals
- Fast — a single pass, no external services.
- Honest — no network, no telemetry, no surprise writes.
- Pretty — powered by rich.
- Scriptable — everything the report shows is available as
--json.
Contributing
Adding a language is a one-line change in languages.py. PRs welcome — see
CONTRIBUTING.md.
License
MIT © repoglance contributors
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file repoglance-0.3.0.tar.gz.
File metadata
- Download URL: repoglance-0.3.0.tar.gz
- Upload date:
- Size: 56.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7cd58fc0bf07534c9be706358e7544e616ae0332dcc248ee6196d4208dbb1ef
|
|
| MD5 |
c0a70367238ba73df48496799a796a39
|
|
| BLAKE2b-256 |
88b9827b0cc0262ad6b4add2f6bbb2aff75b70ddb5a67e7127ca233a79398026
|
Provenance
The following attestation bundles were made for repoglance-0.3.0.tar.gz:
Publisher:
release.yml on SRJ-ai/repoglance
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
repoglance-0.3.0.tar.gz -
Subject digest:
d7cd58fc0bf07534c9be706358e7544e616ae0332dcc248ee6196d4208dbb1ef - Sigstore transparency entry: 2312698192
- Sigstore integration time:
-
Permalink:
SRJ-ai/repoglance@8394173a8c2452f7b230e96aeda97581cf1eb94f -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/SRJ-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8394173a8c2452f7b230e96aeda97581cf1eb94f -
Trigger Event:
push
-
Statement type:
File details
Details for the file repoglance-0.3.0-py3-none-any.whl.
File metadata
- Download URL: repoglance-0.3.0-py3-none-any.whl
- Upload date:
- Size: 26.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
698162c08fa852b50f7cca44b3d7717e2ed3235624b620b51209ded460380d39
|
|
| MD5 |
78bdbf908b6eebc7f82832ca143a8c94
|
|
| BLAKE2b-256 |
79b1dd9d5ada7bd1dce7ab6bbc971af8a3d7e0e13ea9170ba9df9e7fbd351550
|
Provenance
The following attestation bundles were made for repoglance-0.3.0-py3-none-any.whl:
Publisher:
release.yml on SRJ-ai/repoglance
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
repoglance-0.3.0-py3-none-any.whl -
Subject digest:
698162c08fa852b50f7cca44b3d7717e2ed3235624b620b51209ded460380d39 - Sigstore transparency entry: 2312698225
- Sigstore integration time:
-
Permalink:
SRJ-ai/repoglance@8394173a8c2452f7b230e96aeda97581cf1eb94f -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/SRJ-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8394173a8c2452f7b230e96aeda97581cf1eb94f -
Trigger Event:
push
-
Statement type: