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
fix(agent-3d): split viewer/kiosk CSS selectors so Vite minifier preserves all three hide rules
nirholas27eb16c2f77e
diff --git a/public/demos-embed/avatar-only.html b/public/demos-embed/avatar-only.htmlnew file mode 100644index 000000000..32fbd6e59--- /dev/null+++ b/public/demos-embed/avatar-only.html@@ -0,0 +1,49 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width,initial-scale=1">+<meta name="robots" content="noindex">+<script type="module" src="/dist-lib/agent-3d.js"></script>+<style>+*{margin:0;padding:0;box-sizing:border-box}+html,body{width:100%;height:100%;background:transparent;overflow:hidden}+agent-3d{display:block;width:100%;height:100%;--agent-bg:transparent}+</style>+</head>+<body>+<agent-3d id="av" src="/avatars/michelle.glb" viewer></agent-3d>+<script>+const el = document.getElementById('av');++function killUI() {+ const s = el.shadowRoot;+ if (!s) return;+ const hide = ['.gui-wrap','.gui-toggle','.chrome','.nich-panel',+ '.nich-toggle','.alert-banner','.tool-indicator',+ '.drag-handle','.avatar-anchor'];+ hide.forEach(sel => {+ s.querySelectorAll(sel).forEach(n => {+ n.style.cssText = 'display:none!important;visibility:hidden!important';+ });+ });+}++// Run immediately, then watch for any new nodes+function watchAndKill() {+ killUI();+ new MutationObserver(killUI).observe(el.shadowRoot, { childList: true, subtree: true });+}++// shadowRoot may not exist until customElements upgrades the element+if (el.shadowRoot) {+ watchAndKill();+} else {+ customElements.whenDefined('agent-3d').then(() => {+ // Give the element one tick to attach shadow+ requestAnimationFrame(() => requestAnimationFrame(watchAndKill));+ });+}+</script>+</body>+</html>diff --git a/src/element.js b/src/element.jsindex 5f4d35d80..c4dab5ded 100644--- a/src/element.js+++ b/src/element.js@@ -586,12 +586,12 @@ const BASE_STYLE = `}:host([mode="floating"]) .drag-handle { display: block; }/* Kiosk mode: hide dat.GUI debug controls entirely */- :host([kiosk]) .gui-wrap,+ :host([kiosk]) .gui-wrap { display: none !important; }:host([kiosk]) .gui-toggle { display: none !important; }/* viewer mode: pure 3D canvas, no chat / input / avatar anchor / debug.Use when embedding the avatar as decoration (landing pages, launchpads). */- :host([viewer]) .chrome,- :host([viewer]) .gui-wrap,+ :host([viewer]) .chrome { display: none !important; }+ :host([viewer]) .gui-wrap { display: none !important; }:host([viewer]) .gui-toggle { display: none !important; }/* avatar-chat="off" — restore original bottom-row layout, hide avatar anchor */:host([avatar-chat="off"]) .chrome {