skip to content

// analytics platform

Repo Scout

Explore a codebase through architecture maps, hotspots, ownership and Git history, all on your machine.

Repo Scout turns a local Git repository into a navigable atlas of its code and history. A single binary with the interface embedded connects activity calendars, file ownership and bus factor, searchable source, architecture graphs, change coupling and duplicate code, backed by a Go scanner and SQLite with live scan progress. Version 1.0.0 adds a scan command for CI with SARIF output and quality gates, and nothing ever leaves the machine.

// lens09/22
year
2026
type
analytics platform
group
developer tools
status
released as a single binary for six targets

//in plain words

Point Repo Scout at a software project on your own computer and it reads the code and its change history, then shows in your browser how the project is built, which parts are complicated and keep changing, who knows which parts, and where the hidden connections are. It sends nothing to the internet, and the same tool can fail a build when a change makes things worse.

for engineers joining an unfamiliar codebase, and teams that want a quality gate in CI

the problem

//01the problem

Understanding an unfamiliar codebase means juggling five tools with five output formats, and some of them want your source uploaded.

how it works

//02how it works

  1. 01

    An interface built for exploration

    A survey-map visual identity, a repository switcher and grouped navigation connect seventeen views: overview, activity, commits, contributors, knowledge, branches, files, search, metrics, hotspots, duplicates, architecture, change coupling, dependencies, portfolio and more. Light, dark and system themes, keyboard operation and layouts down to 390 pixels carry the same interface across screens.

  2. 02

    History with the right clock, and the right names

    Commit calendars, hour-of-week activity and streaks use each author's local time. Ownership is computed from the files each commit touched, following renames, with identities merged through .mailmap and bots never counted as owners. Knowledge pages show the bus factor and the largest files whose main author has gone quiet.

  3. 03

    Findings you can trace

    Architecture graphs collapse imports to folders at a chosen depth and flag cycles, unused folders and possibly dead files. Hotspots rank files by complexity times change frequency. Change coupling finds file pairs that keep changing together and explains each pair by an import, a shared package or a test, or flags it as a hidden dependency. Graphs export as SVG.

  4. 04

    A scan you can watch and control

    Eight ordered stages stream and batch-insert files, history, dependencies, imports, coupling and duplicate blocks, then build an FTS5 content index. Persisted jobs report progress over WebSocket, support pause, resume and cancel, and re-queue after a crash. Results are promoted in one transaction, so a failed rescan leaves the old ones, and only new commits are diffed on a rescan.

  5. 05

    The same engine in CI

    repo-scout scan prints text, JSON or SARIF for GitHub code scanning, with gates on complexity, duplicates, cycles and hidden coupling. With a base ref it judges a pull request instead of the whole repository: files added, complexity moved, cycles introduced or resolved, gated on the increase. Exit codes say which.

  6. 06

    Never leaves the machine

    No account, external APIs, telemetry or source uploads. The server binds to loopback, checks the Host header against DNS rebinding, accepts state changes as JSON only and holds the WebSocket to the same origin. Releases ship checksums, a software bill of materials and signed build provenance instead of a code signature.

screens

//03screens

  1. The overview of a scanned repository: Lines, files, commits, contributors, dependencies and duplicate blocks at a glance, then languages, a year of commit activity, the top hotspots and who commits most.
    01The overview of a scanned repositoryLines, files, commits, contributors, dependencies and duplicate blocks at a glance, then languages, a year of commit activity, the top hotspots and who commits most.
  2. The import graph: Folders as nodes, imports as arrows weighted by how many files cross them, with the circular dependency and the entry points called out underneath.
    02The import graphFolders as nodes, imports as arrows weighted by how many files cross them, with the circular dependency and the entry points called out underneath.
  3. Hotspots: Files ranked by how often they change and how complex they are, so the next refactor starts where bugs tend to appear.
    03HotspotsFiles ranked by how often they change and how complex they are, so the next refactor starts where bugs tend to appear.
  4. Knowledge and bus factor: Who owns which folder, how much code sits with an author who has gone quiet, and a bus factor of one stated plainly.
    04Knowledge and bus factorWho owns which folder, how much code sits with an author who has gone quiet, and a bus factor of one stated plainly.
  5. Change coupling: Pairs of files that keep changing in the same commits, with the expected pairs explained by an import, a test or a lockfile, and the hidden ones flagged.
    05Change couplingPairs of files that keep changing in the same commits, with the expected pairs explained by an import, a test or a lockfile, and the hidden ones flagged.
  6. Metrics: Size and complexity by language, with every scan kept so the numbers show their trend after the next one.
    06MetricsSize and complexity by language, with every scan kept so the numbers show their trend after the next one.
  7. Activity: Commits over time and by weekday and hour, for one repository or across the whole portfolio.
    07ActivityCommits over time and by weekday and hour, for one repository or across the whole portfolio.
  8. The dark theme: The same architecture page in the dark theme; light, dark and system all ship.
    08The dark themeThe same architecture page in the dark theme; light, dark and system all ship.

measured

//04measured

3,602
files scanned
tanstack query repository, the showcase scan
5,524
commits indexed
same scan
1,141
contributors mapped
same scan
0
bytes sent off the machine
loopback only, no telemetry
140
go tests, 49 unit and 7 browser tests
race detector on, run on linux, macos and windows in ci
12
languages counted, 11 with import graphs
plus six dependency manifest formats

decisions

//05decisions

  1. 01

    chose the git command line through os/exec

    over a Go git library

    git already knows every edge case of its own history and is on every developer's machine. Output is streamed line by line into SQLite and cached, so the cost is a process boundary, not a second implementation of git.

  2. 02

    chose pure-Go SQLite with CGO off

    over the C SQLite binding

    No C toolchain means one build cross-compiles for six targets and the FTS5 content index still works. The price is some raw speed on huge repositories.

  3. 03

    chose loopback only, with no authentication

    over a login screen

    It is a single-user tool, and the database holds a full-text index of your source. Binding to localhost, checking the Host header and refusing cross-site form posts protect it better than a password would. The docs say what exposing the address would expose.

  4. 04

    chose promoting scan results in one transaction

    over updating rows in place

    A scan that fails halfway must not leave a half-truth. Results are written under a staging id and swapped in only when every stage succeeds.

  5. 05

    chose unsigned binaries with signed provenance

    over paying for code-signing certificates

    Checksums, a software bill of materials and GitHub build attestations let anyone verify what built the archive and from which commit. macOS asks you to clear the quarantine flag once.

try it

//06try it

  1. //download a release

    gh release download --repo KhaledSaeed18/repo-scout --pattern '*_darwin_arm64.tar.gz' && tar -xzf repo-scout_*_darwin_arm64.tar.gz && ./repo-scout

    serves localhost:8080; linux and windows archives on the release page

  2. //verify what built it

    gh attestation verify repo-scout_*_darwin_arm64.tar.gz --repo KhaledSaeed18/repo-scout
  3. //gate a pipeline

    repo-scout scan . --max-complexity 150 --max-duplicates 20 --fail-on cycles,hidden-coupling

    go install github.com/KhaledSaeed18/repo-scout/cmd/repo-scout@latest for ci

highlights

//07highlights

  • One binary for six platforms with the interface embedded, 70 days from first commit to v1.0.0
  • Folder-level architecture maps, hotspots, bus factor and hidden coupling
  • A scan command for CI with SARIF, quality gates and pull request comparison
  • Atomic, incremental rescans with pause, resume, cancel and crash recovery
  • Showcased on a real TanStack Query scan: 3,602 files, 5,524 commits and 1,141 contributors
  • OpenAPI spec with contract tests, 31 paths

built with

  • Go
  • SQLite
  • React
  • TypeScript
  • Vite
  • TanStack Query
  • React Flow
  • WebSocket
  • Playwright
  • GoReleaser

on githubrepo-scout

forks
1
license
MIT
language
Go
latest release
v1.0.0 oct 10, 2026
last push
nov 29, 2026

printings

//08printings

  1. First commit

  2. The redesign

    New pages, a brand kit, loopback by default, contributing and security docs, and the TanStack Query showcase.

  3. v1.0.0

    The single binary for six targets, the scan command with SARIF and gates, pull request comparison, hotspots, knowledge, change coupling, portfolio, trends, atomic rescans, migrations, OpenAPI contract tests and signed provenance.

questions

//09questions

Does any code or data leave my machine?
No. There is no telemetry and no outbound access. Results live in a local SQLite file, and the server answers only on loopback. Treat that file as being as sensitive as the repositories you scan, because it holds a content index of them.
Can I run it in CI without the web interface?
Yes. Install the binary with go install and run the scan command with SARIF output, which uploads to GitHub code scanning. A failed gate exits with code 1.
How does it judge a pull request rather than the whole repository?
Pass the base ref. It extracts the base read-only with git archive and reports files added and removed, complexity that moved, cycles introduced or resolved and dependency changes, with gates on the increase.
What happens if a rescan is interrupted?
Nothing is lost. Results are promoted only when every stage succeeds, and a crash re-queues the job on the next launch.
Can I go back to an older version?
The database is migrated forward and an older version refuses to open it, so copy the database file before upgrading.

related sheets

//10related sheets

//11contact

Say hello.I read everything.

Email is the fastest way to reach me. For anything that needs a conversation, book a call.

to

name
Khaled Saeed
country
Lebanon