htop-dev/htop has 39,426 source lines of code out of 52,250 total lines across 299 files, counted with tokei from the main ref at commit 21bbc80c7811 on November 13, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-13 (commit 21bbc80c7811), htop-dev/htop contains 52,250 total lines: 39,426 code, 4,156 comments, 8,668 blank, across 299 files in 9 languages (top language: C 81.0%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving htop-dev/htop to commit 21bbc80c7811, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.
This is a medium-sized codebase by counted code lines. Code represents 75.5% of all lines, comments represent 8.0%, and the repository averages 132 code lines per file. C accounts for 81.0% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 132 | 40614 | 31939 | 2426 | 6249 |
| C Header | 151 | 8336 | 4959 | 1262 | 2115 |
| Autoconf | 2 | 1117 | 1100 | 0 | 17 |
| Lua | 1 | 687 | 607 | 13 | 67 |
| Automake | 1 | 548 | 475 | 19 | 54 |
| Shell | 4 | 236 | 209 | 4 | 23 |
| SVG | 1 | 112 | 112 | 0 | 0 |
| M4 | 1 | 63 | 25 | 36 | 2 |
| Markdown | 6 | 537 | 0 | 396 | 141 |
Top language: C 81.0%. Generated on .
htop-dev/htop: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
htop-dev/htop has 39,426 lines of code, plus 4,156 comment lines and 8,668 blank lines, for 52,250 total lines at commit 21bbc80c7811 on November 13, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 21bbc80c7811, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from main at commit 21bbc80c7811 on November 13, 2026.
Play the growth animation for htop-dev/htop on this page — 39,426 code lines across 9 languages, counted by tokei.