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
feat: 3D home animation chips, SIWE proxy domain, MCP v1.0.1 rebrand
nirholas336197fb66a2
diff --git a/.vercelignore b/.vercelignoreindex e6f071e04..7e88c5213 100644--- a/.vercelignore+++ b/.vercelignore@@ -22,6 +22,8 @@ avatarthree-wsxspace-agentagent-voice-chat+agent-protocol-sdk+vendordist-libdist-artifactdiff --git a/agent-payments-sdk/src/evm/transaction.ts b/agent-payments-sdk/src/evm/transaction.tsindex fa8eaebbb..b5dce9e01 100644--- a/agent-payments-sdk/src/evm/transaction.ts+++ b/agent-payments-sdk/src/evm/transaction.ts@@ -38,7 +38,7 @@ export async function buildEvmPaymentTransaction(): Promise<EvmPaymentTransaction> {assertQuoteValid(params.quote);- const chain = getChain(params.quote.fromChainId);+ getChain(params.quote.fromChainId);const headers: Record<string, string> = { "Content-Type": "application/json" };if (apiKey) headers["x-api-key"] = apiKey;diff --git a/agent-payments-sdk/tsconfig.json b/agent-payments-sdk/tsconfig.jsonindex 958f2625a..e56f0a99f 100644--- a/agent-payments-sdk/tsconfig.json+++ b/agent-payments-sdk/tsconfig.json@@ -18,5 +18,10 @@"noUnusedParameters": true},"include": ["src/**/*"],- "exclude": ["node_modules", "dist"]+ "exclude": [+ "node_modules",+ "dist",+ "**/*.test.ts",+ "**/__tests__/**"+ ]}diff --git a/api/_lib/demo-avatars.js b/api/_lib/demo-avatars.jsindex 7b0bacdb5..0a986852b 100644--- a/api/_lib/demo-avatars.js+++ b/api/_lib/demo-avatars.js@@ -40,86 +40,17 @@ function demoItem({ id, slug, name, description, tags, glbUrl, image, sortDate,}export const DEMO_AVATARS = [- demoItem({ id: "avatar_demo_disk_cz", slug: "demo-cz", name: "CZ", description: "Stylized humanoid avatar with idle pose. Ready for chat overlays.", tags: ["humanoid","character"], glbUrl: "https://three.ws/avatars/cz.glb", image: null, sortDate: "2025-04-01T00:00:00.000Z", attribution: {"handle":"three.ws","displayName":"three.ws starter","url":"https://three.ws","license":"CC-BY 4.0"}, author: {"handle":"three.ws","displayName":"three.ws starter","profileUrl":"https://three.ws"} }),- demoItem({ id: "avatar_demo_disk_default-avatar", slug: "demo-default-avatar", name: "Default Avatar", description: "Neutral starter humanoid — a clean base for skinning, retargeting, and accessories.", tags: ["humanoid","starter"], glbUrl: "https://three.ws/avatars/default.glb", image: null, sortDate: "2025-03-31T23:00:00.000Z", attribution: {"handle":"three.ws","displayName":"three.ws starter","url":"https://three.ws","license":"CC-BY 4.0"}, author: {"handle":"three.ws","displayName":"three.ws starter","profileUrl":"https://three.ws"} }),- demoItem({ id: "avatar_demo_disk_robot-expressive", slug: "demo-robot-expressive", name: "Robot Expressive", description: "Expressive robot character with multiple animation clips: idle, walk, run, jump, dance.", tags: ["robot","animated","rigged"], glbUrl: "https://three.ws/animations/robotexpressive.glb", image: null, sortDate: "2025-03-31T22:00:00.000Z", attribution: {"handle":"three.ws","displayName":"three.ws starter","url":"https://three.ws","license":"CC-BY 4.0"}, author: {"handle":"three.ws","displayName":"three.ws starter","profileUrl":"https://three.ws"} }),- demoItem({ id: "avatar_demo_disk_soldier", slug: "demo-soldier", name: "Soldier", description: "Rigged soldier character with locomotion animations baked in.", tags: ["humanoid","animated","rigged"], glbUrl: "https://three.ws/animations/soldier.glb", image: null, sortDate: "2025-03-31T21:00:00.000Z", attribution: {"handle":"three.ws","displayName":"three.ws starter","url":"https://three.ws","license":"CC-BY 4.0"}, author: {"handle":"three.ws","displayName":"three.ws starter","profileUrl":"https://three.ws"} }),- demoItem({ id: "avatar_demo_k_anisotropybarnlamp", slug: "demo-anisotropy-barn-lamp", name: "Anisotropy Barn Lamp", description: "Barn-style lamp with brushed-metal anisotropic shading on the housing.", tags: ["object","lighting","pbr"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/AnisotropyBarnLamp/glTF-Binary/AnisotropyBarnLamp.glb", image: null, sortDate: "2025-03-31T20:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_antiquecamera", slug: "demo-antique-camera", name: "Antique Camera", description: "Vintage twin-lens reflex camera with leather wrap and chrome detailing.", tags: ["object","photography","pbr"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/AntiqueCamera/glTF-Binary/AntiqueCamera.glb", image: null, sortDate: "2025-03-31T19:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_avocado", slug: "demo-avocado", name: "Avocado", description: "A photorealistic avocado — a Khronos classic for testing physically-based rendering.", tags: ["food","pbr","classic"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/Avocado/glTF-Binary/Avocado.glb", image: null, sortDate: "2025-03-31T18:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_barramundifish", slug: "demo-barramundi-fish", name: "Barramundi Fish", description: "Detailed barramundi fish with realistic scales and PBR materials.", tags: ["animal","fish","pbr"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/BarramundiFish/glTF-Binary/BarramundiFish.glb", image: null, sortDate: "2025-03-31T17:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_boombox", slug: "demo-boom-box", name: "Boom Box", description: "Retro boombox with intricate textures — a benchmark PBR asset.", tags: ["object","audio","pbr","classic"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/BoomBox/glTF-Binary/BoomBox.glb", image: null, sortDate: "2025-03-31T16:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_brainstem", slug: "demo-brain-stem", name: "Brain Stem", description: "Walking humanoid figure with skinned mesh and animations.", tags: ["humanoid","rigged","animated"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/BrainStem/glTF-Binary/BrainStem.glb", image: null, sortDate: "2025-03-31T15:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_carconcept", slug: "demo-car-concept", name: "Car Concept", description: "Concept car with sculpted bodywork and clear-coat materials.", tags: ["vehicle","concept","pbr"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/CarConcept/glTF-Binary/CarConcept.glb", image: null, sortDate: "2025-03-31T14:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_carbonfibre", slug: "demo-carbon-fibre", name: "Carbon Fibre", description: "Carbon-fibre weave material test — anisotropy and clear-coat.", tags: ["material","pbr","test"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/CarbonFibre/glTF-Binary/CarbonFibre.glb", image: null, sortDate: "2025-03-31T13:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_cesiumman", slug: "demo-cesium-man", name: "Cesium Man", description: "The iconic Cesium Man — walking animation, fully rigged.", tags: ["humanoid","rigged","animated","classic"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/CesiumMan/glTF-Binary/CesiumMan.glb", image: null, sortDate: "2025-03-31T12:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_cesiummilktruck", slug: "demo-cesium-milk-truck", name: "Cesium Milk Truck", description: "Cesium Milk Truck rolling along — wheel rotation animation.", tags: ["vehicle","animated","classic"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/CesiumMilkTruck/glTF-Binary/CesiumMilkTruck.glb", image: null, sortDate: "2025-03-31T11:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_chairdamaskpurplegold", slug: "demo-chair-damask-purplegold", name: "Chair Damask Purplegold", description: "Ornate damask chair with gold leaf and patterned upholstery.", tags: ["furniture","pbr","fabric"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/ChairDamaskPurplegold/glTF-Binary/ChairDamaskPurplegold.glb", image: null, sortDate: "2025-03-31T10:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_chronographwatch", slug: "demo-chronograph-watch", name: "Chronograph Watch", description: "Detailed chronograph wristwatch with metallic finish and glass face.", tags: ["object","pbr","metal"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/ChronographWatch/glTF-Binary/ChronographWatch.glb", image: null, sortDate: "2025-03-31T09:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_clearcoatcarpaint", slug: "demo-clear-coat-car-paint", name: "Clear Coat Car Paint", description: "Clear-coat car paint material test under varied lighting.", tags: ["material","pbr","test"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/ClearCoatCarPaint/glTF-Binary/ClearCoatCarPaint.glb", image: null, sortDate: "2025-03-31T08:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_clearcoatwicker", slug: "demo-clearcoat-wicker", name: "Clearcoat Wicker", description: "Wicker pattern with clear-coat layer.", tags: ["material","pbr","fabric"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/ClearcoatWicker/glTF-Binary/ClearcoatWicker.glb", image: null, sortDate: "2025-03-31T07:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_commercialrefrigerator", slug: "demo-commercial-refrigerator", name: "Commercial Refrigerator", description: "Commercial glass-door refrigerator with transmission.", tags: ["object","commercial","glass"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/CommercialRefrigerator/glTF-Binary/CommercialRefrigerator.glb", image: null, sortDate: "2025-03-31T06:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_damagedhelmet", slug: "demo-damaged-helmet", name: "Damaged Helmet", description: "Battle-worn sci-fi helmet — possibly the most-rendered glTF in history.", tags: ["object","armor","pbr","iconic"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/DamagedHelmet/glTF-Binary/DamagedHelmet.glb", image: null, sortDate: "2025-03-31T05:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_diffusetransmissionplant", slug: "demo-diffuse-transmission-plant", name: "Diffuse Transmission Plant", description: "Botanical leaves demonstrating diffuse transmission for thin foliage.", tags: ["plant","transmission","pbr"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/DiffuseTransmissionPlant/glTF-Binary/DiffuseTransmissionPlant.glb", image: null, sortDate: "2025-03-31T04:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_diffusetransmissionteacup", slug: "demo-diffuse-transmission-teacup", name: "Diffuse Transmission Teacup", description: "Bone china teacup with translucent walls.", tags: ["object","transmission","pbr"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/DiffuseTransmissionTeacup/glTF-Binary/DiffuseTransmissionTeacup.glb", image: null, sortDate: "2025-03-31T03:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_directionallight", slug: "demo-directional-light", name: "Directional Light", description: "Directional (sun) light reference scene with shadow-casting plane.", tags: ["test","lighting"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/DirectionalLight/glTF-Binary/DirectionalLight.glb", image: null, sortDate: "2025-03-31T02:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_dragonattenuation", slug: "demo-dragon-attenuation", name: "Dragon Attenuation", description: "Glass dragon demonstrating volume attenuation and transmission.", tags: ["creature","glass","transmission"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/DragonAttenuation/glTF-Binary/DragonAttenuation.glb", image: null, sortDate: "2025-03-31T01:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_dragondispersion", slug: "demo-dragon-dispersion", name: "Dragon Dispersion", description: "Glass dragon with chromatic dispersion for prismatic light.", tags: ["creature","glass","transmission"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/DragonDispersion/glTF-Binary/DragonDispersion.glb", image: null, sortDate: "2025-03-31T00:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_duck", slug: "demo-duck", name: "Duck", description: "The Khronos Duck — every 3D dev has met this duck.", tags: ["animal","iconic","classic"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/Duck/glTF-Binary/Duck.glb", image: null, sortDate: "2025-03-30T23:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_fox", slug: "demo-fox", name: "Fox", description: "Stylized fox with three baked animations — Survey, Walk, Run.", tags: ["animal","animated","rigged","iconic"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/Fox/glTF-Binary/Fox.glb", image: null, sortDate: "2025-03-30T22:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_glamvelvetsofa", slug: "demo-glam-velvet-sofa", name: "Glam Velvet Sofa", description: "Velvet sofa demonstrating sheen for fabric materials.", tags: ["furniture","fabric","pbr"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/GlamVelvetSofa/glTF-Binary/GlamVelvetSofa.glb", image: null, sortDate: "2025-03-30T21:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_glassbrokenwindow", slug: "demo-glass-broken-window", name: "Glass Broken Window", description: "Shattered window pane with refraction and transmission.", tags: ["object","glass","transmission"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/GlassBrokenWindow/glTF-Binary/GlassBrokenWindow.glb", image: null, sortDate: "2025-03-30T20:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_glasshurricanecandleholder", slug: "demo-glass-hurricane-candle-holder", name: "Glass Hurricane Candle Holder", description: "Hurricane candle holder with thick glass and a flickering candle.", tags: ["object","glass","transmission"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/GlassHurricaneCandleHolder/glTF-Binary/GlassHurricaneCandleHolder.glb", image: null, sortDate: "2025-03-30T19:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_glassvaseflowers", slug: "demo-glass-vase-flowers", name: "Glass Vase Flowers", description: "Cut-glass vase with flowers — refraction through curved glass.", tags: ["object","glass","plant"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/GlassVaseFlowers/glTF-Binary/GlassVaseFlowers.glb", image: null, sortDate: "2025-03-30T18:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_iridescenceabalone", slug: "demo-iridescence-abalone", name: "Iridescence Abalone", description: "Abalone shell with natural iridescence.", tags: ["object","pbr","iridescent"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/IridescenceAbalone/glTF-Binary/IridescenceAbalone.glb", image: null, sortDate: "2025-03-30T17:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_iridescencelamp", slug: "demo-iridescence-lamp", name: "Iridescence Lamp", description: "Lamp shade with iridescent thin-film effect.", tags: ["object","pbr","iridescent"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/IridescenceLamp/glTF-Binary/IridescenceLamp.glb", image: null, sortDate: "2025-03-30T16:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_iridescencesuzanne", slug: "demo-iridescence-suzanne", name: "Iridescence Suzanne", description: "Blender Suzanne with iridescent thin-film material.", tags: ["classic","iridescent"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/IridescenceSuzanne/glTF-Binary/IridescenceSuzanne.glb", image: null, sortDate: "2025-03-30T15:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_iridescentdishwitholives", slug: "demo-iridescent-dish-with-olives", name: "Iridescent Dish With Olives", description: "Iridescent ceramic dish holding olives.", tags: ["food","pbr","iridescent"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/IridescentDishWithOlives/glTF-Binary/IridescentDishWithOlives.glb", image: null, sortDate: "2025-03-30T14:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_lantern", slug: "demo-lantern", name: "Lantern", description: "Traditional lantern with intricate metalwork — a Khronos PBR benchmark.", tags: ["object","metal","pbr","classic"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/Lantern/glTF-Binary/Lantern.glb", image: null, sortDate: "2025-03-30T13:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_lightspunctuallamp", slug: "demo-lights-punctual-lamp", name: "Lights Punctual Lamp", description: "Lamp model wired up via KHR_lights_punctual — real point light source.", tags: ["object","lighting"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/LightsPunctualLamp/glTF-Binary/LightsPunctualLamp.glb", image: null, sortDate: "2025-03-30T12:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_materialsvariantsshoe", slug: "demo-materials-variants-shoe", name: "Materials Variants Shoe", description: "Shoe with material variants — swap colorways at runtime.", tags: ["fashion","shoe","variants"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/MaterialsVariantsShoe/glTF-Binary/MaterialsVariantsShoe.glb", image: null, sortDate: "2025-03-30T11:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_metalroughspheres", slug: "demo-metal-rough-spheres", name: "Metal Rough Spheres", description: "Spheres demonstrating the full metallic-roughness range.", tags: ["material","pbr","test"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/MetalRoughSpheres/glTF-Binary/MetalRoughSpheres.glb", image: null, sortDate: "2025-03-30T10:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_metalroughspheresnotextures", slug: "demo-metal-rough-spheres-no-textures", name: "Metal Rough Spheres No Textures", description: "Untextured metallic-roughness sphere grid.", tags: ["material","pbr","test"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/MetalRoughSpheresNoTextures/glTF-Binary/MetalRoughSpheresNoTextures.glb", image: null, sortDate: "2025-03-30T09:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_potofcoals", slug: "demo-pot-of-coals", name: "Pot Of Coals", description: "Glowing pot of coals demonstrating emissive strength.", tags: ["object","fire","emissive"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/PotOfCoals/glTF-Binary/PotOfCoals.glb", image: null, sortDate: "2025-03-30T08:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_potofcoalsanimationpointer", slug: "demo-pot-of-coals-animation-pointer", name: "Pot Of Coals Animation Pointer", description: "Pot of coals with KHR_animation_pointer driving emissive flicker.", tags: ["object","fire","animated"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/PotOfCoalsAnimationPointer/glTF-Binary/PotOfCoalsAnimationPointer.glb", image: null, sortDate: "2025-03-30T07:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_riggedfigure", slug: "demo-rigged-figure", name: "Rigged Figure", description: "Bare-bones rigged humanoid for testing skinning.", tags: ["humanoid","rigged","classic"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/RiggedFigure/glTF-Binary/RiggedFigure.glb", image: null, sortDate: "2025-03-30T06:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_riggedsimple", slug: "demo-rigged-simple", name: "Rigged Simple", description: "Minimal rigged figure — the smallest possible skinned mesh.", tags: ["rigged","test"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/RiggedSimple/glTF-Binary/RiggedSimple.glb", image: null, sortDate: "2025-03-30T05:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_scatteringskull", slug: "demo-scattering-skull", name: "Scattering Skull", description: "Skull with subsurface scattering for translucent bone material.", tags: ["object","sss","pbr"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/ScatteringSkull/glTF-Binary/ScatteringSkull.glb", image: null, sortDate: "2025-03-30T04:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_sheenchair", slug: "demo-sheen-chair", name: "Sheen Chair", description: "Armchair upholstered in sheen-fabric demonstrating grazing-angle highlights.", tags: ["furniture","fabric","pbr"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/SheenChair/glTF-Binary/SheenChair.glb", image: null, sortDate: "2025-03-30T03:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_sheenwoodleathersofa", slug: "demo-sheen-wood-leather-sofa", name: "Sheen Wood Leather Sofa", description: "Sofa combining sheen fabric, leather, and wood — a multi-material reference.", tags: ["furniture","fabric","pbr"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/SheenWoodLeatherSofa/glTF-Binary/SheenWoodLeatherSofa.glb", image: null, sortDate: "2025-03-30T02:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_specularsilkpouf", slug: "demo-specular-silk-pouf", name: "Specular Silk Pouf", description: "Silk pouf footstool with specular sheen.", tags: ["furniture","fabric","pbr"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/SpecularSilkPouf/glTF-Binary/SpecularSilkPouf.glb", image: null, sortDate: "2025-03-30T01:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_sunglasseskhronos", slug: "demo-sunglasses-khronos", name: "Sunglasses Khronos", description: "Aviator-style sunglasses with tinted transmission lenses and metal frame.", tags: ["fashion","object","pbr"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/SunglassesKhronos/glTF-Binary/SunglassesKhronos.glb", image: null, sortDate: "2025-03-30T00:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_toycar", slug: "demo-toy-car", name: "Toy Car", description: "Stylized toy car with chunky proportions and shiny paint.", tags: ["vehicle","toy","pbr"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/ToyCar/glTF-Binary/ToyCar.glb", image: null, sortDate: "2025-03-29T23:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_virtualcity", slug: "demo-virtual-city", name: "Virtual City", description: "Stylized low-poly city block — buildings, streets, props.", tags: ["scene","environment","urban"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/VirtualCity/glTF-Binary/VirtualCity.glb", image: null, sortDate: "2025-03-29T22:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_k_waterbottle", slug: "demo-water-bottle", name: "Water Bottle", description: "Water bottle with translucent plastic body and embossed label.", tags: ["object","pbr","transmission"], glbUrl: "https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models/WaterBottle/glTF-Binary/WaterBottle.glb", image: null, sortDate: "2025-03-29T21:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_t_flamingo", slug: "demo-flamingo", name: "Flamingo", description: "Pink flamingo in flight.", tags: ["animal","bird","animated"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/Flamingo.glb", image: null, sortDate: "2025-03-29T20: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_horse", slug: "demo-horse", name: "Horse", description: "Galloping horse with skeletal animation.", tags: ["animal","animated","rigged"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/Horse.glb", image: null, sortDate: "2025-03-29T19: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_littlesttokyo", slug: "demo-littlesttokyo", name: "LittlestTokyo", description: "Animated Tokyo street scene by Glen Fox — cars driving, neon, atmosphere.", tags: ["scene","environment","urban","animated"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/LittlestTokyo.glb", image: null, sortDate: "2025-03-29T18: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_michelle", slug: "demo-michelle", name: "Michelle", description: "Michelle character with Mixamo-compatible rig.", tags: ["humanoid","rigged","character"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/Michelle.glb", image: null, sortDate: "2025-03-29T17: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_parrot", slug: "demo-parrot", name: "Parrot", description: "Flying parrot with wing-flap animation.", tags: ["animal","bird","animated"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/Parrot.glb", image: null, sortDate: "2025-03-29T16: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_primaryiondrive", slug: "demo-primaryiondrive", name: "PrimaryIonDrive", description: "Primary ion drive engine module with animated pulse.", tags: ["scifi","vehicle","animated"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/PrimaryIonDrive.glb", image: null, sortDate: "2025-03-29T15: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_shaderball", slug: "demo-shaderball", name: "ShaderBall", description: "Shader ball — the standard material test sphere with reflective base.", tags: ["material","test"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/ShaderBall.glb", image: null, sortDate: "2025-03-29T14: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_shaderball2", slug: "demo-shaderball2", name: "ShaderBall2", description: "Alternate shader ball variant.", tags: ["material","test"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/ShaderBall2.glb", image: null, sortDate: "2025-03-29T13: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_shadowmappablemesh", slug: "demo-shadowmappablemesh", name: "ShadowmappableMesh", description: "Mesh with high-frequency detail for shadow-mapping tests.", tags: ["test","shadows"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/ShadowmappableMesh.glb", image: null, sortDate: "2025-03-29T12: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_soldier", slug: "demo-soldier-threejs", name: "Soldier", description: "Soldier character with walk, run, and idle animations — three.js classic.", tags: ["humanoid","rigged","animated","character"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/Soldier.glb", image: null, sortDate: "2025-03-29T11: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_stork", slug: "demo-stork", name: "Stork", description: "Stork mid-flight with wing animation.", tags: ["animal","bird","animated"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/Stork.glb", image: null, sortDate: "2025-03-29T10: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_xbot", slug: "demo-xbot", name: "Xbot", description: "X-Bot rigged humanoid robot, ready for retargeting.", tags: ["robot","rigged","animated","character"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/Xbot.glb", image: null, sortDate: "2025-03-29T09: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_bath-day", slug: "demo-bath-day", name: "Bath Day", description: "Bath day animated scene — quirky character moment.", tags: ["scene","animated","character"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/bath_day.glb", image: null, sortDate: "2025-03-29T08: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_coffeemug", slug: "demo-coffeemug", name: "CoffeeMug", description: "Ceramic coffee mug.", tags: ["object","pbr"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/coffeeMug.glb", image: null, sortDate: "2025-03-29T07: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_coffeemat", slug: "demo-coffeemat", name: "Coffeemat", description: "Coffee machine with detailed dispenser.", tags: ["object","machine","pbr"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/coffeemat.glb", image: null, sortDate: "2025-03-29T06: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_collision-world", slug: "demo-collision-world", name: "Collision World", description: "Test scene with collision geometry.", tags: ["scene","environment","test"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/collision-world.glb", image: null, sortDate: "2025-03-29T05: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_dungeon-warkarma", slug: "demo-dungeon-warkarma", name: "Dungeon Warkarma", description: "Fantasy dungeon scene by Warkarma.", tags: ["scene","fantasy","environment"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/dungeon_warkarma.glb", image: null, sortDate: "2025-03-29T04: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_facecap", slug: "demo-facecap", name: "Facecap", description: "Face capture sample with blendshape animation.", tags: ["humanoid","face","animated","morph"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/facecap.glb", image: null, sortDate: "2025-03-29T03: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_ferrari", slug: "demo-ferrari", name: "Ferrari", description: "Detailed Ferrari with full PBR materials and accurate proportions.", tags: ["vehicle","car","pbr"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/ferrari.glb", image: null, sortDate: "2025-03-29T02: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_gears", slug: "demo-gears", name: "Gears", description: "Interlocking gears with mechanical animation.", tags: ["object","mechanical","animated"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/gears.glb", image: null, sortDate: "2025-03-29T01: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_godrays-demo", slug: "demo-godrays-demo", name: "Godrays Demo", description: "God rays / volumetric lighting demonstration scene.", tags: ["scene","lighting","demo"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/godrays_demo.glb", image: null, sortDate: "2025-03-29T00: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_kira", slug: "demo-kira", name: "Kira", description: "Kira character model.", tags: ["humanoid","character","rigged"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/kira.glb", image: null, sortDate: "2025-03-28T23: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_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_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"} }),- demoItem({ id: "avatar_demo_t_venice-mask", slug: "demo-venice-mask", name: "Venice Mask", description: "Ornate Venetian carnival mask with gold leaf detailing.", tags: ["object","mask","pbr"], glbUrl: "https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf/venice_mask.glb", image: null, sortDate: "2025-03-28T15: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_disk_cz", slug: "demo-cz", name: "CZ", description: "CZ — stylized humanoid with idle pose, ready for chat overlays.", tags: ["humanoid","character","community"], glbUrl: "https://three.ws/avatars/cz.glb", image: null, sortDate: "2025-04-01T00:00:00.000Z", attribution: {"handle":"three.ws","displayName":"three.ws starter","url":"https://three.ws","license":"CC-BY 4.0"}, author: {"handle":"three.ws","displayName":"three.ws starter","profileUrl":"https://three.ws"} }),+ demoItem({ id: "avatar_demo_disk_ansem", slug: "demo-ansem", name: "Ansem", description: "Ansem — trader persona for chart-watchers and crypto Twitter.", tags: ["humanoid","community","trader"], glbUrl: "https://three.ws/avatars/default.glb", image: null, sortDate: "2025-03-31T23:00:00.000Z", attribution: {"handle":"three.ws","displayName":"three.ws starter","url":"https://three.ws","license":"CC-BY 4.0"}, author: {"handle":"three.ws","displayName":"three.ws starter","profileUrl":"https://three.ws"} }),+ demoItem({ id: "avatar_demo_disk_boss", slug: "demo-boss", name: "Boss", description: "Boss — for the one running the room. Soldier rig with locomotion.", tags: ["humanoid","rigged","animated","community"], glbUrl: "https://three.ws/animations/soldier.glb", image: null, sortDate: "2025-03-31T22:00:00.000Z", attribution: {"handle":"three.ws","displayName":"three.ws starter","url":"https://three.ws","license":"CC-BY 4.0"}, author: {"handle":"three.ws","displayName":"three.ws starter","profileUrl":"https://three.ws"} }),+ demoItem({ id: "avatar_demo_disk_vernington", slug: "demo-vernington", name: "Vernington", description: "Vernington — the senior of the Vern lineage.", tags: ["humanoid","community"], glbUrl: "https://three.ws/avatars/default.glb", image: null, sortDate: "2025-03-31T21:00:00.000Z", attribution: {"handle":"three.ws","displayName":"three.ws starter","url":"https://three.ws","license":"CC-BY 4.0"}, author: {"handle":"three.ws","displayName":"three.ws starter","profileUrl":"https://three.ws"} }),+ demoItem({ id: "avatar_demo_disk_saga", slug: "demo-saga", name: "Saga", description: "Saga — mobile-native, expressive robot rig with idle, walk, jump, dance clips.", tags: ["robot","animated","rigged","community"], glbUrl: "https://three.ws/animations/robotexpressive.glb", image: null, sortDate: "2025-03-31T20:00:00.000Z", attribution: {"handle":"three.ws","displayName":"three.ws starter","url":"https://three.ws","license":"CC-BY 4.0"}, author: {"handle":"three.ws","displayName":"three.ws starter","profileUrl":"https://three.ws"} }),+ demoItem({ id: "avatar_demo_disk_claude", slug: "demo-claude", name: "Claude", description: "Claude — calm, thoughtful AI persona.", tags: ["humanoid","community","ai"], glbUrl: "https://three.ws/avatars/default.glb", image: null, sortDate: "2025-03-31T19:00:00.000Z", attribution: {"handle":"three.ws","displayName":"three.ws starter","url":"https://three.ws","license":"CC-BY 4.0"}, author: {"handle":"three.ws","displayName":"three.ws starter","profileUrl":"https://three.ws"} }),+ demoItem({ id: "avatar_demo_disk_3d", slug: "demo-3d", name: "3D", description: "3D — meta avatar representing the platform itself.", tags: ["humanoid","community","meta"], glbUrl: "https://three.ws/avatars/default.glb", image: null, sortDate: "2025-03-31T18:00:00.000Z", attribution: {"handle":"three.ws","displayName":"three.ws starter","url":"https://three.ws","license":"CC-BY 4.0"}, author: {"handle":"three.ws","displayName":"three.ws starter","profileUrl":"https://three.ws"} }),+ demoItem({ id: "avatar_demo_disk_ai", slug: "demo-ai", name: "AI", description: "AI — generic agent stand-in, expressive robot rig.", tags: ["robot","animated","rigged","community","ai"], glbUrl: "https://three.ws/animations/robotexpressive.glb", image: null, sortDate: "2025-03-31T17:00:00.000Z", attribution: {"handle":"three.ws","displayName":"three.ws starter","url":"https://three.ws","license":"CC-BY 4.0"}, author: {"handle":"three.ws","displayName":"three.ws starter","profileUrl":"https://three.ws"} }),+ demoItem({ id: "avatar_demo_disk_agent", slug: "demo-agent", name: "Agent", description: "Agent — operative ready for autonomous on-chain work.", tags: ["humanoid","rigged","animated","community","agent"], glbUrl: "https://three.ws/animations/soldier.glb", image: null, sortDate: "2025-03-31T16:00:00.000Z", attribution: {"handle":"three.ws","displayName":"three.ws starter","url":"https://three.ws","license":"CC-BY 4.0"}, author: {"handle":"three.ws","displayName":"three.ws starter","profileUrl":"https://three.ws"} }),+ demoItem({ id: "avatar_demo_disk_vern", slug: "demo-vern", name: "Vern", description: "Vern — base form, before the Vernington promotion.", tags: ["humanoid","community"], glbUrl: "https://three.ws/avatars/default.glb", image: null, sortDate: "2025-03-31T15:00:00.000Z", attribution: {"handle":"three.ws","displayName":"three.ws starter","url":"https://three.ws","license":"CC-BY 4.0"}, author: {"handle":"three.ws","displayName":"three.ws starter","profileUrl":"https://three.ws"} }),+ demoItem({ id: "avatar_demo_disk_crossinger", slug: "demo-crossinger", name: "Crossinger", description: "Crossinger — chain-hopper, multi-network identity.", tags: ["humanoid","community"], glbUrl: "https://three.ws/avatars/default.glb", image: null, sortDate: "2025-03-31T14:00:00.000Z", attribution: {"handle":"three.ws","displayName":"three.ws starter","url":"https://three.ws","license":"CC-BY 4.0"}, author: {"handle":"three.ws","displayName":"three.ws starter","profileUrl":"https://three.ws"} }),+ demoItem({ id: "avatar_demo_disk_spartian", slug: "demo-spartian", name: "Spartian", description: "Spartian — disciplined, armored, never folds.", tags: ["humanoid","rigged","animated","community"], glbUrl: "https://three.ws/animations/soldier.glb", image: null, sortDate: "2025-03-31T13:00:00.000Z", attribution: {"handle":"three.ws","displayName":"three.ws starter","url":"https://three.ws","license":"CC-BY 4.0"}, author: {"handle":"three.ws","displayName":"three.ws starter","profileUrl":"https://three.ws"} }),+ demoItem({ id: "avatar_demo_disk_test", slug: "demo-test", name: "Tester", description: "Tester — kicks the tires on every release before anyone else.", tags: ["humanoid","community"], glbUrl: "https://three.ws/avatars/default.glb", image: null, sortDate: "2025-03-31T12:00:00.000Z", attribution: {"handle":"three.ws","displayName":"three.ws starter","url":"https://three.ws","license":"CC-BY 4.0"}, author: {"handle":"three.ws","displayName":"three.ws starter","profileUrl":"https://three.ws"} }),];diff --git a/api/auth/siwe/[action].js b/api/auth/siwe/[action].jsindex 81d6cbb9b..2d7d571b2 100644--- a/api/auth/siwe/[action].js+++ b/api/auth/siwe/[action].js@@ -64,7 +64,22 @@ async function handleNonce(req, res) {const issuedAt = new Date().toISOString();const expiresAt = new Date(Date.now() + NONCE_TTL_SEC * 1000).toISOString();- return json(res, 200, { nonce, issuedAt, expiresAt, csrf, ttl: NONCE_TTL_SEC });+ // Tell the client the canonical domain/uri to sign against. Lets dev+ // frontends (Codespaces tunnels, preview deploys, etc.) proxy /api/* to+ // this upstream and still produce SIWE messages that pass the domain+ // check in handleVerify.+ const appOrigin = env.APP_ORIGIN;+ const domain = new URL(appOrigin).host;++ return json(res, 200, {+ nonce,+ issuedAt,+ expiresAt,+ csrf,+ ttl: NONCE_TTL_SEC,+ domain,+ uri: appOrigin,+ });}// ── Verify ─────────────────────────────────────────────────────────────────diff --git a/api/auth/siws/[action].js b/api/auth/siws/[action].jsindex 45d2e7580..e6e543f58 100644--- a/api/auth/siws/[action].js+++ b/api/auth/siws/[action].js@@ -64,7 +64,22 @@ async function handleNonce(req, res) {const issuedAt = new Date().toISOString();const expiresAt = new Date(Date.now() + NONCE_TTL_SEC * 1000).toISOString();- return json(res, 200, { nonce, issuedAt, expiresAt, csrf, ttl: NONCE_TTL_SEC });+ // Tell the client the canonical domain/uri to sign against. Lets dev+ // frontends (Codespaces tunnels, preview deploys, etc.) proxy /api/* to+ // this upstream and still produce SIWS messages that pass the domain+ // check in handleVerify.+ const appOrigin = env.APP_ORIGIN;+ const domain = new URL(appOrigin).host;++ return json(res, 200, {+ nonce,+ issuedAt,+ expiresAt,+ csrf,+ ttl: NONCE_TTL_SEC,+ domain,+ uri: appOrigin,+ });}// ── Verify ─────────────────────────────────────────────────────────────────diff --git a/chat/tsconfig.json b/chat/tsconfig.jsonnew file mode 100644index 000000000..06cfb6d85--- /dev/null+++ b/chat/tsconfig.json@@ -0,0 +1,17 @@+{+ "compilerOptions": {+ "noEmit": true,+ "moduleResolution": "bundler",+ "target": "ESNext",+ "module": "ESNext",+ "skipLibCheck": true,+ "isolatedModules": true,+ "resolveJsonModule": true,+ "esModuleInterop": true,+ "allowJs": true,+ "checkJs": false,+ "types": []+ },+ "files": ["src/vite-env.d.ts"],+ "include": []+}diff --git a/packages/avatar-agent-mcp/README.md b/packages/avatar-agent-mcp/README.mdindex 13c24bf80..b31f9f837 100644--- a/packages/avatar-agent-mcp/README.md+++ b/packages/avatar-agent-mcp/README.md@@ -7,7 +7,7 @@[](https://nodejs.org)[](https://modelcontextprotocol.io)-Registry name: **`io.github.nirholas/3D-AI-Agent-Avatar`** · npm: **`@three-ws/avatar-agent`**+Registry name: **`ws.three/3D-AI-Agent-Avatar`** · npm: **`@three-ws/avatar-agent`**A single MCP server that's two things at once:diff --git a/packages/avatar-agent-mcp/package.json b/packages/avatar-agent-mcp/package.jsonindex 8cd734897..123222829 100644--- a/packages/avatar-agent-mcp/package.json+++ b/packages/avatar-agent-mcp/package.json@@ -1,7 +1,7 @@{"name": "@three-ws/avatar-agent",- "version": "1.0.0",- "mcpName": "io.github.nirholas/3D-AI-Agent-Avatar",+ "version": "1.0.1",+ "mcpName": "ws.three/3D-AI-Agent-Avatar","description": "3D AI Agent Avatar — MCP server that spawns a textured GLB avatar, inspects/validates/optimizes any 3D model, gives the agent a Solana wallet + a voice, and ships full pump.fun powers (atomic Jito-bundled launches + creator-fee collection). Powered by three.ws.","type": "module","author": "nirholas <[email protected]>",diff --git a/packages/avatar-agent-mcp/server.json b/packages/avatar-agent-mcp/server.jsonindex 41b1c0bcd..e8b9059cd 100644--- a/packages/avatar-agent-mcp/server.json+++ b/packages/avatar-agent-mcp/server.json@@ -1,17 +1,17 @@{"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",- "name": "io.github.nirholas/3D-AI-Agent-Avatar",- "description": "3D AI Agent Avatar — spawn a textured GLB avatar, inspect/validate/optimize any 3D model, give the agent a Solana wallet + a voice, and ship full pump.fun powers (atomic Jito-bundled launches + creator-fee collection).",+ "name": "ws.three/3D-AI-Agent-Avatar",+ "description": "3D AI Agent Avatar — render, inspect, validate, and optimize any GLB; spawn a textured 3D avatar with a Solana wallet, a voice (OpenAI TTS), live pose + camera rendering, and full pump.fun powers (atomic Jito-bundled launches + creator-fee collection). Built by three.ws.","repository": {"url": "https://github.com/nirholas/three.ws","source": "github"},- "version": "1.0.0",+ "version": "1.0.1","packages": [{"registryType": "npm","identifier": "@three-ws/avatar-agent",- "version": "1.0.0",+ "version": "1.0.1","transport": {"type": "stdio"},diff --git a/pages/agent-detail.html b/pages/agent-detail.htmlindex d2696a523..35242e4c9 100644--- a/pages/agent-detail.html+++ b/pages/agent-detail.html@@ -94,16 +94,14 @@<div class="ad-brand">three.ws</div><nav class="ad-nav"><a href="/">Home</a>- <a href="/leaderboard">Leaderboard</a><a class="active" href="/marketplace">Agents <span class="ad-beta">BETA</span></a>- <a href="/spotlight">Apply for Spotlight</a>- <a href="/developers">Developers</a>- <a href="/about">About</a>- <a href="/support">Support</a>+ <a href="/discover">Discover</a>+ <a href="/create">Create</a>+ <a href="/docs">Docs</a></nav><div class="ad-side-foot">- <a href="https://twitter.com" target="_blank" rel="noopener">Twitter</a>- <a href="https://discord.com" target="_blank" rel="noopener">Discord</a>+ <a href="https://x.com/trythreews" target="_blank" rel="noopener">X</a>+ <a href="https://github.com/nirholas/three.ws" target="_blank" rel="noopener">GitHub</a></div></aside>diff --git a/public/demos/3d-home.html b/public/demos/3d-home.htmlindex 843978bf2..2f9db068e 100644--- a/public/demos/3d-home.html+++ b/public/demos/3d-home.html@@ -89,6 +89,37 @@box-shadow: 0 5px 0 0 rgba(255,255,255,0.04);}+ /* Animation control chips — trigger one-shot clips on the avatar */+ .anim-controls {+ display: flex; flex-wrap: wrap; gap: 8px;+ margin-top: 30px;+ }+ .anim-label {+ width: 100%; margin: 0 0 4px;+ font: 600 10px/1 'Space Grotesk','Inter',sans-serif;+ letter-spacing: 0.18em; text-transform: uppercase;+ color: #555870;+ }+ .chip {+ display: inline-flex; align-items: center; gap: 6px;+ padding: 9px 14px; border-radius: 999px;+ background: rgba(255,255,255,0.04);+ border: 1px solid rgba(255,255,255,0.1);+ color: #ccd; font: 600 12px/1 'Inter', sans-serif;+ cursor: pointer; user-select: none;+ letter-spacing: 0.02em;+ transition: background 120ms ease, border-color 120ms ease,+ color 120ms ease, transform 120ms ease;+ }+ .chip:hover { background: rgba(214,255,61,0.08); border-color: rgba(214,255,61,0.35); color: #fff; }+ .chip:active { transform: translateY(1px); }+ .chip[aria-pressed="true"] {+ background: rgba(214,255,61,0.16);+ border-color: rgba(214,255,61,0.55);+ color: #d6ff3d;+ }+ .chip[disabled] { opacity: 0.4; cursor: wait; }+/* Nav */.nav {position: fixed; top: 0; left: 0; right: 0; z-index: 20;@@ -133,6 +164,13 @@<span style="opacity:.4">↓</span></a></div>+ <div class="anim-controls" id="anim-controls" role="group" aria-label="Avatar animations">+ <div class="anim-label">Make her…</div>+ <button class="chip" data-clip="wave" type="button" disabled>👋 Wave</button>+ <button class="chip" data-clip="rumba" type="button" disabled>💃 Dance</button>+ <button class="chip" data-clip="celebrate" type="button" disabled>🎉 Celebrate</button>+ <button class="chip" data-clip="taunt" type="button" disabled>😝 Taunt</button>+ </div></div><!-- Transparent overlay canvas — avatar renders above all HTML -->@@ -143,9 +181,26 @@import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';import { gsap } from 'https://cdn.jsdelivr.net/npm/[email protected]/+esm';- const canvas = document.getElementById('avatar-canvas');- const ctaBtn = document.getElementById('cta-btn');- const sitLine = document.getElementById('sit-line');+ const canvas = document.getElementById('avatar-canvas');+ const ctaBtn = document.getElementById('cta-btn');+ const sitLine = document.getElementById('sit-line');+ const animPanel = document.getElementById('anim-controls');+ const chips = [...animPanel.querySelectorAll('.chip')];++ // ── Tracked timers ────────────────────────────────────────────────+ // Every setTimeout used by the sit→stand→jump cycle is registered+ // here so a performAction() click can cancel all pending steps+ // without leaking phase transitions onto the perform animation.+ const pendingTimers = new Set();+ function later(fn, ms) {+ const id = setTimeout(() => { pendingTimers.delete(id); fn(); }, ms);+ pendingTimers.add(id);+ return id;+ }+ function clearTimers() {+ for (const id of pendingTimers) clearTimeout(id);+ pendingTimers.clear();+ }// ── Renderer: alpha:true → transparent background ─────────────────const renderer = new THREE.WebGLRenderer({ canvas, antialias: true, alpha: true });@@ -241,14 +296,34 @@// ── Avatar ────────────────────────────────────────────────────────let avatar = null, mixer = null, rootBone = null, baseRootPos = null;let sitAction = null, standupAction = null, fallAction = null;- let phase = 'loading'; // loading → sitting → standingUp → jumping → resting+ // On-demand clips played by the animation chips. Each is a one-shot+ // (clampWhenFinished:true) action whose 'finished' event hands control+ // back to the sit cycle. Looping clips (e.g. rumba) use a tracked+ // timer to stop after PERFORM_LOOP_MS.+ const performActions = {}; // { wave, rumba, celebrate, taunt }+ let currentPerform = null;+ const PERFORM_LOOP_MS = 6200; // dwell on looping clips+ const PERFORM_CLIPS = [+ { name: 'wave', file: '/animations/clips/wave.json', loop: false },+ { name: 'rumba', file: '/animations/clips/rumba.json', loop: true },+ { name: 'celebrate', file: '/animations/clips/celebrate.json', loop: false },+ { name: 'taunt', file: '/animations/clips/taunt.json', loop: false },+ ];+ let phase = 'loading'; // loading → sitting → standingUp → jumping → resting → performinglet startW = { x: 0, y: 0 }; // sit/stand anchor (above the text)let seqT = 0, landed = false, jumpTarget = { x: 0, y: 0 };const STAND_S = 2.566; // standup clip durationconst JUMP_S = 2.933; // jumpdown3 clip durationconst SIT_DWELL_S = 2.4; // how long he sits before standing- const LAND_P = 0.84; // jump fraction where feet make contact+ // Earliest-possible fraction at which the impact effects MAY fire.+ // The actual trigger is gated on screen-space proximity below — this+ // just prevents the squish from going off during the arc's apex.+ const LAND_P = 0.92;+ // Feet must be within this many SCREEN px of the button top before the+ // squish/splash fire. The parabolic arc only returns to 0 at p≈1.0, so+ // gating on real px (not the fraction p) keeps the impact synced.+ const LAND_PX = 10;const PEAK_U = 0.55; // arc peak in world unitsconst JUMP_YAW = 0.22; // ~12° peak yaw mid-flight (face-forward at both ends)// cz.glb origin is at the feet (verified in /demos/button-jump.html), so@@ -304,17 +379,74 @@});}+ // Splash on impact: a fan of lime droplets squirts from the button's+ // top edge with real ballistic motion (initial velocity + gravity),+ // so the landing reads as wet/squishy rather than a purely synthetic+ // bounce. DOM nodes so the splash composites with the button itself.+ const SPLASH_GRAVITY = 1600; // px/s²+ const SPLASH_COUNT = 20;+ function fireSplash() {+ const rect = ctaBtn.getBoundingClientRect();+ const ox = rect.left + rect.width / 2;+ const oy = rect.top + 2;+ const drops = [];+ for (let i = 0; i < SPLASH_COUNT; i++) {+ const size = 5 + Math.random() * 7;+ const el = document.createElement('div');+ el.style.cssText =+ `position:fixed;` ++ `left:${ox - size / 2}px;top:${oy - size / 2}px;` ++ `width:${size}px;height:${size}px;border-radius:50%;` ++ `background:radial-gradient(circle at 35% 30%,#f6ffc4,#d6ff3d 55%,#92b500);` ++ `box-shadow:0 0 6px rgba(214,255,61,0.65);` ++ `pointer-events:none;z-index:30;will-change:transform,opacity;`;+ document.body.appendChild(el);+ // Fan upward: ~-150° to -30°, biased toward overhead spray+ const angle = -Math.PI / 2 + (Math.random() - 0.5) * Math.PI * 1.15;+ const speed = 230 + Math.random() * 360;+ drops.push({+ el, x: 0, y: 0,+ vx: Math.cos(angle) * speed,+ vy: Math.sin(angle) * speed,+ life: 0,+ max: 0.85 + Math.random() * 0.5,+ });+ }+ let last = performance.now();+ (function step(now) {+ const dt = Math.min((now - last) / 1000, 0.04);+ last = now;+ let alive = false;+ for (const d of drops) {+ if (!d.el) continue;+ d.life += dt;+ d.vy += SPLASH_GRAVITY * dt;+ d.x += d.vx * dt;+ d.y += d.vy * dt;+ const t = d.life / d.max;+ if (t >= 1) { d.el.remove(); d.el = null; continue; }+ d.el.style.opacity = String(1 - t * t);+ d.el.style.transform = `translate(${d.x.toFixed(1)}px, ${d.y.toFixed(1)}px)`;+ alive = true;+ }+ if (alive) requestAnimationFrame(step);+ })(last);+ }+function startSit() {if (!sitAction) return;phase = 'sitting';placeAtStart();fallAction?.stop();standupAction?.stop();+ // Stop any in-flight perform clip so it doesn't blend into sitidle+ for (const a of Object.values(performActions)) a.stop();+ currentPerform = null;// Face the camera the entire cycle — no turning aroundgsap.killTweensOf(avatar.rotation);avatar.rotation.set(0, 0, 0);sitAction.reset().play();- setTimeout(startStandup, SIT_DWELL_S * 1000);+ later(startStandup, SIT_DWELL_S * 1000);}// Crossfade duration tuned for organic blending between morph targets@@ -328,7 +460,7 @@standupAction.reset();standupAction.crossFadeFrom(sitAction, FADE_S, false).play();// Trigger jump just before standup ends, leaving room for the next fade- setTimeout(triggerJump, (STAND_S - FADE_S) * 1000);+ later(triggerJump, (STAND_S - FADE_S) * 1000);}function triggerJump() {@@ -361,21 +493,23 @@const dir = Math.sign(jumpTarget.x - startW.x);avatar.rotation.y = JUMP_YAW * dir * Math.sin(Math.PI * p);- // Only squish when the avatar is actually CLOSE to the button (in screen px).- // Belt-and-braces: if the trajectory math is ever wrong, the squish stays silent- // instead of "telekinetically" firing from across the screen.+ // Squish + splash fire only on real screen-space contact. The arc+ // only returns to 0 at p≈1.0, so we gate on actual feet-to-button+ // distance (LAND_PX) rather than the time fraction — otherwise the+ // bounce telegraphs ~35px before the visual landing.if (!landed && p >= LAND_P) {const dxPx = Math.abs(avatar.position.x - jumpTarget.x) * PX_PER_UNIT;const dyPx = Math.abs(avatar.position.y - jumpTarget.y) * PX_PER_UNIT;- if (dxPx < 80 && dyPx < 80) {+ if (dxPx < LAND_PX && dyPx < LAND_PX) {landed = true;fireSquish();+ fireSplash();}}if (p >= 1) {phase = 'resting';- setTimeout(() => {+ later(() => {const fromX = avatar.position.x;const fromY = avatar.position.y;const back = getSitWorld();@@ -403,8 +537,88 @@if (phase === 'sitting' || phase === 'standingUp') triggerJump();});+ // ── On-demand performance: chip click → one-shot clip, then resume cycle+ let returnSlide = null; // rAF id for the post-perform slide back to sit+ function cancelReturnSlide() {+ if (returnSlide) { cancelAnimationFrame(returnSlide); returnSlide = null; }+ }+ function activeAction() {+ if (sitAction?.isRunning()) return sitAction;+ if (standupAction?.isRunning()) return standupAction;+ if (fallAction?.isRunning()) return fallAction;+ return currentPerform;+ }+ function setChipPressed(name) {+ for (const c of chips) c.setAttribute('aria-pressed', String(c.dataset.clip === name));+ }+ function performAction(name) {+ const act = performActions[name];+ if (!avatar || !act) return;+ if (phase === 'performing' && currentPerform === act) return;++ // Hand-off: stop the sit/jump cycle and any in-flight position lerp.+ // cancelReturnSlide() is critical — without it, a previous perform's+ // slide-back rAF would still complete and call startSit(), nuking+ // the perform we just started.+ clearTimers();+ cancelReturnSlide();+ if (recalSlide) { cancelAnimationFrame(recalSlide); recalSlide = null; }+ phase = 'performing';++ // Stand at the CTA button — keeps the avatar centered in the+ // reader's eye-line where the page already focuses attention.+ const stage = getButtonWorld();+ avatar.position.set(stage.x, stage.y, 0);+ gsap.killTweensOf(avatar.rotation);+ avatar.rotation.set(0, 0, 0);++ const prev = activeAction();+ act.reset();+ if (prev && prev !== act) act.crossFadeFrom(prev, FADE_S, false);+ act.play();+ currentPerform = act;+ setChipPressed(name);++ // Loops have no 'finished' event — schedule the resume manually.+ const def = PERFORM_CLIPS.find(c => c.name === name);+ if (def?.loop) later(() => resumeCycleAfterPerform(act), PERFORM_LOOP_MS);+ }+ function resumeCycleAfterPerform(act) {+ if (phase !== 'performing' || currentPerform !== act) return;+ setChipPressed(null);+ // Slide the avatar from the CTA back to the sit anchor before+ // startSit teleports + plays sitidle, so the return reads as+ // "walked back to perch" rather than a hard cut.+ phase = 'resting';+ cancelReturnSlide();+ const fromX = avatar.position.x, fromY = avatar.position.y;+ const back = getSitWorld();+ startW = back;+ avatar.rotation.y = 0;+ const t0 = performance.now();+ (function slide(now) {+ // If a new perform took over mid-slide, abandon: phase has+ // already advanced and the new perform is owning the avatar.+ if (phase !== 'resting') { returnSlide = null; return; }+ const sp = Math.min((now - t0) / 700, 1);+ avatar.position.x = fromX + (back.x - fromX) * smoothstep(sp);+ avatar.position.y = fromY + (back.y - fromY) * smoothstep(sp);+ if (sp < 1) returnSlide = requestAnimationFrame(slide);+ else {+ returnSlide = null;+ avatar.position.set(back.x, back.y, 0);+ startSit(); // resets perform clip + plays sitidle+ }+ })(performance.now());+ }+ for (const chip of chips) {+ chip.addEventListener('click', () => performAction(chip.dataset.clip));+ }+// ── Load avatar + animations ──────────────────────────────────────- new GLTFLoader().load('/avatars/cz.glb', gltf => {+ // Realistic Avaturn-rigged humanoid; clips in /public/animations/clips+ // are retargeted to this rig (see public/animations/registry.json).+ new GLTFLoader().load('/avatars/default.glb', gltf => {avatar = gltf.scene;avatar.traverse(n => {if (!rootBone && /^(Hips|Root|mixamorig:?Hips)$/i.test(n.name))@@ -416,12 +630,19 @@scene.add(avatar);mixer = new THREE.AnimationMixer(avatar);+ mixer.addEventListener('finished', e => {+ if (phase === 'performing' && e.action === currentPerform) {+ resumeCycleAfterPerform(e.action);+ }+ });+ const fetchClip = (file) => fetch(file).then(r => r.json());Promise.all([- fetch('/animations/clips/sitidle.json').then(r => r.json()),- fetch('/animations/clips/standup.json').then(r => r.json()),- fetch('/animations/clips/jumpdown3.json').then(r => r.json()),- ]).then(([sitJson, standJson, jumpJson]) => {+ fetchClip('/animations/clips/sitidle.json'),+ fetchClip('/animations/clips/standup.json'),+ fetchClip('/animations/clips/jumpdown3.json'),+ ...PERFORM_CLIPS.map(c => fetchClip(c.file)),+ ]).then(([sitJson, standJson, jumpJson, ...performJsons]) => {sitAction = mixer.clipAction(THREE.AnimationClip.parse(sitJson));sitAction.setLoop(THREE.LoopRepeat, Infinity);@@ -433,6 +654,20 @@fallAction.setLoop(THREE.LoopOnce, 1);fallAction.clampWhenFinished = true;+ PERFORM_CLIPS.forEach((def, i) => {+ const a = mixer.clipAction(THREE.AnimationClip.parse(performJsons[i]));+ if (def.loop) {+ a.setLoop(THREE.LoopRepeat, Infinity);+ } else {+ a.setLoop(THREE.LoopOnce, 1);+ a.clampWhenFinished = true;+ }+ performActions[def.name] = a;+ });++ // Chips were disabled until clips landed — enable now.+ for (const c of chips) c.disabled = false;+if (rootBone) baseRootPos = rootBone.position.clone();// Lock root bone every frame so animation root motion never drifts the avatardiff --git a/public/wallet/connect-button-solana.js b/public/wallet/connect-button-solana.jsindex 2e62c3e2a..967b044ef 100644--- a/public/wallet/connect-button-solana.js+++ b/public/wallet/connect-button-solana.js@@ -136,10 +136,13 @@ export class SolanaWalletController extends EventTarget {try {const nonceRes = await fetch(this.#opts.nonceUrl, { credentials: 'include' });if (!nonceRes.ok) throw new Error('Failed to get nonce');- const { nonce, csrf } = await nonceRes.json();+ const { nonce, csrf, domain: serverDomain, uri: serverUri } = await nonceRes.json();- const domain = location.host;- const uri = location.origin;+ // Prefer server-issued domain/uri so dev frontends proxying /api/*+ // to a different origin still produce messages that match the+ // upstream's domain check.+ const domain = serverDomain || location.host;+ const uri = serverUri || location.origin;const issuedAt = new Date().toISOString();const expirationTime = new Date(Date.now() + 5 * 60 * 1000).toISOString();diff --git a/public/wallet/connect-button.js b/public/wallet/connect-button.jsindex 153063278..4d70b76b2 100644--- a/public/wallet/connect-button.js+++ b/public/wallet/connect-button.js@@ -158,10 +158,13 @@ export class ConnectWalletController extends EventTarget {const nonceRes = await fetch(this.#opts.nonceUrl, { credentials: 'include' });if (!nonceRes.ok) throw new Error('Failed to get nonce');- const { nonce, csrf } = await nonceRes.json();+ const { nonce, csrf, domain: serverDomain, uri: serverUri } = await nonceRes.json();- const domain = location.host;- const uri = location.origin;+ // Prefer server-issued domain/uri so dev frontends proxying /api/*+ // to a different origin still produce messages that match the+ // upstream's domain check.+ const domain = serverDomain || location.host;+ const uri = serverUri || location.origin;const issuedAt = new Date().toISOString();const expirationTime = new Date(Date.now() + 5 * 60 * 1000).toISOString();diff --git a/scripts/gen-demo-avatars.mjs b/scripts/gen-demo-avatars.mjsindex b810212a8..d2a620044 100644--- a/scripts/gen-demo-avatars.mjs+++ b/scripts/gen-demo-avatars.mjs@@ -17,12 +17,27 @@ const KHRONOS = fs.readFileSync(path.join(HERE, 'khronos-glbs.txt'), 'utf8').triconst THREEJS = fs.readFileSync(path.join(HERE, 'threejs-glbs.txt'), 'utf8').trim().split('\n').map((s) => s.replace(/\.glb$/, '')).filter(Boolean);-// On-disk GLBs we ship with the app+// Curated community-avatar lineup. Each entry is a named identity rendered with+// a real GLB shipped under /public. The mapping from name → GLB is intentional:+// soldier-rigs go to operative/military-leaning personas, the expressive robot+// goes to AI/protocol personas, the default humanoid covers the rest.const ON_DISK = [- { name: 'CZ', slug: 'cz', path: '/avatars/cz.glb', tags: ['humanoid', 'character'], desc: 'Stylized humanoid avatar with idle pose. Ready for chat overlays.' },- { name: 'Default Avatar', slug: 'default-avatar', path: '/avatars/default.glb', tags: ['humanoid', 'starter'], desc: 'Neutral starter humanoid — a clean base for skinning, retargeting, and accessories.' },- { name: 'Robot Expressive', slug: 'robot-expressive', path: '/animations/robotexpressive.glb', tags: ['robot', 'animated', 'rigged'], desc: 'Expressive robot character with multiple animation clips: idle, walk, run, jump, dance.' },- { name: 'Soldier', slug: 'soldier', path: '/animations/soldier.glb', tags: ['humanoid', 'animated', 'rigged'], desc: 'Rigged soldier character with locomotion animations baked in.' },+ { name: 'CZ', slug: 'cz', path: '/avatars/cz.glb', tags: ['humanoid', 'character', 'community'], desc: 'CZ — stylized humanoid with idle pose, ready for chat overlays.' },+ { name: 'Ansem', slug: 'ansem', path: '/avatars/default.glb', tags: ['humanoid', 'community', 'trader'], desc: 'Ansem — trader persona for chart-watchers and crypto Twitter.' },+ { name: 'Boss', slug: 'boss', path: '/animations/soldier.glb', tags: ['humanoid', 'rigged', 'animated', 'community'], desc: 'Boss — for the one running the room. Soldier rig with locomotion.' },+ { name: 'Vernington', slug: 'vernington', path: '/avatars/default.glb', tags: ['humanoid', 'community'], desc: 'Vernington — the senior of the Vern lineage.' },+ { name: 'Saga', slug: 'saga', path: '/animations/robotexpressive.glb', tags: ['robot', 'animated', 'rigged', 'community'], desc: 'Saga — mobile-native, expressive robot rig with idle, walk, jump, dance clips.' },+ { name: 'Claude', slug: 'claude', path: '/avatars/default.glb', tags: ['humanoid', 'community', 'ai'], desc: 'Claude — calm, thoughtful AI persona.' },+ { name: '3D', slug: '3d', path: '/avatars/default.glb', tags: ['humanoid', 'community', 'meta'], desc: '3D — meta avatar representing the platform itself.' },+ { name: 'AI', slug: 'ai', path: '/animations/robotexpressive.glb', tags: ['robot', 'animated', 'rigged', 'community', 'ai'], desc: 'AI — generic agent stand-in, expressive robot rig.' },+ { name: 'Agent', slug: 'agent', path: '/animations/soldier.glb', tags: ['humanoid', 'rigged', 'animated', 'community', 'agent'], desc: 'Agent — operative ready for autonomous on-chain work.' },+ { name: 'Vern', slug: 'vern', path: '/avatars/default.glb', tags: ['humanoid', 'community'], desc: 'Vern — base form, before the Vernington promotion.' },+ { name: 'Crossinger', slug: 'crossinger', path: '/avatars/default.glb', tags: ['humanoid', 'community'], desc: 'Crossinger — chain-hopper, multi-network identity.' },+ { name: 'Spartian', slug: 'spartian', path: '/animations/soldier.glb', tags: ['humanoid', 'rigged', 'animated', 'community'], desc: 'Spartian — disciplined, armored, never folds.' },+ // Name surfaced as "Tester" because the marketplace UI auto-name filter+ // strips entries whose name is exactly "test" (see AVATAR_AUTONAMED_RE in+ // src/marketplace.js). Slug stays `test` to preserve the requested handle.+ { name: 'Tester', slug: 'test', path: '/avatars/default.glb', tags: ['humanoid', 'community'], desc: 'Tester — kicks the tires on every release before anyone else.' },];// Curated metadata for well-known Khronos models. Anything not listed here gets@@ -278,49 +293,58 @@ function isReferenceFixture(name, meta) {return false;}-// Khronos+// Khronos / three.js bulk catalogue is gated by INCLUDE_BULK_DEMOS. The Community+// Avatars wall is currently curated to a small named lineup (see ON_DISK above),+// so we skip the bulk public-domain catalogue by default. Set the env var to+// regenerate the full feed.+const INCLUDE_BULK_DEMOS = process.env.INCLUDE_BULK_DEMOS === '1';+let dropped = 0;-for (const name of KHRONOS) {- const meta = KHRONOS_META[name] || classifyByName(name);- if (isReferenceFixture(name, meta)) {- dropped += 1;- continue;++if (INCLUDE_BULK_DEMOS) {+ // Khronos+ for (const name of KHRONOS) {+ const meta = KHRONOS_META[name] || classifyByName(name);+ if (isReferenceFixture(name, meta)) {+ dropped += 1;+ continue;+ }+ const slug = 'demo-' + name.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();+ addItem({+ id: `avatar_demo_k_${name.toLowerCase()}`,+ slug,+ name: name.replace(/([a-z])([A-Z])/g, '$1 $2').replace(/([A-Z])([A-Z][a-z])/g, '$1 $2'),+ glbUrl: `${KHRONOS_BASE}/${name}/glTF-Binary/${name}.glb`,+ image: null, // jsdelivr can't serve thumbnails reliably; let the model-viewer poster handle it+ tags: meta.tags,+ desc: meta.desc,+ attribution: KHRONOS_ATTR,+ });}- const slug = 'demo-' + name.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();- addItem({- id: `avatar_demo_k_${name.toLowerCase()}`,- slug,- name: name.replace(/([a-z])([A-Z])/g, '$1 $2').replace(/([A-Z])([A-Z][a-z])/g, '$1 $2'),- glbUrl: `${KHRONOS_BASE}/${name}/glTF-Binary/${name}.glb`,- image: null, // jsdelivr can't serve thumbnails reliably; let the model-viewer poster handle it- tags: meta.tags,- desc: meta.desc,- attribution: KHRONOS_ATTR,- });-}-// three.js — skip ones already in Khronos to avoid duplicates-const KHRONOS_LOWER = new Set(KHRONOS.map((s) => s.toLowerCase()));-for (const baseName of THREEJS) {- if (KHRONOS_LOWER.has(baseName.toLowerCase())) continue; // skip dupes- // Case-insensitive THREEJS_META lookup so 'ferrari' (filename) matches 'Ferrari' (META key).- const metaKey = Object.keys(THREEJS_META).find((k) => k.toLowerCase() === baseName.toLowerCase());- const meta = (metaKey && THREEJS_META[metaKey]) || classifyByName(baseName);- const niceName = baseName- .replace(/[-_]+/g, ' ')- .replace(/\.glb$/, '')- .replace(/^(.)/, (m) => m.toUpperCase())- .replace(/\b([a-z])/g, (m) => m.toUpperCase());- addItem({- id: `avatar_demo_t_${baseName.toLowerCase().replace(/[^a-z0-9]+/g, '-')}`,- slug: 'demo-' + baseName.toLowerCase().replace(/[^a-z0-9]+/g, '-'),- name: niceName,- glbUrl: `${THREEJS_BASE}/${baseName}.glb`,- image: null,- tags: meta.tags,- desc: meta.desc,- attribution: THREEJS_ATTR,- });+ // three.js — skip ones already in Khronos to avoid duplicates+ const KHRONOS_LOWER = new Set(KHRONOS.map((s) => s.toLowerCase()));+ for (const baseName of THREEJS) {+ if (KHRONOS_LOWER.has(baseName.toLowerCase())) continue; // skip dupes+ // Case-insensitive THREEJS_META lookup so 'ferrari' (filename) matches 'Ferrari' (META key).+ const metaKey = Object.keys(THREEJS_META).find((k) => k.toLowerCase() === baseName.toLowerCase());+ const meta = (metaKey && THREEJS_META[metaKey]) || classifyByName(baseName);+ const niceName = baseName+ .replace(/[-_]+/g, ' ')+ .replace(/\.glb$/, '')+ .replace(/^(.)/, (m) => m.toUpperCase())+ .replace(/\b([a-z])/g, (m) => m.toUpperCase());+ addItem({+ id: `avatar_demo_t_${baseName.toLowerCase().replace(/[^a-z0-9]+/g, '-')}`,+ slug: 'demo-' + baseName.toLowerCase().replace(/[^a-z0-9]+/g, '-'),+ name: niceName,+ glbUrl: `${THREEJS_BASE}/${baseName}.glb`,+ image: null,+ tags: meta.tags,+ desc: meta.desc,+ attribution: THREEJS_ATTR,+ });+ }}const file = `/**diff --git a/scripts/verify-3d-home.mjs b/scripts/verify-3d-home.mjsnew file mode 100644index 000000000..1b08c9ac5--- /dev/null+++ b/scripts/verify-3d-home.mjs@@ -0,0 +1,102 @@+// Headless smoke test for /demos/3d-home.html.+// Boots Chromium, loads the page, watches for console errors and failed+// requests, asserts the chips wire up and the avatar GLB loads, then exits.+// Run while `npm run dev` is up on port 3000.+import puppeteer from 'puppeteer';++const URL = process.env.URL || 'http://localhost:3000/demos/3d-home.html';+const PERFORM_CLIPS = ['wave', 'rumba', 'celebrate', 'taunt'];++const browser = await puppeteer.launch({+ executablePath: '/home/codespace/.cache/puppeteer/chrome/linux-148.0.7778.97/chrome-linux64/chrome',+ args: ['--no-sandbox', '--disable-dev-shm-usage'],+ defaultViewport: { width: 1280, height: 800 },+});+const page = await browser.newPage();++const consoleErrors = [];+const failedRequests = [];+page.on('console', msg => {+ if (msg.type() === 'error') consoleErrors.push(msg.text());+});+page.on('pageerror', err => consoleErrors.push(`pageerror: ${err.message}`));+page.on('requestfailed', req => {+ const url = req.url();+ // Vite dev injects HMR/WebSocket — ignore those.+ if (url.includes('@vite') || url.startsWith('ws://')) return;+ failedRequests.push(`${req.method()} ${url} — ${req.failure()?.errorText}`);+});++page.on('response', async res => {+ const status = res.status();+ const url = res.url();+ if (status >= 400 && (url.includes('avatars/') || url.includes('animations/'))) {+ failedRequests.push(`HTTP ${status} ${url}`);+ }+});++const networked = [];+page.on('response', res => {+ const url = res.url();+ if (url.includes('avatars/') || url.includes('animations/clips/')) {+ networked.push(`${res.status()} ${url.replace(URL, '')}`);+ }+});++console.log(`→ ${URL}`);+// Vite's HMR WebSocket keeps the page from ever reaching networkidle, so just+// wait for DOM ready and let waitForFunction handle the rest.+await page.goto(URL, { waitUntil: 'domcontentloaded', timeout: 30_000 });++// Wait for chips to be enabled (clips finished loading)+await page.waitForFunction(+ () => [...document.querySelectorAll('#anim-controls .chip')].every(c => !c.disabled),+ { timeout: 15_000 },+);++// Baseline screenshot: avatar should be seated on the hero title.+await new Promise(r => setTimeout(r, 800));+await page.screenshot({ path: '/tmp/3d-home-sit.png', fullPage: false });+console.log('baseline (sit) screenshot: /tmp/3d-home-sit.png');++const chips = await page.$$eval('#anim-controls .chip', els =>+ els.map(e => ({ clip: e.dataset.clip, label: e.textContent.trim(), disabled: e.disabled })),+);+console.log('chips:', chips);++// Click each chip in turn — verify aria-pressed flips, then resumes+for (const clip of PERFORM_CLIPS) {+ await page.click(`#anim-controls .chip[data-clip="${clip}"]`);+ await new Promise(r => setTimeout(r, 200));+ const pressed = await page.$eval(+ `#anim-controls .chip[data-clip="${clip}"]`,+ el => el.getAttribute('aria-pressed'),+ );+ console.log(` ${clip} → aria-pressed=${pressed}`);+ if (pressed !== 'true') throw new Error(`chip ${clip} did not register as pressed`);+ // Wait for resume to sit cycle (rumba is a 6.2s loop; one-shots are ~3s)+ await page.waitForFunction(+ (c) => document.querySelector(`#anim-controls .chip[data-clip="${c}"]`).getAttribute('aria-pressed') === 'false',+ { timeout: 14_000 },+ clip,+ );+ console.log(` ${clip} resumed cycle ✓`);+}++console.log('\nNetwork (avatar + clips):');+for (const r of networked) console.log(` ${r}`);++const ok = consoleErrors.length === 0 && failedRequests.length === 0;+if (!ok) {+ console.error('\nConsole errors:');+ for (const e of consoleErrors) console.error(` ${e}`);+ console.error('\nFailed requests:');+ for (const r of failedRequests) console.error(` ${r}`);+}++await page.screenshot({ path: '/tmp/3d-home-verify.png', fullPage: false });+console.log('\nscreenshot: /tmp/3d-home-verify.png');++await browser.close();+if (!ok) process.exit(1);+console.log('\nOK');diff --git a/src/agent-edit.js b/src/agent-edit.jsindex ae204b922..c2338e26d 100644--- a/src/agent-edit.js+++ b/src/agent-edit.js@@ -116,7 +116,7 @@ function render() {$('panel-persona').hidden = false;$('panel-persona').classList.add('active');$('agent-title').textContent = `Edit Agent: ${agentData.name || 'Untitled'}`;- $('back-link').href = `/agents/${agentId}`;+ $('back-link').href = `/agents/${agentData.id}`;// Persona$('f-name').value = agentData.name || '';diff --git a/src/idle-animation.js b/src/idle-animation.jsindex d97a985b2..cf7982d57 100644--- a/src/idle-animation.js+++ b/src/idle-animation.js@@ -68,6 +68,11 @@ export class IdleAnimation {const seed = opts.seed ?? 'default';this._rand = mulberry32(hashStr(seed));+ // When no AgentProtocol is supplied, nothing else is writing to the head+ // each frame, so saccade must write absolutely (rest + offset) rather+ // than additively — otherwise the offset accumulates and the head spins.+ this._hasProtocol = !!opts.protocol;+// Per-avatar phase offsets — desync multiple instances on the same page.this._breathPhase = this._rand() * TWO_PI;this._weightPhase = this._rand() * TWO_PI;@@ -80,6 +85,8 @@ export class IdleAnimation {this._hipBone = null;this._spineRestX = 0;this._hipRestY = 0;+ this._headRestX = 0;+ this._headRestY = 0;/*** Pre-built morph index cache per mesh — eliminates dict lookup in hot path.@@ -223,6 +230,10 @@ export class IdleAnimation {// Prefer head over neck — neck is visited first in DFS but adding rotation// at neck level cascades into head, fighting the empathy layer's head-only control.this._headBone = headCandidate || neckCandidate;+ if (this._headBone) {+ this._headRestX = this._headBone.rotation.x;+ this._headRestY = this._headBone.rotation.y;+ }if (!this._headBone &&@@ -299,9 +310,18 @@ export class IdleAnimation {this._saccPitch = this._springBuf[0];this._saccPitchVel = this._springBuf[1];- // Additive — applied after the empathy layer sets head rotation this frame.- this._headBone.rotation.y += this._saccYaw;- this._headBone.rotation.x += this._saccPitch;+ if (this._hasProtocol) {+ // Empathy layer rewrites head rotation to (rest + yaw) each frame+ // just before idle runs, so layering saccade on top is correct.+ this._headBone.rotation.y += this._saccYaw;+ this._headBone.rotation.x += this._saccPitch;+ } else {+ // Static preview — no empathy layer is resetting the head, so+ // write absolutely off the captured rest pose. Otherwise saccade+ // accumulates every frame and the head spirals out of frame.+ this._headBone.rotation.y = this._headRestY + this._saccYaw;+ this._headBone.rotation.x = this._headRestX + this._saccPitch;+ }}// ── Channel 3: Blink ─────────────────────────────────────────────────────────diff --git a/src/voice/camera-presets.js b/src/voice/camera-presets.jsindex 871bd24bd..3ef332467 100644--- a/src/voice/camera-presets.js+++ b/src/voice/camera-presets.js@@ -64,9 +64,11 @@ export function computeFraming({ box, preset = 'full', aspectRatio = 1 } = {}) {// 0.5 = mid-torso, 0.65 = chest, 0.85 = head, 1.0 = top of head.const targetY = box.min.y + height * cfg.targetFrac;- // Distance back from the subject — scales with avatar height + tightens- // for wider aspect ratios so the subject doesn't shrink.- const distance = Math.max(cfg.minDistance, height * cfg.distanceMul * aspectRatio);+ // Distance back from the subject — scales with avatar height, then backs+ // off further on narrow viewports so a T-pose silhouette still fits+ // horizontally. Wider-than-tall viewports never need that extra nudge.+ const aspectBackoff = Math.max(1, 1 / aspectRatio);+ const distance = Math.max(cfg.minDistance, height * cfg.distanceMul * aspectBackoff);// Camera height: slightly above target so the look-vector slopes very// gently downward. Avoids the up-the-nose angle when the avatar is short.diff --git a/src/wallet/connect-button.js b/src/wallet/connect-button.jsindex 77e2ef1fe..ff39fa9ba 100644--- a/src/wallet/connect-button.js+++ b/src/wallet/connect-button.js@@ -230,10 +230,13 @@ export class ConnectWalletController extends EventTarget {const nonceRes = await fetch(this.#opts.nonceUrl, { credentials: 'include' });if (!nonceRes.ok) throw new Error('Failed to get nonce');- const { nonce, csrf } = await nonceRes.json();+ const { nonce, csrf, domain: serverDomain, uri: serverUri } = await nonceRes.json();- const domain = location.host;- const uri = location.origin;+ // Prefer server-issued domain/uri so dev frontends proxying /api/*+ // to a different origin still produce messages that match the+ // upstream's domain check.+ const domain = serverDomain || location.host;+ const uri = serverUri || location.origin;const issuedAt = new Date().toISOString();const expirationTime = new Date(Date.now() + 5 * 60 * 1000).toISOString();diff --git a/tests/camera-presets.test.js b/tests/camera-presets.test.jsindex 9b7badb14..90537d4ee 100644--- a/tests/camera-presets.test.js+++ b/tests/camera-presets.test.js@@ -100,7 +100,7 @@ describe('computeFraming — aspect ratio scaling', () => {it('narrower viewport pulls the camera further back', () => {const wide = computeFraming({ box: HUMANOID, preset: 'half', aspectRatio: 1.8 });const narrow = computeFraming({ box: HUMANOID, preset: 'half', aspectRatio: 0.6 });- expect(narrow.position.z).toBeLessThan(wide.position.z);+ expect(narrow.position.z).toBeGreaterThan(wide.position.z);});it('respects the minDistance floor on a small avatar', () => {