bitwarden/server has 1,458,115 source lines of code out of 1,983,657 total lines across 6,647 files, counted with tokei from the main ref at commit 462476e92ee9 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-16 (commit 462476e92ee9), bitwarden/server contains 1,983,657 total lines: 1,458,115 code, 41,481 comments, 484,061 blank, across 6,647 files in 18 languages (top language: C# 86.5%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving bitwarden/server to commit 462476e92ee9, 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.
This is a very large codebase by counted code lines. Code represents 73.5% of all lines, comments represent 2.1%, and the repository averages 219 code lines per file. C# accounts for 86.5% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C# | 4684 | 1754647 | 1261025 | 29405 | 464217 |
| SQL | 1350 | 119729 | 107325 | 3462 | 8942 |
| JSON | 128 | 54626 | 54626 | 0 | 0 |
| Handlebars | 209 | 30905 | 21554 | 2159 | 7192 |
| Razor | 66 | 4602 | 4261 | 28 | 313 |
| Rust | 8 | 4090 | 3765 | 38 | 287 |
| JavaScript | 17 | 1406 | 1221 | 58 | 127 |
| Shell | 34 | 1584 | 1104 | 187 | 293 |
| MSBuild | 49 | 1157 | 915 | 41 | 201 |
| Dockerfile | 20 | 1069 | 694 | 189 | 186 |
| .NET Resource | 1 | 679 | 620 | 59 | 0 |
| PowerShell | 16 | 789 | 597 | 80 | 112 |
Top language: C# 86.5%. Generated on .
bitwarden/server: 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.
bitwarden/server has 1,458,115 lines of code, plus 41,481 comment lines and 484,061 blank lines, for 1,983,657 total lines at commit 462476e92ee9 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 462476e92ee9, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from main at commit 462476e92ee9 on November 16, 2026.
Play the growth animation for bitwarden/server on this page — 1,458,115 code lines across 18 languages, counted by tokei.