About OctoCounts
OctoCounts is a free source lines of code (SLOC) counter for public GitHub repositories. It shows files, total lines, code, comments, blanks, and per-language totals without cloning.
Why I built this
I kept wanting to know how big a repository actually was before depending on it, forking it, or spending an afternoon reading it — and GitHub's language bar never answered that; it shows percentages, not files or lines. Cloning a repo just to run tokei locally worked, but I was doing it often enough, especially for repos with a long git history, that it got old.
So I built OctoCounts to skip the clone: paste a GitHub URL, get the real numbers. I still use it myself, mostly to size up a dependency before adopting it, or to settle "how big is this thing, really" with an actual count instead of a guess.
What OctoCounts does
GitHub shows language percentages in the repository sidebar, but it does not show actual file counts or line counts. OctoCounts fills that gap by:
- Downloading a source archive for a pinned commit instead of cloning full git history.
- Counting every source file with tokei.
- Reporting files, total lines, code lines, comment lines, blank lines, and per-language totals.
- Caching reports by commit SHA so repeated analyses are instant.
- Offering stable report URLs, README badges, PNG cards, JSON export, an API, a CLI, a GitHub Action, and browser extensions.
Open source
OctoCounts is open source under the MIT license. The source code, issue tracker, and contribution guidelines live on GitHub:
github.com/huanglizhuo/OctoCounts
Maintainer
OctoCounts is built and maintained by huanglizhuo.
Contact
For bug reports, feature requests, or questions, please open an issue on GitHub Issues.