Skip to content
Huang's Blog

OctoCounts

A free SLOC counter for public GitHub repositories, as a web app and a browser extension.

TypeWeb app + browser extension (Chrome / Edge / Firefox)
PriceFree
BackendRust (Axum + Tokio)
Counting enginetokei, across 200+ languages
CachingReports cached by commit SHA — repeat queries are instant
ExportJSON / plain text / PNG badge
Websiteoctocounts.com

GitHub shows language bars but not actual line counts — OctoCounts fills that gap.

How it works

  1. Paste a public GitHub repository URL.
  2. The Rust backend (Axum + Tokio) downloads the archive tarball.
  3. It runs tokei across 200+ languages to count lines of code.
  4. The report is cached by commit SHA, so repeat queries are instant.

Browser extension

The Chrome / Edge / Firefox extension adds a SLOC card directly to GitHub repository sidebars, with JSON, plain-text, and PNG-badge export.

FAQ

Why not just use the language bar on GitHub?

GitHub shows language percentage bars but not actual line counts. OctoCounts fills that gap with real SLOC numbers per language.

Do I have to re-run the count for every visit?

No. Reports are cached by commit SHA, so repeat queries for the same commit return instantly.