# toeverything/AFFiNE SLOC report

> toeverything/AFFiNE: 928,809 code lines at commit 84b017ec8c1c, counted with tokei-15.0.0 on 2026-11-16. Saved result adf582c2632ea4681f81393391bb4a929c877235e760d67a8c5f5365f042c568.

toeverything/AFFiNE has 928,809 source lines of code out of 1,043,530 total lines across 8,593 files, counted with tokei from the canary ref at commit 84b017ec8c1c on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving toeverything/AFFiNE to commit 84b017ec8c1c, 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,117 | 550,570 | 474,028 | 23,655 | 52,887 |
| JSON | 348 | 159,492 | 159,487 | 0 | 5 |
| TSX | 1,112 | 139,423 | 127,502 | 1,620 | 10,301 |
| Rust | 364 | 108,530 | 101,353 | 450 | 6,727 |
| Swift | 581 | 42,685 | 33,655 | 3,061 | 5,969 |
| SVG | 495 | 8,121 | 8,121 | 0 | 0 |
| Kotlin | 46 | 9,406 | 7,634 | 542 | 1,230 |
| GraphQL | 188 | 5,551 | 4,986 | 21 | 544 |
| SQL | 133 | 6,483 | 4,928 | 718 | 837 |
| JavaScript | 33 | 4,062 | 3,547 | 125 | 390 |
| C Header | 2 | 1,052 | 953 | 12 | 87 |
| 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 16, 2026. Canonical report: https://octocounts.com/github/toeverything/AFFiNE/commit/84b017ec8c1cd84cd8327c5207378624623301a9?reportId=adf582c2632ea4681f81393391bb4a929c877235e760d67a8c5f5365f042c568&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/84b017ec8c1cd84cd8327c5207378624623301a9?reportId=adf582c2632ea4681f81393391bb4a929c877235e760d67a8c5f5365f042c568&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 928,809 lines of code, plus 34,009 comment lines and 80,712 blank lines, for 1,043,530 total lines at commit 84b017ec8c1c on November 16, 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 84b017ec8c1c, 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 84b017ec8c1c on November 16, 2026.

## Similar repository reports

- [masslight/ottehr](https://octocounts.com/github/masslight/ottehr) — TypeScript, 903,087 code lines
- [RocketChat/Rocket.Chat](https://octocounts.com/github/RocketChat/Rocket.Chat) — TypeScript, 899,254 code lines
- [super-productivity/super-productivity](https://octocounts.com/github/super-productivity/super-productivity) — TypeScript, 899,187 code lines
- [cortex-js/compute-engine](https://octocounts.com/github/cortex-js/compute-engine) — TypeScript, 962,447 code lines
- [cline/cline](https://octocounts.com/github/cline/cline) — TypeScript, 968,155 code lines
- [campfirium/foliole](https://octocounts.com/github/campfirium/foliole) — TypeScript, 991,454 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)
