▦ Project

repostats

Paste any public GitHub URL. In a few seconds you'll see how many lines of code it has, which languages, where the complex files live, and a COCOMO-based estimate of how much it would cost — and how long it would take — to build the same thing from scratch.

What it does

Lines of code

Every file in the default branch counted, summed by language and ranked by code volume. See where the bulk actually lives.

Cost to develop

COCOMO (Boehm 1981, organic mode) translates SLOC into person-months, calendar months, and dollars. Industry-standard formula — not a guess.

Complexity ranking

Top files by branch + loop count, so the gnarly parts of the codebase surface immediately.

Cached & shareable

Results are keyed by commit SHA. Re-hitting the same commit is instant. Every analyzed repo gets a stable URL like /r/owner/repo.

Stack

Backend
Go 1.23, net/http
Storage
SQLite (modernc.org, no CGO)
Cost model
COCOMO (Boehm 1981, organic)
Container
Alpine multi-stage
Frontend
embedded HTML + vanilla JS
Progress
gorilla/websocket

Try it

# anywhere with curl
curl -X POST https://repostats.app/api/analyze \
  -H 'Content-Type: application/json' \
  -d '{"url":"https://github.com/golang/go"}'

# or just open the URL
https://repostats.app/r/golang/go