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: integrate demo widget functionality and update styling for header logo
nirholas64df4774144e
diff --git a/api/widgets/[id]/chat.js b/api/widgets/[id]/chat.jsindex c93e0eff6..c494368ea 100644--- a/api/widgets/[id]/chat.js+++ b/api/widgets/[id]/chat.js@@ -27,6 +27,7 @@ import { cors, json, method, readJson, wrap, error } from '../../_lib/http.js';import { parse } from '../../_lib/validate.js';import { limits, clientIp } from '../../_lib/rate-limit.js';import { captureException } from '../../_lib/sentry.js';+import { isDemoWidgetId, getDemoWidget } from '../_demo-fixtures.js';const ANTHROPIC_URL = 'https://api.anthropic.com/v1/messages';const DEFAULT_MODEL = 'claude-sonnet-4-6';@@ -318,6 +319,7 @@ function filterSkills(skillsConfig) {}async function loadWidget(id) {+ if (isDemoWidgetId(id)) return getDemoWidget(id);try {const [row] = await sql`select id, user_id, type, name, config, is_publicdiff --git a/api/widgets/_demo-fixtures.js b/api/widgets/_demo-fixtures.jsindex 562a6b608..039e12d37 100644--- a/api/widgets/_demo-fixtures.js+++ b/api/widgets/_demo-fixtures.js@@ -83,7 +83,7 @@ export const DEMO_WIDGETS = {autoRotate: false,envPreset: 'neutral',greeting: 'Hi! What would you like to know?',- brain: 'none',+ brainProvider: 'none',proxyURL: '',},}),diff --git a/public/auth.css b/public/auth.cssindex 3a98f5ed2..243b825ac 100644--- a/public/auth.css+++ b/public/auth.css@@ -7,6 +7,13 @@* { box-sizing: border-box; }+.header-logo {+ width: 14px;+ height: 14px;+ vertical-align: -2px;+ margin-right: 6px;+}+body {font:15px/1.5 -apple-system,diff --git a/public/features/features.css b/public/features/features.cssindex c4bfb373c..eacf4ed4b 100644--- a/public/features/features.css+++ b/public/features/features.css@@ -102,6 +102,7 @@transform: translateZ(calc(var(--features-perspective) * var(--depth) * -1))scale(calc(var(--depth) + 1));z-index: calc(10 - var(--depth, 0));+ overflow: hidden;}.parallax-layer--front {@@ -789,6 +790,12 @@z-index: 30;}+/* Footer must stack above the z-index:30 outro on this page. */+.features-parallax-page .h-footer-horizon {+ position: relative;+ z-index: 31;+}+.features-outro h3 {font-family: 'Space Grotesk', sans-serif;font-size: clamp(1.6rem, 3.2vw, 2.4rem);diff --git a/public/my-agents/my-agents.css b/public/my-agents/my-agents.cssindex d06747ce6..41360ec25 100644--- a/public/my-agents/my-agents.css+++ b/public/my-agents/my-agents.css@@ -63,6 +63,13 @@ a:hover {flex-shrink: 0;}+.header-logo {+ width: 14px;+ height: 14px;+ vertical-align: -2px;+ margin-right: 6px;+}+.my-agents-header__nav {display: flex;align-items: center;diff --git a/src/element.js b/src/element.jsindex 7fadf9cc9..5651767e3 100644--- a/src/element.js+++ b/src/element.js@@ -807,12 +807,6 @@ class Agent3DElement extends HTMLElement {agentId: _backendId || undefined,apiOrigin: _scriptOrigin || window.location.origin,};- // Apply tts="..." attribute shorthand on top of the manifest's voice config.- const ttsOverride = this._parseTTSAttribute();- if (ttsOverride) {- manifest.voice = manifest.voice || {};- manifest.voice.tts = { ...(manifest.voice.tts || {}), ...ttsOverride };- }this._runtime = new Runtime({manifest,viewer: this._scene,diff --git a/src/erc8004/register-ui.js b/src/erc8004/register-ui.jsindex 58a39818d..560bef71f 100644--- a/src/erc8004/register-ui.js+++ b/src/erc8004/register-ui.js@@ -1287,9 +1287,7 @@ export class RegisterUI {const view3D = body.querySelector('[data-role="view-3d"]');view3D.addEventListener('click', () => {- // Jump to the viewer with this model loaded- window.location.hash = `agent=${result.agentId}`;- window.location.reload();+ window.location.href = `/a/${this.selectedChainId}/${result.agentId}`;});body.querySelector('[data-role="view-explorer"]').href = txExplorerUrl(this.selectedChainId,