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.

style: update button and background colors for improved visibility and consistency

nirholascd49c40d500c
diff --git a/public/dashboard/index.html b/public/dashboard/index.html
index 91250548f..0c96b5934 100644
--- a/public/dashboard/index.html
+++ b/public/dashboard/index.html
@@ -1074,6 +1074,7 @@
<a href="#keys" data-tab="keys">API keys</a>
<a href="#mcp" data-tab="mcp">MCP</a>
<a href="#billing" data-tab="billing">Plan &amp; usage</a>
+ <a href="/dashboard/wallets">Wallets</a>
<a href="/discover" title="Browse on-chain agents across every supported chain"
>Discover on-chain ↗</a
>
diff --git a/public/dashboard/wallets.html b/public/dashboard/wallets.html
index a896c6db3..8676ed61a 100644
--- a/public/dashboard/wallets.html
+++ b/public/dashboard/wallets.html
@@ -184,6 +184,7 @@
<header>
<div class="brand"><a href="/">three.ws</a></div>
<div class="row">
+ <a href="/dashboard" class="muted" style="font-size:13px">← Dashboard</a>
<span class="muted" id="user-email"></span>
<button class="btn sec" onclick="signOut()">Sign out</button>
</div>
diff --git a/public/widgets-gallery/gallery.css b/public/widgets-gallery/gallery.css
index 7b20672ea..84b831812 100644
--- a/public/widgets-gallery/gallery.css
+++ b/public/widgets-gallery/gallery.css
@@ -172,7 +172,7 @@ body.gallery-body {
}
.btn:focus-visible {
- outline: 2px solid var(--accent);
+ outline: 2px solid rgba(255, 255, 255, 0.5);
outline-offset: 2px;
}
@@ -251,7 +251,7 @@ body.gallery-body {
}
.filter-btn:focus-visible {
- outline: 2px solid var(--accent);
+ outline: 2px solid rgba(255, 255, 255, 0.5);
outline-offset: 2px;
}
@@ -388,8 +388,8 @@ body.gallery-body {
align-items: center;
justify-content: center;
background:
- radial-gradient(ellipse at 30% 40%, color-mix(in srgb, var(--type-color, #8b5cf6) 12%, transparent) 0%, transparent 70%),
- radial-gradient(ellipse at 75% 70%, color-mix(in srgb, var(--type-color, #8b5cf6) 6%, transparent) 0%, transparent 60%),
+ radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, 0.04) 0%, transparent 70%),
+ radial-gradient(ellipse at 75% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 60%),
#050505;
transition: opacity 0.3s ease;
}
@@ -570,14 +570,14 @@ body.gallery-body {
.snippet-row button:focus-visible,
.snippet-row a:focus-visible {
- outline: 2px solid var(--accent);
+ outline: 2px solid rgba(255, 255, 255, 0.5);
outline-offset: 2px;
}
.snippet-row .copied {
- background: var(--accent-soft);
- border-color: var(--accent);
- color: #c4b5fd;
+ background: rgba(255, 255, 255, 0.08);
+ border-color: rgba(255, 255, 255, 0.3);
+ color: #fff;
}
/* ── Error state ─────────────────────────────────────────────────────────────── */
@@ -606,8 +606,8 @@ body.gallery-body {
.gallery-cta {
text-align: center;
padding: var(--space-2xl) var(--space-lg);
- background: rgba(139, 92, 246, 0.06);
- border: 1px solid rgba(139, 92, 246, 0.15);
+ background: rgba(255, 255, 255, 0.03);
+ border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: var(--radius-lg);
display: flex;
flex-direction: column;
diff --git a/scripts/backfill-erc8004.mjs b/scripts/backfill-erc8004.mjs
new file mode 100644
index 000000000..0e04a5fe0
--- /dev/null
+++ b/scripts/backfill-erc8004.mjs
@@ -0,0 +1,163 @@
+/**
+ * One-shot ERC-8004 historical backfill script.
+ *
+ * Reads DATABASE_URL and ETHERSCAN_API_KEY from .env.local (or process.env).
+ * Scans every Registered event from block 0 on every chain and upserts into
+ * erc8004_agents_index, then advances the crawl cursor.
+ *
+ * Usage:
+ * node scripts/backfill-erc8004.mjs
+ * node scripts/backfill-erc8004.mjs 8453 84532 # specific chain IDs only
+ *
+ * Set ETHERSCAN_API_KEY in .env.local or export it before running.
+ */
+
+import { readFileSync } from 'fs';
+import { resolve, dirname } from 'path';
+import { fileURLToPath } from 'url';
+import { AbiCoder, getAddress, id as keccakId } from 'ethers';
+import { neon } from '@neondatabase/serverless';
+
+const __dir = dirname(fileURLToPath(import.meta.url));
+
+// Load .env.local
+try {
+ const raw = readFileSync(resolve(__dir, '../.env.local'), 'utf8');
+ for (const line of raw.split('\n')) {
+ const m = line.match(/^([A-Z_][A-Z0-9_]*)=(.*)$/);
+ if (m && !process.env[m[1]]) process.env[m[1]] = m[2].trim();
+ }
+} catch {
+ /* no .env.local — rely on process.env */
+}
+
+const DATABASE_URL = process.env.DATABASE_URL;
+const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY;
+
+if (!DATABASE_URL) { console.error('Missing DATABASE_URL'); process.exit(1); }
+if (!ETHERSCAN_API_KEY) { console.error('Missing ETHERSCAN_API_KEY'); process.exit(1); }
+
+const sql = neon(DATABASE_URL);
+
+const REGISTERED_TOPIC = keccakId('Registered(uint256,string,address)');
+const ABI_CODER = AbiCoder.defaultAbiCoder();
+const ETHERSCAN_BASE = 'https://api.etherscan.io/v2/api';
+const PAGE_SIZE = 1000;
+
+const CHAINS = [
+ { id: 8453, name: 'Base', registry: '0x8004A169FB4a3325136EB29fA0ceB6D2e539a432' },
+ { id: 42161, name: 'Arbitrum One', registry: '0x8004A169FB4a3325136EB29fA0ceB6D2e539a432' },
+ { id: 56, name: 'BNB Chain', registry: '0x8004A169FB4a3325136EB29fA0ceB6D2e539a432' },
+ { id: 1, name: 'Ethereum', registry: '0x8004A169FB4a3325136EB29fA0ceB6D2e539a432' },
+ { id: 10, name: 'Optimism', registry: '0x8004A169FB4a3325136EB29fA0ceB6D2e539a432' },
+ { id: 137, name: 'Polygon', registry: '0x8004A169FB4a3325136EB29fA0ceB6D2e539a432' },
+ { id: 43114, name: 'Avalanche', registry: '0x8004A169FB4a3325136EB29fA0ceB6D2e539a432' },
+ { id: 100, name: 'Gnosis', registry: '0x8004A169FB4a3325136EB29fA0ceB6D2e539a432' },
+ { id: 250, name: 'Fantom', registry: '0x8004A169FB4a3325136EB29fA0ceB6D2e539a432' },
+ { id: 42220, name: 'Celo', registry: '0x8004A169FB4a3325136EB29fA0ceB6D2e539a432' },
+ { id: 59144, name: 'Linea', registry: '0x8004A169FB4a3325136EB29fA0ceB6D2e539a432' },
+ { id: 534352, name: 'Scroll', registry: '0x8004A169FB4a3325136EB29fA0ceB6D2e539a432' },
+ { id: 5000, name: 'Mantle', registry: '0x8004A169FB4a3325136EB29fA0ceB6D2e539a432' },
+ { id: 324, name: 'zkSync Era', registry: '0x8004A169FB4a3325136EB29fA0ceB6D2e539a432' },
+ { id: 1284, name: 'Moonbeam', registry: '0x8004A169FB4a3325136EB29fA0ceB6D2e539a432' },
+ { id: 97, name: 'BSC Testnet', registry: '0x8004A818BFB912233c491871b3d84c89A494BD9e' },
+ { id: 84532, name: 'Base Sepolia', registry: '0x8004A818BFB912233c491871b3d84c89A494BD9e' },
+ { id: 421614, name: 'Arbitrum Sepolia', registry: '0x8004A818BFB912233c491871b3d84c89A494BD9e' },
+ { id: 11155111, name: 'Ethereum Sepolia', registry: '0x8004A818BFB912233c491871b3d84c89A494BD9e' },
+ { id: 11155420, name: 'Optimism Sepolia', registry: '0x8004A818BFB912233c491871b3d84c89A494BD9e' },
+ { id: 80002, name: 'Polygon Amoy', registry: '0x8004A818BFB912233c491871b3d84c89A494BD9e' },
+ { id: 43113, name: 'Avalanche Fuji', registry: '0x8004A818BFB912233c491871b3d84c89A494BD9e' },
+];
+
+const onlyIds = process.argv.slice(2).map(Number).filter(Boolean);
+const chains = onlyIds.length ? CHAINS.filter((c) => onlyIds.includes(c.id)) : CHAINS;
+
+async function fetchJson(url) {
+ const res = await fetch(url, { signal: AbortSignal.timeout(15_000) });
+ if (!res.ok) throw new Error(`HTTP ${res.status}`);
+ return res.json();
+}
+
+async function backfillChain(chain) {
+ let page = 1;
+ let inserted = 0;
+ let lastBlock = 0;
+
+ while (true) {
+ const url = new URL(ETHERSCAN_BASE);
+ url.searchParams.set('chainid', String(chain.id));
+ url.searchParams.set('module', 'logs');
+ url.searchParams.set('action', 'getLogs');
+ url.searchParams.set('address', chain.registry);
+ url.searchParams.set('topic0', REGISTERED_TOPIC);
+ url.searchParams.set('fromBlock', '0');
+ url.searchParams.set('toBlock', 'latest');
+ url.searchParams.set('page', String(page));
+ url.searchParams.set('offset', String(PAGE_SIZE));
+ url.searchParams.set('apikey', ETHERSCAN_API_KEY);
+
+ const body = await fetchJson(url.toString());
+
+ if (body.status === '0' && /no records/i.test(body.message || '')) break;
+ if (body.status !== '1' || !Array.isArray(body.result)) {
+ throw new Error(`etherscan ${chain.id} p${page}: ${body.message} — ${String(body.result).slice(0, 80)}`);
+ }
+
+ for (const log of body.result) {
+ try {
+ const agentId = BigInt(log.topics[1]).toString();
+ const owner = getAddress('0x' + log.topics[2].slice(-40)).toLowerCase();
+ const [agentURI] = ABI_CODER.decode(['string'], log.data);
+ const blockNumber = Number.parseInt(log.blockNumber, 16);
+ const registeredAt = new Date(Number.parseInt(log.timeStamp, 16) * 1000).toISOString();
+
+ await sql`
+ INSERT INTO erc8004_agents_index
+ (chain_id, agent_id, owner, registry, agent_uri,
+ registered_block, registered_tx, registered_at, last_seen_at)
+ VALUES
+ (${chain.id}, ${agentId}, ${owner}, ${chain.registry.toLowerCase()},
+ ${agentURI || null}, ${blockNumber}, ${log.transactionHash},
+ ${registeredAt}, now())
+ ON CONFLICT (chain_id, agent_id) DO UPDATE SET
+ owner = excluded.owner,
+ agent_uri = COALESCE(excluded.agent_uri, erc8004_agents_index.agent_uri),
+ last_seen_at = now()
+ `;
+ inserted++;
+ if (blockNumber > lastBlock) lastBlock = blockNumber;
+ } catch (e) {
+ console.warn(` skip ${log.transactionHash}: ${e.message}`);
+ }
+ }
+
+ process.stdout.write(`\r page ${page} — ${inserted} upserted`);
+
+ if (body.result.length < PAGE_SIZE) break;
+ page++;
+ }
+
+ if (lastBlock > 0) {
+ await sql`
+ INSERT INTO erc8004_crawl_cursor (chain_id, last_block, updated_at)
+ VALUES (${chain.id}, ${lastBlock}, now())
+ ON CONFLICT (chain_id) DO UPDATE SET
+ last_block = GREATEST(erc8004_crawl_cursor.last_block, excluded.last_block),
+ updated_at = now()
+ `;
+ }
+
+ return { inserted, pages: page, lastBlock };
+}
+
+console.log(`Backfilling ${chains.length} chain(s)…\n`);
+for (const chain of chains) {
+ process.stdout.write(`[${chain.name} (${chain.id})] scanning…`);
+ try {
+ const { inserted, pages, lastBlock } = await backfillChain(chain);
+ console.log(`\r[${chain.name}] done — ${inserted} rows, ${pages} page(s), last block ${lastBlock}`);
+ } catch (e) {
+ console.error(`\r[${chain.name}] ERROR: ${e.message}`);
+ }
+}
+console.log('\nDone.');
diff --git a/style.css b/style.css
index 967b0a835..30a584093 100644
--- a/style.css
+++ b/style.css
@@ -5794,7 +5794,7 @@ textarea.erc8004-code {
font-family: 'Space Grotesk', system-ui, sans-serif;
font-size: 28px;
font-weight: 700;
- color: var(--accent);
+ color: #fff;
}
.explore-stat-label {
font-size: 11px;
@@ -5831,7 +5831,7 @@ textarea.erc8004-code {
}
.explore-search input:focus {
outline: none;
- border-color: var(--accent);
+ border-color: rgba(255, 255, 255, 0.35);
background: rgba(0, 0, 0, 0.6);
}
/* Hide native WebKit clear; we render our own. */
@@ -5861,8 +5861,8 @@ textarea.erc8004-code {
}
.explore-search-clear:hover,
.explore-search-clear:focus-visible {
- background: var(--accent-soft);
- color: var(--accent);
+ background: rgba(255, 255, 255, 0.15);
+ color: #fff;
outline: none;
}
.explore-chips {
@@ -5886,9 +5886,9 @@ textarea.erc8004-code {
color: #fff;
}
.explore-chip.active {
- background: var(--accent-soft);
- border-color: var(--accent);
- color: var(--accent);
+ background: rgba(255, 255, 255, 0.1);
+ border-color: rgba(255, 255, 255, 0.4);
+ color: #fff;
}
.explore-chain-select {
display: flex;
@@ -5931,7 +5931,7 @@ textarea.erc8004-code {
background: rgba(255, 255, 255, 0.04);
}
.explore-card--3d:hover {
- border-color: var(--accent);
+ border-color: rgba(255, 255, 255, 0.3);
}
.explore-card-thumb {
@@ -6021,14 +6021,14 @@ textarea.erc8004-code {
border: 1px solid rgba(255, 255, 255, 0.08);
}
.explore-badge--3d {
- background: var(--accent-soft);
- color: var(--accent);
- border-color: var(--accent);
+ background: rgba(255, 255, 255, 0.08);
+ color: #fff;
+ border-color: rgba(255, 255, 255, 0.25);
}
.explore-badge--x402 {
- background: rgba(124, 58, 237, 0.2);
- color: #c4b5fd;
- border-color: rgba(124, 58, 237, 0.4);
+ background: rgba(255, 255, 255, 0.05);
+ color: rgba(255, 255, 255, 0.7);
+ border-color: rgba(255, 255, 255, 0.12);
}
.explore-card-desc {
margin: 0;
@@ -6079,7 +6079,7 @@ textarea.erc8004-code {
text-decoration: none;
}
.explore-card-owner:hover {
- color: var(--accent);
+ color: #fff;
}
.explore-card-actions {
display: flex;
@@ -6092,7 +6092,7 @@ textarea.erc8004-code {
font-weight: 500;
}
.explore-card-link:hover {
- color: var(--accent);
+ color: #fff;
}
.explore-status {
@@ -6127,9 +6127,9 @@ textarea.erc8004-code {
}
.explore-clear-filters:hover,
.explore-clear-filters:focus-visible {
- border-color: var(--accent);
- color: var(--accent);
- background: var(--accent-soft);
+ border-color: rgba(255, 255, 255, 0.4);
+ color: #fff;
+ background: rgba(255, 255, 255, 0.08);
}
.explore-error {
padding: var(--space-md);
@@ -6146,10 +6146,10 @@ textarea.erc8004-code {
}
.explore-load-more {
padding: 10px 24px;
- background: var(--accent-soft);
- border: 1px solid var(--accent);
+ background: rgba(255, 255, 255, 0.06);
+ border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: var(--radius-sm);
- color: var(--accent);
+ color: rgba(255, 255, 255, 0.85);
font: inherit;
font-weight: 600;
font-size: 14px;
@@ -6157,7 +6157,7 @@ textarea.erc8004-code {
transition: all 0.15s;
}
.explore-load-more:hover {
- background: var(--accent);
+ background: rgba(255, 255, 255, 0.12);
color: #fff;
}
@@ -6264,7 +6264,7 @@ textarea.erc8004-code {
}
.embed-tab.is-active {
color: #fff;
- border-bottom-color: #8b5cf6;
+ border-bottom-color: rgba(255, 255, 255, 0.7);
}
.embed-modal__body {
padding: 20px;
@@ -6299,17 +6299,17 @@ textarea.erc8004-code {
outline: none;
}
.embed-snippet:focus {
- border-color: rgba(139, 92, 246, 0.5);
- box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
+ border-color: rgba(255, 255, 255, 0.3);
+ box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}
.embed-snippet--input {
resize: none;
}
.embed-copy-btn {
margin-top: 10px;
- background: linear-gradient(135deg, #8b5cf6, #6d28d9);
+ background: rgba(255, 255, 255, 0.1);
+ border: 1px solid rgba(255, 255, 255, 0.2);
color: #fff;
- border: 0;
border-radius: 8px;
padding: 8px 16px;
font: inherit;
@@ -6318,10 +6318,12 @@ textarea.erc8004-code {
cursor: pointer;
transition:
transform 0.1s,
- box-shadow 0.15s;
+ box-shadow 0.15s,
+ background 0.15s;
}
.embed-copy-btn:hover {
- box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
+ background: rgba(255, 255, 255, 0.16);
+ box-shadow: 0 4px 14px rgba(255, 255, 255, 0.08);
}
.embed-copy-btn:active {
transform: translateY(1px);
@@ -6340,7 +6342,7 @@ textarea.erc8004-code {
text-decoration: none;
}
.embed-foot-link:hover {
- color: #8b5cf6;
+ color: #fff;
}
.explore-card-link--ghost {
background: transparent;
@@ -6353,7 +6355,7 @@ textarea.erc8004-code {
border-radius: 6px;
}
.explore-card-link--ghost:hover {
- border-color: rgba(139, 92, 246, 0.5);
+ border-color: rgba(255, 255, 255, 0.3);
color: #fff;
}
@media (max-width: 560px) {