# oven-sh/bun SLOC report

> oven-sh/bun: 2,104,076 code lines at commit 7a748413f944, counted with tokei-14.0.0 on 2026-10-22. Saved result 6447c2a1aea0e0d8534b5496e468c5d04196424bd803a0d4b71460cb8dc79d29.

oven-sh/bun has 2,104,076 source lines of code out of 2,658,547 total lines across 5,943 files, counted from the main ref at commit 7a748413f944 by the OctoCounts tokei engine on 2026-10-22. 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 7a748413f944, 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 79.1% of all lines, comments represent 13.3%, and the repository averages 354 code lines per file. Rust accounts for 66.6% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Rust | 3,235 | 1,631,590 | 1,401,280 | 114,546 | 115,764 |
| C | 26 | 299,367 | 201,105 | 80,204 | 18,058 |
| C++ | 601 | 220,111 | 172,819 | 19,802 | 27,490 |
| TypeScript | 493 | 211,705 | 140,908 | 54,346 | 16,451 |
| JavaScript | 374 | 90,883 | 82,503 | 4,298 | 4,082 |
| C Header | 765 | 101,346 | 58,652 | 28,872 | 13,822 |
| JSON | 92 | 31,559 | 31,513 | 0 | 46 |
| TOML | 144 | 4,672 | 3,792 | 310 | 570 |
| TSX | 25 | 3,099 | 2,612 | 228 | 259 |
| CSS | 12 | 1,630 | 1,467 | 26 | 137 |
| Zsh | 1 | 1,486 | 1,294 | 11 | 181 |
| Python | 2 | 1,641 | 1,160 | 102 | 379 |
| Shell | 27 | 1,457 | 1,077 | 203 | 177 |
| Module-Definition | 1 | 686 | 679 | 7 | 0 |
| LD Script | 2 | 669 | 661 | 0 | 8 |
| PowerShell | 3 | 521 | 401 | 58 | 62 |
| Fish | 1 | 461 | 388 | 25 | 48 |
| Dockerfile | 4 | 397 | 330 | 32 | 35 |
| Svelte | 2 | 321 | 293 | 0 | 28 |
| Perl | 1 | 335 | 254 | 44 | 37 |
| BASH | 4 | 271 | 234 | 10 | 27 |
| Nix | 2 | 279 | 219 | 35 | 25 |
| JSX | 5 | 168 | 138 | 17 | 13 |
| Autoconf | 1 | 120 | 118 | 0 | 2 |
| HTML | 6 | 99 | 88 | 4 | 7 |
| Makefile | 1 | 44 | 31 | 4 | 9 |
| SVG | 9 | 30 | 30 | 0 | 0 |
| YAML | 1 | 20 | 19 | 1 | 0 |
| Protocol Buffers | 1 | 14 | 11 | 0 | 3 |
| MDX | 4 | 44 | 0 | 24 | 20 |
| Markdown | 80 | 7,029 | 0 | 5,143 | 1,886 |
| Plain Text | 18 | 46,493 | 0 | 45,707 | 786 |

Top language (Rust 66.6%). Generated at 2026-10-22T04:49:27.288913164Z. Canonical report: https://octocounts.com/github/oven-sh/bun/commit/7a748413f944621d0d8cdb0708ec807a9dfc31fa?reportId=6447c2a1aea0e0d8534b5496e468c5d04196424bd803a0d4b71460cb8dc79d29&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/oven-sh/bun/commit/7a748413f944621d0d8cdb0708ec807a9dfc31fa?reportId=6447c2a1aea0e0d8534b5496e468c5d04196424bd803a0d4b71460cb8dc79d29&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does oven-sh/bun have?

oven-sh/bun has 2,658,547 total lines, including 2,104,076 code lines, 354,059 comment lines, and 200,412 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 7a748413f944, 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 7a748413f944 on 2026-10-22T04:49:27.288913164Z.

## Similar repository reports

- [aptos-labs/aptos-core](https://octocounts.com/github/aptos-labs/aptos-core) — Rust, 1,945,595 code lines
- [LadybirdBrowser/ladybird](https://octocounts.com/github/LadybirdBrowser/ladybird) — Rust, 1,868,331 code lines
- [trycua/cua](https://octocounts.com/github/trycua/cua) — Rust, 1,699,051 code lines
- [codewhale-hq/Codewhale](https://octocounts.com/github/codewhale-hq/Codewhale) — Rust, 1,698,066 code lines
- [openai/codex](https://octocounts.com/github/openai/codex) — Rust, 1,665,196 code lines
- [makepad/makepad](https://octocounts.com/github/makepad/makepad) — Rust, 2,685,556 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)
