# Introducing Three-Live: turning AI-generated Three.js into interactive 3D, AR, and WebXR across web and mobile

DevFeed: [Introducing Three-Live: turning AI-generated Three.js into interactive 3D, AR, and WebXR across web and mobile](<https://devfeed.tech/articles/introducing-three-live-turning-ai-generated-three-js-into-interactive-3d-ar-and-webxr-across-web-and-mobile-116355.md>)

Original publisher: [Read original article](<http://opensource.googleblog.com/2026/11/introducing-three-live-ai-generated-3d-ar-webxr.html>)

Author: Google Open Source (noreply@blogger.com)

Published: 2026-11-03T19:30:00Z

Content type: release

Language: en

Sources: [Google Open Source Blog](<https://devfeed.tech/sources/google-open-source-blog.md>)

Topics: [3D](<https://devfeed.tech/topics/3d.md>), [Three.js](<https://devfeed.tech/topics/threejs.md>), [AI Sandbox](<https://devfeed.tech/topics/ai-sandbox.md>), [interactive web graphics](<https://devfeed.tech/topics/interactive-web-graphics.md>), [WebXR](<https://devfeed.tech/topics/webxr.md>), [3D visualization](<https://devfeed.tech/topics/3d-visualization.md>), [3D rendering](<https://devfeed.tech/topics/3d-rendering.md>), [real-time 3D](<https://devfeed.tech/topics/real-time-3d.md>)

Tags: [3d](<https://devfeed.tech/tags/3d.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-authored](<https://devfeed.tech/tags/ai-authored.md>), [ai-generated-code](<https://devfeed.tech/tags/ai-generated-code.md>), [also](<https://devfeed.tech/tags/also.md>), [android](<https://devfeed.tech/tags/android.md>), [android-xr](<https://devfeed.tech/tags/android-xr.md>), [animations](<https://devfeed.tech/tags/animations.md>), [antigravity](<https://devfeed.tech/tags/antigravity.md>), [apache](<https://devfeed.tech/tags/apache.md>), [apache-2-0](<https://devfeed.tech/tags/apache-2-0.md>), [api](<https://devfeed.tech/tags/api.md>), [ar](<https://devfeed.tech/tags/ar.md>), [interactive](<https://devfeed.tech/tags/interactive.md>), [interactive-3d](<https://devfeed.tech/tags/interactive-3d.md>), [live](<https://devfeed.tech/tags/live.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [rust](<https://devfeed.tech/tags/rust.md>), [three-js](<https://devfeed.tech/tags/three-js.md>), [web](<https://devfeed.tech/tags/web.md>), [webxr](<https://devfeed.tech/tags/webxr.md>)

## AI overview

Three-Live is an Apache 2.0 Developer Preview that compiles untrusted Three.js scripts into portable GLB or USDZ scenes for rendering through web, Android, and Apple platform graphics pipelines. The web sandbox removes network APIs before execution; native and command-line builds use the Rust-based Boa compiler. Both impose execution timeouts and geometry quotas. The excerpt reports compilation typically takes 2-5 ms. Web packages provide a custom WebGL2 renderer and AR handoff; Android targets Filament and Scene Viewer, while iOS and macOS target RealityKit and AR Quick Look. Inline client scripts require an explicit opt-in. The viewer-only web build omits scripting and AR handoff. Three-Live is described as an unofficial, simpler companion to the more feature-rich XR Blocks; it is currently a Developer Preview.

## Source excerpt

by Jonathan Bingham, AI Foundations Want to add AI-generated 3D or XR to your web or mobile app? Unsure how to get started? That's why we created the open source cross-platform project Three-Live--written entirely by Google Antigravity, in partnership with one former software engineer turned product manager. (Three-Live is not an officially supported Google product.) You can think of Three-Live as a simple, unofficial companion to the more capable and feature-rich XR Blocks, Android XR's web-based cross-platform framework for XR. The goal of Three-Live is to make it easy to get started with 3D and XR that's AI-authored in Three.js. Three-Live combines the familiar developer experience of <model-viewer> and native mobile libraries with a sandboxed compiler for on-device or server-side compilation of untrusted LLM-generated JavaScript. Large language models (LLMs) have gotten remarkably good at writing software, and that includes generating 3D code in procedural Three.js JavaScript that describes objects, materials, lighting, and animations. But runtime AI-generated code is not trusted, and requires security sandboxing for safe execution. Also, mobile devices provide native support for 3D and XR rendering, and forcing them to run a webview limits the performance. Today, we are excited to release Three-Live (v1.0.0, Developer Preview) under the Apache 2.0 license. It's a lightweight, cross-platform open source library and on-device compiler that bridges the gap between AI-generated Three.js code and high-performance 3D, AR, and WebXR rendering across web, Android, and iOS. How Three-Live works Rather than use Three.js as a browser-only rendering loop, Three-Live treats a declarative subset of the Three.js API as a universal, portable scene description language: Sandboxed execution with strict resource quotas: On the web, untrusted scripts execute inside an isolated Web Worker (with an optional opaque-origin sandboxed <iframe> tier) where network primitives (fetch, XMLHt