# espressif/esp-idf SLOC report

> As of 2026-09-06 (commit 85c826ecb1d0), espressif/esp-idf contains 5,141,258 total lines: 2,887,893 code, 1,781,299 comments, 472,066 blank, across 16,066 files in 37 languages (top: C Header 52.0%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

espressif/esp-idf has 2,887,893 source lines of code out of 5,141,258 total lines across 16,066 files, counted from the 85c826ecb1d07e3d238ed506e9f560507b1a4b0e ref at commit 85c826ecb1d0 by the OctoCounts tokei engine on 2026-09-06. 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 85c826ecb1d0, 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.2% of all lines, comments represent 34.6%, and the repository averages 180 code lines per file. C Header accounts for 52.0% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C Header | 6,293 | 3,199,750 | 1,501,188 | 1,498,734 | 199,828 |
| C | 4,593 | 1,539,791 | 1,147,018 | 188,124 | 204,649 |
| Python | 793 | 111,449 | 87,083 | 7,827 | 16,539 |
| Autoconf | 178 | 44,982 | 35,747 | 1,051 | 8,184 |
| CMake | 2,060 | 49,577 | 34,134 | 7,859 | 7,584 |
| C++ | 133 | 39,276 | 29,329 | 3,598 | 6,349 |
| LD Script | 241 | 30,215 | 23,758 | 4,918 | 1,539 |
| GNU Style Assembly | 80 | 16,849 | 10,271 | 4,435 | 2,143 |
| YAML | 348 | 4,986 | 4,359 | 436 | 191 |
| Lingua Franca | 97 | 3,827 | 3,134 | 307 | 386 |
| JSON | 40 | 2,934 | 2,933 | 0 | 1 |
| C++ Header | 28 | 3,377 | 1,443 | 1,381 | 553 |

Top language (C Header 52.0%). Generated at 2026-09-06T12:17:14.168177263+00:00. Canonical report: https://octocounts.com/github/espressif/esp-idf

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/espressif/esp-idf/commit/85c826ecb1d07e3d238ed506e9f560507b1a4b0e?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does espressif/esp-idf have?

espressif/esp-idf has 5,141,258 total lines, including 2,887,893 code lines, 1,781,299 comment lines, and 472,066 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 85c826ecb1d0, 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 85c826ecb1d07e3d238ed506e9f560507b1a4b0e at commit 85c826ecb1d0 on 2026-09-06T12:17:14.168177263+00:00.

## Similar repository reports

- [olikraus/u8g2](https://octocounts.com/github/olikraus/u8g2) — C Header, 589,307 code lines
- [raysan5/raylib](https://octocounts.com/github/raysan5/raylib) — C Header, 498,679 code lines
- [azahar-emu/azahar](https://octocounts.com/github/azahar-emu/azahar) — C Header, 390,852 code lines
- [Stukdee/ourfly](https://octocounts.com/github/Stukdee/ourfly) — C Header, 372,225 code lines
- [meemknight/PikaEngine](https://octocounts.com/github/meemknight/PikaEngine) — C Header, 296,247 code lines
- [fiftysevendegreesofrad/sdna_plus](https://octocounts.com/github/fiftysevendegreesofrad/sdna_plus) — C Header, 291,709 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)
