Count your code, quickly.
Counts code, comments and blanks per language, from a single binary.
alternatives to
cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.
tokei and scc. 2 alternatives to cloc, in Rust, Go. Compare fit, licence, stars and the latest signed release.
| Tool | Fit | Stars | Licence | Terms | Self-hosted | Language | Latest | Last push |
|---|---|---|---|---|---|---|---|---|
| tokei | Full replacement | 15k | Other | Not checked | No | Rust | v15.0.0 | 2026-09-06 |
| scc | Full replacement | 8.9k | MIT | Open source | No | Go | v4.1.0 | 2026-11-23 |
2 alternatives
Count your code, quickly.
Counts code, comments and blanks per language, from a single binary.
Sloc, Cloc and Code: scc is a very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go
Same per-language counts, faster, with complexity and COCOMO estimates on top.