Skip to content

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.

chore(branding): drop RPM env var, rename demo entry, add Resend config

overstepping6bfd154aabd2
diff --git a/.env.example b/.env.example
index f865288b7..47d10d92e 100644
--- a/.env.example
+++ b/.env.example
@@ -62,12 +62,6 @@ GROQ_API_KEY=
# OpenAI — used for gpt-4o-mini fallback. Get a key at https://platform.openai.com
OPENAI_API_KEY=
-# Ready Player Me subdomain for the avatar creator iframe (client-side).
-# Register one at https://studio.readyplayer.me — e.g. "your-app" yields
-# https://your-app.readyplayer.me. If unset, falls back to the public
-# `demo.readyplayer.me` builder.
-VITE_RPM_SUBDOMAIN=demo
-
# Privy wallet auth (client-side — get app ID from https://dashboard.privy.io)
VITE_PRIVY_APP_ID=
# Privy app ID (server-side — for verifying identity tokens in /api/auth/privy/verify)
@@ -207,6 +201,20 @@ ZAUTH_API_KEY=
# Set to "1" to enable verbose [zauthSDK:*] logs in Vercel.
ZAUTH_DEBUG=
+# ── Resend (transactional email) ─────────────────────────────────────────────
+# Powers: account welcome, email verification codes, password reset, subscription
+# confirmations, dunning, and newsletter contact capture (/api/newsletter-subscribe).
+# Sign up at https://resend.com → API Keys → Create.
+RESEND_API_KEY=
+# Sender identity. Domain MUST be verified in Resend (SPF + DKIM DNS records)
+# before sends will succeed. Use Resend's [email protected] while verifying.
+EMAIL_FROM=three.ws <[email protected]>
+# Optional reply-to (defaults to no Reply-To header).
+EMAIL_REPLY_TO=
+# Audience UUID for /api/newsletter-subscribe. Without it, the endpoint silently
+# no-ops. Create in Resend → Audiences, then paste the UUID here.
+RESEND_AUDIENCE_ID=
+
# ── GitHub OAuth (social memory seeding) ─────────────────────────────────────
# Create an OAuth App at https://github.com/settings/developers.
# Callback URL: https://your-domain.com/api/auth/github/callback
diff --git a/api/_lib/demo-avatars.js b/api/_lib/demo-avatars.js
index da963fb82..7b0bacdb5 100644
--- a/api/_lib/demo-avatars.js
+++ b/api/_lib/demo-avatars.js
@@ -117,7 +117,7 @@ export const DEMO_AVATARS = [
demoItem({ id: "avatar_demo_t_minimalistic-modern-bedroom", slug: "demo-minimalistic-modern-bedroom", name: "Minimalistic Modern Bedroom", description: "Minimalist modern bedroom interior.", tags: ["scene","interior","architecture"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/minimalistic_modern_bedroom.glb", image: null, sortDate: "2025-03-28T22:00:00.000Z", attribution: {"handle":"threejs","displayName":"three.js examples","url":"https://github.com/mrdoob/three.js","license":"MIT"}, author: {"handle":"threejs","displayName":"three.js examples","profileUrl":"https://github.com/mrdoob/three.js"} }),
demoItem({ id: "avatar_demo_t_nemetona", slug: "demo-nemetona", name: "Nemetona", description: "Nemetona character bust.", tags: ["humanoid","character"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/nemetona.glb", image: null, sortDate: "2025-03-28T21:00:00.000Z", attribution: {"handle":"threejs","displayName":"three.js examples","url":"https://github.com/mrdoob/three.js","license":"MIT"}, author: {"handle":"threejs","displayName":"three.js examples","profileUrl":"https://github.com/mrdoob/three.js"} }),
demoItem({ id: "avatar_demo_t_pool", slug: "demo-pool", name: "Pool", description: "Pool scene with water reflections.", tags: ["scene","water","environment"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/pool.glb", image: null, sortDate: "2025-03-28T20:00:00.000Z", attribution: {"handle":"threejs","displayName":"three.js examples","url":"https://github.com/mrdoob/three.js","license":"MIT"}, author: {"handle":"threejs","displayName":"three.js examples","profileUrl":"https://github.com/mrdoob/three.js"} }),
- demoItem({ id: "avatar_demo_t_readyplayer-me", slug: "demo-readyplayer-me", name: "Readyplayer.Me", description: "Ready Player Me avatar sample — humanoid character ready for VR/AR.", tags: ["humanoid","avatar","character"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/readyplayer.me.glb", image: null, sortDate: "2025-03-28T19:00:00.000Z", attribution: {"handle":"threejs","displayName":"three.js examples","url":"https://github.com/mrdoob/three.js","license":"MIT"}, author: {"handle":"threejs","displayName":"three.js examples","profileUrl":"https://github.com/mrdoob/three.js"} }),
+ demoItem({ id: "avatar_demo_t_humanoid", slug: "demo-humanoid-avatar", name: "Humanoid Avatar", description: "Humanoid avatar sample — three.ws-compatible character ready for VR/AR.", tags: ["humanoid","avatar","character"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/readyplayer.me.glb", image: null, sortDate: "2025-03-28T19:00:00.000Z", attribution: {"handle":"threejs","displayName":"three.js examples","url":"https://github.com/mrdoob/three.js","license":"MIT"}, author: {"handle":"threejs","displayName":"three.js examples","profileUrl":"https://github.com/mrdoob/three.js"} }),
demoItem({ id: "avatar_demo_t_rolex", slug: "demo-rolex", name: "Rolex", description: "Detailed Rolex-style timepiece with metallic finish.", tags: ["object","watch","luxury","pbr"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/rolex.glb", image: null, sortDate: "2025-03-28T18:00:00.000Z", attribution: {"handle":"threejs","displayName":"three.js examples","url":"https://github.com/mrdoob/three.js","license":"MIT"}, author: {"handle":"threejs","displayName":"three.js examples","profileUrl":"https://github.com/mrdoob/three.js"} }),
demoItem({ id: "avatar_demo_t_space-ship-hallway", slug: "demo-space-ship-hallway", name: "Space Ship Hallway", description: "Sci-fi spaceship corridor scene.", tags: ["scene","scifi","interior"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/space_ship_hallway.glb", image: null, sortDate: "2025-03-28T17:00:00.000Z", attribution: {"handle":"threejs","displayName":"three.js examples","url":"https://github.com/mrdoob/three.js","license":"MIT"}, author: {"handle":"threejs","displayName":"three.js examples","profileUrl":"https://github.com/mrdoob/three.js"} }),
demoItem({ id: "avatar_demo_t_steampunk-camera", slug: "demo-steampunk-camera", name: "Steampunk Camera", description: "Steampunk-style camera with brass fittings and leather wrap.", tags: ["object","steampunk","pbr"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/steampunk_camera.glb", image: null, sortDate: "2025-03-28T16:00:00.000Z", attribution: {"handle":"threejs","displayName":"three.js examples","url":"https://github.com/mrdoob/three.js","license":"MIT"}, author: {"handle":"threejs","displayName":"three.js examples","profileUrl":"https://github.com/mrdoob/three.js"} }),
diff --git a/scripts/gen-demo-avatars.mjs b/scripts/gen-demo-avatars.mjs
index bdfe9d7b3..b810212a8 100644
--- a/scripts/gen-demo-avatars.mjs
+++ b/scripts/gen-demo-avatars.mjs
@@ -181,7 +181,7 @@ const THREEJS_META = {
'steampunk_camera': { tags: ['object', 'steampunk', 'pbr'], desc: 'Steampunk-style camera with brass fittings and leather wrap.' },
'rolex': { tags: ['object', 'watch', 'luxury', 'pbr'], desc: 'Detailed Rolex-style timepiece with metallic finish.' },
'godrays_demo': { tags: ['scene', 'lighting', 'demo'], desc: 'God rays / volumetric lighting demonstration scene.' },
- 'readyplayer.me': { tags: ['humanoid', 'avatar', 'character'], desc: 'Ready Player Me avatar sample — humanoid character ready for VR/AR.' },
+ 'readyplayer.me': { tags: ['humanoid', 'avatar', 'character'], desc: 'Humanoid avatar sample — three.ws-compatible character ready for VR/AR.', displayName: 'Humanoid Avatar', slug: 'demo-humanoid-avatar' },
'bath_day': { tags: ['scene', 'animated', 'character'], desc: 'Bath day animated scene — quirky character moment.' },
'coffeeMug': { tags: ['object', 'pbr'], desc: 'Ceramic coffee mug.' },
'coffeemat': { tags: ['object', 'machine', 'pbr'], desc: 'Coffee machine with detailed dispenser.' },