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
/**
* Demo widget fixtures
* --------------------
* IDs prefixed with `wdgt_demo_` resolve to these baked-in fixtures so the
* /widgets gallery, /w/<id> share pages, and "Open in Studio" template flow
* all work without seeding a real DB row. Keep ids in sync with
* /public/widgets-gallery/showcase.json.
*
* Avatar files are served from /public: no R2 round-trip, no auth.
*/
const CZ = '/avatars/cz.glb';
const SOLDIER = '/animations/soldier.glb';
const ROBOT = '/animations/robotexpressive.glb';
const MICHELLE = '/avatars/michelle.glb';
const XBOT = '/avatars/xbot.glb';
const REALISTIC_M = '/avatars/realistic-male.glb';
const REALISTIC_F = '/avatars/realistic-female.glb';
function fixture({ id, type, name, config, modelUrl }) {
return {
id,
user_id: null,
avatar_id: null,
type,
name,
config,
is_public: true,
view_count: 0,
created_at: '2025-01-01T00:00:00Z',
updated_at: '2025-01-01T00:00:00Z',
avatar: {
id: null,
name: 'Demo avatar',
thumbnail_url: null,
model_url: modelUrl,
visibility: 'public',
},
};
}
export const DEMO_WIDGETS = {
wdgt_demo_turntab: fixture({
id: 'wdgt_demo_turntab',
type: 'turntable',
name: 'Turntable Showcase',
modelUrl: CZ,
config: {
background: '#0a0a0a',
accent: '#8b5cf6',
caption: '',
showControls: false,
autoRotate: true,
rotationSpeed: 0.8,
envPreset: 'neutral',
},
}),
wdgt_demo_animgal: fixture({
id: 'wdgt_demo_animgal',
type: 'animation-gallery',
name: 'Animation Gallery',
modelUrl: ROBOT,
config: {
background: '#0a0a0a',
accent: '#8b5cf6',
caption: '',
showControls: false,
autoRotate: false,
envPreset: 'neutral',
defaultClip: 'Idle',
loopAll: false,
showClipPicker: true,
},
}),
wdgt_demo_talking: fixture({
id: 'wdgt_demo_talking',
type: 'talking-agent',
name: 'Talking Agent',
modelUrl: CZ,
config: {
background: '#0a0a0a',
accent: '#8b5cf6',
caption: '',
showControls: false,
autoRotate: false,
envPreset: 'neutral',
greeting: 'Hi! What would you like to know?',
brainProvider: 'none',
proxyURL: '',
},
}),
wdgt_demo_passprt: fixture({
id: 'wdgt_demo_passprt',
type: 'passport',
name: 'ERC-8004 Passport',
modelUrl: CZ,
config: {
background: '#0a0a0a',
accent: '#8b5cf6',
caption: '',
showControls: false,
autoRotate: true,
rotationSpeed: 0.6,
envPreset: 'neutral',
chain: 'base-sepolia',
agentId: null,
wallet: null,
showReputation: true,
showRecentFeedback: true,
layout: 'portrait',
},
}),
wdgt_demo_hotspot: fixture({
id: 'wdgt_demo_hotspot',
type: 'hotspot-tour',
name: 'Hotspot Tour',
modelUrl: CZ,
config: {
background: '#0a0a0a',
accent: '#8b5cf6',
caption: '',
showControls: false,
autoRotate: false,
envPreset: 'neutral',
hotspots: [
{
id: 'head',
label: 'Head',
position: [0, 0.75, 0.1],
body: "The agent's head: face mesh, eyes, and the empathy layer that drives six real-time emotion states.",
},
{
id: 'chest',
label: 'Chest',
position: [0.15, 0.2, 0.18],
body: 'Torso anchor: the bone the camera tracks during conversation, and where overlay badges (ERC-8004 passport, reputation) attach.',
},
{
id: 'hand',
label: 'Hand',
position: [-0.35, -0.15, 0.1],
body: "Right hand: drives the wave, point, and reach gestures triggered by the agent's skill layer (wave, lookAt, playClip).",
},
],
},
}),
wdgt_demo_pumpfun: fixture({
id: 'wdgt_demo_pumpfun',
type: 'pumpfun-feed',
name: 'Pump.fun Live Feed',
modelUrl: SOLDIER,
config: {
background: '#0a0a0a',
accent: '#8b5cf6',
caption: '',
showControls: false,
autoRotate: true,
envPreset: 'neutral',
kind: 'all',
minTier: '',
autoNarrate: true,
maxCards: 8,
},
}),
wdgt_demo_koltrad: fixture({
id: 'wdgt_demo_koltrad',
type: 'kol-trades',
name: 'Smart Money Feed',
modelUrl: CZ,
config: {
background: '#0a0a0a',
accent: '#8b5cf6',
caption: '',
showControls: false,
autoRotate: false,
envPreset: 'neutral',
mint: 'FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump',
limit: 20,
refreshMs: 30_000,
},
}),
wdgt_demo_livetrd: fixture({
id: 'wdgt_demo_livetrd',
type: 'live-trades-canvas',
name: 'Live Trades Canvas',
modelUrl: CZ,
config: {
background: '#0a0a0a',
accent: '#8b5cf6',
caption: '',
showControls: false,
autoRotate: false,
envPreset: 'neutral',
mint: 'FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump',
chain: 'solana',
bg: '#0d0d14',
minUsd: 0,
},
}),
wdgt_demo_bondcrv: fixture({
id: 'wdgt_demo_bondcrv',
type: 'bonding-curve',
name: 'Bonding Curve',
modelUrl: CZ,
config: {
background: '#0a0a0a',
accent: '#8b5cf6',
caption: '',
showControls: false,
autoRotate: true,
rotationSpeed: 0.4,
envPreset: 'neutral',
// $three, the platform token and a real pump.fun mint, so the demo
// shows a live bonding curve. A non-pump mint here has no curve and
// makes the widget poll /api/pump/curve into a permanent 404 loop.
mint: 'FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump',
network: 'mainnet',
refreshMs: 15_000,
showUsd: true,
},
}),
wdgt_demo_walkavt: fixture({
id: 'wdgt_demo_walkavt',
type: 'walking-avatar',
name: 'Walking Avatar',
modelUrl: CZ,
config: {
controls: 'joystick',
environment: 'studio',
autoplay: true,
walkSpeed: 1.0,
bg: 'transparent',
size: 'M',
width: 480,
height: 420,
position: 'inline',
enableNarration: false,
},
}),
// ── Outside-the-box demos ────────────────────────────────────────────────────
wdgt_demo_pitch: fixture({
id: 'wdgt_demo_pitch',
type: 'talking-agent',
name: 'Pitch Bot',
modelUrl: REALISTIC_F,
config: {
background: '#0a0a0a',
accent: '#f59e0b',
caption: '',
showControls: false,
autoRotate: false,
envPreset: 'neutral',
agentTitle: 'AI Rep',
greeting: "Hey! I'm your AI rep. Ask me anything: the roadmap, the team, the product.",
brainProvider: 'none',
proxyURL: '',
chatPosition: 'overlay',
},
}),
wdgt_demo_npc: fixture({
id: 'wdgt_demo_npc',
type: 'talking-agent',
name: 'Quest Guide',
modelUrl: XBOT,
config: {
background: '#0d0d1a',
accent: '#8b5cf6',
caption: '',
showControls: false,
autoRotate: false,
envPreset: 'neutral',
agentTitle: 'Quest Guide',
greeting: 'Greetings, traveler. What quest brings you here today?',
brainProvider: 'none',
proxyURL: '',
chatPosition: 'bottom',
},
}),
wdgt_demo_nightwlk: fixture({
id: 'wdgt_demo_nightwlk',
type: 'walking-avatar',
name: 'Night Drop',
modelUrl: ROBOT,
config: {
controls: 'joystick',
environment: 'night',
autoplay: true,
walkSpeed: 1.2,
bg: '#050510',
size: 'L',
width: 720,
height: 480,
position: 'inline',
enableNarration: false,
},
}),
wdgt_demo_mtnlib: fixture({
id: 'wdgt_demo_mtnlib',
type: 'animation-gallery',
name: 'Motion Archive',
modelUrl: MICHELLE,
config: {
background: '#0a0a0a',
accent: '#f97316',
caption: '',
showControls: false,
autoRotate: false,
envPreset: 'neutral',
defaultClip: '',
loopAll: true,
showClipPicker: true,
},
}),
wdgt_demo_prodstg: fixture({
id: 'wdgt_demo_prodstg',
type: 'turntable',
name: 'Product Stage',
modelUrl: REALISTIC_M,
config: {
background: '#08080f',
accent: '#e2e8f0',
caption: '',
showControls: false,
autoRotate: true,
rotationSpeed: 1.2,
envPreset: 'venice-sunset',
},
}),
};
export function isDemoWidgetId(id) {
return typeof id === 'string' && id.startsWith('wdgt_demo_');
}
export function getDemoWidget(id) {
return DEMO_WIDGETS[id] || null;
}