

OctoCounts
OctoCounts is a free source lines of code (SLOC) counter for public GitHub repositories. GitHub's repository sidebar shows a language bar — a percentage breakdown by bytes — but never shows the numbers most developers actually want: how many files, how many total lines, how...
Cost / License
- Free
- Open Source (MIT)
Platforms
- Online
- Google Chrome
- Microsoft Edge
- Mozilla Firefox
Features
- Rust
- Browser extension
OctoCounts News & Activities
Recent activities
- lizhuo-huang added OctoCounts
- POX updated OctoCounts
lizhuo-huang added OctoCounts as alternative to scc, ProjectCodeMeter and SourceMonitor
OctoCounts information
What is OctoCounts?
OctoCounts is a free source lines of code (SLOC) counter for public GitHub repositories. GitHub's repository sidebar shows a language bar — a percentage breakdown by bytes — but never shows the numbers most developers actually want: how many files, how many total lines, how much of that is real code versus comments and blank space, broken down per language.
OctoCounts fills that gap. Paste a public GitHub URL, optionally pin a branch, tag, or commit, and it downloads the repository's source archive (never a full git clone with history), counts every file with tokei — a fast, Rust-based line counter — and returns a sortable, shareable report: files, total lines, code lines, comment lines, blank lines, and per-language totals, all pinned to an exact commit so the numbers are reproducible.
Reports are cached by commit SHA and tokei version, so re-analyzing the same commit is instant. Every report gets a permanent, shareable URL, can be exported as plain text, JSON, or a PNG card, and can be embedded as a live README badge that always reflects the current default branch, or pinned to a tag or commit for numbers that never change.
Beyond the web app, OctoCounts ships as a browser extension for Chrome, Edge, and Firefox that adds the same SLOC breakdown directly to GitHub's repository sidebar, a GitHub Action that comments SLOC changes on pull requests, a CLI (npx octocounts), and an MCP server that gives AI coding assistants like Claude and Cursor direct access to repository size data.
OctoCounts only analyzes public repositories — no account, no GitHub token, and no source-code upload required. It's free with no premium tier, and the entire stack (Rust/Axum backend, React/TypeScript frontend) is open source under the MIT license.



