Bun vs Node.js: source lines of code compared
As of 2026-08-14, oven-sh/bun contains 2,039,877 total lines (1,540,528 code) across 4,130 files, while nodejs/node contains 12,508,237 total lines (9,899,009 code) across 18,326 files as of 2026-08-14. nodejs/node is about 6.4x the size of oven-sh/bun by code lines. Code size is not code quality: a larger count only means more source material, not a better or worse project.
| Metric | oven-sh/bun | nodejs/node |
|---|
| Files | 4,130 | 18,326 |
| Total lines | 2,039,877 | 12,508,237 |
| Code lines | 1,540,528 | 9,899,009 |
| Comment lines | 336,449 | 1,398,271 |
| Blank lines | 162,900 | 1,210,957 |
| Languages counted | 12 | 12 |
Top languages in oven-sh/bun: Rust (50.8% of code), C++ (15.6% of code), C (13.0% of code). Top languages in nodejs/node: C Header (20.9% of code), GNU Style Assembly (19.1% of code), Perl (17.5% of code). C++, C appear in both top language lists; Rust, TypeScript, JavaScript appear only in oven-sh/bun's top languages; C Header, GNU Style Assembly, Perl appear only in nodejs/node's top languages.
Methodology: both counts come from cached OctoCounts reports generated with tokei. oven-sh/bun was counted at ref main (commit eabb96de728f) on 2026-08-14; nodejs/node was counted at ref main (commit f83e7df96177) on 2026-08-14. See the counting methodology for ignored directories and analysis options.
Evidence and next steps:
Note: code size is not code quality. OctoCounts only reports reproducible line counts and makes no claim that either project is better.