# OpenXR and WebXR are standardizing spatial computing APIs across devices

**Date:** 2025-12-18  
**Tags:** XR, VR, AR  
**URL:** https://kelexine.is-a.dev/til/openxr-webxr-standards

---

TIL: OpenXR and WebXR are standardizing spatial computing APIs across devices. OpenXR provides a unified native API for XR hardware (Quest, Vision Pro, etc.), while WebXR enables browser-based spatial experiences. This means write-once-deploy-anywhere for XR apps.


```javascript
// WebXR session setup - works across browsers
navigator.xr.requestSession('immersive-ar', {
  requiredFeatures: ['hit-test', 'dom-overlay']
}).then(session => {
  // Same code runs on Quest, Vision Pro browsers
  session.requestReferenceSpace('local-floor');
});
```




---

*This content is available at [kelexine.is-a.dev/til/openxr-webxr-standards](https://kelexine.is-a.dev/til/openxr-webxr-standards)*
