# toeverything/AFFiNE SLOC report

> toeverything/AFFiNE: 932,429 code lines at commit 3d2572707628, counted with tokei-15.0.0 on 2026-11-21. Saved result f7913e13c8c27937ae423d1e8a33db3b938a303917ecfa23d6a951a1baab227d.

toeverything/AFFiNE has 932,429 source lines of code out of 1,047,374 total lines across 8,597 files, counted with tokei from the canary ref at commit 3d2572707628 on November 21, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving toeverything/AFFiNE to commit 3d2572707628, 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

toeverything/AFFiNE: 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 89.0% of all lines, comments represent 3.3%, and the repository averages 108 code lines per file. TypeScript accounts for 51.0% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| TypeScript | 5,120 | 551,752 | 475,155 | 23,658 | 52,939 |
| JSON | 348 | 159,798 | 159,793 | 0 | 5 |
| TSX | 1,112 | 139,436 | 127,515 | 1,620 | 10,301 |
| Rust | 365 | 110,472 | 103,187 | 502 | 6,783 |
| Swift | 581 | 42,870 | 33,817 | 3,063 | 5,990 |
| SVG | 495 | 8,121 | 8,121 | 0 | 0 |
| Kotlin | 46 | 9,579 | 7,773 | 550 | 1,256 |
| GraphQL | 188 | 5,551 | 4,986 | 21 | 544 |
| SQL | 133 | 6,502 | 4,945 | 718 | 839 |
| JavaScript | 33 | 4,064 | 3,549 | 125 | 390 |
| C Header | 2 | 1,074 | 973 | 12 | 89 |
| TOML | 15 | 700 | 627 | 11 | 62 |
| CSS | 5 | 756 | 598 | 51 | 107 |
| Shell | 8 | 809 | 530 | 167 | 112 |
| XML | 27 | 387 | 364 | 4 | 19 |
| YAML | 7 | 205 | 194 | 4 | 7 |
| HTML | 4 | 111 | 107 | 0 | 4 |
| Batch | 1 | 94 | 73 | 0 | 21 |
| Prolog | 1 | 75 | 63 | 0 | 12 |
| Metal Shading Language | 1 | 87 | 59 | 10 | 18 |
| Markdown | 98 | 4,350 | 0 | 3,089 | 1,261 |
| Plain Text | 7 | 581 | 0 | 469 | 112 |

Top language: TypeScript 51.0%. Generated on November 21, 2026. Canonical report: https://octocounts.com/github/toeverything/AFFiNE/commit/3d2572707628be4e7e71e4dee78ea1f79c4f10c3?reportId=f7913e13c8c27937ae423d1e8a33db3b938a303917ecfa23d6a951a1baab227d&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/toeverything/AFFiNE/commit/3d2572707628be4e7e71e4dee78ea1f79c4f10c3?reportId=f7913e13c8c27937ae423d1e8a33db3b938a303917ecfa23d6a951a1baab227d&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 toeverything/AFFiNE have?

toeverything/AFFiNE has 932,429 lines of code, plus 34,074 comment lines and 80,871 blank lines, for 1,047,374 total lines at commit 3d2572707628 on November 21, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the toeverything/AFFiNE line count measured?

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

### What commit was counted for toeverything/AFFiNE?

This OctoCounts report was generated from canary at commit 3d2572707628 on November 21, 2026.

## Similar repository reports

- [masslight/ottehr](https://octocounts.com/github/masslight/ottehr) — TypeScript, 933,089 code lines
- [RocketChat/Rocket.Chat](https://octocounts.com/github/RocketChat/Rocket.Chat) — TypeScript, 927,228 code lines
- [super-productivity/super-productivity](https://octocounts.com/github/super-productivity/super-productivity) — TypeScript, 925,563 code lines
- [pascalorg/editor](https://octocounts.com/github/pascalorg/editor) — TypeScript, 945,321 code lines
- [lidge-jun/opencodex](https://octocounts.com/github/lidge-jun/opencodex) — TypeScript, 885,429 code lines
- [yuanhejie888/rea-](https://octocounts.com/github/yuanhejie888/rea-) — TypeScript, 1,006,020 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)
- [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)
