espressif/esp-idf SLOC report
As of 2026-08-12 (commit 08e0d30a74ad), espressif/esp-idf contains 5,061,549 total lines: 2,837,422 code, 1,763,823 comments, 460,304 blank, across 15,775 files in 37 languages (top: C Header 52.9%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving espressif/esp-idf to commit 08e0d30a74ad, 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 very large codebase by counted code lines. Code represents 56.1% of all lines, comments represent 34.8%, and the repository averages 180 code lines per file. C Header accounts for 52.9% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|
| C Header | 6222 | 3191426 | 1501278 | 1492218 | 197930 |
| C | 4492 | 1478661 | 1102598 | 179557 | 196506 |
| Python | 783 | 107758 | 84153 | 7629 | 15976 |
| Autoconf | 172 | 43934 | 34891 | 1018 | 8025 |
| CMake | 2012 | 48284 | 33310 | 7526 | 7448 |
| C++ | 126 | 38220 | 28450 | 3552 | 6218 |
| LD Script | 226 | 29377 | 23272 | 4726 | 1379 |
| GNU Style Assembly | 80 | 16793 | 10237 | 4421 | 2135 |
| YAML | 336 | 4918 | 4317 | 415 | 186 |
| Lingua Franca | 97 | 3749 | 3067 | 307 | 375 |
| JSON | 40 | 2934 | 2933 | 0 | 1 |
| C++ Header | 27 | 3167 | 1441 | 1172 | 554 |
Top language (C Header 52.9%). Generated at 2026-08-12T03:45:25.590657068+00:00.
Report FAQ
How many lines of code does espressif/esp-idf have?
espressif/esp-idf has 5,061,549 total lines, including 2,837,422 code lines, 1,763,823 comment lines, and 460,304 blank lines.
How was the espressif/esp-idf line count measured?
OctoCounts resolved the public GitHub repository to commit 08e0d30a74ad, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
What commit was counted for espressif/esp-idf?
This OctoCounts report was generated from master at commit 08e0d30a74ad on 2026-08-12T03:45:25.590657068+00:00.