# facebook/lexical SLOC report

> As of 2026-10-22 (commit 4f385cd03afa), facebook/lexical contains 290,568 total lines: 222,995 code, 46,967 comments, 20,606 blank, across 1,520 files in 14 languages (top: TypeScript 59.2%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

facebook/lexical has 222,995 source lines of code out of 290,568 total lines across 1,520 files, counted from the main ref at commit 4f385cd03afa by the OctoCounts tokei engine on 2026-10-22. 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/lexical to commit 4f385cd03afa, 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.7% of all lines, comments represent 16.2%, and the repository averages 147 code lines per file. TypeScript accounts for 59.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| TypeScript | 549 | 170,839 | 132,115 | 30,207 | 8,517 |
| TSX | 248 | 41,841 | 34,496 | 4,227 | 3,118 |
| YAML | 26 | 28,277 | 22,890 | 169 | 5,218 |
| JavaScript | 127 | 18,801 | 12,385 | 5,188 | 1,228 |
| JSON | 135 | 10,020 | 9,969 | 0 | 51 |
| CSS | 77 | 11,839 | 9,871 | 692 | 1,276 |
| HTML | 34 | 673 | 656 | 15 | 2 |
| SVG | 230 | 434 | 434 | 0 | 0 |
| Python | 1 | 129 | 74 | 36 | 19 |
| Swift | 3 | 119 | 69 | 23 | 27 |
| Svelte | 2 | 40 | 34 | 2 | 4 |
| Xcode Config | 1 | 14 | 2 | 9 | 3 |

Top language (TypeScript 59.2%). Generated at 2026-10-22T05:57:32.071486217+00:00. Canonical report: https://octocounts.com/github/facebook/lexical

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/facebook/lexical/commit/4f385cd03afae05fc72d114e3ebea0c7fcfa1040?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&reportId=ed77383be1dec276fddb7434d5735a8ae4ce7841ee1b24fe4f6efd7fd12d9e8a).

## Report FAQ

### How many lines of code does facebook/lexical have?

facebook/lexical has 290,568 total lines, including 222,995 code lines, 46,967 comment lines, and 20,606 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 4f385cd03afa, 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/lexical?

This OctoCounts report was generated from main at commit 4f385cd03afa on 2026-10-22T05:57:32.071486217+00:00.

## Similar repository reports

- [jatinder14/hookpost](https://octocounts.com/github/jatinder14/hookpost) — TypeScript, 222,038 code lines
- [microsoft/playwright](https://octocounts.com/github/microsoft/playwright) — TypeScript, 224,123 code lines
- [markrahq/markra](https://octocounts.com/github/markrahq/markra) — TypeScript, 220,869 code lines
- [opensec-git/Pi-Bolt](https://octocounts.com/github/opensec-git/Pi-Bolt) — TypeScript, 226,485 code lines
- [TencentCloud/TencentDB-Agent-Memory](https://octocounts.com/github/TencentCloud/TencentDB-Agent-Memory) — TypeScript, 218,616 code lines
- [Zyk-Void/ice](https://octocounts.com/github/Zyk-Void/ice) — TypeScript, 218,307 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)
- [Next.js vs Vite](https://octocounts.com/compare/nextjs-vs-vite)
- [Angular vs Vue](https://octocounts.com/compare/angular-vs-vue)
- [Svelte vs Vue](https://octocounts.com/compare/svelte-vs-vue)
- [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)
