# bitwarden/server SLOC report

> As of 2026-09-08 (commit 4a58a9fa2e1c), bitwarden/server contains 1,790,606 total lines: 1,318,736 code, 34,045 comments, 437,825 blank, across 5,996 files in 18 languages (top: C# 86.5%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

bitwarden/server has 1,318,736 source lines of code out of 1,790,606 total lines across 5,996 files, counted from the main ref at commit 4a58a9fa2e1c by the OctoCounts tokei engine on 2026-09-08. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving bitwarden/server to commit 4a58a9fa2e1c, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a very large codebase by counted code lines. Code represents 73.6% of all lines, comments represent 1.9%, and the repository averages 220 code lines per file. C# accounts for 86.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C# | 4,182 | 1,586,069 | 1,140,932 | 24,269 | 420,868 |
| SQL | 1,245 | 107,924 | 96,919 | 2,812 | 8,193 |
| JSON | 123 | 51,249 | 51,249 | 0 | 0 |
| Handlebars | 191 | 23,957 | 16,716 | 1,714 | 5,527 |
| Razor | 64 | 4,451 | 4,125 | 25 | 301 |
| Rust | 7 | 4,052 | 3,736 | 38 | 278 |
| JavaScript | 17 | 1,366 | 1,198 | 44 | 124 |
| MSBuild | 44 | 1,077 | 851 | 39 | 187 |
| Shell | 32 | 1,106 | 750 | 112 | 244 |
| Dockerfile | 16 | 990 | 637 | 185 | 168 |
| .NET Resource | 1 | 679 | 620 | 59 | 0 |
| PowerShell | 16 | 789 | 597 | 80 | 112 |

Top language (C# 86.5%). Generated at 2026-09-08T15:36:37.631117851+00:00. Canonical report: https://octocounts.com/github/bitwarden/server

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/bitwarden/server/commit/4a58a9fa2e1ca364f3d6669babcfcd390189fe20?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).

## Report FAQ

### How many lines of code does bitwarden/server have?

bitwarden/server has 1,790,606 total lines, including 1,318,736 code lines, 34,045 comment lines, and 437,825 blank lines.

### How was the bitwarden/server line count measured?

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

### What commit was counted for bitwarden/server?

This OctoCounts report was generated from main at commit 4a58a9fa2e1c on 2026-09-08T15:36:37.631117851+00:00.

## Similar repository reports

- [dotnet/aspnetcore](https://octocounts.com/github/dotnet/aspnetcore) — C#, 1,525,283 code lines
- [dotnet/AspNetCore.Docs](https://octocounts.com/github/dotnet/AspNetCore.Docs) — C#, 654,692 code lines
- [SmartlyDressedGames/U3-SDK](https://octocounts.com/github/SmartlyDressedGames/U3-SDK) — C#, 343,112 code lines
- [iamcheyan/Zircon](https://octocounts.com/github/iamcheyan/Zircon) — C#, 335,013 code lines
- [radarr/radarr](https://octocounts.com/github/radarr/radarr) — C#, 330,102 code lines
- [Sonarr/Sonarr](https://octocounts.com/github/Sonarr/Sonarr) — C#, 307,829 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)
- [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)
