Skip to content

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

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-xr-glasses-and-headsets-public

Install

logicpacks pack use xr-glasses-and-headsets-public/xr-target-readiness
get_pack xr-glasses-and-headsets-public/xr-target-readiness

The 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

  1. Run python3 code/xr_ready.py <site-dir> on the built site.
  2. Fix every FAIL: secure origin, session from a click handler, local-floor fallback to local, xr-spatial-tracking allowed in the Permissions-Policy (needed when the page is in an iframe), a viewport meta tag.
  3. Deploy (Cloudflare Pages is fine) and open on the headset (Quest: Meta Quest Browser; Vision Pro: Safari).
  4. For local testing on Quest use adb reverse tcp:8080 tcp:8080 so 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).