This page compares the source lines of code (SLOC) of mrdoob/three.js and BabylonJS/Babylon.js using cached OctoCounts reports. Code size is not code quality: a larger count only means more source material, not a better or worse project.
As of 2026-08-26, mrdoob/three.js contains 530,492 total lines (307,445 code) across 2,415 files, while BabylonJS/Babylon.js contains 1,121,189 total lines (782,343 code) across 7,018 files as of 2026-08-26. BabylonJS/Babylon.js is about 2.5x the size of mrdoob/three.js by code lines. Code size is not code quality: a larger count only means more source material, not a better or worse project.
| Metric | mrdoob/three.js | BabylonJS/Babylon.js |
|---|---|---|
| Files | 2,415 | 7,018 |
| Total lines | 530,492 | 1,121,189 |
| Code lines | 307,445 | 782,343 |
| Comment lines | 91,425 | 209,173 |
| Blank lines | 131,622 | 129,673 |
| Languages counted | 7 | 12 |
Top languages in mrdoob/three.js: JavaScript (78.7% of code), HTML (14.0% of code), JSON (3.4% of code). Top languages in BabylonJS/Babylon.js: TypeScript (60.5% of code), TSX (13.8% of code), JSON (9.8% of code). JavaScript, JSON appear in both top language lists; HTML, SVG, CSS appear only in mrdoob/three.js's top languages; TypeScript, TSX, HLSL appear only in BabylonJS/Babylon.js's top languages.
Methodology: both counts come from cached OctoCounts reports generated with tokei. mrdoob/three.js was counted at ref dev (commit 919539e323b2) on 2026-08-26; BabylonJS/Babylon.js was counted at ref master (commit 16f79df9867f) on 2026-08-26. 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.
BabylonJS/Babylon.js has more code: 782,343 code lines versus 307,445 for mrdoob/three.js, about 2.5x as much, based on cached OctoCounts reports as of 2026-08-26.
Not necessarily. SLOC measures size, not complexity, quality, or maintainability. A larger codebase can mean more features, more generated or vendored code, more verbose language idioms, or more tests — none of which imply the code is harder to work with. Use SLOC to gauge the scale of what you'd be reading or maintaining, not as a quality signal for mrdoob/three.js, BabylonJS/Babylon.js, or any repository.
Methodology: both counts come from cached OctoCounts reports generated with tokei. mrdoob/three.js was counted at ref dev (commit 919539e323b2) on 2026-08-26; BabylonJS/Babylon.js was counted at ref master (commit 16f79df9867f) on 2026-08-26. See the counting methodology for ignored directories and analysis options.
Yes. This page shows the default branch for each repository. Use the interactive comparison tool to pick any public GitHub repository, branch, tag, or commit SHA for both sides and get a fresh side-by-side report.