haathWebXR

Examples

The examples live in the examples folder on GitHub. The browser examples need no install step: each page loads haath from the repo's dist/ and Three.js or IWER from a CDN through an import map.

git clone https://github.com/sma1692/haath.git
cd haath
npm install
npm run examples

Then open http://localhost:5173/examples/.

01: Three.js #

A plain Three.js WebXR scene. It covers the per-frame update(), reading signs, punch and slap hits on orbs with testHandSphere(), and a thumbs-up hold with HoldRecognizer to reset. Needs a headset with hand tracking, or example 04.

02: IWSDK systems #

Code-only systems for @iwsdk/core: HandSystem owns the engine, MenuSystem handles double clap and hold-to-confirm, and CombatSystem does contact hits. Copy them into a project made with npm create @iwsdk@latest.

03: Pose playback (no headset) #

Synthetic 25-joint hands go through updateFromPoses(). Pick a pose for each hand, trigger a punch, slap, or double clap, and watch haath.state update. The live demo on the home page is this example.

04: PC hand emulator #

Example 01 in a desktop browser. IWER emulates a Quest 3 with hands, and @treefour/haath/emulator adds the hand panels and keyboard control.

Testing on a Quest #

WebXR needs a secure context. localhost works, but a LAN IP needs HTTPS. Over USB, forward the port and open localhost in the Quest browser:

adb reverse tcp:5173 tcp:5173

Last updated 2026-11-16