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 line-count reports and the compare view are genuinely useful — pinned commits plus exportable cards make this easy to drop into a README.