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
demos: rotate negative login reactions, redirect success to /marketplace
nirholasafb6f9a40ce9
diff --git a/public/demos/login-2.html b/public/demos/login-2.htmlindex 3aac11bc3..fda469b58 100644--- a/public/demos/login-2.html+++ b/public/demos/login-2.html@@ -460,7 +460,7 @@if (password.value === 'admin') {setAnimation('celebrate', { loop: false, hold: true });- setTimeout(() => { window.location.href = '/app'; }, 1400);+ setTimeout(() => { window.location.href = '/marketplace'; }, 1400);} else {password.classList.add('error');disapprove();diff --git a/public/demos/login.html b/public/demos/login.htmlindex 3ad3b431f..64aa7f323 100644--- a/public/demos/login.html+++ b/public/demos/login.html@@ -400,13 +400,20 @@gsap.to(avatar.rotation, { y: 0, duration: 0.25, overwrite: true });}+ const FAIL_CLIPS = ['reaction', 'defeated', 'angry'];+ let lastFailPick = null;+function disapprove() {- // One-shot reaction, then fall back to idle.- setAnimation('reaction', { loop: false, hold: false });- // reaction.json is ~1.5s; schedule the fade back to idle just before it ends+ let pick;+ do {+ pick = FAIL_CLIPS[Math.floor(Math.random() * FAIL_CLIPS.length)];+ } while (pick === lastFailPick && FAIL_CLIPS.length > 1);+ lastFailPick = pick;+ setAnimation(pick, { loop: false, hold: false });+ const dur = (clips[pick]?.duration || 1.4) * 1000;setTimeout(() => {- if (currentAction === actions.reaction) setAnimation('idle', { loop: true });- }, 1300);+ if (currentAction === actions[pick]) setAnimation('idle', { loop: true });+ }, dur - 150);}// Wire each declared target@@ -459,8 +466,8 @@}if (password.value === 'admin') {- setAnimation('celebrate', { loop: false, hold: true });- setTimeout(() => { window.location.href = '/app'; }, 1400);+ setAnimation('silly', { loop: true });+ setTimeout(() => { window.location.href = '/marketplace'; }, 2000);} else {password.classList.add('error');disapprove();@@ -470,7 +477,7 @@});// ── Load avatar + animations ──────────────────────────────────────- const CLIPS = ['idle', 'walk', 'lookdown', 'covereyes', 'reaction', 'celebrate'];+ const CLIPS = ['idle', 'walk', 'lookdown', 'covereyes', 'reaction', 'silly', 'defeated', 'angry'];new GLTFLoader().load('/avatars/cz.glb', gltf => {avatar = gltf.scene;