A-Frame VR in 2026: is it still worth learning?
By the Turbl team · · 10 min read
Yes. A-Frame VR is still worth learning if you know some HTML and want a working VR scene in the browser today. The project is maintained: version 1.8.0 came out on June 23, 2026. For a large game, or for a job in 3D web development, learn three.js or React Three Fiber instead, or right after.
An A-Frame scene is a plain web page. You write tags like <a-box>. The framework draws them in 3D and adds a button that starts VR.
What A-Frame is
A-Frame is a free, open source web framework for building VR and AR scenes with HTML. It is released under the MIT license. It started inside Mozilla, and version 0.1.0 shipped in December 2015. The 1.8.0 documentation says it is now maintained by its co-creators at a company called Supermedium.
Three ideas explain how it works.
It sits on three.js. three.js is the most downloaded JavaScript library for drawing 3D graphics in a browser. A-Frame does not replace it. Every A-Frame tag creates three.js objects underneath, and you can reach them from your own code at any time.
It uses WebXR. WebXR is the browser standard that lets a web page talk to a headset: read head and controller positions, and draw a picture for each eye. A-Frame calls it for you. If the standard is new to you, read what WebXR is and how it works first.
It is built on entities and components. This pattern is common in game engines. An entity is an empty object in the scene. A component is one reusable piece of behavior or appearance, such as a shape, a material, a light or a sound. You build things by attaching components to entities. In A-Frame, an entity is an HTML tag and a component is an HTML attribute.
So <a-box color="red"> is a shortcut. A-Frame calls these shortcuts primitives. The long form is an <a-entity> with a geometry component and a material component.
A-Frame VR tutorial: a minimal scene
You need a text editor and a browser. There is no build step, which means no tool has to process your files before the browser can run them. Save this as index.html. It is the starter scene from the A-Frame 1.8.0 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-sphere position="0 1.25 -5" radius="1.25" color="#EF2D5E"></a-sphere>
<a-cylinder position="1 0.75 -3" radius="0.5" height="1.5" color="#FFC65D"></a-cylinder>
<a-plane position="0 0 -4" rotation="-90 0 0" width="4" height="4" color="#7BC8A4"></a-plane>
<a-sky color="#ECECEC"></a-sky>
</a-scene>
</body>
</html>
Positions are in meters, written as x y z. Negative z is in front of you. Rotations are in degrees.
The docs advise against opening the file directly with a file:// address, because links to other files may not work. Run a local server instead. If you have Python, type python3 -m http.server in a terminal in the same folder. Then open http://localhost:8000 in a desktop browser on the same computer.
You can look around by dragging the mouse and move with the W, A, S and D keys. A-Frame adds the camera, the lights and these controls by default.
To see the scene in a headset, the page must be served over HTTPS. The A-Frame FAQ gives the reason: WebXR requires a secure context, and without one the VR button does not appear. The simplest way is to upload the file to a static host that serves HTTPS, then open that address in the headset browser. The docs name Neocities and GitHub Pages.
You can also check a scene on a desktop with an emulator. See how to test WebXR without a headset.
Add movement
The built-in animation component changes a value over time. This makes the box turn once every 4 seconds:
<a-box position="-1 0.5 -3" color="#4CC3D9"
animation="property: rotation; to: 0 360 0; loop: true; dur: 4000; easing: linear"></a-box>
Add controllers and hands
One line gives you a tracked controller with a laser pointer. Another pair of lines lets players pick things up with a pinch when the headset tracks their hands. Mark what can be picked up with grabbable.
<a-entity laser-controls="hand: right"></a-entity>
<a-entity hand-tracking-grab-controls="hand: left"></a-entity>
<a-entity hand-tracking-grab-controls="hand: right"></a-entity>
<a-box grabbable position="0 1.2 -0.5" width="0.2" height="0.2" depth="0.2" color="tomato"></a-box>
How pinch detection works under the hood is covered in the WebXR hand tracking guide.
Write your own component
When you need behavior that no tag offers, you write it in JavaScript as a component. Register it in a script tag after the A-Frame script and before the <a-scene> tag.
<script>
AFRAME.registerComponent('spin', {
schema: { speed: { type: 'number', default: 45 } },
tick: function (time, timeDelta) {
const radians = THREE.MathUtils.degToRad(this.data.speed);
this.el.object3D.rotation.y += radians * timeDelta / 1000;
}
});
</script>
Use it as an attribute: <a-box spin="speed: 90"></a-box>.
The schema lists the settings the component accepts. The tick function runs once per frame, and timeDelta is the time since the last frame in milliseconds. this.el.object3D is the three.js object behind the tag. The docs recommend changing position, rotation and scale there, because it skips the cost of setAttribute.
The two lines inside tick are plain three.js code. A-Frame only supplies the wrapper around them. Most custom components look like this.
Is A-Frame still maintained in 2026?
Yes, but releases are slow. These dates come from the project's changelog. The npm registry, the public package index for JavaScript, shows the same months.
| Version | Released | Main change |
|---|---|---|
| 0.1.0 | December 2015 | First public version |
| 1.0.0 | December 2019 | WebXR support, experimental AR mode |
| 1.6.0 | May 2024 | Memory management and performance |
| 1.7.0 | February 20, 2025 | ES modules and import maps, experimental post-processing, first WebGPU support |
| 1.7.1 | April 1, 2025 | Bug fixes |
| 1.8.0 | June 23, 2026 | three.js r184, 22 bug fixes, 16 enhancements |
Version 1.8.0 is the latest as of November 2026. Its fixes include the orientation of the hand model on Meta Quest controllers. Another fix makes the layer component work on Apple Vision Pro, which does not support WebXR layers. The changelog entry credits 16 contributors.
The gaps are also real:
- Almost 15 months passed between 1.7.1 and 1.8.0. A fix can wait many months for a numbered release.
- It trails three.js. A-Frame 1.8.0 bundles three.js r184. three.js published 0.187.0 (r187) on October 30, 2026. New three.js features arrive in A-Frame late.
- The docs show their age. The 1.8.0 docs still tell you to start by remixing a project on Glitch. Glitch announced that it would shut down project hosting on July 8, 2025. The FAQ still mentions Firefox with WebVR, the older standard that WebXR replaced.
- Fewer developers install it. In the week ending November 25, 2026, npm counted about 36,000 downloads of
aframe. It counted about 38.5 million forthreeand about 82,000 for@react-three/xr, the VR package for React Three Fiber. These numbers undercount A-Frame, because a page that loads it with a script tag never touches npm.
What A-Frame is good at
Teaching. A student who knows a little HTML gets a VR scene in 14 lines. There is no bundler (a tool that packs code files together) and no account to create. You can read someone else's scene with "View source".
Quick scenes. A 360° photo viewer, a simple gallery, a product on a pedestal, a prototype of a room layout. Each of these is a handful of tags and needs little or no JavaScript.
Headset coverage out of the box. The docs list Meta Quest, Apple Vision Pro, the Pico lineup, Lynx-R1 and Valve Index among supported devices. Controller models, laser pointers and hand tracking are built in. The scene also runs on a phone or desktop without a headset.
A built-in inspector. Press Ctrl + Alt + I on any A-Frame scene (Ctrl + Option + I on a Mac). A visual tool opens where you can move objects and change values live. It inspects scenes. It is not a full editor for building them.
A pattern that transfers. Game engines such as Unity also build objects from components. The habit you learn in A-Frame carries over.
Where A-Frame struggles
Bigger games. HTML is a good way to describe a static scene. It is a poor way to hold game state, such as scores, waves of enemies and inventory. Once most of your work is game logic, you spend your time in JavaScript components, and the tags stop helping.
Performance takes care. A draw call is one instruction to the graphics chip to draw one batch of triangles. The Best Practices page gives a rule of thumb: stay under 300 draw calls. It also says each unoptimized object is generally one draw call, so a scene built from many small primitives reaches the limit quickly. The docs name two fixes. One is merging static meshes into one. The other is instancing, which draws many copies of one shape in a single call. The WebXR performance guide for Meta Quest explains them.
Physics and multiplayer are add-ons. They come from community components, not the core. Check each one's last release before you depend on it. As of November 2026, npm shows these last publish dates. networked-aframe (multiplayer): March 2026. @c-frame/aframe-physics-system (physics): November 2025. aframe-react, an old React wrapper: February 2018.
It does not fit modern front-end habits by default. Most tutorials assume one HTML file and global variables. Since 1.7.0 you can import A-Frame as an ES module, the standard JavaScript module format. The official docs still teach the single-file style, and they have no TypeScript or React guide.
When to move to three.js or React Three Fiber
| Your situation | Better pick |
|---|---|
| First VR scene, you know HTML | A-Frame |
| Classroom, workshop or game jam | A-Frame |
| Static tour, gallery or 360° viewer | A-Frame |
| You need custom shaders or rendering | three.js |
| You want the newest three.js features | three.js |
| Your team already builds with React | React Three Fiber |
| A game with lots of state and many screens | three.js or React Three Fiber |
| You want a visual editor | PlayCanvas or Wonderland Engine |
React Three Fiber is a layer that lets you write three.js scenes as React components. The scene still reads as nested tags, as in A-Frame. React adds its tools for managing state. The React Three Fiber VR tutorial builds a first scene with it.
Moving on does not waste what you learned. Positions, rotations, meshes, materials, lights and the render loop are the same concepts in all three. For the other options, see WebXR frameworks compared.
A sensible path: spend a weekend with A-Frame, write two or three components, and switch when the tags get in your way.
If your goal is the finished scene and not the skill, you can also skip code. AI builders such as Turbl build a WebXR project from a text description and give you a link that opens in the headset browser. You will not learn A-Frame or three.js that way. Turbl projects are also single player only.
FAQ
Is A-Frame dead?
No. A-Frame 1.8.0 was released on June 23, 2026. It updated three.js to r184 and fixed 22 bugs. Releases are slow, though. The one before it, 1.7.1, came out in April 2025.
Is A-Frame free?
Yes. A-Frame is open source under the MIT license. You can use it in personal and commercial projects without paying.
Do I need to know JavaScript to use A-Frame?
Not for a first scene. Shapes, colors, images, 3D models, simple animations and controllers all work with HTML tags and attributes. You need JavaScript as soon as you want your own game logic, which you write as components.
Does A-Frame work on Meta Quest?
Yes. The A-Frame docs list Meta Quest as a supported device. Open the page in the headset's browser and press the VR button. The page must be served over HTTPS. A-Frame includes components for Meta Touch controllers and for hand tracking.
Is A-Frame better than three.js?
It is easier, not more capable. A-Frame is built on three.js and hides the setup: renderer, camera, VR session and controllers. three.js gives you full control and has far more users: about 1,000 times the weekly npm downloads in November 2026. Many people start with A-Frame and move to three.js later.
What is the latest version of A-Frame?
Version 1.8.0, released on June 23, 2026, is the latest as of November 2026. Load it with the script URL https://aframe.io/releases/1.8.0/aframe.min.js or install the aframe package from npm.
Sources
- Introduction, A-Frame 1.8.0 documentation, A-Frame
- A-Frame 1.8.0 release post, A-Frame blog
- A-Frame 1.7.0 release post, A-Frame blog
- A-Frame changelog, aframevr on GitHub
- Installation, A-Frame
- Writing a Component, A-Frame
- Component API, A-Frame
- Developing with three.js, A-Frame
- Best Practices, A-Frame
- FAQ, A-Frame
- animation component, A-Frame
- laser-controls component, A-Frame
- hand-tracking-grab-controls component, A-Frame
- Hosting and Publishing, A-Frame
- Entity-Component-System, A-Frame
- Visual Inspector and Dev Tools, A-Frame
- aframe package data, npm registry
- three package data, npm registry
- Weekly downloads of aframe, npm
- Weekly downloads of three, npm
- Weekly downloads of @react-three/xr, npm
- networked-aframe package data, npm registry
- @c-frame/aframe-physics-system package data, npm registry
- aframe-react package data, npm registry
- Important Changes are Coming to Glitch, Glitch