# toeverything/AFFiNE SLOC report

> As of 2026-11-06 (commit ef401b20cb2a), toeverything/AFFiNE contains 1,030,500 total lines: 916,303 code, 33,916 comments, 80,281 blank, across 8,550 files in 23 languages (top language: TypeScript 51.4%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

toeverything/AFFiNE has 916,303 source lines of code out of 1,030,500 total lines across 8,550 files, counted with tokei from the canary ref at commit ef401b20cb2a on November 6, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving toeverything/AFFiNE to commit ef401b20cb2a, 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 88.9% of all lines, comments represent 3.3%, and the repository averages 107 code lines per file. TypeScript accounts for 51.4% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| TypeScript | 5,109 | 547,299 | 470,934 | 23,621 | 52,744 |
| JSON | 347 | 159,252 | 159,247 | 0 | 5 |
| TSX | 1,107 | 138,321 | 126,464 | 1,609 | 10,248 |
| Rust | 349 | 101,477 | 94,450 | 432 | 6,595 |
| Swift | 576 | 41,999 | 33,038 | 3,038 | 5,923 |
| SVG | 495 | 8,121 | 8,121 | 0 | 0 |
| Kotlin | 45 | 9,203 | 7,468 | 534 | 1,201 |
| GraphQL | 183 | 5,352 | 4,801 | 21 | 530 |
| SQL | 129 | 6,228 | 4,689 | 716 | 823 |
| JavaScript | 33 | 4,062 | 3,547 | 125 | 390 |
| C Header | 2 | 1,008 | 913 | 12 | 83 |
| TOML | 15 | 701 | 628 | 11 | 62 |

Top language: TypeScript 51.4%. Generated on November 6, 2026. Canonical report: https://octocounts.com/github/toeverything/AFFiNE

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/toeverything/AFFiNE/commit/ef401b20cb2a5960278a8e7ab2c0e96d8f759aeb?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=e8bced36bd7fffb7e3f97b5be3b7212910b51b4cb3091183efa9fd140bd3f822).

## Report FAQ

### How many lines of code does toeverything/AFFiNE have?

toeverything/AFFiNE has 916,303 lines of code, plus 33,916 comment lines and 80,281 blank lines, for 1,030,500 total lines at commit ef401b20cb2a on November 6, 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 ef401b20cb2a, 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 ef401b20cb2a on November 6, 2026.

## Similar repository reports

- [melgarafael/DeskcommCRM](https://octocounts.com/github/melgarafael/DeskcommCRM) — TypeScript, 911,347 code lines
- [pascalorg/editor](https://octocounts.com/github/pascalorg/editor) — TypeScript, 904,404 code lines
- [masslight/ottehr](https://octocounts.com/github/masslight/ottehr) — TypeScript, 902,728 code lines
- [RocketChat/Rocket.Chat](https://octocounts.com/github/RocketChat/Rocket.Chat) — TypeScript, 889,425 code lines
- [campfirium/foliole](https://octocounts.com/github/campfirium/foliole) — TypeScript, 944,435 code lines
- [super-productivity/super-productivity](https://octocounts.com/github/super-productivity/super-productivity) — TypeScript, 884,157 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)
