Back to Skills

aframe-webxr

Declarative web framework for building browser-based 3D, VR, and AR experiences using HTML and entity-component architecture. Use this skill when creating WebXR applications, VR experiences, AR experiences, 360-degree media viewers, or immersive web content with minimal JavaScript. Triggers on tasks involving A-Frame, WebXR, VR development, AR development, entity-component-system, declarative 3D, or HTML-based 3D scenes. Built on Three.js with accessible HTML-first approach.

731stars122forksUpdated 8/16/2026

Security Assessment

Safe(95/100)
Security Score95/100

About aframe-webxr

aframe-webxr is a development skill for building browser-based 3D, VR, and AR experiences with A-Frame, the declarative WebXR framework built on Three.js that uses HTML and an entity-component-system architecture. It addresses the challenge of creating immersive web content with minimal JavaScript by teaching A-Frame's HTML-first primitives, scene setup, camera rigs, lighting, materials, and controller interactions.

The skill provides a thorough SKILL.md covering core concepts (entities, components, systems, primitives), scene and camera configuration including VR controller rigs, the four light types, and material and texture handling. It ships supporting assets and references: a components library, a WebXR guide, an API reference, a starter A-Frame project (HTML, CSS, JS), and example patterns for VR interaction (two-handed grabbing, inventory systems), AR object placement with hit testing, 360-degree media, multi-user networking, physics, and performance optimization. Two Python helper scripts (a scene generator and a component builder) assist scaffolding. The code examples reference the A-Frame library from its official CDN, standard for web projects.

It is aimed at web developers, creative technologists, and prototypers who want cross-platform WebXR that runs on desktop, mobile, and headsets. Typical uses include VR experiences, AR placement tools, 360-degree image and video viewers, and adding declarative 3D content to existing web pages. The content is entirely educational front-end development material with no risky behavior.

FAQ

What is A-Frame?

A declarative web framework for building 3D, VR, and AR experiences using HTML and an entity-component-system architecture, built on top of Three.js with an accessible HTML-first approach.

When should I use this skill?

When creating WebXR applications, VR or AR experiences, 360-degree media viewers, or immersive web content with minimal JavaScript, especially anything involving A-Frame primitives or entity-component patterns.

What starter material is included?

A starter A-Frame project (index.html, style.css, main.js), a components library and API reference, a WebXR guide, example patterns for VR/AR/360/physics/networking, and Python scene-generator and component-builder helper scripts.

What platforms does it target?

Cross-platform WebXR: desktop, mobile, and VR/AR headsets, using A-Frame's default injected camera, look controls, and WASD controls plus optional VR controller rigs.

Can it do AR hit testing?

Yes. Examples show AR object placement with hit testing, rotation controls, undo, and a measurement tool using the webxr hit-test and dom-overlay features.

All Files

11 files
assets/examples/README.md24.1 KB
View
assets/starter_aframe/README.md5.8 KB
View
references/components_library.md16.9 KB
View
scripts/scene_generator.py25.9 KB
View
assets/starter_aframe/index.html2.6 KB
View
assets/starter_aframe/style.css0.8 KB
View
references/webxr_guide.md22.6 KB
View
SKILL.md26.7 KB
View
assets/starter_aframe/main.js2.3 KB
View
references/api_reference.md25.9 KB
View
scripts/component_builder.py22.7 KB
View

Install aframe-webxr

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill