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(discover): add on-chain agent discovery page with styles and logic
nirholas85d43da4c9cb
diff --git a/README.md b/README.mdindex 3bf64e9cd..5a9c0c56f 100644--- a/README.md+++ b/README.md@@ -176,7 +176,7 @@ Open **http://localhost:3000** for the landing page, or **http://localhost:3000/│ ├── cron/ → erc8004-crawl, index-delegations, run-dca, run-subscriptions│ ├── animations/, tts/, pinning/, api-keys/ → Supporting services│ └── _lib/ → Shared server helpers + `schema.sql`-├── public/ → Static subapps (studio, dashboard, widgets-gallery, agent, artifact, cz, discover, explore, validation, hydrate, lobehub, wallet, login.html, register.html) and default avatars+├── public/ → Static subapps (studio, dashboard, widgets-gallery, agent, artifact, cz, my-agents, explore, validation, hydrate, lobehub, wallet, login.html, register.html) and default avatars├── contracts/ → Smart contract sources├── sdk/, lobehub-plugin/ → Embedding SDK + Lobehub plugin├── scripts/ → Build, publish, icon, animation scripts@@ -257,7 +257,7 @@ Routing is driven by [`vercel.json`](vercel.json). High-level map:| `/studio`, `/widgets`, `/widgets/...` | Widget Studio + gallery || `/w/<id>` | Rendered widget page (with OG + oEmbed) || `/dashboard`, `/dashboard/...` | Authenticated dashboard (storage, usage) |-| `/discover`, `/explore` | Directories |+| `/my-agents`, `/discover` | Directories || `/artifact`, `/hydrate`, `/cz`, `/validation`, `/lobehub/iframe` | Standalone subapps || `/login`, `/register` | Auth pages || `/docs/widgets` | Widgets documentation |diff --git a/api/a-page.js b/api/a-page.jsindex c975e2739..f789b80c9 100644--- a/api/a-page.js+++ b/api/a-page.js@@ -78,7 +78,7 @@ function notFound(res, reason) {res.end(`<!doctype html><meta charset="utf-8"><title>Agent not found — 3D Agent</title><style>body{font-family:Inter,system-ui,sans-serif;background:#0a0a0a;color:#e0e0e0;display:grid;place-items:center;min-height:100vh;margin:0}main{text-align:center;padding:2rem;max-width:520px}a{color:#8b5cf6}</style>-<main><h1>Agent not found</h1><p>${escapeHtml(reason)}</p><p><a href="/explore">Browse all on-chain agents</a> · <a href="/">Open viewer</a></p></main>`,+<main><h1>Agent not found</h1><p>${escapeHtml(reason)}</p><p><a href="/discover">Browse all on-chain agents</a> · <a href="/">Open viewer</a></p></main>`,);}@@ -121,9 +121,9 @@ function renderHtml(p) {<meta property="fc:frame:button:1" content="View 3D"><meta property="fc:frame:button:1:action" content="link"><meta property="fc:frame:button:1:target" content="${escapeAttr(p.viewerUrl)}">- <meta property="fc:frame:button:2" content="Explore">+ <meta property="fc:frame:button:2" content="Discover"><meta property="fc:frame:button:2:action" content="link">- <meta property="fc:frame:button:2:target" content="${escapeAttr(p.origin)}/explore">+ <meta property="fc:frame:button:2:target" content="${escapeAttr(p.origin)}/discover"><link rel="canonical" href="${escapeAttr(p.pageUrl)}"><link rel="alternate" type="application/json+oembed" href="${escapeAttr(p.oembedJs)}" title="${t}">@@ -144,7 +144,7 @@ function renderHtml(p) {<div class="shell"><h1>${t}</h1><p>${d}</p>- <p><a href="${escapeAttr(p.embedUrl)}">Open 3D viewer</a> · <a href="/explore">Browse agents</a></p>+ <p><a href="${escapeAttr(p.embedUrl)}">Open 3D viewer</a> · <a href="/discover">Browse agents</a></p></div></noscript><div class="shell" id="loading" aria-live="polite">diff --git a/app.html b/app.htmlindex 40a4613de..955c8869a 100644--- a/app.html+++ b/app.html@@ -58,7 +58,7 @@<nav class="features-nav"><a href="/app" class="active">Viewer</a><a href="/features">Features</a>- <a href="/explore">Explore</a>+ <a href="/discover">Discover</a><a href="/widgets">Widgets</a><aclass="save-to-account-btn"diff --git a/features.html b/features.htmlindex cadf236a7..4f022cfce 100644--- a/features.html+++ b/features.html@@ -41,7 +41,7 @@<h1><a href="/" aria-label="3D Agent home">3D Agent</a></h1><nav class="features-nav" aria-label="Primary"><a href="/app">Viewer</a>- <a href="/explore">Explore</a>+ <a href="/discover">Discover</a><a href="/features" class="active" aria-current="page">Features</a></nav></header>diff --git a/index.html b/index.htmlindex 2eb81916f..fefe8bd0f 100644--- a/index.html+++ b/index.html@@ -498,7 +498,7 @@</h1><nav class="features-nav" aria-label="Primary"><a href="/app">Viewer</a>- <a href="/explore">Explore</a>+ <a href="/discover">Discover</a><a href="/features">Features</a><a href="/widgets">Widgets</a><a href="/dashboard" class="nav-dashboard">Dashboard</a>@@ -948,8 +948,8 @@if (btn) wireSigninButton(btn);</script><!-- BEGIN:DISCOVER_LINK -->- <a href="/discover" id="discoverLink" class="discover-cta" hidden- >Find my on-chain agents →</a+ <a href="/my-agents" id="discoverLink" class="discover-cta" hidden+ >My Agents →</a><script type="module">fetch('/api/auth/me', { credentials: 'include' })diff --git a/public/dashboard/index.html b/public/dashboard/index.htmlindex 24fd0283a..64d3684a4 100644--- a/public/dashboard/index.html+++ b/public/dashboard/index.html@@ -669,8 +669,8 @@<a href="#keys" data-tab="keys">API keys</a><a href="#mcp" data-tab="mcp">MCP</a><a href="#billing" data-tab="billing">Plan & usage</a>- <a href="/explore" title="Browse on-chain agents across every supported chain"- >Explore on-chain ↗</a+ <a href="/discover" title="Browse on-chain agents across every supported chain"+ >Discover on-chain ↗</a></aside><main id="main"></main>diff --git a/public/explore/explore.js b/public/discover/discover.jssimilarity index 99%rename from public/explore/explore.jsrename to public/discover/discover.jsindex 5f522311f..99ea42de3 100644--- a/public/explore/explore.js+++ b/public/discover/discover.js@@ -1,5 +1,5 @@/**- * /explore — ERC-8004 agent marketplace grid.+ * /discover — ERC-8004 agent marketplace grid.** Pulls from GET /api/explore. Filters + infinite pagination via cursor.* Clicking a card opens the on-chain token page on the source chain'sdiff --git a/public/explore/index.html b/public/discover/index.htmlsimilarity index 90%rename from public/explore/index.htmlrename to public/discover/index.htmlindex a1907ff4b..900f7badd 100644--- a/public/explore/index.html+++ b/public/discover/index.html@@ -3,14 +3,14 @@<head><meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" />- <title>Explore · 3D Agent</title>+ <title>Discover · 3D Agent</title><meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" /><metaname="description"- content="Browse every ERC-8004 agent registered on-chain across 20+ EVM networks. Filter by 3D avatar, chain, and keywords."+ content="Discover every ERC-8004 agent registered on-chain across 20+ EVM networks. Filter by 3D avatar, chain, and keywords."/><meta name="theme-color" content="#000000" />- <link rel="canonical" href="https://3dagent.vercel.app/explore" />+ <link rel="canonical" href="https://3dagent.vercel.app/discover" /><link rel="shortcut icon" href="/favicon.ico" /><link rel="preconnect" href="https://fonts.googleapis.com" /><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />@@ -27,7 +27,7 @@</h1><nav class="features-nav"><a href="/app">Viewer</a>- <a href="/explore" class="active">Explore</a>+ <a href="/discover" class="active">Discover</a><a href="/features">Features</a><a href="/widgets">Widgets</a><a href="/dashboard" class="nav-dashboard">Dashboard</a>@@ -95,6 +95,6 @@</section></main>- <script type="module" src="./explore.js"></script>+ <script type="module" src="./discover.js"></script></body></html>diff --git a/public/my-agents/index.html b/public/my-agents/index.htmlindex bc168faa4..1cf21ab2e 100644--- a/public/my-agents/index.html+++ b/public/my-agents/index.html@@ -3,13 +3,13 @@<head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />- <title>On-chain Agents · 3D Agent</title>+ <title>My Agents · 3D Agent</title><metaname="description"- content="Discover ERC-8004 agents you own across every supported chain."+ content="Your ERC-8004 agents across every supported chain."/><link rel="icon" href="/favicon.ico" />- <link rel="stylesheet" href="/discover/discover.css" />+ <link rel="stylesheet" href="/my-agents/my-agents.css" /></head><body><header class="discover-header">@@ -22,7 +22,7 @@<main class="discover-main" id="discover-main"><h1 class="discover-title">On-chain Agents</h1>- <p class="discover-subtitle">Agents we found in your linked wallets</p>+ <p class="discover-subtitle">Agents owned by your linked wallets</p><divid="discover-error"@@ -42,6 +42,6 @@></div></main>- <script type="module" src="/discover/discover.js"></script>+ <script type="module" src="/my-agents/my-agents.js"></script></body></html>diff --git a/public/my-agents/my-agents.css b/public/my-agents/my-agents.cssindex 25dd091d8..dbffd8e4e 100644--- a/public/my-agents/my-agents.css+++ b/public/my-agents/my-agents.css@@ -1,4 +1,5 @@-/* discover.css — On-chain agent discovery page styles */+/* my-agents.css — My on-chain agents page styles */+/* TODO: rename `discover-*` class prefix to `my-agents-*` (deferred — JS selectors use these names). *//* ── Design tokens (mirrored from dashboard) ─────────────────────────── */:root {diff --git a/public/my-agents/my-agents.js b/public/my-agents/my-agents.jsindex 62088af5c..29b81a35a 100644--- a/public/my-agents/my-agents.js+++ b/public/my-agents/my-agents.js@@ -253,7 +253,7 @@ async function loadAgents() {showState('👛','No wallets linked',- 'Link a wallet to discover your on-chain agents.',+ 'Link a wallet to see your on-chain agents.',{ label: 'Link a wallet', href: '/dashboard/wallets.html' },);return;diff --git a/public/validation/index.html b/public/validation/index.htmlindex fa8053892..f3b7c491e 100644--- a/public/validation/index.html+++ b/public/validation/index.html@@ -398,7 +398,7 @@<nav><a href="/">Home</a><a href="/dashboard">Dashboard</a>- <a href="/explore">Explore</a>+ <a href="/discover">Discover</a></nav></header>diff --git a/src/erc8004/register-ui.js b/src/erc8004/register-ui.jsindex 8a6d3cdfa..85b124b64 100644--- a/src/erc8004/register-ui.js+++ b/src/erc8004/register-ui.js@@ -1400,7 +1400,7 @@ export class RegisterUI {}).then(async (res) => {if (res.count === 0) {- list.innerHTML = `<div class="erc8004-muted">No agents registered on this chain yet. <a class="erc8004-link" data-role="goto-create">Create one →</a> or <a class="erc8004-link" href="/explore" target="_blank" rel="noopener">browse other on-chain agents ↗</a>.</div>`;+ list.innerHTML = `<div class="erc8004-muted">No agents registered on this chain yet. <a class="erc8004-link" data-role="goto-create">Create one →</a> or <a class="erc8004-link" href="/discover" target="_blank" rel="noopener">browse other on-chain agents ↗</a>.</div>`;list.querySelector('[data-role="goto-create"]').addEventListener('click',(e) => {@@ -2097,7 +2097,7 @@ export class RegisterUI {<h3 class="erc8004-h3">Agent Search</h3><p class="erc8004-p">Look up agents on <b>${chainName}</b> by ID, wallet address, ENS name, tx hash, or <code>agent://</code> URI.- Need cross-chain? <a class="erc8004-link" href="/explore" target="_blank" rel="noopener">Open /explore ↗</a>.+ Need cross-chain? <a class="erc8004-link" href="/discover" target="_blank" rel="noopener">Open /discover ↗</a>.</p><div class="erc8004-row"><input class="erc8004-input" name="q" placeholder="Agent ID · 0x address · ENS · tx hash · agent://chain/id" />@@ -2155,7 +2155,7 @@ export class RegisterUI {if (uriChain !== this.selectedChainId) {out.innerHTML = `<div class="erc8004-log-error">This agent is on <b>${esc(CHAIN_META[uriChain]?.name || `Chain ${uriChain}`)}</b>, not the selected chain.- <a class="erc8004-link" href="/explore?q=${encodeURIComponent(raw)}" target="_blank" rel="noopener">Open in /explore ↗</a>+ <a class="erc8004-link" href="/discover?q=${encodeURIComponent(raw)}" target="_blank" rel="noopener">Open in /discover ↗</a></div>`;return;}@@ -2191,7 +2191,7 @@ export class RegisterUI {out.innerHTML = `<div class="erc8004-muted">No agents resolved on ${chainName} for <code>${esc(raw)}</code>.- <a class="erc8004-link" href="/explore?q=${encodeURIComponent(raw)}" target="_blank" rel="noopener">Try across all chains ↗</a>+ <a class="erc8004-link" href="/discover?q=${encodeURIComponent(raw)}" target="_blank" rel="noopener">Try across all chains ↗</a></div>`;return;diff --git a/vercel.json b/vercel.jsonindex db6e8fbb6..616a6ddec 100644--- a/vercel.json+++ b/vercel.json@@ -112,8 +112,11 @@{ "src": "/api/dca-strategies/([^/]+)", "dest": "/api/dca-strategies?id=$1" },{ "src": "/api/dca-strategies", "dest": "/api/dca-strategies" },+ { "src": "/my-agents", "dest": "/my-agents/index.html" },+ { "src": "/my-agents/", "dest": "/my-agents/index.html" },{ "src": "/discover", "dest": "/discover/index.html" },{ "src": "/discover/", "dest": "/discover/index.html" },+ { "src": "/discover/(.*)", "dest": "/discover/$1" },{ "src": "/api/(.*)", "dest": "/api/$1" },@@ -165,9 +168,8 @@{ "src": "/create", "dest": "/create.html" },{ "src": "/create/", "dest": "/create.html" },{ "src": "/home", "dest": "/home.html" },- { "src": "/explore", "dest": "/explore/index.html" },- { "src": "/explore/", "dest": "/explore/index.html" },- { "src": "/explore/(.*)", "dest": "/explore/$1" },+ { "src": "/explore", "status": 301, "headers": { "Location": "/discover" } },+ { "src": "/explore/", "status": 301, "headers": { "Location": "/discover" } },{ "src": "/a/(\\d+)/(\\d+)/embed", "dest": "/a-embed.html" },{ "src": "/a/(\\d+)/(\\d+)", "dest": "/api/a-page?chain=$1&id=$2" },{ "src": "/a/(.*)", "dest": "/app.html" },diff --git a/vite.config.js b/vite.config.jsindex b262401cb..501072944 100644--- a/vite.config.js+++ b/vite.config.js@@ -38,7 +38,7 @@ const appConfig = {reputation: resolve(__dirname, 'public/reputation/index.html'),hydrate: resolve(__dirname, 'public/hydrate/index.html'),// BEGIN:DISCOVER_ROUTE- discover: resolve(__dirname, 'public/discover/index.html'),+ 'my-agents': resolve(__dirname, 'public/my-agents/index.html'),// END:DISCOVER_ROUTE},},@@ -52,8 +52,8 @@ const appConfig = {'/app': resolve(root, 'app.html'),'/login': resolve(root, 'public/login.html'),'/deploy': resolve(root, 'app.html'),- '/explore': resolve(root, 'public/explore/index.html'),- '/explore/': resolve(root, 'public/explore/index.html'),+ '/discover': resolve(root, 'public/discover/index.html'),+ '/discover/': resolve(root, 'public/discover/index.html'),'/agents': resolve(root, 'public/agents/index.html'),'/agents/': resolve(root, 'public/agents/index.html'),'/features': resolve(root, 'features.html'),@@ -71,8 +71,8 @@ const appConfig = {'/hydrate': resolve(root, 'public/hydrate/index.html'),'/hydrate/': resolve(root, 'public/hydrate/index.html'),// BEGIN:DISCOVER_ROUTE- '/discover': resolve(root, 'public/discover/index.html'),- '/discover/': resolve(root, 'public/discover/index.html'),+ '/my-agents': resolve(root, 'public/my-agents/index.html'),+ '/my-agents/': resolve(root, 'public/my-agents/index.html'),// END:DISCOVER_ROUTE'/agent': resolve(root, 'agent-home.html'),};