# raysan5/raylib SLOC report

> As of 2026-09-07 (commit 2b991b0243c3), raysan5/raylib contains 645,695 total lines: 498,679 code, 85,698 comments, 61,318 blank, across 889 files in 20 languages (top: C Header 47.4%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

raysan5/raylib has 498,679 source lines of code out of 645,695 total lines across 889 files, counted from the 2b991b0243c3dccf48ed926bcb754c60846f96c1 ref at commit 2b991b0243c3 by the OctoCounts tokei engine on 2026-09-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 raysan5/raylib to commit 2b991b0243c3, 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 77.2% of all lines, comments represent 13.3%, and the repository averages 561 code lines per file. C Header accounts for 47.4% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C Header | 77 | 324,487 | 236,227 | 51,631 | 36,629 |
| Visual Studio Project | 221 | 125,186 | 125,183 | 2 | 1 |
| C | 289 | 123,466 | 80,850 | 22,893 | 19,723 |
| XML | 18 | 15,389 | 14,571 | 105 | 713 |
| 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 | 5,865 | 5,863 | 0 | 2 |
| Objective-C | 5 | 4,262 | 3,206 | 317 | 739 |
| Makefile | 5 | 2,726 | 1,733 | 755 | 238 |
| CMake | 27 | 1,727 | 1,250 | 192 | 285 |
| Zig | 3 | 956 | 760 | 49 | 147 |

Top language (C Header 47.4%). Generated at 2026-09-07T01:17:07.306779570+00:00. Canonical report: https://octocounts.com/github/raysan5/raylib

## Reproduce this report

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

raysan5/raylib has 645,695 total lines, including 498,679 code lines, 85,698 comment lines, and 61,318 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 2b991b0243c3, 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 2b991b0243c3dccf48ed926bcb754c60846f96c1 at commit 2b991b0243c3 on 2026-09-07T01:17:07.306779570+00:00.

## Similar repository reports

- [olikraus/u8g2](https://octocounts.com/github/olikraus/u8g2) — C Header, 589,307 code lines
- [azahar-emu/azahar](https://octocounts.com/github/azahar-emu/azahar) — C Header, 390,852 code lines
- [Stukdee/ourfly](https://octocounts.com/github/Stukdee/ourfly) — C Header, 372,225 code lines
- [meemknight/PikaEngine](https://octocounts.com/github/meemknight/PikaEngine) — C Header, 296,247 code lines
- [fiftysevendegreesofrad/sdna_plus](https://octocounts.com/github/fiftysevendegreesofrad/sdna_plus) — C Header, 291,709 code lines
- [ChancenJ/TripleKey](https://octocounts.com/github/ChancenJ/TripleKey) — C Header, 284,296 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)
- [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)
