zephyrproject-rtos/zephyr

zephyrproject-rtos/zephyr has 3,807,176 source lines of code out of 5,417,112 total lines across 34,651 files, counted with tokei from the main ref at commit 7cd4b562b30a on November 13, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

As of 2026-11-13 (commit 7cd4b562b30a), zephyrproject-rtos/zephyr contains 5,417,112 total lines: 3,807,176 code, 783,217 comments, 826,719 blank, across 34,651 files in 49 languages (top language: C 57.9%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

As of 2026-11-13 (commit 7cd4b562b30a), zephyrproject-rtos/zephyr contains 5,417,112 total lines: 3,807,176 code, 783,217 comments, 826,719 blank, across 34,651 files in 49 languages (top language: C 57.9%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving zephyrproject-rtos/zephyr to commit 7cd4b562b30a, 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.

Repository size insights

This is a very large codebase by counted code lines. Code represents 70.3% of all lines, comments represent 14.5%, and the repository averages 110 code lines per file. C accounts for 57.9% of counted code.

LanguageFilesLinesCodeCommentsBlanks
C739929981722205076292565500531
Device Tree618773357957450648251110822
C Header53501004238525106367456111676
YAML85852471712013121350832351
Python394128948969231154620479
CMake4234100457642911842017746
ReStructuredText10876077444954015820
LD Script420427082942968816398
GNU Style Assembly192277921484289973953
C++ Header13135851320928888
Perl476606013779868
Forge Config5098994532317111960

Top language: C 57.9%. Generated on .

Counting rules and retention

zephyrproject-rtos/zephyr: 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.

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does zephyrproject-rtos/zephyr have?

zephyrproject-rtos/zephyr has 3,807,176 lines of code, plus 783,217 comment lines and 826,719 blank lines, for 5,417,112 total lines at commit 7cd4b562b30a on November 13, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

How was the zephyrproject-rtos/zephyr line count measured?

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

What commit was counted for zephyrproject-rtos/zephyr?

This OctoCounts report was generated from main at commit 7cd4b562b30a on November 13, 2026.

Similar repository reports

Other public repositories with an OctoCounts report, ranked by top language and code size similarity:

Play the growth animation for zephyrproject-rtos/zephyr on this page — 3,807,176 code lines across 49 languages, counted by tokei.