1 of 18

WebSpatial

2 of 18

Agenda

Demo

API

SDK

Background

1

2

3

4

3 of 18

Unified Rendering Engine

OS understands content structure (not just final pixels)

Works in Shared Space (multi-app coexistence)

Contrast: WebXR takes full exclusive view

Extend Mainstream HTML/CSS

React, Vue, Next.js gain spatial features

Existing websites transition without breaking 2D use

Progressive enhancement: same code, screen or spatial

Minimal, Systematic API Extension

Build on existing CSS/HTML/JS patterns

Keep 2D mindset, add Z-axis capabilities

Similar to SwiftUI's visionOS additions

4 of 18

5 of 18

6 of 18

7 of 18

8 of 18

Take a look at this example: https://github.com/webspatial/sample-techshop

Change Material

Add Depthl

9 of 18

API Proposal

2

Spatial Transform

1

Depth Layout

Material Background

4

Spatial Events

5

Install-Free PWAs

6

Spatial Scenes

7

3D Containers

3

10 of 18

API Proposal

1

Depth Layout

  • Layout along Z-axis, not just stacking order
  • element.offsetBack in JS (like offsetTop/offsetLeft)
  • "Cube model" not just "box model"

11 of 18

API Proposal

2

Spatial Transform

  • Opt-in to true 3D transforms (preserves existing behavior)
  • Works with existing transform syntax

12 of 18

API Proposal

3

Material Background

background-material: translucent

background-material: transparent

background-material: regular | assist

background-material: thick | embed

background-material: thin | highlight

13 of 18

API Proposal

4

Spatial Events

High-level events: spatialclick, spatialdrag, spatialrotate, spatialmagnify

14 of 18

API Proposal

6

Spatial Scenes

15 of 18

API Proposal

7

3D Containers

16 of 18

API Proposal

5

Install-free PWA

Spatial features work in browser tab OR installed PWA

  • Extends existing Web App Manifest (no new standard)
  • Browser decides presentation (tab with spatial, or standalone)
  • Developer writes one codebase

Result: Keep URL-based, no-install access

17 of 18

SDK: Open Source Implementation

We built cross-platform SDK to:

  • Let developers use APIs TODAY (don't wait for standards)
  • Gather real usage data for standards discussion
  • Test implementation approaches across platforms

18 of 18

SDK: Open Source Implementation

What's Working Now

Platform support:

  • βœ… visionOS (shipping apps in App Store)
  • 🚧 Android XR (in progress)
  • πŸ“‹ Quest (planned)

Framework integration:

  • βœ… React + Next.js, Remix, etc.
  • βœ… Works with existing web build tools (Vite, Webpack)
  • πŸ“‹ Vue, Svelte (planned)

API implementation status:

  • βœ… Depth Layout, Spatial Transform, Material Background
  • βœ… Spatial Scenes (Window, Volume)
  • βœ… 3D Containers (<reality>, <entity>)
  • 🚧 Spatial Events (in testing)
  • πŸ“‹ Full Stage scenes (planned)