Sharing · October 2026
An interaction framework for vibe-coded WebXR. From a link to hands-on XR in one HTML file.
Rongxuan Mu · rongxuanmu.com
01 · WebXR
WebXR is the web standard that lets a page take over a headset: open a link, tap Enter, you are in.
immersive-vr for full immersion, immersive-ar for the room through passthrough.
Head pose, controllers, tracked hands with 25 joints, and gaze-and-pinch on Vision Pro.
Quest, PICO, Vision Pro, Galaxy XR and Android XR browsers. A URL is the whole distribution.
02 · Why it matters
03 · What's out there
| Framework | Strong at | What you still build yourself |
|---|---|---|
| three.js | Rendering, a light WebXR manager | Rays, grabs, pokes, UI, hand logic: all of it |
| A-Frame | HTML-like scenes, quick starts | Polished near / far interaction across inputs |
| Babylon.js | A full engine with XR features | Weight and an engine's way of doing things |
| React Three Fiber + xr | Pointer events in XR, React | An npm / bundler toolchain around every idea |
| Unity WebXR export | Familiar tools and assets | Heavy builds, slow iteration in a browser |
04 · The problems
05 · Our approach
1
One HTML file on three.js. Paste it into CodePen or push it to a site: that's the build.
1
AR with passthrough by default; headsets without AR quietly get VR. No "VR only".
1
Hands, controllers, gaze and mouse all point, pinch, poke and grab, near or far.
∞
A project supplies only its world. The framework brings the hands, UI and feel.
The tuning comes from XR OS interaction design work: when the ray appears, how far a far grab travels, how big a poke volume is, how a hover outline reads on a messy model.
06 · How it works
draggable · twoHand · precise · constrain · translateOnly · multi
press · drag · tap · longpress · release · statechange
Panels, buttons, sliders, labels, a palm-up hand menu, a sketch board, a log.
07 · Build on it
const Hello = { id: "hello", init(ctx) { const { root, THREE } = ctx; root.add(new THREE.HemisphereLight(0xffffff, 0x222222, 2)); const cube = new THREE.Mesh(new THREE.BoxGeometry(0.1, 0.1, 0.1), new THREE.MeshStandardMaterial()); cube.position.set(0, 1.3, -0.5); root.add(cube); // grab near or far; two hands rotate and scale ctx.add(cube, { draggable: true, twoHand: true }) // one event, whether a hand, a controller, a gaze pinch or a mouse did it .on("tap", () => ctx.log("tapped")); }, }; app.worlds.register(Hello);
08 · Built on it








09 · What we learned
Things live in your room: a stage on the real floor or a desk at your height, measured from your head.
Big worlds become tabletop or floor miniatures you can walk around, with time sped up so they don't read as slow motion.
Panels follow the stage they control, and each can be dragged by its own bar.
Generated geometry, no heavy assets, so standalone headsets and puck-tethered see-through glasses keep up.
10 · Workflow
Demo · thank you
Any WebXR browser: Quest, PICO, Vision Pro, Galaxy XR. On a laptop, everything runs as a desktop preview.
Rongxuan Mu · rongxuanmu.com
WebXR, why it's hard to build for, and the VibeXR approach · 12 slides
or present in this window · download .pptx · ← → Space to move · F full screen · A auto