# better-auth/better-auth SLOC report

> As of 2026-11-18 (commit 490bafb1e162), better-auth/better-auth contains 497,287 total lines: 413,530 code, 37,158 comments, 46,599 blank, across 1,575 files in 11 languages (top language: TypeScript 84.0%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

better-auth/better-auth has 413,530 source lines of code out of 497,287 total lines across 1,575 files, counted with tokei from the main ref at commit 490bafb1e162 on November 18, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving better-auth/better-auth to commit 490bafb1e162, 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

better-auth/better-auth: 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 83.2% of all lines, comments represent 7.5%, and the repository averages 263 code lines per file. TypeScript accounts for 84.0% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| TypeScript | 1,230 | 405,607 | 347,445 | 27,970 | 30,192 |
| YAML | 15 | 53,070 | 43,868 | 21 | 9,181 |
| TSX | 164 | 18,623 | 17,379 | 31 | 1,213 |
| JSON | 89 | 4,115 | 4,115 | 0 | 0 |
| CSS | 5 | 574 | 539 | 0 | 35 |
| JavaScript | 5 | 128 | 109 | 13 | 6 |
| HTML | 4 | 50 | 48 | 1 | 1 |
| Svelte | 1 | 14 | 13 | 0 | 1 |
| SVG | 1 | 8 | 8 | 0 | 0 |
| Vue | 2 | 7 | 6 | 0 | 1 |
| Markdown | 59 | 15,091 | 0 | 9,122 | 5,969 |

Top language: TypeScript 84.0%. Generated on November 18, 2026. Canonical report: https://octocounts.com/github/better-auth/better-auth

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/better-auth/better-auth/commit/490bafb1e162a7512c67920e4d0960820966dd35?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=5551f31b45e50c6347fbf1ed9199a602cf6b740a2c4dadc53508c61e3815465b).

## Report FAQ

### How many lines of code does better-auth/better-auth have?

better-auth/better-auth has 413,530 lines of code, plus 37,158 comment lines and 46,599 blank lines, for 497,287 total lines at commit 490bafb1e162 on November 18, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the better-auth/better-auth line count measured?

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

### What commit was counted for better-auth/better-auth?

This OctoCounts report was generated from main at commit 490bafb1e162 on November 18, 2026.

## Similar repository reports

- [linear/linear](https://octocounts.com/github/linear/linear) — TypeScript, 414,482 code lines
- [MemTensor/MemOS](https://octocounts.com/github/MemTensor/MemOS) — TypeScript, 409,004 code lines
- [SableClient/sable-next](https://octocounts.com/github/SableClient/sable-next) — TypeScript, 407,336 code lines
- [Gilbert09/talyn](https://octocounts.com/github/Gilbert09/talyn) — TypeScript, 404,791 code lines
- [chatboxai/chatbox](https://octocounts.com/github/chatboxai/chatbox) — TypeScript, 424,972 code lines
- [withplumix/plumix](https://octocounts.com/github/withplumix/plumix) — TypeScript, 401,415 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)
