Skip to content

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.

fix: restore flat nav + eagerConnectWallet import (regression from 8838e4fd)

nirholasebf509a33e80
diff --git a/app.html b/app.html
index 7f6fa86cd..cddf2f7b6 100644
--- a/app.html
+++ b/app.html
@@ -48,7 +48,6 @@
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="stylesheet" href="style.css" />
- <link rel="stylesheet" href="/nav.css" />
<link rel="stylesheet" href="/footer.css" />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap"
@@ -59,16 +58,46 @@
<body>
<header>
<h1>
- <a href="/marketplace.html?tab=mine" aria-label="three.ws home"
+ <a href="/" aria-label="three.ws home"
><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a
>
</h1>
- <div id="nav-container"></div>
- <div class="header-actions">
- <button id="connect-wallet-btn">Connect Wallet</button>
- </div>
- </header>
- <script src="/nav.js"></script>
+ <nav class="features-nav" aria-label="Primary">
+ <a href="/app" id="nav-viewer-link">Viewer</a>
+ <a href="/create">Create</a>
+ <a href="/features">Features</a>
+ <a href="/discover">Discover</a>
+ <a href="/widgets">Widgets</a>
+ <a href="/studio">Studio</a>
+ <a href="/chat">Chat</a>
+ <a href="/docs">Docs</a>
+ <a href="/my-agents">My Agents</a>
+ <a
+ class="save-to-account-btn"
+ id="save-to-account-btn"
+ hidden
+ title="Save this model to your account"
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="14"
+ height="14"
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke="currentColor"
+ stroke-width="2"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ aria-hidden="true"
+ >
+ <path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z" />
+ <polyline points="17 21 17 13 7 13 7 21" />
+ <polyline points="7 3 7 8 15 8" />
+ </svg>
+ <span>Save to account</span>
+ </a>
+ <a
+ class="make-widget-btn"
id="make-widget-btn"
href="/studio"
hidden
@@ -279,31 +308,6 @@
</svg>
<span>Create Avatar</span>
</a>
- <a
- class="screenshot-btn"
- id="screenshot-btn"
- href="#"
- title="Take a screenshot of the current view"
- >
- <svg
- xmlns="http://www.w3.org/2000/svg"
- width="16"
- height="16"
- viewBox="0 0 24 24"
- fill="none"
- stroke="currentColor"
- stroke-width="2"
- stroke-linecap="round"
- stroke-linejoin="round"
- >
- <path
- d="M21 12.79V9a2 2 0 0 0-2-2h-1.21l-1.8-3.6A2 2 0 0 0 14.28 2H9.72a2 2 0 0 0-1.72 1.4L6.21 7H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h7.81"
- ></path>
- <circle cx="12" cy="13" r="4"></circle>
- <line x1="18" y1="22" x2="22" y2="18"></line>
- </svg>
- <span>Screenshot</span>
- </a>
</div>
<div class="spinner"></div>
</main>
diff --git a/package.json b/package.json
index 436f988be..e35e0ba4b 100644
--- a/package.json
+++ b/package.json
@@ -40,6 +40,7 @@
]
},
"scripts": {
+ "postinstall": "npm run build --prefix agent-payments-sdk",
"dev": "vite --port 3000",
"dev:lib": "TARGET=lib vite",
"build": "vite build",
diff --git a/src/app.js b/src/app.js
index 2b26a6555..95458237e 100644
--- a/src/app.js
+++ b/src/app.js
@@ -1,6 +1,7 @@
import * as THREE from 'three';
import WebGL from 'three/addons/capabilities/WebGL.js';
import { initWalletButton } from './wallet.js';
+import { eagerConnectWallet } from './erc8004/agent-registry.js';
import { Viewer } from './viewer.js';
import { Editor } from './editor/index.js';
import { SimpleDropzone } from 'simple-dropzone';
@@ -36,20 +37,6 @@ import { Runtime } from './runtime/index.js';
import { Memory } from './memory/index.js';
import { SkillRegistry } from './skills/index.js';
- window.VIEWER.runtime = new Runtime({
- manifest: {},
- viewer,
- memory: new Memory({ agentId: 'user' }),
- skills: new AgentSkills(protocol, new Memory({ agentId: 'user' })),
- agentId: 'user',
- });
-
- // Wallet — kick off a silent reconnect on app boot. Any page that later mounts
- // a wallet UI (deploy, reputation, validation, permissions, etc.) reads from
- // the shared signer + onWalletChange bus, so this single call surfaces an
- // already-authorized wallet site-wide without any popup.
- eagerConnectWallet();
-
window.THREE = THREE;
window.VIEWER = {};