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: site-wide page updates, meshopt model-viewer decoder, avatar page enhancements
nirholase9fa6fbd3b23
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex d6c0d23eb..b5d550836 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,7 +10,10 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Guided Tour** (`/tour`) — A 3D guide walks across the live site, points at every feature, and narrates what each one does and how to use it — voice plus an on-screen chat bubble, paced by you.- **Proof-of-Grind Gallery** (`/vanity/gallery`) — A public gallery and leaderboard of the rarest Solana vanity addresses ground on three.ws — each provably-fair, verified, and shareable. Appraise any address to see its honest rarity tier and grind cost.- **/irl now pairs with smart glasses** — You can connect companion smart glasses to the /irl augmented-reality view and see the nearest agent right on your lens — its name, the direction to turn, how far away it is, and a flash when one walks into range. Your phone keeps doing all the GPS, compass and discovery work; the glasses just show the cue, so you can keep your head up instead of staring at a screen. Brilliant Labs Frame is fully supported (official SDK); Even Realities G1 works too via its two-arm pairing (experimental, community protocol). Pairing uses an encrypted Web Bluetooth link in Chromium browsers — your location is never sent to the glasses, only the direction and distance you already see on screen. (`/irl`) `[feature]`+- **Agents Index now shows every registered agent** — The Agents Index at /agents was reading from an empty source and showed "No public agents yet" even though hundreds of agents are registered across chains. It now reads from the live on-chain registry — the same feed Discover uses — so you can browse every registered agent, search them, see their services and x402 support, and open any one's detail page. Search, sorting and load-more all work against the real directory. (`/agents`) `[fix]`- **Choose where you walk — six environments for the Walk page** — Your avatar no longer strolls in one fixed studio. A new environment picker lets you drop into six distinct worlds: a sunlit Park with shade trees and benches, a neon Cyberpunk street, a bright Beach with palm trees and a turquoise sea, a white-walled Gallery with pedestals and hung art, an abstract Void grid for pure focus, and the three.ws Office with desks and plants. Open the picker from the environment button in the Walk HUD to see a preview of each scene, or press V to cycle through them. Switching fades smoothly to the new sky and back — the ground, lighting, reflections, and props all change to match, and the avatar walks and collides correctly in every world. Link straight to a scene with ?env=beach (or park, cyberpunk, gallery, void, office), and your last choice is remembered next time you visit. Every scene is a real 3D model with its own HDR lighting, authored and owned by three.ws. (`/features/walk`) `[feature]`+- **Compressed 3D avatars now load everywhere** — Generated and server-baked avatars are saved in a compressed format to keep them small and fast to download. On a number of pages — including the avatar results screen after a Forge or selfie creation — the 3D viewer wasn't set up to decompress them, so the model silently failed to appear. The viewer now loads the decompression decoder on every page that shows a 3D model, so your avatars render reliably no matter where they're displayed. `[fix]`+- **Create and manage your avatar's wallet right on its page** — If you own an avatar, its page now has the full Solana wallet built in — no more jumping to a separate settings screen. Generate a custodial wallet for the avatar's agent in one click, then use it from the same spot: see the SOL balance, copy the address, open it in an explorer, request a devnet airdrop, and watch recent on-chain activity. You can also grind a vanity address so the wallet starts with characters you choose, and the wallet badge on the page updates instantly when you do. Everything is owner-only and verified server-side; visitors just see the public address. `[feature]`- **Express yourself in Walk — wave, dance, sit, point, cheer and more** — Your avatar can now emote while you stroll. Hold G on desktop — or long-press the action button on mobile — to pop a radial gesture wheel, aim, and release to play one of eight gestures: wave, dance, sit, point, cheer, agree, disagree, and a talking idle. Keys 1–8 fire them instantly, and a quick-access tray sits in the corner. Upper-body gestures like wave and cheer blend over your walk so you keep moving while you gesture; sit and dance take over the whole body, and a single step rises you back up. Everything crossfades — no stiff T-pose flashes between moves — and gestures replicate to other players in the same world. Chat messages now animate the avatar as it 'talks', and developers can trigger any gesture programmatically with window.walk.playGesture('wave'). (`/features/walk`) `[feature]`- **Grind-bounty market: post a reward, a fleet grinds your hard vanity address** — A 5-to-8-character vanity address is hours-to-years on one machine, so until now "hard" vanity meant running your browser overnight and hoping. The new grind-bounty market makes it a liquid, pay-for-results service. Post the pattern you want, escrow a USDC bounty, and a fleet of independent workers grinds it in parallel — the first one to find a verified match is paid automatically. The breakthrough is that the found key is sealed to your encryption key before the worker ever submits it, so the worker earns the bounty yet never sees your wallet, and three.ws never holds your secret either. Settlement is trustless via x402: no valid match, no payout; only one worker can win; and a bounty that goes unfilled refunds your escrow when it expires. You also get an honest difficulty meter and a fair-price oracle when posting (priced off the real grind odds, not made-up numbers), a live board with biggest-reward and expiring-soon sorts, and a one-click way to open your won wallet locally with your private key. Want to earn instead? Flip on "Grind & earn," point your spare cores at the open bounties, and get paid in USDC for every fill — there's a leaderboard of the top grinders. (`/vanity/bounties`) `[feature, security, sdk]`- **IRL augmented reality, location, and motion sensors now enabled in production** — The live IRL map was served with a browser security header that switched off the camera, GPS, and device-motion access the augmented-reality view depends on — so on stricter browsers, opening /irl to place or discover an agent in AR couldn't start the camera or read your location. We now grant exactly those capabilities, scoped to the IRL page itself and nothing else, so the camera, your location, and device motion come up the moment you open it while every other page stays locked down. (`/irl`) `[fix, security]`diff --git a/data/changelog.json b/data/changelog.jsonindex 52c60ece7..6df6dc724 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,31 @@{"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-06-20",+ "title": "Agents Index now shows every registered agent",+ "summary": "The Agents Index at /agents was reading from an empty source and showed \"No public agents yet\" even though hundreds of agents are registered across chains. It now reads from the live on-chain registry — the same feed Discover uses — so you can browse every registered agent, search them, see their services and x402 support, and open any one's detail page. Search, sorting and load-more all work against the real directory.",+ "tags": [+ "fix"+ ],+ "link": "/agents"+ },+ {+ "date": "2026-06-20",+ "title": "Compressed 3D avatars now load everywhere",+ "summary": "Generated and server-baked avatars are saved in a compressed format to keep them small and fast to download. On a number of pages — including the avatar results screen after a Forge or selfie creation — the 3D viewer wasn't set up to decompress them, so the model silently failed to appear. The viewer now loads the decompression decoder on every page that shows a 3D model, so your avatars render reliably no matter where they're displayed.",+ "tags": [+ "fix"+ ]+ },+ {+ "date": "2026-06-20",+ "title": "Create and manage your avatar's wallet right on its page",+ "summary": "If you own an avatar, its page now has the full Solana wallet built in — no more jumping to a separate settings screen. Generate a custodial wallet for the avatar's agent in one click, then use it from the same spot: see the SOL balance, copy the address, open it in an explorer, request a devnet airdrop, and watch recent on-chain activity. You can also grind a vanity address so the wallet starts with characters you choose, and the wallet badge on the page updates instantly when you do. Everything is owner-only and verified server-side; visitors just see the public address.",+ "tags": [+ "feature"+ ]+ },{"date": "2026-06-20","title": "/irl now pairs with smart glasses",diff --git a/pages/a-edit.html b/pages/a-edit.htmlindex 202d9fd4d..4371b43ce 100644--- a/pages/a-edit.html+++ b/pages/a-edit.html@@ -252,6 +252,7 @@<link rel="stylesheet" href="/footer.css" /><link rel="stylesheet" href="/mobile.css" /><script defer src="/footer-newsletter.js"></script>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><header><div id="nav-container"></div></header>diff --git a/pages/agent-detail.html b/pages/agent-detail.htmlindex db4787261..a62547a10 100644--- a/pages/agent-detail.html+++ b/pages/agent-detail.html@@ -171,6 +171,7 @@);});</script>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><header><div id="nav-container"></div></header>diff --git a/pages/ar.html b/pages/ar.htmlindex 669f5ac53..2e66042a1 100644--- a/pages/ar.html+++ b/pages/ar.html@@ -360,6 +360,7 @@padding: 2rem;}</style>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><div class="ar-bg" aria-hidden="true"></div>diff --git a/pages/avatar-page.html b/pages/avatar-page.htmlindex dcf20e644..ee5830e86 100644--- a/pages/avatar-page.html+++ b/pages/avatar-page.html@@ -1578,6 +1578,7 @@}}</style>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><header><div id="nav-container"></div></header>diff --git a/pages/create-agent.html b/pages/create-agent.htmlindex 7d280a7c3..9677d93db 100644--- a/pages/create-agent.html+++ b/pages/create-agent.html@@ -1050,6 +1050,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Create an Agent — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><div id="page-loading" aria-hidden="true">diff --git a/pages/create-next.html b/pages/create-next.htmlindex ba90c7f4d..7044fa69b 100644--- a/pages/create-next.html+++ b/pages/create-next.html@@ -229,6 +229,7 @@.cn-step { padding: 16px 18px; }}</style>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><div class="cn-shell">diff --git a/pages/create-prompt.html b/pages/create-prompt.htmlindex 51dc6f0f6..e39681e6e 100644--- a/pages/create-prompt.html+++ b/pages/create-prompt.html@@ -526,6 +526,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Describe it to 3D — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><a href="#prompt" class="skip-link">Skip to the prompt box</a>diff --git a/pages/create-selfie.html b/pages/create-selfie.htmlindex 46bdcb812..fd1459542 100644--- a/pages/create-selfie.html+++ b/pages/create-selfie.html@@ -1300,6 +1300,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Selfie to Avatar — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><main class="stage">diff --git a/pages/create.html b/pages/create.htmlindex 5867303c9..b4b6de0c0 100644--- a/pages/create.html+++ b/pages/create.html@@ -1056,6 +1056,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Create Agent — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><div id="page-loading" aria-hidden="true">diff --git a/pages/create/video.html b/pages/create/video.htmlindex 8aebeda84..8fd9e1012 100644--- a/pages/create/video.html+++ b/pages/create/video.html@@ -655,6 +655,7 @@}}</style>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><a href="#main-content" class="skip-link">Skip to main content</a>diff --git a/pages/creating.html b/pages/creating.htmlindex 60845e600..8bb880f58 100644--- a/pages/creating.html+++ b/pages/creating.html@@ -251,6 +251,7 @@margin-bottom: 16px;}</style>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><nav class="crumb">diff --git a/pages/diorama.html b/pages/diorama.htmlindex 6f7f32179..d8d4e30d2 100644--- a/pages/diorama.html+++ b/pages/diorama.html@@ -52,6 +52,7 @@<link rel="stylesheet" href="/style.css" /><link rel="stylesheet" href="/src/diorama/diorama.css" />+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><!--diff --git a/pages/features.html b/pages/features.htmlindex 3eddd203b..c9ace2cd2 100644--- a/pages/features.html+++ b/pages/features.html@@ -69,6 +69,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Features — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body class="features-page"><a href="#main-content" class="skip-link">Skip to main content</a>diff --git a/pages/features/ar.html b/pages/features/ar.htmlindex 6e4a67e64..de892a626 100644--- a/pages/features/ar.html+++ b/pages/features/ar.html@@ -105,6 +105,7 @@]}</script>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body class="fl-page"><header><div id="nav-container"></div></header>diff --git a/pages/features/forge.html b/pages/features/forge.htmlindex 67961a1da..5f98c7937 100644--- a/pages/features/forge.html+++ b/pages/features/forge.html@@ -95,6 +95,7 @@]}</script>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body class="fl-page"><header><div id="nav-container"></div></header>diff --git a/pages/features/scan.html b/pages/features/scan.htmlindex 807799535..499cfa6bf 100644--- a/pages/features/scan.html+++ b/pages/features/scan.html@@ -101,6 +101,7 @@]}</script>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body class="fl-page"><header><div id="nav-container"></div></header>diff --git a/pages/features/walk.html b/pages/features/walk.htmlindex bac0dec0c..ecd97efff 100644--- a/pages/features/walk.html+++ b/pages/features/walk.html@@ -87,6 +87,7 @@]}</script>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body class="fl-page"><header><div id="nav-container"></div></header>diff --git a/pages/forge-embed.html b/pages/forge-embed.htmlindex 296399e8f..9283980f6 100644--- a/pages/forge-embed.html+++ b/pages/forge-embed.html@@ -184,6 +184,7 @@background: radial-gradient(120% 120% at 50% 0%, #15151c 0%, #0b0b0f 70%);}</style>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body data-bg="dark" data-state="ok"><div id="stage">diff --git a/pages/forge.html b/pages/forge.htmlindex 2053e8ac9..ba03fd18b 100644--- a/pages/forge.html+++ b/pages/forge.html@@ -2504,6 +2504,7 @@<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1"><meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Forge — Text to 3D — three.ws">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body class="forge-page"><div id="nav-container"></div>diff --git a/pages/gallery-picker.html b/pages/gallery-picker.htmlindex 1494547c1..16e733420 100644--- a/pages/gallery-picker.html+++ b/pages/gallery-picker.html@@ -86,6 +86,7 @@border: 1px solid var(--stroke);}</style>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><header><div id="nav-container"></div></header>diff --git a/pages/home.html b/pages/home.htmlindex deeefdbbe..dd87fb00e 100644--- a/pages/home.html+++ b/pages/home.html@@ -2443,6 +2443,7 @@<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1"><meta property="og:locale" content="en_US">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body>diff --git a/pages/marketplace.html b/pages/marketplace.htmlindex 1c8754d19..75af8f2d6 100644--- a/pages/marketplace.html+++ b/pages/marketplace.html@@ -2690,6 +2690,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Marketplace — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body class="market-page"><a class="skip-link" href="#main-content">Skip to content</a>diff --git a/pages/mint-success.html b/pages/mint-success.htmlindex 1063a7fce..fa6f57ca6 100644--- a/pages/mint-success.html+++ b/pages/mint-success.html@@ -148,6 +148,7 @@.ctas { flex-direction: column; align-items: stretch; }}</style>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><canvas id="starfield" aria-hidden="true"></canvas>diff --git a/pages/playground.html b/pages/playground.htmlindex 963a7d2bb..53b660aab 100644--- a/pages/playground.html+++ b/pages/playground.html@@ -606,6 +606,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Playground — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><header class="pg-header">diff --git a/pages/profile.html b/pages/profile.htmlindex 95f288e96..0be95fe5a 100644--- a/pages/profile.html+++ b/pages/profile.html@@ -710,6 +710,7 @@</style><link rel="stylesheet" href="/nav.css" /><link rel="stylesheet" href="/mobile.css" />+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><header><div id="nav-container"></div></header>diff --git a/pages/pump-dashboard.html b/pages/pump-dashboard.htmlindex d73f1f88e..9f7b0b616 100644--- a/pages/pump-dashboard.html+++ b/pages/pump-dashboard.html@@ -180,6 +180,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Pump Dashboard — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body class="home-page pump-dashboard-page"><a href="#pd-main" class="h-skip-link">Skip to main content</a>diff --git a/pages/scan.html b/pages/scan.htmlindex a124341fd..acdd662cd 100644--- a/pages/scan.html+++ b/pages/scan.html@@ -1344,6 +1344,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="3D Scanner — Scan Yourself into 3D — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><main class="stage">diff --git a/pages/tutorial.html b/pages/tutorial.htmlindex 5a91e95e6..371786c94 100644--- a/pages/tutorial.html+++ b/pages/tutorial.html@@ -877,6 +877,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Tutorial · Text Prompt to 3D Model — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body class="home-page tutorial-page tut-doc-page"><div class="cursor" id="cursor" aria-hidden="true"></div>diff --git a/pages/tutorials.html b/pages/tutorials.htmlindex bb05254a3..10c4e8da3 100644--- a/pages/tutorials.html+++ b/pages/tutorials.html@@ -479,6 +479,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Tutorials — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body class="home-page tutorials-page tut-page"><div class="cursor" id="cursor" aria-hidden="true"></div>diff --git a/pages/what-is.html b/pages/what-is.htmlindex 44cff6b74..e35f1dfbd 100644--- a/pages/what-is.html+++ b/pages/what-is.html@@ -96,6 +96,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="What is three.ws? — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body class="fl-page"><header><div id="nav-container"></div></header>diff --git a/pages/worlds.html b/pages/worlds.htmlindex e9a44a47b..adc353ea9 100644--- a/pages/worlds.html+++ b/pages/worlds.html@@ -681,6 +681,7 @@}}</style>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><div class="wl-shell">diff --git a/public/agents/index.html b/public/agents/index.htmlindex d4b8245e0..a63de99c4 100644--- a/public/agents/index.html+++ b/public/agents/index.html@@ -5,12 +5,12 @@<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><title>Agents Index · three.ws</title>- <meta name="description" content="Browse every public 3D AI agent on three.ws — chat, check skills, and copy the ones you like." />+ <meta name="description" content="Browse every agent registered on three.ws across every supported chain — inspect their services and bring them into 3D." /><meta property="og:type" content="website" /><meta property="og:site_name" content="three.ws" /><meta property="og:url" content="https://three.ws/agents" /><meta property="og:title" content="Agents Index · three.ws" />- <meta property="og:description" content="Browse every public 3D AI agent on three.ws — chat, check skills, and copy the ones you like." />+ <meta property="og:description" content="Browse every agent registered on three.ws across every supported chain — inspect their services and bring them into 3D." /><meta property="og:image" content="https://three.ws/api/page-og?s=agent-tools&t=Agents+Index&d=Browse+every+registered+agent+on+three.ws.&p=%2Fagents" /><meta name="twitter:card" content="summary_large_image" /><meta name="twitter:site" content="@trythreews" />@@ -141,7 +141,7 @@<section class="hero"><div class="eyebrow">3D AI Agents</div><h1>Agent <span>Index</span></h1>- <p>Every public 3D AI agent on three.ws. Chat with them, check their skills, or fork them as your own starting point.</p>+ <p>Every agent registered on three.ws, across every supported chain. Browse the directory, inspect their services, and bring any of them into 3D.</p><div class="hero-ctas"><a class="btn btn-primary" href="/create-agent">Create an agent</a><a class="btn btn-ghost" href="/marketplace">Marketplace</a>@@ -156,14 +156,9 @@<input id="ag-search" type="search" placeholder="Search agents…" autocomplete="off" /></div><select id="ag-sort" class="ctrl" aria-label="Sort">- <option value="popular">Most popular</option><option value="newest">Newest first</option><option value="name">Name A–Z</option></select>- <label style="display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);cursor:pointer;user-select:none">- <input id="ag-onchain" type="checkbox" />- On-chain only- </label><span id="ag-count" class="count-label"></span></div>@@ -175,7 +170,10 @@</main><script type="module">- const API = '/api/agents/public';+ // Source: the server-crawled ERC-8004 registry (/api/explore, fed by the+ // erc8004-crawl cron) — the same populated feed /discover and the embed+ // use. Matches this page's nav promise: "browse every registered agent".+ const API = '/api/explore';const $ = (id) => document.getElementById(id);const esc = (s) => String(s ?? '').replace(/[&<>"']/g, (c) => ({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));@@ -185,7 +183,7 @@const moreWrap = $('ag-more-wrap');const moreBtn = $('ag-more');- const state = { q: '', sort: 'popular', onchain: false, cursor: null, loading: false, total: 0 };+ const state = { q: '', sort: 'newest', cursor: null, loading: false, items: [] };function skeletons(n = 8) {return Array.from({length: n}, () => `@@ -204,66 +202,74 @@}function cardHtml(a) {- const onchain = a.is_registered;- const topSkills = (a.skills || []).slice(0, 3);- const chats = a.chat_count > 0 ? `${a.chat_count.toLocaleString()} chat${a.chat_count === 1 ? '' : 's'}` : '';- const avatar = a.avatar_thumbnail- ? `<img class="ag-avatar" src="${esc(a.avatar_thumbnail)}" alt="" loading="lazy" onerror="this.style.display='none';this.nextElementSibling.style.display='flex'" /><div class="ag-avatar-fallback" style="display:none">${esc(initial(a.name))}</div>`+ // Registry thumbnails live on arbitrary third-party hosts (IPFS, plain+ // http) — route them through the same-origin /api/img proxy so a dead+ // host degrades to the lettered fallback instead of a console error.+ const img = a.image ? `/api/img?url=${encodeURIComponent(a.image)}` : null;+ const avatar = img+ ? `<img class="ag-avatar" src="${esc(img)}" alt="" loading="lazy" onerror="this.style.display='none';this.nextElementSibling.style.display='flex'" /><div class="ag-avatar-fallback" style="display:none">${esc(initial(a.name))}</div>`: `<div class="ag-avatar-fallback">${esc(initial(a.name))}</div>`;+ const services = (a.services || []).map((s) => s && s.name).filter(Boolean).slice(0, 3);+ const x402 = a.x402Support ? `<span class="ag-skill" title="Accepts x402 payments">x402</span>` : '';+ const chain = a.chainShortName || 'on-chain';+ const href = `/a/${esc(a.chainId)}/${esc(a.agentId)}`;return `<div class="ag-card">- <a class="ag-card-link" href="${esc(a.home_url)}" aria-label="${esc(a.name)}"></a>+ <a class="ag-card-link" href="${href}" aria-label="${esc(a.name)}"></a><div class="ag-top"><div style="display:flex;flex-direction:column;gap:6px;align-items:center">${avatar}- ${onchain ? `<span class="ag-badge-onchain">✦ on-chain</span>` : ''}+ <span class="ag-badge-onchain">✦ ${esc(chain)}</span></div><div class="ag-meta"><div class="ag-name">${esc(a.name)}</div>${a.description ? `<div class="ag-desc">${esc(a.description)}</div>` : ''}</div></div>- ${topSkills.length || chats ? `<div class="ag-footer">- ${topSkills.map((s) => `<span class="ag-skill">${esc(s)}</span>`).join('')}- ${chats ? `<span class="ag-chats">${esc(chats)}</span>` : ''}+ ${services.length || x402 ? `<div class="ag-footer">+ ${services.map((s) => `<span class="ag-skill">${esc(s)}</span>`).join('')}+ ${x402}</div>` : ''}</div>`;}+ function renderList() {+ let items = state.items;+ if (state.sort === 'name') {+ items = [...items].sort((a, b) => (a.name || '').localeCompare(b.name || ''));+ }+ grid.innerHTML = items.map(cardHtml).join('');+ }+async function load(reset = false) {if (state.loading) return;state.loading = true;- if (reset) { state.cursor = null; state.total = 0; grid.innerHTML = skeletons(); stateEl.hidden = true; }+ if (reset) { state.cursor = null; state.items = []; grid.innerHTML = skeletons(); stateEl.hidden = true; }const url = new URL(API, location.origin);+ url.searchParams.set('source', 'onchain');url.searchParams.set('limit', '24');- url.searchParams.set('sort', state.sort);if (state.q) url.searchParams.set('q', state.q);- if (state.cursor) url.searchParams.set('before', state.cursor);- if (state.onchain) url.searchParams.set('onchain', '1');+ if (state.cursor) url.searchParams.set('cursor', state.cursor);try {const r = await fetch(url, { headers: { accept: 'application/json' } });if (!r.ok) throw new Error('HTTP ' + r.status);const data = await r.json();- const items = data.agents || [];-- if (reset) {- grid.innerHTML = items.length ? items.map(cardHtml).join('') : '';- } else {- items.forEach((a) => grid.insertAdjacentHTML('beforeend', cardHtml(a)));- }+ const items = (data.items || []).filter((it) => it.kind === 'onchain');- state.total += items.length;- state.cursor = data.next_cursor || null;- countEl.textContent = state.total > 0 ? `${state.total}${data.has_more ? '+' : ''} agents` : '';+ state.items.push(...items);+ state.cursor = data.nextCursor || null;+ renderList();- moreWrap.hidden = !data.has_more;+ const more = !!data.nextCursor;+ countEl.textContent = state.items.length > 0 ? `${state.items.length}${more ? '+' : ''} agents` : '';+ moreWrap.hidden = !more;- if (!state.total) {+ if (!state.items.length) {stateEl.innerHTML = state.q? `<b>No agents found</b>Search found nothing for "${esc(state.q)}". Try a different term.`- : `<b>No public agents yet</b><a href="/create-agent">Create the first one →</a>`;+ : `<b>No registered agents yet</b><a href="/create-agent">Register the first one →</a>`;stateEl.hidden = false;}} catch {@@ -282,8 +288,7 @@clearTimeout(_t);_t = setTimeout(() => { state.q = e.target.value.trim(); load(true); }, 320);});- $('ag-sort').addEventListener('change', (e) => { state.sort = e.target.value; load(true); });- $('ag-onchain').addEventListener('change', (e) => { state.onchain = e.target.checked; load(true); });+ $('ag-sort').addEventListener('change', (e) => { state.sort = e.target.value; renderList(); });moreBtn.addEventListener('click', () => load(false));load(true);diff --git a/public/changelog.json b/public/changelog.jsonindex 00ae70532..efafb10de 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-20T07:37:55.056Z",+ "generated_at": "2026-06-20T09:10:12.556Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -46,6 +46,16 @@"feature"]},+ {+ "date": "2026-06-20",+ "type": "update",+ "title": "Agents Index now shows every registered agent",+ "summary": "The Agents Index at /agents was reading from an empty source and showed \"No public agents yet\" even though hundreds of agents are registered across chains. It now reads from the live on-chain registry — the same feed Discover uses — so you can browse every registered agent, search them, see their services and x402 support, and open any one's detail page. Search, sorting and load-more all work against the real directory.",+ "link": "/agents",+ "tags": [+ "fix"+ ]+ },{"date": "2026-06-20","type": "update",@@ -56,6 +66,26 @@"feature"]},+ {+ "date": "2026-06-20",+ "type": "update",+ "title": "Compressed 3D avatars now load everywhere",+ "summary": "Generated and server-baked avatars are saved in a compressed format to keep them small and fast to download. On a number of pages — including the avatar results screen after a Forge or selfie creation — the 3D viewer wasn't set up to decompress them, so the model silently failed to appear. The viewer now loads the decompression decoder on every page that shows a 3D model, so your avatars render reliably no matter where they're displayed.",+ "link": null,+ "tags": [+ "fix"+ ]+ },+ {+ "date": "2026-06-20",+ "type": "update",+ "title": "Create and manage your avatar's wallet right on its page",+ "summary": "If you own an avatar, its page now has the full Solana wallet built in — no more jumping to a separate settings screen. Generate a custodial wallet for the avatar's agent in one click, then use it from the same spot: see the SOL balance, copy the address, open it in an explorer, request a devnet airdrop, and watch recent on-chain activity. You can also grind a vanity address so the wallet starts with characters you choose, and the wallet badge on the page updates instantly when you do. Everything is owner-only and verified server-side; visitors just see the public address.",+ "link": null,+ "tags": [+ "feature"+ ]+ },{"date": "2026-06-20","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 052363b01..9ef4b72f3 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -38,6 +38,14 @@<category>feature</category><description>You can connect companion smart glasses to the /irl augmented-reality view and see the nearest agent right on your lens — its name, the direction to turn, how far away it is, and a flash when one walks into range. Your phone keeps doing all the GPS, compass and discovery work; the glasses just show the cue, so you can keep your head up instead of staring at a screen. Brilliant Labs Frame is fully supported (official SDK); Even Realities G1 works too via its two-arm pairing (experimental, community protocol). Pairing uses an encrypted Web Bluetooth link in Chromium browsers — your location is never sent to the glasses, only the direction and distance you already see on screen.</description></item>+ <item>+ <title>Agents Index now shows every registered agent</title>+ <link>https://three.ws/agents</link>+ <guid isPermaLink="false">2026-06-20:Agents Index now shows every registered agent</guid>+ <pubDate>Sat, 20 Jun 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>The Agents Index at /agents was reading from an empty source and showed "No public agents yet" even though hundreds of agents are registered across chains. It now reads from the live on-chain registry — the same feed Discover uses — so you can browse every registered agent, search them, see their services and x402 support, and open any one's detail page. Search, sorting and load-more all work against the real directory.</description>+ </item><item><title>Choose where you walk — six environments for the Walk page</title><link>https://three.ws/features/walk</link>@@ -46,6 +54,22 @@<category>feature</category><description>Your avatar no longer strolls in one fixed studio. A new environment picker lets you drop into six distinct worlds: a sunlit Park with shade trees and benches, a neon Cyberpunk street, a bright Beach with palm trees and a turquoise sea, a white-walled Gallery with pedestals and hung art, an abstract Void grid for pure focus, and the three.ws Office with desks and plants. Open the picker from the environment button in the Walk HUD to see a preview of each scene, or press V to cycle through them. Switching fades smoothly to the new sky and back — the ground, lighting, reflections, and props all change to match, and the avatar walks and collides correctly in every world. Link straight to a scene with ?env=beach (or park, cyberpunk, gallery, void, office), and your last choice is remembered next time you visit. Every scene is a real 3D model with its own HDR lighting, authored and owned by three.ws.</description></item>+ <item>+ <title>Compressed 3D avatars now load everywhere</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-20:Compressed 3D avatars now load everywhere</guid>+ <pubDate>Sat, 20 Jun 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>Generated and server-baked avatars are saved in a compressed format to keep them small and fast to download. On a number of pages — including the avatar results screen after a Forge or selfie creation — the 3D viewer wasn't set up to decompress them, so the model silently failed to appear. The viewer now loads the decompression decoder on every page that shows a 3D model, so your avatars render reliably no matter where they're displayed.</description>+ </item>+ <item>+ <title>Create and manage your avatar's wallet right on its page</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-20:Create and manage your avatar's wallet right on its page</guid>+ <pubDate>Sat, 20 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>If you own an avatar, its page now has the full Solana wallet built in — no more jumping to a separate settings screen. Generate a custodial wallet for the avatar's agent in one click, then use it from the same spot: see the SOL balance, copy the address, open it in an explorer, request a devnet airdrop, and watch recent on-chain activity. You can also grind a vanity address so the wallet starts with characters you choose, and the wallet badge on the page updates instantly when you do. Everything is owner-only and verified server-side; visitors just see the public address.</description>+ </item><item><title>Express yourself in Walk — wave, dance, sit, point, cheer and more</title><link>https://three.ws/features/walk</link>diff --git a/public/dashboard/index.html b/public/dashboard/index.htmlindex fe1d1d832..980eddabb 100644--- a/public/dashboard/index.html+++ b/public/dashboard/index.html@@ -1300,6 +1300,7 @@crossorigin="anonymous"></script><script type="module" src="/session-client.js"></script>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><div id="forge-announce" class="dash-announce" role="region" aria-label="Announcement">diff --git a/public/demos-embed/gallery.html b/public/demos-embed/gallery.htmlindex a458bb27c..849df65b8 100644--- a/public/demos-embed/gallery.html+++ b/public/demos-embed/gallery.html@@ -158,6 +158,7 @@.gallery-grid-wrap { background: transparent !important; }.gallery-main { background: transparent !important; padding-top: 0 !important; }</style>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body class="gallery-page" style="background:transparent"><main class="gallery-main">diff --git a/public/demos/create-v2.html b/public/demos/create-v2.htmlindex f71525f46..5b9d0fa4f 100644--- a/public/demos/create-v2.html+++ b/public/demos/create-v2.html@@ -322,6 +322,7 @@.stats-divider { display: none; }}</style>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><div class="demo-banner">diff --git a/public/demos/gallery-picker.html b/public/demos/gallery-picker.htmlindex 44ba119da..1016cbb14 100644--- a/public/demos/gallery-picker.html+++ b/public/demos/gallery-picker.html@@ -164,6 +164,7 @@}.error { color: #ff8888; border-color: #3a1f2b; }</style>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><header><div id="nav-container"></div></header>diff --git a/public/demos/usdz-ar.html b/public/demos/usdz-ar.htmlindex 69ae2163d..b25ab2c42 100644--- a/public/demos/usdz-ar.html+++ b/public/demos/usdz-ar.html@@ -49,6 +49,7 @@.log .err { color: #ff6b6b; }.log .info { color: #66d9ef; }</style>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><header><div id="nav-container"></div></header>diff --git a/public/discover/index.html b/public/discover/index.htmlindex 2d695f5f9..619088436 100644--- a/public/discover/index.html+++ b/public/discover/index.html@@ -56,6 +56,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Discover — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body class="features-page explore-page"><header>diff --git a/public/docs-widgets.html b/public/docs-widgets.htmlindex 3d9b7d1c0..4e35097e1 100644--- a/public/docs-widgets.html+++ b/public/docs-widgets.html@@ -140,6 +140,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Docs · Widgets — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body class="gallery-body"><header>diff --git a/public/features.json b/public/features.jsonindex 010ed5231..07bb10ca1 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-20T07:37:55.044Z",+ "generated_at": "2026-06-20T09:10:12.540Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/public/forgot-password.html b/public/forgot-password.htmlindex 495dd4278..67b112fb6 100644--- a/public/forgot-password.html+++ b/public/forgot-password.html@@ -159,6 +159,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Forgot password — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><div class="shell">diff --git a/public/gallery/index.html b/public/gallery/index.htmlindex 0839c4799..8aadd367c 100644--- a/public/gallery/index.html+++ b/public/gallery/index.html@@ -42,6 +42,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Avatar Gallery — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body class="gallery-page"><header>diff --git a/public/gmgn.html b/public/gmgn.htmlindex e037ec371..2b777ebd5 100644--- a/public/gmgn.html+++ b/public/gmgn.html@@ -174,6 +174,7 @@<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1"><meta property="og:locale" content="en_US"><meta property="og:image:alt" content="GMGN Smart Money — three.ws">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body class="home-page"><script>window.__PAGE_INIT_TS = Date.now();</script>diff --git a/public/login.html b/public/login.htmlindex f6016f1b3..cd0c3b58e 100644--- a/public/login.html+++ b/public/login.html@@ -519,6 +519,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Sign in — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><a href="#main-content" class="skip-link">Skip to main content</a>diff --git a/public/lookup.html b/public/lookup.htmlindex 269d49015..34fee68e5 100644--- a/public/lookup.html+++ b/public/lookup.html@@ -389,6 +389,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Agent Lookup — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><a href="#main-content" class="skip-link">Skip to main content</a>diff --git a/public/model-viewer-meshopt.js b/public/model-viewer-meshopt.jsnew file mode 100644index 000000000..c798c749d--- /dev/null+++ b/public/model-viewer-meshopt.js@@ -0,0 +1,22 @@+// Registers the EXT_meshopt_compression decoder with <model-viewer>.+//+// model-viewer auto-loads the Draco and KTX2 decoders, but leaves the Meshopt+// decoder unset. Every server-baked avatar (the /api/avatars/<id>/glb lane and+// Forge output) emits EXT_meshopt_compression, so without this the viewer throws+// "THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed+// files" and the model never renders.+//+// Setting the static `meshoptDecoderLocation` makes model-viewer lazily fetch+// the UMD decoder (it defines a global `MeshoptDecoder`) and register it on its+// GLTFLoader before loading compressed files. This runs once globally and is a+// harmless no-op on pages whose GLBs are uncompressed.+const MESHOPT_DECODER_URL = 'https://cdn.jsdelivr.net/npm/[email protected]/meshopt_decoder.js';++customElements.whenDefined('model-viewer').then((resolved) => {+ // Modern browsers resolve whenDefined() with the element constructor; older+ // ones resolve with undefined, so fall back to the registry lookup.+ const ModelViewerElement = resolved || customElements.get('model-viewer');+ if (ModelViewerElement && !ModelViewerElement.meshoptDecoderLocation) {+ ModelViewerElement.meshoptDecoderLocation = MESHOPT_DECODER_URL;+ }+});diff --git a/public/next/index.html b/public/next/index.htmlindex e6da65a7a..b8e13a6dd 100644--- a/public/next/index.html+++ b/public/next/index.html@@ -279,6 +279,7 @@<script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js" integrity="sha384-sr9b4Ux0WhAUGclJ0ym0FSY2zSOMmNSn0bP/SA0e6bNCrpn/5W3QL8mm+LdlQMKw" crossorigin="anonymous"></script><script src="/embed/v1.js" defer></script>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><nav class="nav" aria-label="Primary">diff --git a/public/pay/calls/index.html b/public/pay/calls/index.htmlindex 60e1f2dd0..3e6aae158 100644--- a/public/pay/calls/index.html+++ b/public/pay/calls/index.html@@ -153,6 +153,7 @@.opt-row .opt-title { font-weight: 600; }.opt-row .opt-detail { color: var(--muted); margin-top: 2px; font-size: 12px; }</style>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body>diff --git a/public/pay/index.html b/public/pay/index.htmlindex aa3be92d6..56419e046 100644--- a/public/pay/index.html+++ b/public/pay/index.html@@ -707,6 +707,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Pay (x402) — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body>diff --git a/public/persona/demo.html b/public/persona/demo.htmlindex 1bdcfaa3a..971068e26 100644--- a/public/persona/demo.html+++ b/public/persona/demo.html@@ -169,6 +169,7 @@margin-top: 30px;}</style>+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><main>diff --git a/public/pumpfun.html b/public/pumpfun.htmlindex e1b5a60c3..9d3d3e6a4 100644--- a/public/pumpfun.html+++ b/public/pumpfun.html@@ -400,6 +400,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Pump.fun Stream — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body class="home-page"><header>diff --git a/public/register.html b/public/register.htmlindex e8216eb95..85d6d49fb 100644--- a/public/register.html+++ b/public/register.html@@ -463,6 +463,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Create account — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><div class="shell">diff --git a/public/reputation/index.html b/public/reputation/index.htmlindex acd2bbb0d..a8cc7a999 100644--- a/public/reputation/index.html+++ b/public/reputation/index.html@@ -369,6 +369,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Reputation Explorer — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><a href="#rep-content" class="h-skip-link">Skip to content</a>diff --git a/public/sitemap/index.html b/public/sitemap/index.htmlindex 8e22e2edc..311903272 100644--- a/public/sitemap/index.html+++ b/public/sitemap/index.html@@ -56,25 +56,6 @@.sm-brand img { width: 24px; height: 24px; border-radius: 5px; }.sm-brand:hover { text-decoration: none; }</style>-- <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">- <meta property="og:type" content="website">- <meta property="og:site_name" content="three.ws">- <meta property="og:locale" content="en_US">- <meta property="og:title" content="Sitemap · three.ws">- <meta property="og:description" content="Human-readable index of every page on three.ws.">- <meta property="og:url" content="https://three.ws/sitemap">- <meta property="og:image" content="https://three.ws/api/page-og?s=main&t=Sitemap&d=Human-readable+index+of+every+page+on+three.ws.&p=%2Fsitemap">- <meta property="og:image:width" content="1200">- <meta property="og:image:height" content="630">- <meta property="og:image:type" content="image/png">- <meta property="og:image:alt" content="Sitemap — three.ws">- <meta name="twitter:card" content="summary_large_image">- <meta name="twitter:site" content="@trythreews">- <meta name="twitter:title" content="Sitemap · three.ws">- <meta name="twitter:description" content="Human-readable index of every page on three.ws.">- <meta name="twitter:image" content="https://three.ws/api/page-og?s=main&t=Sitemap&d=Human-readable+index+of+every+page+on+three.ws.&p=%2Fsitemap">- <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Sitemap","description":"Human-readable index of every page on three.ws.","url":"https://three.ws/sitemap","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=main&t=Sitemap&d=Human-readable+index+of+every+page+on+three.ws.&p=%2Fsitemap"}]}</script></head><body><header class="sm-topbar">diff --git a/public/vanity-wallet.html b/public/vanity-wallet.htmlindex 234d1f7be..8a921733f 100644--- a/public/vanity-wallet.html+++ b/public/vanity-wallet.html@@ -195,6 +195,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Solana Vanity Wallet — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body><a href="#main-content" class="skip-link">Skip to main content</a>diff --git a/public/widgets-gallery/index.html b/public/widgets-gallery/index.htmlindex a41a589eb..eca9ac875 100644--- a/public/widgets-gallery/index.html+++ b/public/widgets-gallery/index.html@@ -40,6 +40,7 @@<meta property="og:locale" content="en_US"><meta property="og:image:alt" content="Widgets Gallery — three.ws"><meta name="twitter:site" content="@trythreews">+ <script type="module" src="/model-viewer-meshopt.js"></script></head><body class="gallery-body"><div id="nav-container"></div>diff --git a/src/avatar-page.js b/src/avatar-page.jsindex 13a1f565c..5e45a0b76 100644--- a/src/avatar-page.js+++ b/src/avatar-page.js@@ -15,6 +15,8 @@ import { emptyStateHTML, errorStateHTML } from './shared/state-kit.js';import { mountViewSwitcher } from './view-switcher.js';import { PoseStage, loadPoseManifest } from './avatar-pose.js';import { walletChipHTML, wireWalletChips } from './shared/agent-wallet-chip.js';+import { mountAgentSolanaWalletCard } from './agent-solana-wallet.js';+import { mountAgentVanityGrinderCard } from './agent-vanity-grinder.js';const ATTACHED_KEY_PREFIX = 'avatar_attached_v1:';@@ -285,6 +287,7 @@ function renderShell(glbUrl) {${byLine}${tagsHtml ? `<div class="av-tags">${tagsHtml}</div>` : ''}${walletRowHTML()}+ ${avatar.owner_id && avatar.agent_id ? `<div class="av-wallet-manage" id="av-wallet-manage"></div>` : ''}</div><div class="av-cta-talk-row"><button class="av-cta-talk" id="av-talk" type="button" aria-label="Talk to ${esc(avatar.name)}">@@ -452,6 +455,93 @@ function renderShell(glbUrl) {// avatar-id attribute (set in the template) if the element hasn't upgraded yet.const actions = $('av-actions');if (actions && customElements.get('avatar-actions')) actions.avatar = avatar;++ mountWalletManager();+}++/**+ * Owner-only inline wallet management for the avatar's bound agent: generate a+ * random custodial Solana wallet, use it (balance, copy, explorer, devnet+ * airdrop, on-chain activity, replace), and grind a vanity address — all from+ * this page instead of routing the owner away to /agent-edit.+ *+ * Reuses the same server-verified cards the agent home panel mounts, so the+ * wallet behaves identically everywhere. Both cards self-gate on the server+ * (a 403 removes them), and we only mount when the viewer owns the avatar and+ * it has a bound agent, so visitor views never fire owner-only requests.+ */+function mountWalletManager() {+ const host = $('av-wallet-manage');+ if (!host || !avatar.owner_id || !avatar.agent_id) return;++ const identity = {+ id: avatar.agent_id,+ name: avatar.name || 'agent',+ solana_address: avatar.agent_solana_address || null,+ meta: {+ solana_address: avatar.agent_solana_address || null,+ solana_vanity_prefix: avatar.agent_solana_vanity_prefix || null,+ solana_vanity_suffix: avatar.agent_solana_vanity_suffix || null,+ },+ };++ // Keep the read-only chip above in sync after any provision/replace/grind so+ // the page reflects the new address (and vanity styling) without a reload.+ // The wallet card mutates `identity` itself; the vanity card hands the fresh+ // provision payload straight to its callback, so fold that in when present.+ const syncChip = (data) => {+ if (data) {+ identity.solana_address = data.address || null;+ identity.meta = {+ ...(identity.meta || {}),+ solana_address: data.address || null,+ solana_vanity_prefix: data.vanity_prefix || null,+ solana_vanity_suffix: data.vanity_suffix || null,+ };+ }+ avatar.agent_solana_address = identity.solana_address || null;+ avatar.agent_solana_vanity_prefix = identity.meta?.solana_vanity_prefix || null;+ avatar.agent_solana_vanity_suffix = identity.meta?.solana_vanity_suffix || null;+ const row = $('av-wallet-row');+ const chip = walletChipHTML(avatar, { isOwner: true, showPending: false });+ if (chip) {+ if (row) {+ row.innerHTML = chip;+ } else {+ // First wallet on an avatar that had none — inject the chip row+ // directly above the management panel.+ const newRow = document.createElement('div');+ newRow.className = 'av-wallet-row';+ newRow.id = 'av-wallet-row';+ newRow.innerHTML = chip;+ host.parentNode?.insertBefore(newRow, host);+ }+ wireWalletChips($('av-wallet-row'));+ }+ };++ let walletCard = null;+ try {+ walletCard = mountAgentSolanaWalletCard({+ panel: host,+ identity,+ onProvisioned: (data) => syncChip(data),+ });+ } catch (err) {+ log.error('[avatar] wallet card', err);+ }+ try {+ mountAgentVanityGrinderCard({+ panel: host,+ identity,+ onProvisioned: (data) => {+ syncChip(data);+ walletCard?.refresh?.();+ },+ });+ } catch (err) {+ log.error('[avatar] vanity card', err);+ }}/**