# oven-sh/bun SLOC report

> oven-sh/bun: 2,725,048 code lines at commit 0966e99d8f35, counted with tokei-15.0.0 on 2026-11-25. Saved result 2c998b122b8d6643b1615abc9f04fa1d2c3ee29c14dad1e03a0cbfed79f9acd8.

Source: [oven-sh/bun on GitHub](https://github.com/oven-sh/bun) · counted commit [0966e99d8f35](https://github.com/oven-sh/bun/tree/0966e99d8f357833a147af2a4bce7d66321829c1)

oven-sh/bun has 2,725,048 source lines of code out of 3,307,538 total lines across 7,727 files, counted with tokei from the main ref at commit 0966e99d8f35 on November 25, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving oven-sh/bun to commit 0966e99d8f35, 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

oven-sh/bun: 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 very large codebase by counted code lines. Code represents 82.4% of all lines, comments represent 10.2%, and the repository averages 353 code lines per file. Rust accounts for 71.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Rust | 4,748 | 2,191,849 | 1,948,345 | 89,395 | 154,109 |
| TypeScript | 751 | 305,943 | 217,303 | 64,939 | 23,701 |
| C++ | 609 | 245,424 | 195,426 | 21,558 | 28,440 |
| C | 17 | 281,519 | 185,488 | 79,345 | 16,686 |
| JavaScript | 363 | 81,517 | 75,384 | 2,966 | 3,167 |
| C Header | 752 | 94,716 | 54,364 | 27,424 | 12,928 |
| JSON | 92 | 31,695 | 31,648 | 0 | 47 |
| TOML | 166 | 5,352 | 4,345 | 315 | 692 |
| TSX | 25 | 3,099 | 2,612 | 228 | 259 |
| CSS | 12 | 1,630 | 1,467 | 26 | 137 |
| Module-Definition | 10 | 1,740 | 1,393 | 7 | 340 |
| Zsh | 1 | 1,537 | 1,342 | 11 | 184 |
| Python | 2 | 1,641 | 1,160 | 102 | 379 |
| Shell | 27 | 1,457 | 1,077 | 203 | 177 |
| LD Script | 3 | 688 | 676 | 4 | 8 |
| JSX | 6 | 589 | 531 | 17 | 41 |
| Fish | 1 | 495 | 422 | 25 | 48 |
| PowerShell | 3 | 538 | 414 | 61 | 63 |
| Dockerfile | 4 | 401 | 334 | 32 | 35 |
| Svelte | 2 | 321 | 293 | 0 | 28 |
| Perl | 1 | 335 | 254 | 44 | 37 |
| BASH | 4 | 274 | 237 | 10 | 27 |
| Nix | 2 | 279 | 219 | 35 | 25 |
| Autoconf | 1 | 120 | 118 | 0 | 2 |
| HTML | 6 | 99 | 88 | 4 | 7 |
| Makefile | 1 | 43 | 30 | 4 | 9 |
| SVG | 9 | 30 | 30 | 0 | 0 |
| YAML | 1 | 20 | 19 | 1 | 0 |
| GNU Style Assembly | 1 | 19 | 18 | 0 | 1 |
| Protocol Buffers | 1 | 14 | 11 | 0 | 3 |
| MDX | 4 | 44 | 0 | 24 | 20 |
| Markdown | 81 | 7,361 | 0 | 5,417 | 1,944 |
| Plain Text | 21 | 46,749 | 0 | 45,915 | 834 |

Top language: Rust 71.5%. Generated on November 25, 2026. Canonical report: https://octocounts.com/github/oven-sh/bun/commit/0966e99d8f357833a147af2a4bce7d66321829c1?reportId=2c998b122b8d6643b1615abc9f04fa1d2c3ee29c14dad1e03a0cbfed79f9acd8&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/0966e99d8f357833a147af2a4bce7d66321829c1?reportId=2c998b122b8d6643b1615abc9f04fa1d2c3ee29c14dad1e03a0cbfed79f9acd8&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,725,048 lines of code, plus 338,112 comment lines and 244,378 blank lines, for 3,307,538 total lines at commit 0966e99d8f35 on November 25, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

OctoCounts resolved the public GitHub repository to commit 0966e99d8f35, 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 0966e99d8f35 on November 25, 2026.

## Similar repository reports

- [wecode-ai/Wegent](https://octocounts.com/github/wecode-ai/Wegent) — Rust, 2,709,230 code lines
- [rust-lang/rust](https://octocounts.com/github/rust-lang/rust) — Rust, 2,782,025 code lines
- [horizon-rust/horizon](https://octocounts.com/github/horizon-rust/horizon) — Rust, 2,912,541 code lines
- [LadybirdBrowser/ladybird](https://octocounts.com/github/LadybirdBrowser/ladybird) — Rust, 2,429,668 code lines
- [trflynn89/ladybird](https://octocounts.com/github/trflynn89/ladybird) — Rust, 2,428,622 code lines
- [expo/exact](https://octocounts.com/github/expo/exact) — Rust, 2,346,932 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)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [Bun vs Node.js](https://octocounts.com/compare/bun-vs-node)
- [Bun vs Deno](https://octocounts.com/compare/bun-vs-deno)
- [Rust vs Go](https://octocounts.com/compare/rust-vs-go)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [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)
