# espressif/esp-idf SLOC report

> espressif/esp-idf: 2,946,214 code lines at commit ad20ded62a2d, counted with tokei-15.0.0 on 2026-11-16. Saved result fb6b6a66754df6772625f27ce34f4946d2e703c1deccdf627458ab289b607750.

espressif/esp-idf has 2,946,214 source lines of code out of 5,225,715 total lines across 16,453 files, counted with tokei from the master ref at commit ad20ded62a2d on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving espressif/esp-idf to commit ad20ded62a2d, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

espressif/esp-idf: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a very large codebase by counted code lines. Code represents 56.4% of all lines, comments represent 34.4%, and the repository averages 179 code lines per file. C Header accounts for 51.0% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C Header | 6,362 | 3,204,610 | 1,501,371 | 1,502,132 | 201,107 |
| C | 4,733 | 1,602,143 | 1,194,029 | 195,254 | 212,860 |
| Python | 829 | 117,405 | 92,042 | 8,085 | 17,278 |
| Autoconf | 179 | 45,680 | 36,314 | 1,045 | 8,321 |
| CMake | 2,136 | 52,042 | 35,857 | 8,283 | 7,902 |
| C++ | 139 | 43,873 | 32,910 | 4,035 | 6,928 |
| LD Script | 241 | 29,876 | 23,501 | 4,870 | 1,505 |
| GNU Style Assembly | 83 | 17,317 | 10,589 | 4,558 | 2,170 |
| YAML | 364 | 5,076 | 4,409 | 464 | 203 |
| Lingua Franca | 100 | 3,977 | 3,266 | 319 | 392 |
| JSON | 40 | 2,957 | 2,956 | 0 | 1 |
| C++ Header | 28 | 3,396 | 1,453 | 1,387 | 556 |
| Forge Config | 2 | 1,346 | 1,342 | 2 | 2 |
| TypeScript | 11 | 2,105 | 1,337 | 614 | 154 |
| Shell | 29 | 1,263 | 850 | 190 | 223 |
| Bitbake | 6 | 910 | 769 | 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 | 255 | 202 | 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 |
| Perl | 2 | 6 | 4 | 2 | 0 |
| BASH | 1 | 4 | 3 | 1 | 0 |
| Forth | 1 | 3 | 3 | 0 | 0 |
| Markdown | 1,017 | 76,128 | 0 | 54,178 | 21,950 |
| Plain Text | 71 | 11,566 | 0 | 9,712 | 1,854 |
| Sass | 1 | 10 | 0 | 9 | 1 |

Top language: C Header 51.0%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/espressif/esp-idf/commit/ad20ded62a2d67a26e501fdc1905f43ba7ad6c81?reportId=fb6b6a66754df6772625f27ce34f4946d2e703c1deccdf627458ab289b607750&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/ad20ded62a2d67a26e501fdc1905f43ba7ad6c81?reportId=fb6b6a66754df6772625f27ce34f4946d2e703c1deccdf627458ab289b607750&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 2,946,214 lines of code, plus 1,795,391 comment lines and 484,110 blank lines, for 5,225,715 total lines at commit ad20ded62a2d on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

OctoCounts resolved the public GitHub repository to commit ad20ded62a2d, 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 ad20ded62a2d on November 16, 2026.

## Similar repository reports

- [ziglang/zig](https://octocounts.com/github/ziglang/zig) — C Header, 3,895,862 code lines
- [nanomatters/proton-salkim](https://octocounts.com/github/nanomatters/proton-salkim) — C Header, 1,433,882 code lines
- [TGX-Android/tdlib](https://octocounts.com/github/TGX-Android/tdlib) — C Header, 1,283,438 code lines
- [turanszkij/WickedEngine](https://octocounts.com/github/turanszkij/WickedEngine) — C Header, 1,168,314 code lines
- [grpc/grpc](https://octocounts.com/github/grpc/grpc) — C Header, 909,445 code lines
- [nodejs/node](https://octocounts.com/github/nodejs/node) — C Header, 10,506,289 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)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
