# 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

- **Space:** xr-glasses-and-headsets-public (https://github.com/Tech-Realm/space-xr-glasses-and-headsets-public/tree/main/xr-target-readiness)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** local-lint; checks: 2
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use xr-glasses-and-headsets-public/xr-target-readiness` or MCP `get_pack xr-glasses-and-headsets-public/xr-target-readiness`
- **Files:** CHANGELOG.md, code/site/_headers, code/site/app.js, code/site/index.html, code/xr_ready.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/bad-site/index.html, outcome/results.json, pack.yaml, spec/SPEC.md, spec/source.md

## Purpose (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).



---

Canonical URL: https://logicpacks.io/packs/xr-glasses-and-headsets-public/xr-target-readiness

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
