google/xrblocks

XR Blocks is a lightweight WebXR + AI library for rapidly prototyping advanced AI + XR experiences.

What it solves

XR Blocks simplifies the complex process of building immersive XR (Extended Reality) applications that integrate AI. It provides a unified, cross-platform framework that allows developers to create interactive 3D experiences that run on both specialized XR hardware and standard desktop browsers without needing separate codebases.

How it works

Built on top of the Three.js library, XR Blocks provides a high-level SDK that abstracts away the difficulties of handling spatial input and AI integration. It includes a built-in desktop simulator for rapid testing, handles hand and head gesture recognition, and provides a spatial UI system. For AI features, it connects directly to Gemini for multimodal understanding, allowing developers to build conversational, context-aware XR applications.

Who it’s for

This library is designed for developers and researchers looking to prototype and build AI-native XR applications. It is particularly useful for those who want to leverage AI agents, gesture-based interactions, and spatial computing without managing low-level hardware APIs.

Highlights

  • Cross-platform support for Android XR devices and desktop Chrome browsers.
  • Advanced gesture recognition for hands (pinch, palm, fist, etc.) and head movements (nod, shake).
  • Built-in spatial UI components like buttons, sliders, and flex-layout panels.
  • Seamless integration with Gemini for conversational AI and multimodal scene understanding.
  • Includes a desktop simulator to test XR interactions without needing a headset.
  • Provides a dedicated benchmark (GenXR-Bench) for evaluating AI coding agents in XR development.

Related

  • Project
  • Project
  • Project
  • Project
  • Project