WebXR frameworks compared: three.js, Babylon.js, A-Frame, more
By the Turbl team · · 12 min read
The main WebXR frameworks are three.js, React Three Fiber, Babylon.js, A-Frame, PlayCanvas, Wonderland Engine and Needle Engine. Pick three.js for control and the largest community, Babylon.js for the most built in, and A-Frame for the gentlest start. Pick PlayCanvas, Wonderland or Needle if you want a visual editor.
All seven do the same basic job. They draw a 3D scene in the browser and connect it to a headset through WebXR, the web standard for VR and AR. If the standard itself is new to you, start with what WebXR is and how it works.
The WebXR frameworks at a glance
Versions and prices are as of 26 November 2026. Release dates come from the npm registry, the public package index for JavaScript. "Latest release" means the version npm serves by default, unless noted.
| Framework | What it is | You write | Visual editor | License and price | Latest release |
|---|---|---|---|---|---|
| three.js | 3D rendering library | JavaScript or TypeScript | No, code first | MIT, free | 0.187.0, 30 October 2026 |
| React Three Fiber with @react-three/xr | React layer over three.js | React components (JSX) | No | MIT, free | Fiber 9.8.2, 14 October 2026. XR 6.6.32, 13 October 2026 |
| Babylon.js | Full 3D engine | JavaScript or TypeScript | Browser tools such as the Playground. A separate community editor app is free | Apache 2.0, free | 9.38.0, 26 November 2026 |
| A-Frame | HTML tags over three.js | HTML and JavaScript | Inspector for existing scenes | MIT, free | 1.8.0, June 2026 |
| PlayCanvas | Engine plus cloud editor | JavaScript or TypeScript | Yes, in the browser | Engine MIT. Editor free for public projects, $15 a month for private ones | Engine 2.24.3, 23 November 2026 |
| Wonderland Engine | WebAssembly engine plus desktop editor | JavaScript or TypeScript | Yes, Windows, macOS, Linux | Proprietary. Free up to $120,000 revenue a year, then 10% royalty | Editor 1.6.1. Its npm API package is dated 23 April 2026 |
| Needle Engine | three.js based engine with Unity and Blender export | TypeScript, or components in Unity or Blender | Uses Unity or Blender | Proprietary. Free Basic license for non-commercial use, paid Pro license for commercial use | 5.1.16 stable, 14 October 2026 |
A library gives you building blocks and leaves the structure to you. An engine also brings physics, sound, an asset pipeline and often an editor. That split explains most of the table.
three.js
three.js is the most downloaded library in this list by a wide margin. npm counted 38.5 million downloads of it in the week of 19 to 25 November 2026. The main Babylon.js package had about 383,000 in the same week. three.js is MIT licensed, so there is nothing to buy. Several other tools in this list are built on it: React Three Fiber, A-Frame, Needle Engine and Meta's Immersive Web SDK.
WebXR support is part of the core. You set one flag on the renderer and add a button from the addons folder:
import { VRButton } from 'three/addons/webxr/VRButton.js';
renderer.xr.enabled = true;
document.body.appendChild( VRButton.createButton( renderer ) );
The renderer's XR manager gives you controllers, grips and tracked hands. It also exposes depth sensing, which reads how far away real surfaces are. A foveation setting renders the edge of your view at lower resolution to save time. An XRButton addon tries AR first and falls back to VR.
The weak point is everything above rendering. three.js has no physics, no teleport movement and no grab system. You write them or add other packages. A new release lands every one to three months, so a tutorial written for an old release may not match the current API.
Best fit: developers who want full control and are happy to assemble their own stack.
React Three Fiber with @react-three/xr
React Three Fiber is a React renderer for three.js. You describe the scene as components, and the library creates the three.js objects. Its documentation says a mesh element becomes new THREE.Mesh(), so everything in three.js stays available.
The companion package @react-three/xr adds the headset layer. You create a store, call store.enterVR() or store.enterAR() from a button, and wrap the scene in an XR component:
import { Canvas } from '@react-three/fiber'
import { XR, createXRStore } from '@react-three/xr'
const store = createXRStore()
export function App() {
return (
<>
<button onClick={() => store.enterVR()}>Enter VR</button>
<Canvas>
<XR store={store}>
<mesh position={[0, 1, -1]}>
<boxGeometry />
<meshBasicMaterial color="blue" />
</mesh>
</XR>
</Canvas>
</>
)
}
Its documentation covers controllers, hands, teleport, anchors, hit testing, layers, object detection and DOM overlay. Gestures and body tracking are listed as roadmap items, not shipped features.
Fiber version 9 pairs with React 19, and version 8 with React 18. Version 10 is in alpha and adds WebGPU support, according to the project's docs. WebGPU is the newer browser graphics API that follows WebGL.
The weak point is the learning load. You need to know both React and three.js.
Best fit: teams that already build with React. Our React Three Fiber VR tutorial walks through a first scene.
Babylon.js
Babylon.js is a full engine, not only a renderer. The same project maintains a GUI package (@babylonjs/gui), a physics plugin for the Havok engine and the Playground, a code editor that runs in the browser. It is Apache 2.0 licensed and free. The current major version is 9, and point releases ship very often: 9.38.0 came out on the day this article was written.
Babylon.js has more XR built in than three.js. One call sets up an enter button, controllers, a laser pointer for selecting things and teleport:
const xr = await scene.createDefaultXRExperienceAsync();
A features manager switches on the rest. The documentation lists hand tracking, layers, teleportation, body tracking and movement. The AR page adds hit testing, anchors, plane detection, light estimation, depth sensing and DOM overlay. Several of these, such as plane detection and depth sensing, are marked experimental. Babylon.js can also render WebXR through WebGPU, which the docs label experimental too.
The weak point is a smaller community than three.js, going by the npm download numbers above. For a head to head, see three.js vs Babylon.js for VR.
Best fit: games and apps that need physics, UI and XR features without choosing ten packages.
A-Frame
A-Frame lets you write a VR scene as HTML tags. This page is a complete scene, shortened from the example in its documentation:
<html>
<head>
<script src="https://aframe.io/releases/1.8.0/aframe.min.js"></script>
</head>
<body>
<a-scene>
<a-box position="-1 0.5 -3" rotation="0 45 0" color="#4CC3D9"></a-box>
<a-sky color="#ECECEC"></a-sky>
</a-scene>
</body>
</html>
Under the tags it is three.js with an entity-component system. That is a pattern where objects are empty containers and behavior comes from small reusable parts attached to them. The 1.8.0 documentation lists components for hand tracking and hand grabbing, AR hit testing, anchors, real-world meshing and layers. A built-in inspector opens on any scene with Ctrl+Alt+I.
A-Frame is still maintained, but it moves slowly. Version 1.8.0 came out in June 2026 and is the only release of 2026 so far. The one before it, 1.7.1, is from April 2025. Version 1.8.0 ships three.js r184, while three.js itself is at r187. Physics, teleport and multiplayer are not in the core. They come from community components, which you should check for recent updates before you rely on them.
Best fit: learning, teaching, 360 degree tours and prototypes. Our article on whether A-Frame is still worth learning goes deeper.
PlayCanvas
PlayCanvas is an open-source engine with a visual editor that runs in the browser. The engine is MIT licensed and renders with WebGPU or WebGL 2.
The editor is where the price is. The free plan allows unlimited public projects and teammates on them, with 1 GB of storage. Private projects need the Personal plan at $15 a month, with 10 GB. The Organization plan costs $50 per seat a month, with 50 GB. If you cancel, private projects lock until you resubscribe or make them public. You can also use the engine alone, with no editor and no fee.
XR coverage is broad. The manual lists anchors, persistent anchors, depth sensing, DOM overlay, hand tracking, hit testing, image tracking, light estimation, mesh detection and plane detection.
The weak points are that the editor lives in the cloud behind an account, and that free projects are public.
Best fit: teams with artists and designers who want to work in an editor, not in code.
Wonderland Engine
Wonderland Engine is a desktop editor plus a runtime written in C++ and compiled to WebAssembly. WebAssembly is a compact code format that browsers run at close to native speed. You script behavior in JavaScript or TypeScript. The editor runs on Windows, macOS and Linux.
The documentation has quick start guides for VR, AR and mixed reality on Meta Quest. We did not find a single page that lists every supported WebXR feature.
It is not open source. The standard license is free until all your Wonderland projects together earn $120,000 in a year. Revenue above that carries a 10% royalty. A seated license with no royalty is also sold, at a price you have to ask for. The latest editor is 1.6.1.
The weak points are the closed source and a small community. You cannot fix an engine bug yourself. Its npm API package had about 500 downloads in the week of 19 to 25 November 2026, the lowest in this list.
Best fit: studios that want a desktop editor workflow like Unity's and accept a royalty. Wonderland advertises native-level performance, but publishes no benchmark on the pages we read.
Needle Engine
Needle Engine is a runtime built on three.js with exporters for Unity and Blender. You build the scene in an editor you already know and export it to the web. You can also use it from code or as a needle-engine web component. Custom behavior is written in TypeScript.
XR is one component. Adding the WebXR component gives a scene VR and AR support. Needle also says it supports AR on iPhone and iPad through App Clips, Apple's small apps that open without an install.
It is not open source. The free Basic license covers evaluation and non-commercial projects. Needle's FAQ says commercial use requires a valid license, which in practice means Pro. We could not confirm the current Pro price, so check Needle's pricing page. On the Basic license the Needle branding button must stay visible in the menu.
One detail to know: on npm, the latest tag points to a 6.0 alpha as of November 2026. The stable line is 5.1.
Best fit: Unity or Blender users who want a web build without learning a new editor.
Newer: Meta's Immersive Web SDK
Meta's Immersive Web SDK, IWSDK for short, is the newest entry. It combines three.js rendering with an entity-component system. It includes locomotion, grabbing, spatial audio, Havok physics, scene understanding and a spatial UI language. Scene understanding means reading the walls, floor and furniture the headset has mapped. It is MIT licensed, and its site says Meta recommends it for 3D web projects. Version 1.1.0 was published on 13 November 2026.
It ships with IWER, an emulator that runs your scene in a desktop browser, so you can start with no headset. See how to test WebXR without a headset for that workflow.
The weak point is age. The npm package first appeared in September 2025, so it has had far less time to gather tutorials than the older tools.
How to choose a WebXR framework
Start from what you already know, then look at what you are building.
- You know HTML and little else: A-Frame. Move on when you hit its limits.
- You know JavaScript and want control: three.js.
- Your team writes React: React Three Fiber with @react-three/xr.
- You want physics, UI and teleport out of the box: Babylon.js, or IWSDK if you prefer three.js underneath.
- You want a visual editor in the browser with teammates: PlayCanvas.
- You want a desktop editor built for the web, and a royalty is fine: Wonderland Engine.
- Your scene already lives in Unity or Blender: Needle Engine.
- You must stay fully open source: three.js, React Three Fiber, Babylon.js, A-Frame, IWSDK or the PlayCanvas engine.
If you do not want to write code at all, Turbl takes a written description and has AI build the WebXR app. You open it in the Meta Quest browser. It suits small games and walk-through spaces. It is single player only, and it gives you a share link, not a store app. If you want to learn how VR code works, or need control over every line, use one of the frameworks above.
FAQ
What is the best WebXR framework for beginners?
A-Frame is the easiest start because a scene is a few HTML tags. If you already know JavaScript, three.js or Babylon.js will take you further. Babylon.js needs less setup for VR, because one call adds controllers and teleport.
Is three.js or Babylon.js better for WebXR?
Babylon.js has more XR features built in, such as teleport, hand tracking and AR helpers. three.js has about 100 times the npm downloads and more tools built on top of it. Choose Babylon.js for a complete engine and three.js for control.
Are WebXR frameworks free?
three.js, React Three Fiber, Babylon.js, A-Frame, IWSDK and the PlayCanvas engine are open source and free. The PlayCanvas editor charges for private projects. Wonderland Engine takes a 10% royalty above $120,000 revenue a year. Needle Engine needs a paid license for commercial use. Prices are as of November 2026.
Do I need a framework to use WebXR?
No. WebXR is a browser API and you can call it directly. You would then write all the 3D rendering yourself with WebGL or WebGPU, the browser's low-level graphics APIs. A framework gives you the renderer, model loading and controller handling ready made.
Can I use Unity to make WebXR apps?
Of the tools in this article, only Needle Engine works with Unity. It exports a Unity scene to a web app built on three.js. Wonderland Engine and PlayCanvas offer a similar editor workflow, but with their own editors.
Which WebXR framework is fastest on Meta Quest?
We found no independent, current benchmark that covers all of them, so no answer is confirmed. Wonderland Engine advertises native-level performance from its WebAssembly runtime, but that is the vendor's claim. Your scene matters in every framework: the number of draw calls, the triangle count and the texture sizes. A draw call is one instruction to the graphics chip to draw a batch of triangles.
Sources
- three package metadata, npm registry
- three weekly downloads, npm downloads API, read 26 November 2026
- @babylonjs/core weekly downloads, npm downloads API, read 26 November 2026
- WebXRManager, three.js docs
- VRButton, three.js docs
- XRButton, three.js docs
- React Three Fiber introduction, Poimandres
- @react-three/xr introduction, Poimandres
- @react-three/xr store tutorial, Poimandres
- @react-three/fiber package metadata, npm registry
- @react-three/xr package metadata, npm registry
- Introduction to WebXR, Babylon.js documentation
- WebXR experience helpers, Babylon.js documentation
- WebXR selected features, Babylon.js documentation
- WebXR augmented reality features, Babylon.js documentation
- Using a physics engine, Babylon.js documentation
- The Babylon GUI, Babylon.js documentation
- Babylon.js Editor, community project hosted by Babylon.js
- @babylonjs/core package metadata, npm registry
- A-Frame 1.8.0 introduction, A-Frame
- A-Frame 1.8.0 release post, A-Frame
- Pricing and plans, PlayCanvas
- XR capabilities, PlayCanvas developer site
- PlayCanvas Engine, PlayCanvas developer site
- playcanvas package metadata, npm registry
- Wonderland Engine pricing, Wonderland
- Wonderland Engine downloads, Wonderland
- Wonderland Engine home page, Wonderland
- Wonderland Engine getting started, Wonderland
- Wonderland Editor listing, Flathub
- @wonderlandengine/api package metadata, npm registry
- VR and AR with Needle Engine, Needle
- Needle Engine FAQ, Needle
- Needle Engine license file, Needle Tools via unpkg
- @needle-tools/engine package metadata, npm registry
- Immersive Web SDK overview, Meta Horizon OS Developers
- Immersive Web SDK site, Meta
- @iwsdk/core package metadata, npm registry