# xrblocks **Repository Path**: mirrors_google/xrblocks ## Basic Information - **Project Name**: xrblocks - **Description**: XR Blocks is a lightweight, cross-platform library for rapidly prototyping advanced XR and AI experiences. - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-10-01 - **Last Updated**: 2025-12-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # XR Blocks [](https://www.npmjs.com/package/xrblocks) [](https://bundlephobia.com/result?p=xrblocks)  #### JavaScript library for rapid XR and AI prototyping [Site](https://xrblocks.github.io/) — [Manual](https://xrblocks.github.io/docs/) — [Templates](https://xrblocks.github.io/docs/templates/Basic/) — [Demos](https://xrblocks.github.io/docs/samples/ModelViewer/) — [YouTube](https://www.youtube.com/watch?v=75QJHTsAoB8) — [arXiv](https://arxiv.org/abs/2509.25504) — [Blog](https://research.google/blog/xr-blocks-accelerating-ai-xr-innovation/)
### Description **XR Blocks** is a lightweight, cross-platform library for rapidly prototyping advanced XR and AI experiences. Built upon [three.js](https://threejs.org), it targets Chrome v136+ with WebXR support on Android XR (e.g., [Galaxy XR](https://www.samsung.com/us/xr/galaxy-xr/galaxy-xr/)) and also includes a powerful desktop simulator for development. The framework emphasizes a user-centric, developer-friendly SDK designed to simplify the creation of immersive applications with features like: - **Hand Tracking & Gestures:** Access advanced hand tracking, custom gestures with TensorFlow Lite / PyTorch models, and interaction events. - **Gesture Recognition:** Opt into pinch, open-palm, fist, thumbs-up, point, and spread detection with `options.enableGestures()`, tune providers or thresholds, and subscribe to `gesturestart`/`gestureupdate`/`gestureend` events from the shared subsystem. - **World Understanding:** Present samples with depth sensing, geometry-aware physics, and object recognition with Gemini in both XR and desktop simulator. - **AI Integration:** Seamlessly connect to Gemini for multimodal understanding and live conversational experiences. - **Cross-Platform:** Write once and deploy to both XR devices and desktop Chrome browsers. We welcome all contributors to foster an AI + XR community! Read our [blog post](https://research.google/blog/xr-blocks-accelerating-ai-xr-innovation/) and [white paper](https://arxiv.org/abs/2509.25504) for a visionary roadmap. ### Usage XR Blocks can be imported directly into a webpage using an importmap. This code creates a basic XR scene containing a cylinder. When you view the scene, you can pinch your fingers (in XR) or click (in the desktop simulator) to change the cylinder's color. Check out [this live demo](https://xrblocks.github.io/docs/templates/Basic/) with simple code below: ```html