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
fix(routes): repoint /pages/* dests to flattened paths so /a/me et al. resolve
nirholas7bd76fdafb1b
diff --git a/_smoke3.mjs b/_smoke3.mjsdeleted file mode 100644index 3cf3fecd6..000000000--- a/_smoke3.mjs+++ /dev/null@@ -1,17 +0,0 @@-import puppeteer from 'puppeteer';-const URL='http://localhost:3003/embed?mode=walking&width=320&height=480&env=beach&bg=transparent&controls=joystick&autoplay=true';-const b=await puppeteer.launch({headless:'new',args:['--no-sandbox']});-const p=await b.newPage();-const errs=[];-p.on('console',m=>{if(m.type()==='error')errs.push(m.text());});-p.on('pageerror',e=>errs.push(e.message));-await p.goto(URL,{waitUntil:'networkidle2',timeout:30000});-await p.click('.ee-picker');-await p.waitForSelector('.agp-card',{timeout:10000});-await p.click('.agp-card');-await p.waitForSelector('.agp-cta:not([disabled])',{timeout:5000});-await p.click('.agp-cta');-await new Promise(r=>setTimeout(r,1500)); // let preview iframe boot the walk runtime-const trigText=await p.$eval('.ee-picker',e=>e.innerText.replace(/\s+/g,' ').trim());-console.log(JSON.stringify({trigText,errs},null,2));-await b.close();diff --git a/vercel.json b/vercel.jsonindex 5d30b299e..16a010d9b 100644--- a/vercel.json+++ b/vercel.json@@ -954,7 +954,7 @@"dest": "/marketplace.html"},{- "src": "/marketplace/tools/([^/]+)",+ "src": "/marketplace/(tools|skills|animations|onchain)/([^/]+)","dest": "/marketplace.html"},{diff --git a/vite.config.js b/vite.config.jsindex 17f23d335..4e23f45d7 100644--- a/vite.config.js+++ b/vite.config.js@@ -44,19 +44,47 @@ function discoverDashboardNextInputs() {return entries;}+// In a GitHub Codespace the browser reaches the dev server through the+// forwarded HTTPS domain (`<name>-3000.app.github.dev`) on port 443, not+// localhost:3000. Vite's HMR client otherwise tries to open a websocket to+// the raw host:port and both attempts fail ("[vite] failed to connect to+// websocket"), killing live-reload. Point the HMR client at the forwarded+// domain over wss/443 when those env vars are present; no-op locally.+const CODESPACE_HMR =+ process.env.CODESPACE_NAME && process.env.GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN+ ? {+ host: `${process.env.CODESPACE_NAME}-3000.${process.env.GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN}`,+ protocol: 'wss',+ clientPort: 443,+ }+ : undefined;+const appConfig = {server: {+ // Bind to 0.0.0.0 so the Codespace port-forwarder can reach the server.+ host: true,+ ...(CODESPACE_HMR ? { hmr: CODESPACE_HMR } : {}),proxy: {'/r2-proxy': {target: 'https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev',changeOrigin: true,rewrite: (path) => path.replace(/^\/r2-proxy/, ''),},+ // PostHog serves its loader bundle and remote config from the assets+ // host under both /static/* and /array/* — route BOTH there. Without+ // the /array rule, `/ingest/array/<token>/config.js` falls through to+ // us.i.posthog.com (which doesn't serve it) and the browser refuses+ // the empty-MIME response: "not executable".'/ingest/static': {target: 'https://us-assets.i.posthog.com',changeOrigin: true,rewrite: (path) => path.replace(/^\/ingest/, ''),},+ '/ingest/array': {+ target: 'https://us-assets.i.posthog.com',+ changeOrigin: true,+ rewrite: (path) => path.replace(/^\/ingest/, ''),+ },'/ingest': {target: 'https://us.i.posthog.com',changeOrigin: true,@@ -677,7 +705,7 @@ const appConfig = {filePath = resolve(root, 'pages/marketplace.html');else if (!filePath && /^\/marketplace\/avatars\/[^/]+\/?$/.test(path))filePath = resolve(root, 'pages/marketplace.html');- else if (!filePath && /^\/marketplace\/tools\/[^/]+\/?$/.test(path))+ else if (!filePath && /^\/marketplace\/(tools|skills|animations|onchain)\/[^/]+\/?$/.test(path))filePath = resolve(root, 'pages/marketplace.html');// /agents/:id → rich detail page (UUID expected, validated client-side)else if (!filePath && /^\/agents\/[^/]+\/?$/.test(path))