Packs / xr-glasses-and-headsets-public
xr-target-readiness
Check a web app is ready for Quest Browser and Vision Pro Safari (HTTPS, user-gesture session start, reference-space fallback, permissions policy, viewport) before testing on a headset
Install
logicpacks pack use xr-glasses-and-headsets-public/xr-target-readinessget_pack xr-glasses-and-headsets-public/xr-target-readinessThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
local-lint - Checks: 2 in
outcome/checks.yaml - Code:
site/_headerssite/app.jssite/index.htmlxr_ready.py - Tools: python3
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
Catch the common reasons a WebXR page fails on a headset with a static lint, so headset testing time is spent on the experience, not setup.
Steps
- Run
python3 code/xr_ready.py <site-dir>on the built site. - Fix every FAIL: secure origin, session from a click handler,
local-floorfallback tolocal,xr-spatial-trackingallowed in the Permissions-Policy (needed when the page is in an iframe), a viewport meta tag. - Deploy (Cloudflare Pages is fine) and open on the headset (Quest: Meta Quest Browser; Vision Pro: Safari).
- For local testing on Quest use
adb reverse tcp:8080 tcp:8080so http://localhost works (secure context).
Edge cases
- Embedded in an iframe: the parent must
allow="xr-spatial-tracking". - Vision Pro: WebXR immersive-vr with natural input (gaze + pinch arrives as transient-pointer).
Don'ts
- Don't test only in the desktop WebXR emulator.
- Don't serve over plain http from a LAN IP (not a secure context).