three.js
The default choice. 1st of 9 3D and WebGL libraries.
three.js is the standard low-level 3D rendering library for the web, with WebGL and WebGPU renderers, the largest ecosystem and far more use than any peer. For most new browser 3D projects it is the default choice today. The main costs are a monthly 0.x release train that can break code, and no built-in physics, audio or editor.
Best for: Any team that needs flexible 3D rendering in the browser, from product viewers to data visuals to games, including React, Vue and Svelte apps through their three.js bindings.
Scores
Overall9.0
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 9.0, likely 8.5 to 9.5
three.js is the clear default for drawing 3D in the browser. It leads every peer on use and on growth, the most active framework bindings build on it, and its WebGPU path is current. Babylon.js or PlayCanvas fit better when a team wants a full engine with an editor and physics. Expect some upgrade work from the breaking 0.x releases.
- npm downloadsLast4Weeks: 11.8x growth in a year, far above the 4.1 median
- github commitsLastYear: 2,401 commits; the most active project in the category
- utsubo.com/blog/threejs-vs-babylonjs-vs-playcanvas-comparison: Default pick for React and for flexibility; Babylon for full game engines
- discourse.threejs.org/t/what-is-threes-release-cadence-and-deprecation-timeline/53186/3: Release cadence and breaking changes are a known cost
GPT-6.2 Sol: 9.0, likely 7.9 to 9.9
Three.js is the default for a new custom browser 3D project because r187 combines mature rendering, a broad addon ecosystem, and active maintenance. Existing production use and a growing lead in adoption support that recommendation. Frequent API changes and the uneven WebGPU transition add upgrade work, and PlayCanvas can be a better fit when a collaborative visual editor is central to the project.
- github.com/mrdoob/three.js/releases/tag/r187: The current stable release advances WebGPU and continues to fix core rendering and addons.
- dependents repos, peers dependentRepos and npm downloadsLast4Weeks: The project leads the peer group in tracked dependents and current downloads.
- worldlabs.ai/blog/spark-2.0: Current downstream use in a substantial browser rendering product.
- github.com/mrdoob/three.js/wiki/Migration-Guide#186--187: The stable upgrade changes environment lighting, viewport behavior, and shader APIs.
- developer.playcanvas.com/user-manual/editor: PlayCanvas offers a collaborative browser-based scene editor.
Needed by many4.7
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Browser 3D is a clear but sizeable niche: product configurators, data visuals, landing-page effects, games and XR. three.js is general-purpose and works with any framework, so it covers nearly all of that niche. Most web apps still need no 3D at all.
- category.job: Draw 3D scenes in the browser: a specialised job
- utsubo.com/blog/threejs-vs-babylonjs-vs-playcanvas-comparison: Recommended for React projects and for flexible architectures
GPT-6.2 Sol: 4.4, likely 3.3 to 5.5
Browser 3D serves a clear niche that includes games, product viewers, and interactive visualizations. Three.js works across frontend frameworks and covers several kinds of 3D work. Developer surveys show meaningful use, though they leave the share of JavaScript projects that need browser 3D uncertain.
- 2025.stateofjs.com/en-US/other-tools: 2,472 respondents named three.js in the graphics and animation question.
- gamedevjs.com/survey/2025: 21.7% reported three.js in the web-game engine question.
- threejs.org/manual/pages/installation.html: The core library works with a bundler or from a CDN.
Helps a lot8.9
How well does it do the job for those who need it?
Claude Opus 5.5: 9.0, likely 8.0 to 9.5
It is a mature, flexible renderer. It has a production-grade WebGPURenderer with a WebGL2 fallback, the TSL node shaders, a large examples library and many loaders. Independent comparisons rank it first for flexibility and bundle size. Babylon.js is better when you want a full engine with an inspector, physics and audio built in. TypeScript types come from a separate package, and AI agents often write dated code for it.
- utsubo.com/blog/threejs-vs-babylonjs-vs-playcanvas-comparison: Smallest full bundle; WebGPU works with zero configuration since r171; no physics or audio
- app.cinevva.com/guides/threejs-vs-babylonjs: A lean renderer that you extend, against Babylon's full engine with tooling
- news.ycombinator.com/item?id=49605433: AI agents produce working scenes but use old patterns and no node materials
- npm hasTypes: No bundled types; @types/three is needed
GPT-6.2 Sol: 8.8, likely 7.7 to 9.7
Stable r187 offers a mature scene API, extensive examples, and a newer WebGPU renderer with WebGL 2 fallback. In a benchmark of r187, it kept pace with PlayCanvas on instanced animation but handled far fewer separately animated meshes on WebGPU. Community types leave gaps in some addons, and a coding-agent trial exposed use of older revisions in generated demos. Performance and migration effort vary with the scene and renderer.
- threejs.org/docs: The API reference covers animation, materials, loaders, renderers, and addons.
- threejs.org/manual/pages/webgpurenderer: Documents the fallback, experimental status, and shader and post-processing migration.
- github.com/endel/webgpu-webgl-benchmarks/blob/main/README.md: Three.js and PlayCanvas handled 123k and 128k instanced meshes, and 2.5k and 9.4k separate meshes, on the tested WebGPU setup.
- github.com/three-types/three-ts-types: The community declarations aim for core API coverage and leave some addons uncovered.
- news.ycombinator.com/item?id=49605433: Reviewers of a single agent task found outdated revisions and limited use of modern rendering APIs.
Holds up over time8.5
Will it still be a good choice in two years?
Claude Opus 5.5: 8.5, likely 7.5 to 9.0
The project has 16 years of history, 2,401 commits and 6 GitHub releases in the last year, and 2,630 contributors. The issue backlog is low for its size. The ecosystem is moving towards it, as the growth of R3F, Threlte and TresJS shows. Two things hold the score back: the work rests on a small core team without a funding body, and the monthly 0.x releases bring breaking changes that some users complain about.
- github commitsLastYear: 2,401 commits; latest release r187 on 2026-10-30
- github openIssues/closedIssues: 255 open against 13,705 closed
- discourse.threejs.org/t/what-is-threes-release-cadence-and-deprecation-timeline/53186/3: Users debate the breaking changes in monthly releases and the lack of semver or LTS
- scorecard Maintained: Scores 10
GPT-6.2 Sol: 8.5, likely 7.4 to 9.5
The project recorded 2,401 commits and six GitHub releases in a year, with multiple contributors working on the core and renderers. Maintainers closed one reported r187 shader compilation regression within three days and targeted r188 for the fix. Google’s model-viewer and a web studio report real upgrade costs from upstream changes. Recent release tags come from the same account, and GitHub Sponsors shows a funding channel with an unclear level of support.
- github commitsLastYear, releasesLastYear and pushedAt: 2,401 commits, six releases, and a push the day before collection.
- github.com/mrdoob/three.js/releases/tag/r187: Shows contributions across rendering, loaders, and the core.
- github.com/mrdoob/three.js/issues/35315: Reported November 2, closed with a linked fix November 5, and assigned to r188.
- github.com/google/model-viewer/blob/master/packages/model-viewer/README.md: Google pins the tested three.js version because of frequent upstream breaking changes.
- utsubo.com/blog/threejs-2026-what-changed: The studio identifies specific changes that broke its own WebGPU site during upgrades.
- github.com/mrdoob/three.js/releases: Recent GitHub releases are attributed to the same account.
- github.com/sponsors/mrdoob: Lists a sponsorship channel for the lead maintainer.
Used widely8.7
How many use it, and is that growing?
Claude Opus 5.5: 9.5, likely 9.0 to 10.0
The package had 139.6M downloads in the last 4 weeks, up 11.8x in a year, against a median ratio of 4.1. It also has 51.5k dependent repos, nearly 5x the next peer. Some downloads come through R3F and other wrappers, but those still count as uses of three.js. With 119k stars and a lead on every peer metric, the score is high and the range narrow.
- npm downloadsLast4Weeks: 139.6M, against 11.8M a year before (11.8x)
- dependents.repos: 51,503, against 10,968 for R3F and 788 for Babylon.js
- github stars: 119k stars, far above all peers
- utsubo.com/blog/threejs-vs-babylonjs-vs-playcanvas-comparison: About 12.2M weekly downloads against 315k for Babylon; about 20.9k Stack Overflow questions
GPT-6.2 Sol: 7.9, likely 6.8 to 9.0
Three.js leads this peer group with 51,503 tracked dependent repositories and 4,922 npm dependents. Four-week downloads grew 11.8× year over year, well above the catalog median of 4.1×. Automated installs and wrappers such as React Three Fiber inflate npm totals, while CDN use is missed. The tracked dependents and peer lead support a high score, with uncertainty about the number of direct choices.
- dependents repos and packages, peers dependentRepos: 51,503 tracked repositories versus 10,968 for the nearest peer.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo and medianDownloadsRatio: 139.6 million versus 11.8 million, an 11.8× ratio against the 4.1× median.
- github stars, bluesky posts and peers: 119,054 stars and 39 repository-link posts lead the peer group.
- github.com/pmndrs/react-three-fiber/blob/master/packages/fiber/package.json: React Three Fiber declares three.js as a peer dependency.
- threejs.org/manual/pages/installation.html: The official guide supports browser imports directly from a CDN.
Vouched for8.9
Who stands behind it being good?
Claude Opus 5.5: 9.0, likely 8.0 to 9.5
Most of the peers in this category are frameworks built on three.js (React Three Fiber, Threlte, TresJS, A-Frame). Many studios and companies use it in production. Independent comparisons in 2026 recommend it by default for most cases, and Hacker News keeps featuring advanced work on it, such as Gaussian splatting and Nanite-style renderers. Several of the comparisons come from studios that use three.js themselves, which is why the range is not tighter.
- peers: R3F, Threlte, TresJS and A-Frame all build on three.js
- hackerNews top: Spark Gaussian splatting (377 points) and three-nanite (217 points) show advanced community work
- blog.logrocket.com/three-js-vs-babylon-js: Independent comparison of the two leading libraries
- app.cinevva.com/guides/threejs-vs-babylonjs: 2026 guide that recommends three.js for the tightest bundle and flexibility
GPT-6.2 Sol: 8.7, likely 7.6 to 9.6
Google’s model-viewer and World Labs’ Spark both build on three.js, and React Three Fiber depends on it for rendering. An independent r187 benchmark found fast picking among many meshes and competitive instancing, with slower results on some other workloads. Developer surveys document use, leaving satisfaction and retention less clear.
- github.com/google/model-viewer/blob/master/packages/model-viewer/README.md: Google relies on a tested three.js version for its model-viewer component.
- worldlabs.ai/blog/spark-2.0: World Labs built Spark 2.0 on three.js alongside its Marble product.
- github.com/pmndrs/react-three-fiber: React Three Fiber is an independently maintained renderer for three.js.
- github.com/endel/webgpu-webgl-benchmarks/blob/main/README.md: Reproducible r187 measurements show strong object picking and instancing with workload-specific tradeoffs.
- 2025.stateofjs.com/en-US/other-tools: The graphics and animation question reports use.
Safe8.4
How safe is it to depend on?
Claude Opus 5.5: 8.5, likely 7.5 to 9.0
The package has zero dependencies and the MIT licence. It has only one advisory, a 2021 DoS, and none in the last 24 months. The Scorecard is 7.2, with strong scores on workflow, token permissions, pinning and SAST. Branch protection scores 0, code review only 6, and releases are not signed. The risk is low because the library runs client-side and has a very small dependency footprint.
- npm dependencies: Zero runtime dependencies
- advisories: 1 advisory in total (2021 DoS); 0 in the last 24 months
- scorecard: 7.2 overall; Branch-Protection 0, Code-Review 6
- npm license: MIT
GPT-6.2 Sol: 8.2, likely 7.0 to 9.2
The core npm package has zero runtime dependencies and uses the permissive MIT license. The sole known advisory was fixed in 0.125.0, and the bundle records none in the past two years. OpenSSF gives it 7.2, with full marks for its security policy and workflow token permissions, and zero for branch protection and fuzzing. Snyk lists two maintainers, while the npm publishing process and actual publish access remain unverified.
- npm dependencies and license: Zero runtime dependencies and an MIT license.
- advisories total and last24Months: One known advisory and zero in the past 24 months.
- github.com/advisories/GHSA-fq6p-x6j3-cmmq: The historical denial of service was patched in 0.125.0.
- scorecard score and checks: Branch protection and fuzzing scored zero, code review scored six, and packaging and signing were unscored.
- security.snyk.io/package/npm/three: Lists two maintainers and no known vulnerabilities affecting r187.
Good
- By far the largest ecosystem: React Three Fiber, Threlte, TresJS, drei and many examples and loaders all build on it.
- WebGPURenderer with automatic WebGL2 fallback, plus the TSL node shading language that targets both backends.
- Zero runtime dependencies, a small core bundle compared with Babylon.js, and the MIT licence.
- Very active development, with about 2,400 commits and monthly releases in the last year.
Bad
- Every release is a 0.x version that may break code, and there is no LTS line, so upgrades need the migration guide.
- Low-level by design: there is no built-in physics, audio, game loop or visual editor, unlike Babylon.js or PlayCanvas.
- TypeScript types live in the separate @types/three package, not in the main package.
- AI coding agents often write outdated patterns, such as old Geometry APIs, and they rarely use TSL or node materials.
The numbers
- npm downloads, 4 weeks
- 140M ×12 in a year
- GitHub stars
- 119k
- Commits, 12 months
- 2.4k
- npm version
- 0.187.0 Oct 2026
- Versions, 12 months
- 10
- Advisories, 24 months
- 0 of 1 ever
- OpenSSF Scorecard
- 7.2 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (mrdoob/three.js), npm (three), OSV and the OpenSSF Scorecard.