# espressif/esp-idf SLOC report

> espressif/esp-idf: 2,921,144 code lines at commit 383dda6c182e, counted with tokei-14.0.0 on 2026-10-19. Saved result a24545c094ca9854883f9a370fafbc39024a2f0477e2ff27c2c19392d97671e1.

espressif/esp-idf has 2,921,144 source lines of code out of 5,189,545 total lines across 16,309 files, counted from the master ref at commit 383dda6c182e by the OctoCounts tokei engine on 2026-10-19. 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 espressif/esp-idf to commit 383dda6c182e, 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.3% of all lines, comments represent 34.5%, and the repository averages 179 code lines per file. C Header accounts for 51.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C Header | 6,340 | 3,198,098 | 1,498,357 | 1,499,281 | 200,460 |
| C | 4,671 | 1,579,337 | 1,176,552 | 192,521 | 210,264 |
| Python | 815 | 115,068 | 90,062 | 7,986 | 17,020 |
| Autoconf | 179 | 45,209 | 35,906 | 1,048 | 8,255 |
| CMake | 2,111 | 51,243 | 35,303 | 8,136 | 7,804 |
| C++ | 138 | 42,222 | 31,526 | 3,923 | 6,773 |
| LD Script | 240 | 29,822 | 23,476 | 4,849 | 1,497 |
| GNU Style Assembly | 81 | 17,029 | 10,377 | 4,496 | 2,156 |
| YAML | 361 | 5,149 | 4,467 | 474 | 208 |
| Lingua Franca | 99 | 3,954 | 3,246 | 317 | 391 |
| JSON | 40 | 2,934 | 2,933 | 0 | 1 |
| C++ Header | 28 | 3,378 | 1,443 | 1,382 | 553 |
| Forge Config | 2 | 1,346 | 1,342 | 2 | 2 |
| TypeScript | 11 | 2,105 | 1,337 | 614 | 154 |
| Shell | 29 | 1,242 | 835 | 190 | 217 |
| Bitbake | 6 | 909 | 768 | 65 | 76 |
| ReStructuredText | 8 | 1,046 | 713 | 0 | 333 |
| SVG | 1 | 657 | 655 | 1 | 1 |
| HICAD | 13 | 481 | 412 | 0 | 69 |
| JavaScript | 12 | 529 | 386 | 87 | 56 |
| INI | 9 | 254 | 201 | 26 | 27 |
| Protocol Buffers | 6 | 222 | 185 | 1 | 36 |
| XML | 3 | 181 | 181 | 0 | 0 |
| Batch | 2 | 142 | 110 | 7 | 25 |
| Dockerfile | 1 | 111 | 84 | 14 | 13 |
| Fish | 3 | 84 | 55 | 6 | 23 |
| HTML | 3 | 55 | 55 | 0 | 0 |
| TOML | 1 | 48 | 41 | 3 | 4 |
| HEX | 3 | 37 | 37 | 0 | 0 |
| Makefile | 6 | 88 | 37 | 33 | 18 |
| PowerShell | 2 | 58 | 34 | 8 | 16 |
| Vue | 5 | 28 | 22 | 0 | 6 |
| BASH | 1 | 4 | 3 | 1 | 0 |
| Forth | 1 | 3 | 3 | 0 | 0 |
| Markdown | 1,008 | 75,168 | 0 | 53,443 | 21,725 |
| Plain Text | 69 | 11,294 | 0 | 9,465 | 1,829 |
| Sass | 1 | 10 | 0 | 9 | 1 |

Top language (C Header 51.3%). Generated at 2026-10-19T23:45:59.847417704Z. Canonical report: https://octocounts.com/github/espressif/esp-idf/commit/383dda6c182e3dabf6355160166fe007df775629?reportId=a24545c094ca9854883f9a370fafbc39024a2f0477e2ff27c2c19392d97671e1&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/espressif/esp-idf/commit/383dda6c182e3dabf6355160166fe007df775629?reportId=a24545c094ca9854883f9a370fafbc39024a2f0477e2ff27c2c19392d97671e1&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 espressif/esp-idf have?

espressif/esp-idf has 5,189,545 total lines, including 2,921,144 code lines, 1,788,388 comment lines, and 480,013 blank lines.

### How was the espressif/esp-idf line count measured?

OctoCounts resolved the public GitHub repository to commit 383dda6c182e, 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 383dda6c182e on 2026-10-19T23:45:59.847417704Z.

## Similar repository reports

- [ziglang/zig](https://octocounts.com/github/ziglang/zig) — C Header, 3,895,862 code lines
- [TGX-Android/tdlib](https://octocounts.com/github/TGX-Android/tdlib) — C Header, 1,283,438 code lines
- [nodejs/node](https://octocounts.com/github/nodejs/node) — C Header, 10,352,729 code lines
- [kuzudb/kuzu](https://octocounts.com/github/kuzudb/kuzu) — C Header, 596,750 code lines
- [olikraus/u8g2](https://octocounts.com/github/olikraus/u8g2) — C Header, 589,307 code lines
- [eclipse-openbsw/openbsw](https://octocounts.com/github/eclipse-openbsw/openbsw) — C Header, 522,271 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)
- [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)
