octocounts
v0.1.0
Published
Count source lines of code (SLOC) for any public GitHub repository — files, lines, code, comments, blanks, per language, without cloning.
Downloads
26
Maintainers
Readme
OctoCounts CLI
Count source lines of code (SLOC) for any public GitHub repository — no clone needed. Powered by the OctoCounts API (tokei under the hood).
Usage
npx octocounts vitejs/vite
npx octocounts https://github.com/tokio-rs/axum --ref main
npx octocounts rust-lang/rust --jsonOptions:
--ref <ref>: branch, tag, or commit SHA.--json: print the raw OctoCounts report JSON.--api-base <url>: use a local or alternate OctoCounts API.--sample: print a local sample report without network calls.
Related
- Web app — analyze any public repo and share a permanent report
- Browser extension — SLOC directly inside GitHub's sidebar
- README badges — live SLOC badge for any repo
- MCP server — give AI assistants access to SLOC reports
License
MIT
