Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
render(clip): honour CHROMIUM_EXECUTABLE_PATH so evidence runs work off a workstation
nirholas41416f9b5f65
diff --git a/api/_lib/render-clip.js b/api/_lib/render-clip.jsindex f111d0d89..fdda94a81 100644--- a/api/_lib/render-clip.js+++ b/api/_lib/render-clip.js@@ -35,6 +35,22 @@ let _browserPromise = null;async function getBrowser() {if (_browserPromise) return _browserPromise;_browserPromise = (async () => {+ // A workstation already has a chromium (the one Playwright installs for the+ // test suite). Pointing at it keeps this renderer runnable locally without+ // downloading the 100 MB serverless pack, which is what makes an evidence+ // run (scripts/avatar-likeness-audit.mjs) possible off a Cloud Run box.+ // Same env var and same contract as embed-doctor.js. Unset in production,+ // so the serverless pack below stays the deployed path.+ const local = process.env.CHROMIUM_EXECUTABLE_PATH;+ if (local) {+ const { default: puppeteer } = await import('puppeteer-core');+ return puppeteer.launch({+ args: ['--no-sandbox', '--enable-unsafe-swiftshader', '--disable-dev-shm-usage'],+ defaultViewport: { width: 1024, height: 1024, deviceScaleFactor: 1 },+ executablePath: local,+ headless: true,+ });+ }const [{ default: puppeteer }, { default: chromium }] = await Promise.all([import('puppeteer-core'),import('@sparticuz/chromium-min'),