Analysis updated 2026-05-18
Count lines of code across one or more project folders from the command line.
Save a list of projects so you can re-check their line counts without retyping paths.
Quickly compare code size across several personal or work projects.
Disable colored output in scripts or non-interactive terminals using NO_COLOR.
| bybrooklyn/sloc | 04amanrajj/netwatch | 0xr10t/pulsefi | |
|---|---|---|---|
| Stars | 0 | 0 | 0 |
| Language | Rust | Rust | Rust |
| Setup difficulty | easy | moderate | hard |
| Complexity | 2/5 | 3/5 | 4/5 |
| Audience | developer | ops devops | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires Rust and Cargo installed to build, then adding the binary to your shell PATH.
This is a small command line tool called sloc that counts lines of code in your programming projects. Instead of writing its own counting logic, it uses an existing library called tokei to do the actual counting work, and focuses on making the everyday experience of checking project sizes quick and pleasant. Once installed, you run the sloc command followed by one or more folder paths, and it reports how many lines of code are in each project, with project names shown in blue, the counts in white, and separate colors for code versus Markdown documentation. If your terminal does not support colors, or you simply prefer plain text, you can turn the colors off by setting an environment variable called NO_COLOR. A notable feature is that sloc remembers the projects you have pointed it at. After you add a project once, running sloc by itself with no arguments will report on every project it has saved, so you do not need to retype paths each time. You can remove a saved project from this list with a remove command followed by its path. To install it, you build the tool with Cargo, the standard Rust build tool, then run its own install command to place the compiled program somewhere on your system path so you can call it from any folder. The README is intentionally short and only documents the command line usage shown above. There is no mention of a license, and the readme humorously notes it was written by an AI system in a matter of minutes, so this appears to be a small personal utility rather than a maintained open source project with broader ambitions.
A fast command line tool for counting lines of code across projects, built in Rust on top of the tokei library, with a memory of previously checked projects.
Mainly Rust. The stack also includes Rust, tokei.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.