# htop-dev/htop SLOC report

> htop-dev/htop: 39,420 code lines at commit 394b4a3fc0df, counted with tokei-14.0.0 on 2026-10-20. Saved result d987ad8677c57b680d248aa84b93183b33b72ab17201db5948ef6467db11d0b5.

htop-dev/htop has 39,420 source lines of code out of 52,241 total lines across 299 files, counted from the main ref at commit 394b4a3fc0df by the OctoCounts tokei engine on 2026-10-20. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving htop-dev/htop to commit 394b4a3fc0df, 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.

## Repository size insights

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 | 40,605 | 31,933 | 2,424 | 6,248 |
| C Header | 151 | 8,336 | 4,959 | 1,262 | 2,115 |
| Autoconf | 2 | 1,117 | 1,100 | 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 at 2026-10-20T00:43:08.763492776Z. Canonical report: https://octocounts.com/github/htop-dev/htop/commit/394b4a3fc0df593a00be452a1862057b88b4eaf7?reportId=d987ad8677c57b680d248aa84b93183b33b72ab17201db5948ef6467db11d0b5&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/htop-dev/htop/commit/394b4a3fc0df593a00be452a1862057b88b4eaf7?reportId=d987ad8677c57b680d248aa84b93183b33b72ab17201db5948ef6467db11d0b5&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does htop-dev/htop have?

htop-dev/htop has 52,241 total lines, including 39,420 code lines, 4,154 comment lines, and 8,667 blank lines.

### How was the htop-dev/htop line count measured?

OctoCounts resolved the public GitHub repository to commit 394b4a3fc0df, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for htop-dev/htop?

This OctoCounts report was generated from main at commit 394b4a3fc0df on 2026-10-20T00:43:08.763492776Z.

## Similar repository reports

- [id-Software/DOOM](https://octocounts.com/github/id-Software/DOOM) — C, 39,250 code lines
- [mangowm/mango](https://octocounts.com/github/mangowm/mango) — C, 40,612 code lines
- [madler/zlib](https://octocounts.com/github/madler/zlib) — C, 37,814 code lines
- [memcached/memcached](https://octocounts.com/github/memcached/memcached) — C, 41,471 code lines
- [i3/i3](https://octocounts.com/github/i3/i3) — C, 37,451 code lines
- [lua/lua](https://octocounts.com/github/lua/lua) — C, 36,979 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Neovim vs VS Code](https://octocounts.com/compare/neovim-vs-vscode)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
