# openwrt/openwrt SLOC report

> As of 2026-10-07 (commit 0ab51fb9c13f), openwrt/openwrt contains 272,044 total lines: 208,339 code, 24,170 comments, 39,535 blank, across 1,305 files in 21 languages (top: C 30.2%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

openwrt/openwrt has 208,339 source lines of code out of 272,044 total lines across 1,305 files, counted from the main ref at commit 0ab51fb9c13f by the OctoCounts tokei engine on 2026-10-07. 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 0ab51fb9c13f, 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.9%, and the repository averages 160 code lines per file. C accounts for 30.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 159 | 84,291 | 62,863 | 9,480 | 11,948 |
| Makefile | 543 | 73,759 | 57,402 | 3,145 | 13,212 |
| C Header | 120 | 27,648 | 19,799 | 4,912 | 2,937 |
| Shell | 226 | 24,258 | 19,113 | 1,423 | 3,722 |
| Autoconf | 61 | 19,153 | 16,418 | 396 | 2,339 |
| Unreal Script | 41 | 14,899 | 12,001 | 478 | 2,420 |
| Perl | 22 | 12,435 | 9,703 | 1,175 | 1,557 |
| JSON | 25 | 3,196 | 3,195 | 0 | 1 |
| Python | 27 | 3,833 | 2,905 | 286 | 642 |
| 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.2%). Generated at 2026-10-07T20:55:36.233953568+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/0ab51fb9c13fd88d5eba565cd3fd22b7b9a18bbf?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 272,044 total lines, including 208,339 code lines, 24,170 comment lines, and 39,535 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 0ab51fb9c13f, 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 main at commit 0ab51fb9c13f on 2026-10-07T20:55:36.233953568+00:00.

## Similar repository reports

- [mpv-player/mpv](https://octocounts.com/github/mpv-player/mpv) — C, 208,332 code lines
- [mirror/busybox](https://octocounts.com/github/mirror/busybox) — C, 202,941 code lines
- [JustVugg/colibri](https://octocounts.com/github/JustVugg/colibri) — C, 216,261 code lines
- [milescoviello/OS-DEV](https://octocounts.com/github/milescoviello/OS-DEV) — C, 200,650 code lines
- [libvips/libvips](https://octocounts.com/github/libvips/libvips) — C, 199,465 code lines
- [sunblaze-ucb/exploitgym](https://octocounts.com/github/sunblaze-ucb/exploitgym) — C, 198,194 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)
