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.

feat(registry): name resolve endpoint + lookup page; content/config updates

nirholasb8b07e83c3f5
diff --git a/.gitignore b/.gitignore
index 20c545568..0becf0fa7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -203,3 +203,8 @@ three-ws-presence.md
# Exported custodial wallet backups — never commit
agent-wallets.*
blog/3d-ai-crypto-convergence.md
+# One-off genesis deploy scripts/output — contain a live RPC key + scratch results
+scripts/test-deploy-one.mjs
+scripts/genesis-deploy.mjs
+scripts/genesis-photos.mjs
+scripts/genesis-results.json
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a3e443a42..5645bac70 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,10 @@
Public feature history for [three.ws](https://three.ws), newest first. Feature dates are tracked from 2026-05-25 forward; earlier pages are omitted.
+## 2026-06-09
+
+- **Agent Lookup** (`/lookup`) — Resolve any three.ws agent by Solana mint, agent ID, avatar ID, or slug — renders its interactive 3D avatar alongside its on-chain identity (collection, owner, agent wallet, Active/x402 status, Metaplex/Solscan/Magic Eden links).
+
## 2026-06-05
- **Agent Exchange — AI Agents Paying Each Other** (`/features/agent-exchange`) — Watch two AI agents with 3D avatars autonomously negotiate and pay each other for crypto intelligence via x402 micropayments on Solana.
diff --git a/api/registry/resolve.js b/api/registry/resolve.js
new file mode 100644
index 000000000..1afa167c7
--- /dev/null
+++ b/api/registry/resolve.js
@@ -0,0 +1,333 @@
+// GET /api/registry/resolve?q=<input>
+// ---------------------------------------------------------------------------
+// Public agent-registry lookup. Detects the input type and normalises any of
+// • a Solana Core asset mint (base58, 32–44 chars)
+// • an agent identity UUID / avatar UUID
+// • an avatar slug
+// into one JSON record describing the agent's 3D body + on-chain identity.
+//
+// Never leaks a private GLB: modelUrl is only resolved for public/unlisted
+// avatars (resolveAvatarUrl would otherwise mint a presigned URL for a private
+// object). Unknown input resolves to { state: 'not_found' } with a 200 — the
+// page renders a clean not-found, never a 500.
+
+import { createUmi } from '@metaplex-foundation/umi-bundle-defaults';
+import { mplCore, fetchAssetV1, findAssetSignerPda } from '@metaplex-foundation/mpl-core';
+import { publicKey as umiPublicKey } from '@metaplex-foundation/umi';
+import { sql } from '../_lib/db.js';
+import { cors, json, method, wrap, error, rateLimited } from '../_lib/http.js';
+import { limits, clientIp } from '../_lib/rate-limit.js';
+import { isUuid } from '../_lib/validate.js';
+import { resolveAvatarUrl } from '../_lib/avatars.js';
+import { publicUrl as r2PublicUrl } from '../_lib/r2.js';
+import { solanaRpcEndpoints } from '../_lib/solana/connection.js';
+
+// Solana base58 pubkey — excludes 0/O/I/l, length 32–44. A UUID contains
+// hyphens so it can never match; we still check isUuid() first for clarity.
+const PUBKEY_RE = /^[1-9A-HJ-NP-Za-km-z]{32,44}$/;
+
+// A read-only Umi per network. fetchAssetV1 hits the RPC; findAssetSignerPda is
+// pure program-derived address math (no network), so it works for either.
+const _umi = {};
+function readUmi(network) {
+ if (!_umi[network]) _umi[network] = createUmi(solanaRpcEndpoints(network)[0]).use(mplCore());
+ return _umi[network];
+}
+
+function explorerLinks(mint, network) {
+ const devnet = network === 'devnet';
+ return {
+ metaplex: `https://core.metaplex.com/explorer/${mint}${devnet ? '?env=devnet' : ''}`,
+ solscan: `https://solscan.io/token/${mint}${devnet ? '?cluster=devnet' : ''}`,
+ magiceden: `https://magiceden.io/item-details/${mint}`,
+ };
+}
+
+// Derive the asset signer PDA (the agent's on-chain wallet) for a Core asset.
+// Pure derivation — returns null only if the mint is not a valid pubkey.
+function assetSignerWalletFor(mint) {
+ try {
+ const [pda] = findAssetSignerPda(readUmi('mainnet'), { asset: umiPublicKey(mint) });
+ return pda.toString();
+ } catch {
+ return null;
+ }
+}
+
+// Genesis rank: an agent's 1-based position among every on-chain-deployed
+// agent, ordered by the moment it was minted. cz, the first agent deployed,
+// is Genesis #1. Null for agents that aren't minted yet.
+async function genesisRankFor(agentId) {
+ if (!agentId) return null;
+ const [row] = await sql`
+ WITH ranked AS (
+ SELECT id,
+ row_number() OVER (
+ ORDER BY COALESCE((meta->'onchain'->>'confirmed_at')::timestamptz, created_at) ASC,
+ created_at ASC, id ASC
+ ) AS rank
+ FROM agent_identities
+ WHERE deleted_at IS NULL
+ AND (meta->>'sol_mint_address' IS NOT NULL
+ OR meta->'devnet'->>'sol_mint_address' IS NOT NULL)
+ )
+ SELECT rank FROM ranked WHERE id = ${agentId}
+ `;
+ return row ? Number(row.rank) : null;
+}
+
+// Pull the on-chain coordinates out of an agent's meta blob, picking the
+// network the agent was actually deployed on (mainnet preferred).
+function onchainCoords(meta) {
+ if (!meta || typeof meta !== 'object') return null;
+ const mainMint = meta.sol_mint_address || null;
+ const devMint = meta.devnet?.sol_mint_address || null;
+ const mint = mainMint || devMint || meta.onchain?.sol_asset || null;
+ if (!mint) return null;
+ const network = mainMint ? 'mainnet' : devMint ? 'devnet' : meta.network || 'mainnet';
+ const net = mainMint ? meta : devMint ? meta.devnet : meta;
+ return {
+ mint,
+ network,
+ collection: net?.collection || meta.collection || null,
+ owner: net?.onchain?.owner || meta.onchain?.owner || null,
+ };
+}
+
+// Build the unified response from a normalised record. `avatar` carries the
+// raw storage row (storage_key + visibility) so we can gate the GLB; `meta` is
+// the agent's meta blob (null for avatars with no linked agent).
+async function build({ name, description, agentId, meta, avatar, ownerFallback }) {
+ const coords = onchainCoords(meta);
+
+ let modelUrl = null;
+ const isPublicAvatar =
+ avatar && (avatar.visibility === 'public' || avatar.visibility === 'unlisted');
+ if (isPublicAvatar) {
+ try {
+ const resolved = await resolveAvatarUrl({
+ storage_key: avatar.storage_key,
+ visibility: avatar.visibility,
+ });
+ modelUrl = resolved?.url || null;
+ } catch {
+ modelUrl = null;
+ }
+ }
+
+ const imageUrl = avatar?.thumbnail_key ? r2PublicUrl(avatar.thumbnail_key) : null;
+
+ let onchain = null;
+ if (coords) {
+ const owner = coords.owner || ownerFallback || null;
+ onchain = {
+ mint: coords.mint,
+ collection: coords.collection,
+ owner,
+ assetSignerWallet: assetSignerWalletFor(coords.mint),
+ active: true,
+ x402Support: true,
+ links: explorerLinks(coords.mint, coords.network),
+ };
+ }
+
+ // State: a private avatar yields metadata + identity but no model.
+ const state = avatar && avatar.visibility === 'private' ? 'private' : 'public';
+
+ return {
+ name: name || null,
+ description: description || '',
+ genesisRank: await genesisRankFor(agentId),
+ modelUrl,
+ imageUrl,
+ onchain,
+ state,
+ };
+}
+
+// ── resolvers ─────────────────────────────────────────────────────────────────
+//
+// Queries are written out in full per resolver. The Neon HTTP driver does not
+// renumber placeholders across embedded `sql`…`` fragments, so composing a
+// shared SELECT fragment with a parameterised WHERE produces invalid SQL.
+
+function agentRowToRecord(r) {
+ return {
+ name: r.name,
+ description: r.description,
+ agentId: r.id,
+ meta: r.meta,
+ ownerFallback: r.wallet_address,
+ avatar: r.storage_key
+ ? {
+ storage_key: r.storage_key,
+ visibility: r.visibility,
+ content_type: r.content_type,
+ thumbnail_key: r.thumbnail_key,
+ }
+ : null,
+ };
+}
+
+async function resolveAgentById(id) {
+ const [r] = await sql`
+ SELECT ai.id, ai.name, ai.description, ai.wallet_address, ai.meta,
+ av.storage_key, av.visibility, av.content_type, av.thumbnail_key
+ FROM agent_identities ai
+ LEFT JOIN avatars av ON av.id = ai.avatar_id AND av.deleted_at IS NULL
+ WHERE ai.id = ${id} AND ai.deleted_at IS NULL
+ LIMIT 1
+ `;
+ return r ? agentRowToRecord(r) : null;
+}
+
+async function resolveByMint(mint) {
+ const [r] = await sql`
+ SELECT ai.id, ai.name, ai.description, ai.wallet_address, ai.meta,
+ av.storage_key, av.visibility, av.content_type, av.thumbnail_key
+ FROM agent_identities ai
+ LEFT JOIN avatars av ON av.id = ai.avatar_id AND av.deleted_at IS NULL
+ WHERE ai.deleted_at IS NULL
+ AND (ai.meta->>'sol_mint_address' = ${mint}
+ OR ai.meta->'onchain'->>'sol_asset' = ${mint}
+ OR ai.meta->'devnet'->>'sol_mint_address' = ${mint})
+ LIMIT 1
+ `;
+ if (r) return agentRowToRecord(r);
+
+ // Not in our DB — read the asset on-chain and back-resolve via its URI,
+ // which for three.ws agents points at /api/agents/<uuid>/registration.
+ for (const network of ['mainnet', 'devnet']) {
+ let asset;
+ try {
+ asset = await fetchAssetV1(readUmi(network), umiPublicKey(mint));
+ } catch {
+ continue;
+ }
+ const uri = asset?.uri || '';
+ const m = uri.match(/\/api\/agents\/([0-9a-f-]{36})\b/i);
+ if (m) {
+ const rec = await resolveAgentById(m[1]);
+ if (rec) return rec;
+ }
+ // Real on-chain asset that isn't a three.ws agent: surface its identity
+ // without a model rather than a false not-found.
+ return {
+ name: asset?.name || null,
+ description: '',
+ agentId: null,
+ meta: {
+ sol_mint_address: mint,
+ network,
+ onchain: { owner: asset?.owner?.toString?.() || null },
+ },
+ ownerFallback: asset?.owner?.toString?.() || null,
+ avatar: null,
+ };
+ }
+ return null;
+}
+
+// Avatar resolution (by UUID or slug) prefers a deployed agent linked to the
+// avatar so an avatar id / slug resolves to the same on-chain view as the mint.
+function avatarRowToRecord(r) {
+ return {
+ name: r.agent_name || r.name,
+ description: r.agent_description || r.description,
+ agentId: r.agent_id || null,
+ meta: r.agent_meta || null,
+ ownerFallback: r.agent_wallet || null,
+ avatar: {
+ storage_key: r.storage_key,
+ visibility: r.visibility,
+ content_type: r.content_type,
+ thumbnail_key: r.thumbnail_key,
+ },
+ };
+}
+
+async function resolveAvatarById(id) {
+ const [r] = await sql`
+ SELECT av.id, av.name, av.description, av.slug, av.storage_key, av.visibility,
+ av.content_type, av.thumbnail_key,
+ ai.id AS agent_id, ai.name AS agent_name, ai.description AS agent_description,
+ ai.wallet_address AS agent_wallet, ai.meta AS agent_meta
+ FROM avatars av
+ LEFT JOIN LATERAL (
+ SELECT id, name, description, wallet_address, meta
+ FROM agent_identities
+ WHERE avatar_id = av.id AND deleted_at IS NULL
+ ORDER BY (meta->>'sol_mint_address') IS NOT NULL DESC, created_at ASC
+ LIMIT 1
+ ) ai ON true
+ WHERE av.id = ${id} AND av.deleted_at IS NULL
+ LIMIT 1
+ `;
+ return r ? avatarRowToRecord(r) : null;
+}
+
+async function resolveBySlug(slug) {
+ // Slug is unique per owner, so a bare slug can match several avatars; prefer
+ // a public one, then the earliest. Never matches a private avatar (a public
+ // lookup must not leak that a private slug exists).
+ const [r] = await sql`
+ SELECT av.id, av.name, av.description, av.slug, av.storage_key, av.visibility,
+ av.content_type, av.thumbnail_key,
+ ai.id AS agent_id, ai.name AS agent_name, ai.description AS agent_description,
+ ai.wallet_address AS agent_wallet, ai.meta AS agent_meta
+ FROM avatars av
+ LEFT JOIN LATERAL (
+ SELECT id, name, description, wallet_address, meta
+ FROM agent_identities
+ WHERE avatar_id = av.id AND deleted_at IS NULL
+ ORDER BY (meta->>'sol_mint_address') IS NOT NULL DESC, created_at ASC
+ LIMIT 1
+ ) ai ON true
+ WHERE av.slug = ${slug}
+ AND av.deleted_at IS NULL
+ AND av.visibility IN ('public', 'unlisted')
+ ORDER BY av.created_at ASC
+ LIMIT 1
+ `;
+ return r ? avatarRowToRecord(r) : null;
+}
+
+// ── handler ─────────────────────────────────────────────────────────────────
+
+export default wrap(async (req, res) => {
+ if (cors(req, res, { methods: 'GET,OPTIONS', origins: '*' })) return;
+ if (!method(req, res, ['GET'])) return;
+
+ const rl = await limits.publicIp(clientIp(req));
+ if (!rl.success) return rateLimited(res, rl);
+
+ const q = (req.query?.q || new URL(req.url, 'http://x').searchParams.get('q') || '').trim();
+ if (!q) return error(res, 400, 'validation_error', 'q is required');
+ if (q.length > 64) return error(res, 400, 'validation_error', 'q is too long');
+
+ let record = null;
+ if (isUuid(q)) {
+ record = (await resolveAgentById(q)) || (await resolveAvatarById(q));
+ } else if (PUBKEY_RE.test(q)) {
+ record = await resolveByMint(q);
+ } else {
+ record = await resolveBySlug(q);
+ }
+
+ if (!record) {
+ return json(res, 200, {
+ name: null,
+ description: '',
+ genesisRank: null,
+ modelUrl: null,
+ imageUrl: null,
+ onchain: null,
+ state: 'not_found',
+ });
+ }
+
+ const result = await build(record);
+ return json(res, 200, result, {
+ 'cache-control': 'public, max-age=30, s-maxage=120, stale-while-revalidate=600',
+ });
+});
diff --git a/data/pages.json b/data/pages.json
index 76342b537..c58ef9b34 100644
--- a/data/pages.json
+++ b/data/pages.json
@@ -414,6 +414,16 @@
"changefreq": "daily",
"added": "2026-05-25"
},
+ {
+ "path": "/lookup",
+ "title": "Agent Lookup",
+ "description": "Resolve any three.ws agent by Solana mint, agent ID, avatar ID, or slug — renders its interactive 3D avatar alongside its on-chain identity (collection, owner, agent wallet, Active/x402 status, Metaplex/Solscan/Magic Eden links).",
+ "priority": 0.7,
+ "changefreq": "weekly",
+ "auth": null,
+ "indexable": true,
+ "added": "2026-06-09"
+ },
{
"path": "/arbitrage",
"title": "x402 Arbitrage",
diff --git a/public/features.json b/public/features.json
index 124e3c1a6..8f3933886 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-08T16:28:41.723Z",
+ "generated_at": "2026-06-09T00:40:41.715Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
@@ -536,6 +536,16 @@
"tags": [],
"showcase": false
},
+ {
+ "path": "/lookup",
+ "title": "Agent Lookup",
+ "description": "Resolve any three.ws agent by Solana mint, agent ID, avatar ID, or slug — renders its interactive 3D avatar alongside its on-chain identity (collection, owner, agent wallet, Active/x402 status, Metaplex/Solscan/Magic Eden links).",
+ "added": "2026-06-09",
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
{
"path": "/arbitrage",
"title": "x402 Arbitrage",
@@ -1145,6 +1155,16 @@
"tags": [],
"showcase": false
},
+ {
+ "path": "/news/three-ws-featured-on-alibaba-cloud-marketplace-blog",
+ "title": "three.ws Featured on the Alibaba Cloud Marketplace Blog",
+ "description": "Alibaba Cloud Marketplace published an editorial introducing three.ws — Render, Embody, Register, Embed: browser-native 3D AI agents deployed with a single <agent-3d> tag, with a Claude-powered runtime, ERC-8004 identity, and an Apache 2.0 open-source stack.",
+ "added": null,
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
{
"path": "/news/three-ws-first-month-3d-agent-layer",
"title": "One Month In: How three.ws Built the 3D Agent Layer of the Internet",
diff --git a/public/llms-full.txt b/public/llms-full.txt
index 3310e2ee4..2c709ff4b 100644
--- a/public/llms-full.txt
+++ b/public/llms-full.txt
@@ -326,6 +326,12 @@ URL: https://three.ws/bazaar
Search and browse the x402 facilitator catalog. Filter by network, price, and extensions. Pay any service in one click.
+### Agent Lookup
+
+URL: https://three.ws/lookup
+
+Resolve any three.ws agent by Solana mint, agent ID, avatar ID, or slug — renders its interactive 3D avatar alongside its on-chain identity (collection, owner, agent wallet, Active/x402 status, Metaplex/Solscan/Magic Eden links).
+
### x402 Arbitrage
URL: https://three.ws/arbitrage
@@ -709,6 +715,12 @@ URL: https://three.ws/news/
Product launches, integrations, and announcements from three.ws.
+### three.ws Featured on the Alibaba Cloud Marketplace Blog
+
+URL: https://three.ws/news/three-ws-featured-on-alibaba-cloud-marketplace-blog
+
+Alibaba Cloud Marketplace published an editorial introducing three.ws — Render, Embody, Register, Embed: browser-native 3D AI agents deployed with a single <agent-3d> tag, with a Claude-powered runtime, ERC-8004 identity, and an Apache 2.0 open-source stack.
+
### One Month In: How three.ws Built the 3D Agent Layer of the Internet
URL: https://three.ws/news/three-ws-first-month-3d-agent-layer
diff --git a/public/llms.txt b/public/llms.txt
index ed8a261c9..c41c16510 100644
--- a/public/llms.txt
+++ b/public/llms.txt
@@ -75,6 +75,7 @@ On-chain features: pay-per-call, token launches, vanity wallets.
- [Pump Visualizer](https://three.ws/pump-visualizer): 3D visualizer of trending pump.fun tokens — live market data rendered as an interactive scene.
- [watsonx Constellation](https://three.ws/constellation): Live Solana tokens in a 3D galaxy, positioned in semantic space by IBM Granite embeddings on watsonx.ai. Click a star for a live IBM Granite analysis.
- [x402 Bazaar](https://three.ws/bazaar): Search and browse the x402 facilitator catalog. Filter by network, price, and extensions. Pay any service in one click.
+- [Agent Lookup](https://three.ws/lookup): Resolve any three.ws agent by Solana mint, agent ID, avatar ID, or slug — renders its interactive 3D avatar alongside its on-chain identity (collection, owner, agent wallet, Active/x402 status, Metaplex/Solscan/Magic Eden links).
- [x402 Arbitrage](https://three.ws/arbitrage): Cross-provider price disparities surfaced live from the merged x402 facilitator catalog. Find the cheapest endpoint for any capability.
- [x402 Providers](https://three.ws/providers): Quantified operator profiles for the x402 paid API catalog. Service counts, price bands, dominant categories, and the underlying listings.
- [GMGN Smart Money](https://three.ws/gmgn): Live smart-money signals narrated by a 3D AI agent. Tracks which wallets are loading on Solana, Ethereum, Base, and BNB Chain in real time.
@@ -144,6 +145,7 @@ Long-form announcements, launches, and writing from three.ws.
Product launches, integrations, and announcements from three.ws.
- [News & Announcements](https://three.ws/news/): Product launches, integrations, and announcements from three.ws.
+- [three.ws Featured on the Alibaba Cloud Marketplace Blog](https://three.ws/news/three-ws-featured-on-alibaba-cloud-marketplace-blog): Alibaba Cloud Marketplace published an editorial introducing three.ws — Render, Embody, Register, Embed: browser-native 3D AI agents deployed with a single <agent-3d> tag, with a Claude-powered runtime, ERC-8004 identity, and an Apache 2.0 open-source stack.
- [One Month In: How three.ws Built the 3D Agent Layer of the Internet](https://three.ws/news/three-ws-first-month-3d-agent-layer): In one month, three.ws went from launch to global coverage: browser-native 3D AI agents listed across major exchanges and data platforms, deployed on four hyperscale clouds, live in Anthropic's MCP Registry, and covered from CoinMarketCap to Vogue. A look back at 30 days of shipping.
- [three.ws Brings Autonomous Payments and 3D Generation to Anthropic's Official MCP Registry](https://three.ws/news/cmc-mcp-registry-article): CoinMarketCap article: three.ws brings autonomous payments and 3D generation to Anthropic's official MCP Registry — two new MCP servers give Claude and any MCP client the ability to spawn 3D agents and make on-chain x402 payments via the Coinbase-powered x402 Bazaar.
- [three.ws Ships Two New MCP Servers: x402 Bazaar + 3D Agent Avatar](https://three.ws/news/mcp-servers-x402-bazaar-coinbase): two new MCP servers are now live in Anthropic's official MCP Registry: the x402 Bazaar MCP (powered by Coinbase) lets agents discover, pay for, and call any x402 service in USDC settled on-chain; the 3D Avatar MCP lets any Claude or MCP client spawn a full browser-native 3D agent.
diff --git a/public/lookup.html b/public/lookup.html
new file mode 100644
index 000000000..f4e2e68b3
--- /dev/null
+++ b/public/lookup.html
@@ -0,0 +1,554 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <title>Agent lookup · three.ws</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta
+ name="description"
+ content="Resolve any three.ws agent by mint, ID, or slug — its 3D avatar and on-chain identity."
+ />
+ <script
+ type="module"
+ src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js"
+ ></script>
+ <style>
+ * {
+ box-sizing: border-box;
+ }
+ :root {
+ --fg: #111;
+ --muted: #555;
+ --border: #e5e5e5;
+ --bg: #fafafa;
+ --ok-bg: #e7f5e9;
+ --ok-fg: #1b5e20;
+ --warn-bg: #fff3cd;
+ --warn-fg: #855008;
+ --bad-bg: #fce8e8;
+ --bad-fg: #b71c1c;
+ --info-bg: #e3f2fd;
+ --info-fg: #0d47a1;
+ }
+ body {
+ font:
+ 14px/1.5 system-ui,
+ -apple-system,
+ sans-serif;
+ max-width: 880px;
+ margin: 1.5rem auto;
+ padding: 0 1rem;
+ color: var(--fg);
+ }
+ h1 {
+ font-size: 1.4rem;
+ margin: 0 0 0.25rem;
+ }
+ h2 {
+ font-size: 1rem;
+ margin: 1.5rem 0 0.5rem;
+ display: flex;
+ align-items: baseline;
+ gap: 0.5rem;
+ }
+ .muted {
+ color: var(--muted);
+ }
+ .row {
+ display: flex;
+ gap: 0.5rem;
+ align-items: center;
+ flex-wrap: wrap;
+ margin: 0.5rem 0 1rem;
+ }
+ .row input {
+ font: inherit;
+ padding: 0.45rem 0.6rem;
+ border: 1px solid var(--border);
+ border-radius: 6px;
+ flex: 1 1 360px;
+ min-width: 0;
+ }
+ .row input:focus-visible {
+ outline: 2px solid var(--info-fg);
+ outline-offset: 1px;
+ }
+ .row button {
+ font: inherit;
+ padding: 0.45rem 0.8rem;
+ border: 1px solid #ccc;
+ background: #fff;
+ border-radius: 6px;
+ cursor: pointer;
+ }
+ .row button.primary {
+ background: #111;
+ color: #fff;
+ border-color: #111;
+ }
+ .row button:disabled {
+ opacity: 0.5;
+ cursor: wait;
+ }
+
+ .layout {
+ display: grid;
+ grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
+ gap: 1rem;
+ align-items: start;
+ }
+ @media (max-width: 640px) {
+ .layout {
+ grid-template-columns: 1fr;
+ }
+ }
+
+ .stage {
+ border: 1px solid var(--border);
+ border-radius: 12px;
+ background: radial-gradient(circle at 50% 30%, #fff, #f1f1f3);
+ aspect-ratio: 1 / 1;
+ position: relative;
+ overflow: hidden;
+ }
+ .stage model-viewer {
+ width: 100%;
+ height: 100%;
+ --poster-color: transparent;
+ background: transparent;
+ }
+ .stage .placeholder {
+ position: absolute;
+ inset: 0;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ gap: 0.4rem;
+ text-align: center;
+ padding: 1rem;
+ color: var(--muted);
+ }
+ .stage .placeholder .big {
+ font-size: 2rem;
+ opacity: 0.5;
+ }
+ .stage img.thumb {
+ width: 100%;
+ height: 100%;
+ object-fit: contain;
+ display: block;
+ }
+
+ .identity-card,
+ .panel {
+ border: 1px solid var(--border);
+ border-radius: 10px;
+ padding: 1rem 1.1rem;
+ background: #fff;
+ }
+ .panel {
+ margin-top: 0.75rem;
+ }
+ .identity-row {
+ display: flex;
+ align-items: center;
+ gap: 0.6rem;
+ flex-wrap: wrap;
+ }
+ .identity-name {
+ font-size: 1.25rem;
+ font-weight: 600;
+ }
+ .genesis {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.3rem;
+ padding: 0.15rem 0.6rem;
+ border-radius: 999px;
+ font-size: 0.75rem;
+ font-weight: 600;
+ background: linear-gradient(90deg, #ffd54f, #ff8a65);
+ color: #1a1a1a;
+ }
+ .identity-desc {
+ margin-top: 0.5rem;
+ color: var(--muted);
+ }
+
+ .pill {
+ display: inline-block;
+ padding: 0.12rem 0.6rem;
+ border-radius: 999px;
+ font-size: 0.72rem;
+ line-height: 1.5;
+ }
+ .ok {
+ background: var(--ok-bg);
+ color: var(--ok-fg);
+ }
+ .warn {
+ background: var(--warn-bg);
+ color: var(--warn-fg);
+ }
+ .info {
+ background: var(--info-bg);
+ color: var(--info-fg);
+ }
+ .bad {
+ background: var(--bad-bg);
+ color: var(--bad-fg);
+ }
+
+ .kv {
+ display: grid;
+ grid-template-columns: 92px 1fr;
+ gap: 0.4rem 0.75rem;
+ align-items: baseline;
+ margin-top: 0.6rem;
+ }
+ .kv .k {
+ font-size: 0.75rem;
+ color: var(--muted);
+ }
+ .kv .v {
+ display: flex;
+ align-items: center;
+ gap: 0.4rem;
+ flex-wrap: wrap;
+ min-width: 0;
+ }
+ .kv code {
+ background: #f3f3f3;
+ padding: 0.1rem 0.4rem;
+ border-radius: 4px;
+ font-size: 0.75rem;
+ word-break: break-all;
+ }
+ .copy-btn {
+ padding: 0.1rem 0.4rem;
+ font-size: 0.7rem;
+ line-height: 1.4;
+ cursor: pointer;
+ border: 1px solid var(--border);
+ background: #fff;
+ border-radius: 4px;
+ }
+ .copy-btn:hover {
+ background: #f3f3f3;
+ }
+ .links {
+ display: flex;
+ gap: 0.4rem;
+ flex-wrap: wrap;
+ margin-top: 0.9rem;
+ }
+ .links a {
+ text-decoration: none;
+ font-size: 0.78rem;
+ padding: 0.35rem 0.7rem;
+ border: 1px solid var(--border);
+ border-radius: 6px;
+ color: var(--fg);
+ background: var(--bg);
+ transition:
+ background 0.15s ease,
+ border-color 0.15s ease;
+ }
+ .links a:hover {
+ background: #fff;
+ border-color: #bbb;
+ }
+
+ .pills {
+ display: flex;
+ gap: 0.4rem;
+ flex-wrap: wrap;
+ margin-top: 0.2rem;
+ }
+
+ .skeleton {
+ background: linear-gradient(90deg, #eee 0%, #f6f6f6 50%, #eee 100%);
+ background-size: 200% 100%;
+ animation: shimmer 1.2s infinite;
+ border-radius: 6px;
+ }
+ @keyframes shimmer {
+ 0% {
+ background-position: 200% 0;
+ }
+ 100% {
+ background-position: -200% 0;
+ }
+ }
+ .sk-line {
+ height: 1rem;
+ margin: 0.5rem 0;
+ }
+ .sk-line.w60 {
+ width: 60%;
+ }
+ .sk-line.w40 {
+ width: 40%;
+ }
+
+ .notice {
+ border: 1px dashed var(--border);
+ border-radius: 10px;
+ padding: 1.25rem;
+ text-align: center;
+ color: var(--muted);
+ }
+ .notice .big {
+ font-size: 1.6rem;
+ margin-bottom: 0.35rem;
+ }
+ a.link {
+ color: var(--info-fg);
+ }
+ [hidden] {
+ display: none !important;
+ }
+ </style>
+ </head>
+ <body>
+ <h1>Agent lookup</h1>
+ <p class="muted">
+ Resolve any three.ws agent by mint, agent ID, avatar ID, or slug — see its 3D body and
+ on-chain identity.
+ </p>
+
+ <div class="row">
+ <input
+ id="q"
+ placeholder="Paste a Solana mint, agent ID, avatar ID, or slug…"
+ autocomplete="off"
+ spellcheck="false"
+ aria-label="Agent lookup query"
+ />
+ <button id="go" class="primary">Look up</button>
+ <button id="share" title="Copy shareable link">Share</button>
+ </div>
+
+ <div id="result"></div>
+
+ <script type="module">
+ const $ = (id) => document.getElementById(id);
+ const params = new URLSearchParams(location.search);
+ $('q').value = params.get('q') || '';
+
+ function escapeHtml(s) {
+ return String(s ?? '').replace(
+ /[&<>"']/g,
+ (c) =>
+ ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' })[
+ c
+ ],
+ );
+ }
+ function shortKey(k) {
+ return k ? `${k.slice(0, 4)}…${k.slice(-4)}` : '';
+ }
+
+ function showSkeleton() {
+ $('result').innerHTML = `
+ <div class="layout">
+ <div class="stage"><div class="placeholder skeleton"></div></div>
+ <div>
+ <div class="identity-card">
+ <div class="skeleton sk-line w60"></div>
+ <div class="skeleton sk-line w40"></div>
+ <div class="skeleton sk-line"></div>
+ </div>
+ <div class="panel">
+ <div class="skeleton sk-line w40"></div>
+ <div class="skeleton sk-line"></div>
+ <div class="skeleton sk-line w60"></div>
+ </div>
+ </div>
+ </div>`;
+ }
+
+ function showNotFound(q) {
+ $('result').innerHTML = `
+ <div class="notice">
+ <div class="big">🔍</div>
+ <div><strong>No agent found</strong> for ${q ? `“${escapeHtml(q)}”` : 'that input'}.</div>
+ <p class="muted" style="margin:.5rem 0 0">
+ Try a Solana asset mint, an agent ID, an avatar ID, or an avatar slug.
+ Browse the <a class="link" href="/explore">explore feed</a> to find one.
+ </p>
+ </div>`;
+ }
+
+ function copyBtn(value) {
+ return value
+ ? `<button class="copy-btn" data-copy="${escapeHtml(value)}">copy</button>`
+ : '';
+ }
+
+ function stageHtml(data) {
+ if (data.modelUrl) {
+ return `
+ <div class="stage">
+ <model-viewer
+ src="${escapeHtml(data.modelUrl)}"
+ camera-controls
+ auto-rotate
+ auto-rotate-delay="1500"
+ rotation-per-second="18deg"
+ interaction-prompt="none"
+ shadow-intensity="0.6"
+ shadow-softness="0.8"
+ exposure="1.0"
+ environment-image="neutral"
+ camera-orbit="0deg 75deg 105%"
+ min-camera-orbit="auto auto 50%"
+ max-camera-orbit="auto auto 200%"
+ field-of-view="auto"
+ bounds="tight"
+ loading="eager"
+ aria-label="3D avatar of ${escapeHtml(data.name || 'agent')}"
+ ></model-viewer>
+ </div>`;
+ }
+ if (data.state === 'private') {
+ return `
+ <div class="stage">
+ <div class="placeholder">
+ <div class="big">🔒</div>
+ <div>Model not public</div>
+ <div class="muted" style="font-size:.75rem">
+ This agent's 3D body is private.
+ </div>
+ </div>
+ </div>`;
+ }
+ if (data.imageUrl) {
+ return `<div class="stage"><img class="thumb" src="${escapeHtml(data.imageUrl)}" alt="${escapeHtml(data.name || 'agent')}" /></div>`;
+ }
+ return `
+ <div class="stage">
+ <div class="placeholder">
+ <div class="big">🤖</div>
+ <div>No 3D model yet</div>
+ </div>
+ </div>`;
+ }
+
+ function onchainHtml(oc) {
+ if (!oc) {
+ return `
+ <div class="panel">
+ <h2 style="margin-top:0">On-chain</h2>
+ <p class="muted" style="margin:0">Not deployed on-chain yet.</p>
+ </div>`;
+ }
+ const links = oc.links || {};
+ const linkBtns = [
+ links.metaplex
+ ? `<a href="${escapeHtml(links.metaplex)}" target="_blank" rel="noopener">Metaplex ↗</a>`
+ : '',
+ links.solscan
+ ? `<a href="${escapeHtml(links.solscan)}" target="_blank" rel="noopener">Solscan ↗</a>`
+ : '',
+ links.magiceden
+ ? `<a href="${escapeHtml(links.magiceden)}" target="_blank" rel="noopener">Magic Eden ↗</a>`
+ : '',
+ ].join('');
+ return `
+ <div class="panel">
+ <h2 style="margin-top:0">On-chain identity</h2>
+ <div class="pills">
+ <span class="pill ${oc.active ? 'ok' : 'warn'}">${oc.active ? 'Active' : 'Inactive'}</span>
+ <span class="pill ${oc.x402Support ? 'info' : 'warn'}">${oc.x402Support ? 'x402 supported' : 'no x402'}</span>
+ </div>
+ <div class="kv">
+ <span class="k">Mint</span>
+ <span class="v"><code>${escapeHtml(oc.mint)}</code>${copyBtn(oc.mint)}</span>
+ ${oc.collection ? `<span class="k">Collection</span><span class="v"><code title="${escapeHtml(oc.collection)}">${escapeHtml(shortKey(oc.collection))}</code>${copyBtn(oc.collection)}</span>` : ''}
+ ${oc.owner ? `<span class="k">Owner</span><span class="v"><code title="${escapeHtml(oc.owner)}">${escapeHtml(shortKey(oc.owner))}</code>${copyBtn(oc.owner)}</span>` : ''}
+ ${oc.assetSignerWallet ? `<span class="k">Agent wallet</span><span class="v"><code title="${escapeHtml(oc.assetSignerWallet)}">${escapeHtml(shortKey(oc.assetSignerWallet))}</code>${copyBtn(oc.assetSignerWallet)}</span>` : ''}
+ </div>
+ <div class="links">${linkBtns}</div>
+ </div>`;
+ }
+
+ function render(data) {
+ if (data.state === 'not_found') {
+ showNotFound($('q').value.trim());
+ return;
+ }
+ const genesis =
+ typeof data.genesisRank === 'number'
+ ? `<span class="genesis" title="Deployment order on-chain">✦ Genesis #${data.genesisRank}</span>`
+ : '';
+ $('result').innerHTML = `
+ <div class="layout">
+ ${stageHtml(data)}
+ <div>
+ <div class="identity-card">
+ <div class="identity-row">
+ <span class="identity-name">${escapeHtml(data.name || 'Untitled agent')}</span>
+ ${genesis}
+ ${data.state === 'private' ? '<span class="pill warn">private</span>' : ''}
+ </div>
+ ${data.description ? `<div class="identity-desc">${escapeHtml(data.description)}</div>` : ''}
+ </div>
+ ${onchainHtml(data.onchain)}
+ </div>
+ </div>`;
+ $('result')
+ .querySelectorAll('[data-copy]')
+ .forEach((b) => b.addEventListener('click', () => copyText(b.dataset.copy, b)));
+ }
+
+ async function copyText(text, btn) {
+ try {
+ await navigator.clipboard.writeText(text);
+ const prev = btn.textContent;
+ btn.textContent = 'copied';
+ setTimeout(() => {
+ btn.textContent = prev;
+ }, 1200);
+ } catch {}
+ }
+
+ async function lookup() {
+ const q = $('q').value.trim();
+ if (!q) {
+ $('result').innerHTML = '';
+ history.replaceState({}, '', location.pathname);
+ return;
+ }
+ history.replaceState({}, '', `?q=${encodeURIComponent(q)}`);
+ $('go').disabled = true;
+ showSkeleton();
+ try {
+ const res = await fetch(`/api/registry/resolve?q=${encodeURIComponent(q)}`);
+ if (!res.ok) throw new Error(`lookup failed (${res.status})`);
+ const data = await res.json();
+ render(data);
+ } catch (e) {
+ $('result').innerHTML = `
+ <div class="notice">
+ <div class="big">⚠️</div>
+ <div><strong>Something went wrong.</strong></div>
+ <p class="muted" style="margin:.5rem 0 0">${escapeHtml(e.message || 'Try again in a moment.')}</p>
+ </div>`;
+ } finally {
+ $('go').disabled = false;
+ }
+ }
+
+ $('go').onclick = lookup;
+ $('q').addEventListener('keydown', (e) => {
+ if (e.key === 'Enter') lookup();
+ });
+ $('share').onclick = () => copyText(location.href, $('share'));
+
+ if ($('q').value.trim()) lookup();
+ </script>
+ <script src="/brand.js" defer></script>
+ </body>
+</html>
diff --git a/public/sitemap/index.html b/public/sitemap/index.html
index 73265ea3e..f7239c14f 100644
--- a/public/sitemap/index.html
+++ b/public/sitemap/index.html
@@ -457,6 +457,13 @@
<span class="sm-desc">Search and browse the x402 facilitator catalog. Filter by network, price, and extensions. Pay any service in one click.</span>
</a>
</li>
+ <li>
+ <a href="/lookup">
+ <span class="sm-title">Agent Lookup</span>
+ <span class="sm-path">/lookup</span>
+ <span class="sm-desc">Resolve any three.ws agent by Solana mint, agent ID, avatar ID, or slug — renders its interactive 3D avatar alongside its on-chain identity (collection, owner, agent wallet, Active/x402 status, Metaplex/Solscan/Magic Eden links).</span>
+ </a>
+ </li>
<li>
<a href="/arbitrage">
<span class="sm-title">x402 Arbitrage</span>
@@ -912,6 +919,13 @@
<span class="sm-desc">Product launches, integrations, and announcements from three.ws.</span>
</a>
</li>
+ <li>
+ <a href="/news/three-ws-featured-on-alibaba-cloud-marketplace-blog">
+ <span class="sm-title">three.ws Featured on the Alibaba Cloud Marketplace Blog</span>
+ <span class="sm-path">/news/three-ws-featured-on-alibaba-cloud-marketplace-blog</span>
+ <span class="sm-desc">Alibaba Cloud Marketplace published an editorial introducing three.ws — Render, Embody, Register, Embed: browser-native 3D AI agents deployed with a single &lt;agent-3d&gt; tag, with a Claude-powered runtime, ERC-8004 identity, and an Apache 2.0 open-source stack.</span>
+ </a>
+ </li>
<li>
<a href="/news/three-ws-first-month-3d-agent-layer">
<span class="sm-title">One Month In: How three.ws Built the 3D Agent Layer of the Internet</span>
diff --git a/vercel.json b/vercel.json
index 576dbfe2c..924b2d69a 100644
--- a/vercel.json
+++ b/vercel.json
@@ -117,6 +117,14 @@
"src": "/agent-economy/",
"dest": "/agent-economy.html"
},
+ {
+ "src": "/lookup",
+ "dest": "/lookup.html"
+ },
+ {
+ "src": "/lookup/",
+ "dest": "/lookup.html"
+ },
{
"src": "/demo",
"dest": "/demo-economy.html"