# facebook/react SLOC report

> As of 2026-09-19 (commit 59aff3e18cb5), facebook/react contains 460,611 total lines: 364,889 code, 59,352 comments, 36,370 blank, across 2,133 files in 11 languages (top: JavaScript 63.5%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

facebook/react has 364,889 source lines of code out of 460,611 total lines across 2,133 files, counted from the main ref at commit 59aff3e18cb5 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 facebook/react to commit 59aff3e18cb5, 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 79.2% of all lines, comments represent 12.9%, and the repository averages 171 code lines per file. JavaScript accounts for 63.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| JavaScript | 1,477 | 294,009 | 231,670 | 38,519 | 23,820 |
| Rust | 117 | 72,814 | 64,105 | 3,778 | 4,931 |
| TypeScript | 219 | 74,507 | 60,004 | 10,177 | 4,326 |
| JSON | 86 | 3,537 | 3,529 | 0 | 8 |
| CSS | 88 | 3,828 | 3,283 | 61 | 484 |
| TSX | 15 | 1,591 | 1,333 | 153 | 105 |
| HTML | 23 | 438 | 416 | 9 | 13 |
| Shell | 19 | 531 | 316 | 118 | 97 |
| TOML | 14 | 247 | 223 | 4 | 20 |
| SVG | 7 | 10 | 10 | 0 | 0 |
| Markdown | 68 | 9,099 | 0 | 6,533 | 2,566 |

Top language (JavaScript 63.5%). Generated at 2026-09-19T07:20:35.169012225+00:00. Canonical report: https://octocounts.com/github/facebook/react

## Reproduce this report

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

facebook/react has 460,611 total lines, including 364,889 code lines, 59,352 comment lines, and 36,370 blank lines.

### How was the facebook/react line count measured?

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

### What commit was counted for facebook/react?

This OctoCounts report was generated from main at commit 59aff3e18cb5 on 2026-09-19T07:20:35.169012225+00:00.

## Similar repository reports

- [react/react](https://octocounts.com/github/react/react) — JavaScript, 364,586 code lines
- [lili-luo/aicoding-cookbook](https://octocounts.com/github/lili-luo/aicoding-cookbook) — JavaScript, 360,718 code lines
- [jackwener/opencli](https://octocounts.com/github/jackwener/opencli) — JavaScript, 345,377 code lines
- [alam00000/bentopdf](https://octocounts.com/github/alam00000/bentopdf) — JavaScript, 394,423 code lines
- [tastejs/todomvc](https://octocounts.com/github/tastejs/todomvc) — JavaScript, 332,898 code lines
- [mrdoob/three.js](https://octocounts.com/github/mrdoob/three.js) — JavaScript, 307,445 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)
- [React vs Vue](https://octocounts.com/compare/react-vs-vue)
- [Next.js vs Vite](https://octocounts.com/compare/nextjs-vs-vite)
- [Vite vs webpack](https://octocounts.com/compare/vite-vs-webpack)
- [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)
