# nginx/nginx SLOC report

> As of 2026-09-16 (commit ef0aa967dce9), nginx/nginx contains 292,049 total lines: 218,792 code, 8,160 comments, 65,097 blank, across 436 files in 12 languages (top: C 79.5%). Default configuration. Counted with tokei via OctoCounts.

nginx/nginx has 218,792 source lines of code out of 292,049 total lines across 436 files, counted from the master ref at commit ef0aa967dce9 by the OctoCounts tokei engine on 2026-09-16. 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 nginx/nginx to commit ef0aa967dce9, 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 large codebase by counted code lines. Code represents 74.9% of all lines, comments represent 2.8%, and the repository averages 502 code lines per file. C accounts for 79.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 270 | 239,031 | 173,954 | 6,548 | 58,529 |
| XML | 2 | 32,348 | 31,325 | 0 | 1,023 |
| C Header | 141 | 16,955 | 10,757 | 1,112 | 5,086 |
| Vim Script | 4 | 1,995 | 1,983 | 4 | 8 |
| Perl | 4 | 281 | 179 | 38 | 64 |
| Shell | 2 | 234 | 164 | 10 | 60 |
| Makefile | 3 | 220 | 155 | 1 | 64 |
| Bazel | 1 | 178 | 129 | 6 | 43 |
| XSL | 1 | 128 | 89 | 0 | 39 |
| HTML | 2 | 40 | 38 | 0 | 2 |
| C++ | 1 | 31 | 19 | 3 | 9 |
| Markdown | 5 | 608 | 0 | 438 | 170 |

Top language (C 79.5%). Generated at 2026-09-16T23:51:56.766083454+00:00. Canonical report: https://octocounts.com/github/nginx/nginx

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/nginx/nginx/commit/ef0aa967dce9d30b824d4c839d3579d2a17e0666?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Atrue%2C%22includeTests%22%3Atrue%2C%22includeGenerated%22%3Atrue%7D).

## Report FAQ

### How many lines of code does nginx/nginx have?

nginx/nginx has 292,049 total lines, including 218,792 code lines, 8,160 comment lines, and 65,097 blank lines.

### How was the nginx/nginx line count measured?

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

### What commit was counted for nginx/nginx?

This OctoCounts report was generated from master at commit ef0aa967dce9 on 2026-09-16T23:51:56.766083454+00:00.

## Similar repository reports

- [openwrt/openwrt](https://octocounts.com/github/openwrt/openwrt) — C, 206,576 code lines
- [mirror/busybox](https://octocounts.com/github/mirror/busybox) — C, 202,941 code lines
- [HarbourMasters/Lighthouse](https://octocounts.com/github/HarbourMasters/Lighthouse) — C, 235,413 code lines
- [peng-zhihui/Dummy-Robot](https://octocounts.com/github/peng-zhihui/Dummy-Robot) — C, 236,725 code lines
- [libvips/libvips](https://octocounts.com/github/libvips/libvips) — C, 199,399 code lines
- [sunblaze-ucb/exploitgym](https://octocounts.com/github/sunblaze-ucb/exploitgym) — C, 197,903 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)
