GitHub's sidebar shows language percentages but not actual line counts. OctoCounts fills in the missing numbers: paste any public GitHub repository URL and it downloads the source archive, runs tokei, and returns files, total lines, code lines, comments, blanks, and per-language totals, faster than a git clone. Any branch, tag, or commit SHA can be analyzed, and results are pinned to the exact commit and cached, so repeat views are instant.
Reports live on permanent pages that can be exported as text, JSON, or a shareable PNG card, embedded in any README as a live SLOC badge, or compared side by side with the built-in compare and diff tools (about 90 curated pairs, like React vs Vue and Rust vs Go). A public API and an MCP server let other tools and agents fetch the same reports.
OctoCounts also ships as a browser extension for Chrome, Edge, and Firefox that shows the counts directly inside GitHub's repository sidebar, plus a GitHub Action that comments SLOC changes on pull requests and a CLI (npx octocounts). It is free and open source under MIT.
Comments
Add a Comment View all commentsThe archive-plus-tokei path is the right tradeoff versus a full clone, especially with results pinned to a commit. Before I would trust the README badge next to the GitHub Action comment, I would want to know whether both use the same ignore rules for generated and vendored files, because a repo with a large dist or vendor folder would otherwise look bigger than the source that reviewers actually read.