# oven-sh/bun SLOC report

> As of 2026-09-17 (commit b52d5134815d), oven-sh/bun contains 1,964,876 total lines: 1,469,308 code, 333,658 comments, 161,910 blank, across 4,091 files in 33 languages (top: Rust 54.0%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

oven-sh/bun has 1,469,308 source lines of code out of 1,964,876 total lines across 4,091 files, counted from the main ref at commit b52d5134815d by the OctoCounts tokei engine on 2026-09-17. 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 oven-sh/bun to commit b52d5134815d, 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 74.8% of all lines, comments represent 17.0%, and the repository averages 359 code lines per file. Rust accounts for 54.0% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Rust | 1,522 | 972,034 | 793,073 | 99,805 | 79,156 |
| C | 26 | 298,664 | 200,556 | 80,155 | 17,953 |
| C++ | 581 | 209,490 | 163,613 | 19,127 | 26,750 |
| TypeScript | 451 | 193,984 | 127,261 | 51,757 | 14,966 |
| JavaScript | 343 | 92,454 | 82,014 | 5,532 | 4,908 |
| C Header | 749 | 97,751 | 56,251 | 28,103 | 13,397 |
| JSON | 90 | 29,836 | 29,790 | 0 | 46 |
| TOML | 120 | 3,997 | 3,228 | 299 | 470 |
| Shell | 28 | 3,758 | 2,893 | 452 | 413 |
| TSX | 23 | 2,855 | 2,397 | 212 | 246 |
| CSS | 12 | 1,495 | 1,328 | 28 | 139 |
| Python | 2 | 1,641 | 1,160 | 102 | 379 |

Top language (Rust 54.0%). Generated at 2026-09-17T16:21:17.593195932+00:00. Canonical report: https://octocounts.com/github/oven-sh/bun

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/oven-sh/bun/commit/b52d5134815db1ec22a6133d2afaa3692b0f0033?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 oven-sh/bun have?

oven-sh/bun has 1,964,876 total lines, including 1,469,308 code lines, 333,658 comment lines, and 161,910 blank lines.

### How was the oven-sh/bun line count measured?

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

### What commit was counted for oven-sh/bun?

This OctoCounts report was generated from main at commit b52d5134815d on 2026-09-17T16:21:17.593195932+00:00.

## Similar repository reports

- [warpdotdev/warp](https://octocounts.com/github/warpdotdev/warp) — Rust, 1,470,282 code lines
- [xai-org/grok-build](https://octocounts.com/github/xai-org/grok-build) — Rust, 1,458,593 code lines
- [openai/codex](https://octocounts.com/github/openai/codex) — Rust, 1,456,785 code lines
- [openinterpreter/openinterpreter](https://octocounts.com/github/openinterpreter/openinterpreter) — Rust, 1,492,495 code lines
- [zed-industries/zed](https://octocounts.com/github/zed-industries/zed) — Rust, 1,404,143 code lines
- [nicodunks/mog](https://octocounts.com/github/nicodunks/mog) — Rust, 1,568,608 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)
- [Rust vs Go](https://octocounts.com/compare/rust-vs-go)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Deno vs Node.js](https://octocounts.com/compare/deno-vs-node)
- [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)
