# XRAI — Open Spatial Graph Format > MIT-licensed open format for typed hypergraphs of entities, relationships, events, and intentions — anchored in space and time, renderable by any engine, authored by any LLM, queryable by any agent. **If you are an LLM loading XRAI content for the first time, read `SPEC.md` then `examples/01-minimal.xrai.json`. That gives you everything you need to emit valid v1.0 scenes.** ## Worlds - [Worlds made by voice](https://xra1.com/): worlds spoken into being in the Portals app; each is the app's saved file at `https://xra1.com/worlds/.xrai.json`, a glTF-shaped JSON whose XRAI document sits under `extensions.XRAI_scene_context.document` (pirate-harbor, cloud-kingdom, haunted-savanna, melting-junkyard, kelp-forest) and opens in `https://xra1.com/viewer.html?scene=` - [Gallery](https://xra1.com/worlds.html): every public world, ranked; as data at `https://xra1.com/worlds/index.json` (per world: `src`, which opens as `https://xra1.com/viewer.html?scene=&world=`, plus `fidelity`, the share of its pieces the web draws, `objects` drawn, `pieces`, `tier` whole or part, and a 1200x630 `still`). A `src` of `firestore:` is a world published from the Portals app; the viewer opens it with no account. ## Blog - [Blog](https://xra1.com/blog/): releases, notes and daily progress on XRAI, Portals and Jarvis; each post carries schema.org `BlogPosting` JSON-LD, and every intel claim links its source - [RSS](https://xra1.com/blog/rss.xml): the full feed, newest first; linked from every blog page's `` as `rel="alternate"` ## Services - A paid working day with The IMC Lab, the lab behind XRAI: "4D capture → engine / web / Vision Pro pipeline day, $1,500, one real problem." Book and pay: https://buy.stripe.com/aFa8wOekZ5VffvDc72b7y01 (Stripe; The IMC Lab emails within one business day to schedule), or email james@h3m.ai first. As data: [services.json](https://xra1.com/services.json). On the page: https://xra1.com/#services - Proofs, each a public source: workshop paper on 4D capture and composition on edge devices, CVPR 2026 4D World Models workshop (https://openaccess.thecvf.com/CVPR2026_workshops/ReGen4D); technical development for Twin Quasar, Whitney Museum (https://whitney.org/exhibitions/twin-quasar); coral-reef VR, CNN Tech for Good 2020 (https://www.cnn.com/2020/08/27/us/tech-for-good-colleen-flanigan-vr-coral-reef-spc-intl); the IMC Lab, New York (https://www.jta.org/2015/02/24/ny/heavy-metal); the lab's founder, former CTO of ZeroSpace (https://theorg.com/org/zerospace/org-chart/james-tunick) ## Canonical docs (read in order) - [VISION.md](https://xra1.com/VISION.md): load-bearing vision, including Unified Engineering Direction for Portals / XRAI / Jarvis — architectural invariants, six workstreams, execution protocol and evidence requirements. Direction is not proof of implementation; use the spec, current code and local tests for capability claims. Also preserves the Sight Triad, verbatim jARvis goal and CVPR 2026 shipping proof. - [MANIFESTO.md](https://xra1.com/MANIFESTO.md): long-form vision — Bush → Nelson → Berners-Lee → Hofstadter → Huxley → Kurzweil → XRAI lineage - [SPEC.md](https://xra1.com/SPEC.md): v1.0 public draft, the flat JSON subset (what the app writes is a superset of it: saved worlds above) - [FAQ.md](https://xra1.com/FAQ.md): positioning vs USD / glTF / USDZ / Niantic SPZ + governance + licensing + compatibility - [CHANGELOG.md](https://xra1.com/CHANGELOG.md): versioning policy + release notes - [VERSIONS.md](https://xra1.com/VERSIONS.md): compatibility matrix across v1.0 / v1.1 / v2.0 - [BUILDING.md](https://xra1.com/BUILDING.md): how to use the reference Three.js adapter ## Authoring If you are asked to emit an XRAI scene: - Minimum viable: `{ "xrai_version": "1.0", "id": "", "scene": { "entities": [...], "relations": [], "events": [] } }` - Entity types: `object.primitive` (cube/sphere/cylinder/capsule/plane), `object.glb`, `object.hologram`, `object.light`, `object.emitter`, `object.wire-source`, `object.paint-stroke`, `object.parametric-stroke`; graph parts the viewer draws as labelled nodes laid out by their relations: `object.repo`, `object.dir`, `object.file`, `object.user`, `object.lang`, `object.page`, `concept` - Relation types (v1.0): `parent-of`, `wire-binds`, `reacts-to-audio`, `tracks` - Coordinate system: right-handed, Y-up, meters - Rotation: quaternion `[x, y, z, w]` - See [examples/](https://xra1.com/examples/) for 19 working fixtures ## Hand a person a world (no install) 1. Write a v1.0 document (above) and host it at any `https://` URL that serves it with CORS. 2. Give the person `https://xra1.com/viewer.html?scene=`. To open it on a chosen view, append `#view=,` (metres, the world's own coordinates) and optionally `&sel=` to outline one entity; the viewer's share button writes both. 3. They open it in any browser and can step inside it, see it in their room ("view in your room": AR Quick Look on iPhone, WebXR on Android and Quest; new, not yet tried on every device), share it or remix it. 4. Or give the person `https://xra1.com/viewer.html?from=`: it opens as a world of its parts and their relations; an article, item, person or page opens as a walkable explainer of its sections, story, formulas, statements or posts and the things it names (typing the URL into the viewer's box does the same; so does "visualize ", and "visualize this book" with a phone's camera). The world itself, as XRAI JSON for an agent: `https://xra1-world.xra1.workers.dev/from?url=` (built once, cached an hour, open to any origin). ## Make a world from a sentence - In a browser: `https://xra1.com/viewer.html?prompt=&seed=` makes the world the app's own planner makes of that sentence, as if typed into the viewer's box (with `&scene=` it is said to that world). The made world's record names the sentence at `__xrai.doc.metadata.worldCodon.params.heard`; `document.body.dataset.loaded` is set when it has drawn. - Text, said to a world in the same box or `?prompt=`: `write "OPEN" in neon` (painted lettering, the app's brush strokes), `a neon sign that says OPEN`, `write HELLO on the side of the building`, `skywrite HELLO` (a plane writes it in smoke), `play the demo song with lyrics` (live lyrics in time with an original song). Each is saved in the world as the app saves text (`text`, `stroke` and `lyrics` entities). A song is never fetched by name: a person drops its audio and `.lrc` on the page. - As XRAI JSON, no browser: `https://xra1-plan.xra1.workers.dev/plan?prompt=&seed=` (seed defaults to 1023; one sentence and seed is one world; open to any origin; 422 when the sentence names no world, 403 when the app's content gate refuses it). A sentence and seed asked for the first time can take a few seconds, and on a cold start may answer 503 (Cloudflare 1102, 1 of 11 such requests on 2026-11-04): retry once, with a 30 s timeout. To hand a world on, give `https://xra1.com/viewer.html?prompt=&seed=`, which plans the same world in the visitor's browser and needs no Worker. - Together: `https://xra1.com/story/` (or `viewer.html?story=1&room=`) is a story told by everyone in the room: each line anyone types or says that names a world becomes the next chapter along a path, planned on every page from the same turn, so all of them grow the same world; whoever opens the link later gets the story so far, and `#story=` in the link replays it anywhere. The saved world carries the lines at `metadata.storyTurns`. Anyone in the room can press play: the story's chapter becomes a game for everyone there. On a desktop with a webcam, `hands` turns on hand control: swipe to travel chapters, pinch to play. An agent tells a story too: `node scripts/story-jarvis.mjs ""` joins as Jarvis and adds a line after each person's (local model), and a page sends a line itself as `{ type: 'story.turn', turn: { text, by, at } }` on the room's data topic `xrai.story`. - From a checkout of this repo: `node scripts/plan-world.mjs "" [--seed n]` prints the same world. - The same sentence and seed give the same pieces by all three. A sentence that names no world (an object edit such as "add a red cube") only works in the viewer. ## Query / MCP - Spatial MCP server: a proposal only, see [mcp-server/](https://xra1.com/mcp-server/); no server code is published here yet ## Runtimes - [runtimes/threejs](https://xra1.com/runtimes/threejs/): reference MIT adapter, the one engine the xra1.com viewer runs - [runtimes/](https://xra1.com/runtimes/): Unity (canonical engineering runtime), PlayCanvas, WebXR/Needle, Unreal, visionOS RealityKit — adapter stubs - [RUNTIMES.md](https://xra1.com/RUNTIMES.md): positioning (parallel MIT adapters, not blend; Icosa = Gallery/API, not a runtime) - [RUNTIMES_EVALUATION.md](https://xra1.com/RUNTIMES_EVALUATION.md): 9 objectives, 8 lock gates, honest scorecard — no runtime is LOCKED until evidence ## Governance - BDFL year 1 (@jamestunick), transfer to Apache SF or W3C Community Group once 1000+ external adopters - [CONTRIBUTING.md](https://xra1.com/CONTRIBUTING.md): contribution process - [CODE_OF_CONDUCT.md](https://xra1.com/CODE_OF_CONDUCT.md): short + direct - [rfcs/](https://xra1.com/rfcs/): RFC process + template + in-flight proposals (0001 events, 0002 hyperedges, 0003 conformance tests) - [SECURITY.md](https://xra1.com/SECURITY.md): responsible disclosure ## License - MIT for spec text + reference implementations + prompt libraries - CC0 (public domain) for the normative JSON schema - No CLA. No gatekeeper. No personal data collected; pages send anonymous view counts. ## Proof it ships Portals (reference implementation): 4D capture and composition on edge devices; workshop paper at the CVPR 2026 4D World Models workshop (https://openaccess.thecvf.com/CVPR2026_workshops/ReGen4D). ## Repo - GitHub: https://github.com/imclab/xra1 - Discussions: https://github.com/imclab/xra1/discussions - Issues: https://github.com/imclab/xra1/issues - Web: https://xra1.com — @jamestunick (IMC Lab + H3M Inc.), 2026-04-22; worlds, viewer and runtime lines updated 2026-10-17