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 commentsGitHub tells you a repo is "62% TypeScript" but never how much code that actually is. OctoCounts fixes that in seconds—paste a URL and you get files, total lines, code, comments, blanks, and per-language breakdowns. Way faster than cloning and running tokei myself. This should be a native GitHub feature.
You can try the browser extension, it can show the SLOC info in github page without copy and paste the repo url