As of 2026-08-14 (commit 8da1d45fb5f8), htop-dev/htop contains 51,408 total lines: 38,802 code, 4,045 comments, 8,561 blank, across 299 files in 9 languages (top: C 81.1%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving htop-dev/htop to commit 8da1d45fb5f8, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.
This is a medium-sized codebase by counted code lines. Code represents 75.5% of all lines, comments represent 7.9%, and the repository averages 130 code lines per file. C accounts for 81.1% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 132 | 39960 | 31467 | 2333 | 6160 |
| C Header | 151 | 8246 | 4905 | 1244 | 2097 |
| Autoconf | 2 | 1019 | 1002 | 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.1%). Generated at 2026-08-14T19:56:12.704335526+00:00.
htop-dev/htop has 51,408 total lines, including 38,802 code lines, 4,045 comment lines, and 8,561 blank lines.
OctoCounts resolved the public GitHub repository to commit 8da1d45fb5f8, 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 8da1d45fb5f8 on 2026-08-14T19:56:12.704335526+00:00.