A-Frame is a browser framework for 3D, augmented reality, and virtual reality scenes using HTML and an entity-component model on top of three.js. It targets WebXR-capable browsers on headsets, desktops, and smartphones.
Overview
A-Frame lowers the setup work for WebXR by bundling three.js plumbing so scenes can start from a script include and HTML markup. Declarative tags make scenes approachable for web developers, educators, and artists who already work with HTML.
Under the hood it uses an entity-component architecture: reusable components attach to entities while JavaScript, DOM APIs, three.js, WebGL, and WebXR remain available for custom logic. Built-in components cover geometry, materials, lights, animation, models, raycasting, shadows, spatial audio, and tracked controllers, with additional behaviors available from the community.
Scenes run on headsets that support WebXR, and also on ordinary desktops and phones when no headset is present. A built-in visual 3D inspector offers a workflow comparable to browser developer tools.
You can load the minified build from a CDN, install via npm, or work locally with HTTPS when testing in a headset on the same network.
Key features
- Declarative HTML scene markup
- Entity-component on three.js
- Built-in geometries and materials
- WebXR cross-headset support
- Visual 3D scene inspector
- Positional audio and controllers
- Community component ecosystem
- Desktop and smartphone fallback
Use cases
- Browser VR and AR experiences
- Interactive 3D web scenes
- WebXR demos without heavy boilerplate