# openwrt/openwrt SLOC report

> As of 2026-09-19 (commit b6ba4e9142b7), openwrt/openwrt contains 269,554 total lines: 206,576 code, 23,853 comments, 39,125 blank, across 1,286 files in 21 languages (top: C 30.4%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

openwrt/openwrt has 206,576 source lines of code out of 269,554 total lines across 1,286 files, counted from the b6ba4e9142b7e926dd3822beffdae26de34da98e ref at commit b6ba4e9142b7 by the OctoCounts tokei engine on 2026-09-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 openwrt/openwrt to commit b6ba4e9142b7, 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 76.6% of all lines, comments represent 8.8%, and the repository averages 161 code lines per file. C accounts for 30.4% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 159 | 84,110 | 62,783 | 9,454 | 11,873 |
| Makefile | 542 | 72,523 | 56,468 | 3,017 | 13,038 |
| C Header | 120 | 27,645 | 19,796 | 4,912 | 2,937 |
| Shell | 222 | 24,070 | 19,004 | 1,374 | 3,692 |
| Autoconf | 61 | 19,156 | 16,420 | 396 | 2,340 |
| Unreal Script | 41 | 14,775 | 11,922 | 456 | 2,397 |
| Perl | 21 | 12,180 | 9,523 | 1,149 | 1,508 |
| JSON | 16 | 3,055 | 3,054 | 0 | 1 |
| Python | 24 | 3,483 | 2,666 | 235 | 582 |
| C++ | 1 | 1,928 | 1,708 | 47 | 173 |
| M4 | 19 | 1,462 | 924 | 418 | 120 |
| BASH | 4 | 774 | 615 | 73 | 86 |

Top language (C 30.4%). Generated at 2026-09-19T07:55:35.305985219+00:00. Canonical report: https://octocounts.com/github/openwrt/openwrt

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/openwrt/openwrt/commit/b6ba4e9142b7e926dd3822beffdae26de34da98e?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 openwrt/openwrt have?

openwrt/openwrt has 269,554 total lines, including 206,576 code lines, 23,853 comment lines, and 39,125 blank lines.

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

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

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

This OctoCounts report was generated from b6ba4e9142b7e926dd3822beffdae26de34da98e at commit b6ba4e9142b7 on 2026-09-19T07:55:35.305985219+00:00.

## Similar repository reports

- [mirror/busybox](https://octocounts.com/github/mirror/busybox) — C, 202,941 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
- [nginx/nginx](https://octocounts.com/github/nginx/nginx) — C, 218,792 code lines
- [curl/curl](https://octocounts.com/github/curl/curl) — C, 181,213 code lines
- [HarbourMasters/Lighthouse](https://octocounts.com/github/HarbourMasters/Lighthouse) — C, 235,413 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)
