Turn AI-generated Three.js into 3D and AR with Google's Three-Live Google released Three-Live on November 3, 2026, an open source Apache 2.0 library in Developer Preview that sandboxes LLM-written Three.js scripts and compiles them to .glb (binary glTF 2.0) and .usdz for rendering on the web via WebGL2, Android via Google Filament, and iOS via RealityKit. The sandbox runs scripts in a Web Worker or an optional opaque-origin iframe, strips network primitives such as fetch, XMLHttpRequest, WebSocket and dynamic import(), and on Android, iOS, macOS and the command line compiles inside an embedded Rust compiler powered by the Boa JavaScript engine; scenes are capped at 1,000 meshes, 100,000 vertices, 300,000 indices and 16 textures. The npm package stood at version 1.2.1 and the latest CLI release at v1.2.0 on November 4, 2026, and the library is still alpha and not an officially supported Google product. Turn AI-generated Three.js into 3D and AR with Google's Three-Live By Flavio https://flaviocopes.com/about/ Tagged: AI https://flaviocopes.com/tags/ai/ Google's Three-Live sandboxes an LLM-written Three.js script and compiles it to glTF and USDZ for the web, Android, and iOS. Google released Three-Live on November 3, 2026. It’s an open source library Apache 2.0, Developer Preview that takes Three.js code, usually written by an LLM, and runs it safely on the web, Android, and iOS. The problem it solves is easy to see. LLMs are already pretty good at writing Three.js scenes. But code generated at runtime is untrusted, and you don’t want to eval it inside your page. On top of that, phones have native 3D and AR engines that a regular WebView can’t touch. So Three-Live treats a subset of the Three.js API as a scene description language. It runs the script inside a sandbox and compiles the output into standard .glb binary glTF 2.0 and .usdz files. From there, each platform renders the scene with its own engine: a small WebGL2 renderer on the web, Google Filament on Android, and RealityKit on iOS. Here is how that pipeline flows: Three-Live is still alpha and not an officially supported Google product. On November 4, 2026, the npm package was at 1.2.1 and the latest CLI release was v1.2.0 . The sandbox How does Three-Live keep untrusted JavaScript from doing damage? On the web, it runs your script in a Web Worker or an optional opaque-origin