Sharing · October 2026

VibeXR

An interaction framework for vibe-coded WebXR. From a link to hands-on XR in one HTML file.

Rongxuan Mu · rongxuanmu.com

01 · WebXR

The browser's door into headsets

WebXR is the web standard that lets a page take over a headset: open a link, tap Enter, you are in.

Sessions

VR and AR

immersive-vr for full immersion, immersive-ar for the room through passthrough.

Input

Hands to gaze

Head pose, controllers, tracked hands with 25 joints, and gaze-and-pinch on Vision Pro.

Reach

No install

Quest, PICO, Vision Pro, Galaxy XR and Android XR browsers. A URL is the whole distribution.

02 · Why it matters

The fastest loop from idea to headset

Ideasaid out loud
One HTML filewritten with AI
Push or pasteGitHub Pages · CodePen
Headsetrefresh and try
  • Minutes, not builds: edit, refresh in the headset, feel it.
  • Shareable: a link works on someone else's device the same day.
  • AI-friendly: models write HTML and three.js fluently; a single file is easy to read, diff and paste.

03 · What's out there

Good engines, thin interaction

FrameworkStrong atWhat you still build yourself
three.jsRendering, a light WebXR managerRays, grabs, pokes, UI, hand logic: all of it
A-FrameHTML-like scenes, quick startsPolished near / far interaction across inputs
Babylon.jsA full engine with XR featuresWeight and an engine's way of doing things
React Three Fiber + xrPointer events in XR, ReactAn npm / bundler toolchain around every idea
Unity WebXR exportFamiliar tools and assetsHeavy builds, slow iteration in a browser

04 · The problems

Every prototype rebuilds the same things

  • Interaction is left to you: ray, pinch, grab, poke, two-hand scale and buttons, written again for each project.
  • Inputs diverge: hands, controllers, Vision Pro's gaze pointer and a desktop mouse each behave differently.
  • VR-first habits: passthrough is an afterthought, and "VR only" makes no sense on see-through glasses.
  • Toolchains get in the way: npm, bundlers and frameworks, while AI works best with one file you can paste.
  • No desk testing: without a headset on, you can't try the interaction at all.

05 · Our approach

Start from interaction that already feels right

1

file

One HTML file on three.js. Paste it into CodePen or push it to a site: that's the build.

1

Enter button

AR with passthrough by default; headsets without AR quietly get VR. No "VR only".

1

interaction model

Hands, controllers, gaze and mouse all point, pinch, poke and grab, near or far.

∞

worlds

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

Four inputs, one interactor, the same events

Handpinch · poke · grab
Controllertrigger · grip · stick
GazeVision Pro pinch
Mouse · keysdesktop preview
Interactorhover decides:
near touch or far ray

Interactables

draggable · twoHand · precise · constrain · translateOnly · multi

Events

press · drag · tap · longpress · release · statechange

UI kit

Panels, buttons, sliders, labels, a palm-up hand menu, a sketch board, a log.

07 · Build on it

A world is a few lines

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

Countless worlds, one framework

09 · What we learned

Rules that keep it working everywhere

Passthrough first

Things live in your room: a stage on the real floor or a desk at your height, measured from your head.

Diorama scale

Big worlds become tabletop or floor miniatures you can walk around, with time sped up so they don't read as slow motion.

The console rides along

Panels follow the stage they control, and each can be dragged by its own bar.

Light enough for glasses

Generated geometry, no heavy assets, so standalone headsets and puck-tethered see-through glasses keep up.

10 · Workflow

How these were made

Voice notein the headset
AI coding agentedits the world
Headless testsscreenshots · physics checks
/dev pagetry in a headset
Releasesite + CodePen
  • The framework is the stable part: the agent only writes the world, so interaction quality never regresses.
  • Rules live in the repo: "one Enter button, passthrough first" is written down once and followed every time.
  • Every change is shown before it ships: screenshots, measured trajectories, a test page.

Demo · thank you

Put on a headset and open a link

Any WebXR browser: Quest, PICO, Vision Pro, Galaxy XR. On a laptop, everything runs as a desktop preview.

Rongxuan Mu · rongxuanmu.com

← Framework 1 / 12 .pptx ↓

VibeXR · Sharing Slides

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