# raysan5/raylib SLOC report

> raysan5/raylib: 509,602 code lines at commit bcb85817b5d3, counted with tokei-15.0.0 on 2026-11-16. Saved result 1db46e190038915ea3ada0c8816494c36f51d6f464f807922945db5e8e7993dc.

raysan5/raylib has 509,602 source lines of code out of 658,137 total lines across 903 files, counted with tokei from the master ref at commit bcb85817b5d3 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving raysan5/raylib to commit bcb85817b5d3, 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

raysan5/raylib: 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 large codebase by counted code lines. Code represents 77.4% of all lines, comments represent 13.2%, and the repository averages 564 code lines per file. C Header accounts for 46.9% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C Header | 78 | 328,229 | 238,990 | 52,289 | 36,950 |
| Visual Studio Project | 232 | 131,445 | 131,442 | 2 | 1 |
| C | 291 | 125,015 | 82,057 | 22,977 | 19,981 |
| XML | 18 | 15,566 | 14,747 | 105 | 714 |
| JSON | 1 | 13,013 | 13,013 | 0 | 0 |
| Lua | 1 | 8,720 | 8,720 | 0 | 0 |
| F# | 173 | 9,476 | 6,289 | 1,204 | 1,983 |
| Visual Studio Solution | 2 | 6,162 | 6,160 | 0 | 2 |
| Objective-C | 5 | 4,262 | 3,206 | 317 | 739 |
| Makefile | 5 | 2,781 | 1,777 | 761 | 243 |
| CMake | 27 | 1,739 | 1,257 | 195 | 287 |
| Zig | 3 | 1,154 | 930 | 60 | 164 |
| Shell | 3 | 509 | 392 | 69 | 48 |
| Batch | 6 | 385 | 231 | 127 | 27 |
| Autoconf | 7 | 208 | 187 | 7 | 14 |
| HTML | 2 | 123 | 97 | 7 | 19 |
| GLSL | 3 | 121 | 81 | 13 | 27 |
| Meson | 2 | 50 | 26 | 14 | 10 |
| Markdown | 36 | 3,279 | 0 | 2,597 | 682 |
| Plain Text | 8 | 5,900 | 0 | 5,843 | 57 |

Top language: C Header 46.9%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/raysan5/raylib/commit/bcb85817b5d3da2594ff138df90e1faddb73b8f6?reportId=1db46e190038915ea3ada0c8816494c36f51d6f464f807922945db5e8e7993dc&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/raysan5/raylib/commit/bcb85817b5d3da2594ff138df90e1faddb73b8f6?reportId=1db46e190038915ea3ada0c8816494c36f51d6f464f807922945db5e8e7993dc&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 raysan5/raylib have?

raysan5/raylib has 509,602 lines of code, plus 86,587 comment lines and 61,948 blank lines, for 658,137 total lines at commit bcb85817b5d3 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the raysan5/raylib line count measured?

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

### What commit was counted for raysan5/raylib?

This OctoCounts report was generated from master at commit bcb85817b5d3 on November 16, 2026.

## Similar repository reports

- [cilium/tetragon](https://octocounts.com/github/cilium/tetragon) — C Header, 518,168 code lines
- [cocos2d/cocos2d-x-samples](https://octocounts.com/github/cocos2d/cocos2d-x-samples) — C Header, 519,022 code lines
- [eclipse-openbsw/openbsw](https://octocounts.com/github/eclipse-openbsw/openbsw) — C Header, 525,137 code lines
- [houmo-ai/postmo-modelzoo](https://octocounts.com/github/houmo-ai/postmo-modelzoo) — C Header, 479,889 code lines
- [effekseer/Effekseer](https://octocounts.com/github/effekseer/Effekseer) — C Header, 479,516 code lines
- [xenia-project/xenia](https://octocounts.com/github/xenia-project/xenia) — C Header, 544,336 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)
