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
Avatar picker: live 3D thumbnails, IRL/XR deeplinks from avatar detail page
nirholas7ac0b09bfcb9
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex ad7242be0..913ab70f8 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -18,6 +18,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Agent trading record — proof-of-edge on every agent profile** — Agent profiles now show a live TRADING RECORD panel that pulls directly from the Oracle's action ledger. Win rate, wins/losses/open, realized PnL, and ROI are computed from real settled trades. Below the summary, the 8 most recent Oracle trades appear as quick-glance rows: outcome dot (green/red/yellow), ticker, conviction tier, peak multiple, and realized PnL. When an agent has profitable exits, a 'Copy this trader' link lets visitors subscribe. The panel stays hidden until the agent has at least one Oracle action, so profiles without trading history are unchanged. (`/agents`) `[feature]`- **Agents Index — browse every public 3D AI agent on three.ws** — A new /agents page lists every public agent on the platform: search by name or description, filter to on-chain-registered agents only, sort by popularity or newest, and paginate through the directory. Each card shows the agent's avatar, top skills, and chat count with a direct link to their profile. My Agents at /my-agents gives registered users a focused view of their own agents with quick Edit and Deploy links. (`/agents`) `[feature]`- **Agents: Oracle and Sniper trading status on agent cards** — The agents dashboard now shows live trading badges on each card. If an agent has Oracle conviction history, its win rate and realized PnL appear inline. If a sniper strategy is armed and active, the agent card shows the strategy's realized PnL. Both badges link to the relevant dashboard so you can drill in from the agents list. (`/dashboard/agents`) `[improvement]`+- **Avatar picker: live 3D previews, IRL + XR deeplinks, and XR orbit lock** — The avatar selector sheet on /irl and /xr now renders a real 3D preview of each of your avatars instead of a blank silhouette — models load lazily using an IntersectionObserver so opening the sheet stays instant. The /xr page gains a Lock button: tapping it freezes OrbitControls so the avatar stays centered for headset or camera-AR use (tap again to restore free orbit). Your avatar detail page now has Walk IRL and View in XR buttons that drop you straight into the live experience with that avatar pre-loaded — no setup required. (`/xr`) `[feature, improvement]`- **Buy any coin directly on three.ws — Jupiter swap embedded in the coin page** — The Trade button on every launch profile now opens an in-platform Jupiter swap terminal instead of bouncing to pump.fun. The terminal is lazy-loaded only when you click, so cold page loads stay fast. Jupiter routes through every available liquidity source including pump.fun's AMM and bonding curve, so it works for both pre-graduation and graduated coins. The price chart now also shows volume bars alongside the price line — green for net-buy candles, red for net-sell — giving you an instant read on trade intensity at a glance. The agent panel shows a 'Copy trades' shortcut that takes you directly to the agent's copy-trade setup. And when Birdeye's OHLCV quota is exhausted, the chart falls back to GeckoTerminal automatically, so the chart never goes dark on an actively-trading coin. (`/launches`) `[feature, improvement]`- **Claim Your Wallet — see your verified pump.fun track record in seconds** — Any pump.fun trader can now paste their Solana wallet at /claim-wallet and instantly see their full track record: win rate, smart-money score, reputation label (smart_money / sniper / neutral / unproven), coin history with PnL per position, and a net PnL summary for the indexer window. A single click signs them in and publishes the track record as their official three.ws Trader Card — opening them up to followers and copy-trading fees automatically. (`/claim-wallet`) `[feature]`- **Coin 3D: Oracle conviction score and watchlist in the HUD** — The Token in 3D page now shows Oracle conviction alongside the bonding-curve stats. After the scene loads, the panel fetches the coin's conviction score and tier (prime/strong/lean/watch/avoid) asynchronously — no scene-render delay. Tap the score badge to jump to the full Oracle breakdown. A new Watch button syncs the token directly into your watchlist across the radar, launches, and visualizer surfaces. (`/coin3d`) `[improvement]`diff --git a/data/changelog.json b/data/changelog.jsonindex d0ce003df..803806bf7 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,16 @@{"$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-16",+ "title": "Avatar picker: live 3D previews, IRL + XR deeplinks, and XR orbit lock",+ "summary": "The avatar selector sheet on /irl and /xr now renders a real 3D preview of each of your avatars instead of a blank silhouette — models load lazily using an IntersectionObserver so opening the sheet stays instant. The /xr page gains a Lock button: tapping it freezes OrbitControls so the avatar stays centered for headset or camera-AR use (tap again to restore free orbit). Your avatar detail page now has Walk IRL and View in XR buttons that drop you straight into the live experience with that avatar pre-loaded — no setup required.",+ "tags": [+ "feature",+ "improvement"+ ],+ "link": "/xr"+ },{"date": "2026-06-16","title": "IRL: pinned avatars now face the direction you were looking",diff --git a/pages/avatar-page.html b/pages/avatar-page.htmlindex 3660382d7..8375b4049 100644--- a/pages/avatar-page.html+++ b/pages/avatar-page.html@@ -588,6 +588,8 @@.av-ar-row {display: flex;justify-content: center;+ flex-wrap: wrap;+ gap: 8px;padding: 0 24px 12px;}.av-ar-btn {diff --git a/public/changelog.json b/public/changelog.jsonindex 5abe6afb3..0798f9886 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-16T10:14:53.452Z",+ "generated_at": "2026-06-16T10:22:03.936Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -126,6 +126,17 @@"improvement"]},+ {+ "date": "2026-06-16",+ "type": "update",+ "title": "Avatar picker: live 3D previews, IRL + XR deeplinks, and XR orbit lock",+ "summary": "The avatar selector sheet on /irl and /xr now renders a real 3D preview of each of your avatars instead of a blank silhouette — models load lazily using an IntersectionObserver so opening the sheet stays instant. The /xr page gains a Lock button: tapping it freezes OrbitControls so the avatar stays centered for headset or camera-AR use (tap again to restore free orbit). Your avatar detail page now has Walk IRL and View in XR buttons that drop you straight into the live experience with that avatar pre-loaded — no setup required.",+ "link": "/xr",+ "tags": [+ "feature",+ "improvement"+ ]+ },{"date": "2026-06-16","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 2e053ed4e..a0d2ff569 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -102,6 +102,14 @@<category>improvement</category><description>The agents dashboard now shows live trading badges on each card. If an agent has Oracle conviction history, its win rate and realized PnL appear inline. If a sniper strategy is armed and active, the agent card shows the strategy's realized PnL. Both badges link to the relevant dashboard so you can drill in from the agents list.</description></item>+ <item>+ <title>Avatar picker: live 3D previews, IRL + XR deeplinks, and XR orbit lock</title>+ <link>https://three.ws/xr</link>+ <guid isPermaLink="false">2026-06-16:Avatar picker: live 3D previews, IRL + XR deeplinks, and XR orbit lock</guid>+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>The avatar selector sheet on /irl and /xr now renders a real 3D preview of each of your avatars instead of a blank silhouette — models load lazily using an IntersectionObserver so opening the sheet stays instant. The /xr page gains a Lock button: tapping it freezes OrbitControls so the avatar stays centered for headset or camera-AR use (tap again to restore free orbit). Your avatar detail page now has Walk IRL and View in XR buttons that drop you straight into the live experience with that avatar pre-loaded — no setup required.</description>+ </item><item><title>Buy any coin directly on three.ws — Jupiter swap embedded in the coin page</title><link>https://three.ws/launches</link>diff --git a/public/features.json b/public/features.jsonindex ec81b70c1..0ad28560c 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-16T10:14:53.395Z",+ "generated_at": "2026-06-16T10:22:03.920Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/public/sitemap/index.html b/public/sitemap/index.htmlindex 6b3a62df9..4fa289b27 100644--- a/public/sitemap/index.html+++ b/public/sitemap/index.html@@ -56,20 +56,6 @@.sm-brand img { width: 24px; height: 24px; border-radius: 5px; }.sm-brand:hover { text-decoration: none; }</style>-- <meta property="og:type" content="website">- <meta property="og:site_name" content="three.ws">- <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/og-image.png">- <meta property="og:image:width" content="1200">- <meta property="og:image:height" content="630">- <meta name="twitter:card" content="summary_large_image">- <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/og-image.png">- <script type="application/ld+json">{"@context":"https://schema.org","@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"}}</script></head><body><header class="sm-topbar">diff --git a/src/avatar-page.js b/src/avatar-page.jsindex a6fa9d737..f905a6a95 100644--- a/src/avatar-page.js+++ b/src/avatar-page.js@@ -291,6 +291,14 @@ function renderShell(glbUrl) {<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"/></svg>View in AR</a>+ <a class="av-ar-btn" href="/irl?avatar=${encodeURIComponent(avatar.id || avatarId)}">+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="8" r="4"/><path d="M4 20c0-4 3.6-7 8-7s8 3 8 7"/></svg>+ Walk IRL+ </a>+ <a class="av-ar-btn" href="/xr?avatar=${encodeURIComponent(avatar.id || avatarId)}">+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 7l9-4 9 4v10l-9 4-9-4V7z"/><path d="M12 3v18M3 7l9 4 9-4"/></svg>+ View in XR+ </a></div><avatar-actions id="av-actions" avatar-id="${esc(avatar.id || avatarId)}" style="margin-top:14px;display:block"></avatar-actions>${avatar.owner_id ? `diff --git a/src/avatar-picker.js b/src/avatar-picker.jsindex ed23bdbb0..de20089ea 100644--- a/src/avatar-picker.js+++ b/src/avatar-picker.js@@ -129,6 +129,87 @@ function thumbPlaceholderSvg() {</svg>`;}+// ── 3-D thumbnail renderer ─────────────────────────────────────────────────+// Lazily created on first use; destroyed when no longer needed.+let _offscreenCtx = null;+const _thumbCache = new Map(); // glbUrl → data:image/png++async function getOffscreenCtx() {+ if (_offscreenCtx) return _offscreenCtx;+ const [{ WebGLRenderer, Scene, PerspectiveCamera, AmbientLight, DirectionalLight, Box3, Vector3 },+ { GLTFLoader }] = await Promise.all([+ import('three'),+ import('three/addons/loaders/GLTFLoader.js'),+ ]);+ const cvs = document.createElement('canvas');+ cvs.width = 256; cvs.height = 256;+ const renderer = new WebGLRenderer({ canvas: cvs, antialias: true, alpha: true });+ renderer.setPixelRatio(1);+ renderer.setSize(256, 256);+ renderer.setClearColor(0x000000, 0);+ const camera = new PerspectiveCamera(42, 1, 0.01, 100);+ camera.position.set(0, 1.3, 2.2);+ camera.lookAt(0, 1.0, 0);+ const scene = new Scene();+ scene.add(new AmbientLight(0xffffff, 1.0));+ const sun = new DirectionalLight(0xffffff, 1.4);+ sun.position.set(2, 4, 3);+ scene.add(sun);+ const fill = new DirectionalLight(0xaaccff, 0.5);+ fill.position.set(-2, 2, -1);+ scene.add(fill);+ _offscreenCtx = { renderer, camera, scene, loader: new GLTFLoader(), Box3, Vector3 };+ return _offscreenCtx;+}++async function render3dThumb(glbUrl) {+ if (_thumbCache.has(glbUrl)) return _thumbCache.get(glbUrl);+ try {+ const { renderer, camera, scene, loader, Box3, Vector3 } = await getOffscreenCtx();+ const gltf = await loader.loadAsync(glbUrl);+ const model = gltf.scene;+ const box = new Box3().setFromObject(model);+ const size = box.getSize(new Vector3());+ const center = box.getCenter(new Vector3());+ const scale = 1.6 / Math.max(size.x, size.y, size.z);+ model.scale.setScalar(scale);+ model.position.sub(center.multiplyScalar(scale));+ model.position.y += 0.15;+ scene.add(model);+ renderer.render(scene, camera);+ const dataUrl = renderer.domElement.toDataURL('image/png');+ scene.remove(model);+ model.traverse(ch => {+ ch.geometry?.dispose();+ if (Array.isArray(ch.material)) ch.material.forEach(m => m.dispose());+ else ch.material?.dispose();+ });+ _thumbCache.set(glbUrl, dataUrl);+ return dataUrl;+ } catch {+ return null;+ }+}++function setupThumb3d(thumbDiv, glbUrl) {+ if (!glbUrl || typeof IntersectionObserver === 'undefined') return;+ const obs = new IntersectionObserver(async entries => {+ for (const entry of entries) {+ if (!entry.isIntersecting) continue;+ obs.disconnect();+ const dataUrl = await render3dThumb(glbUrl);+ if (dataUrl && thumbDiv.querySelector('.avp-thumb-placeholder')) {+ const img = document.createElement('img');+ img.src = dataUrl;+ img.alt = '';+ thumbDiv.innerHTML = '';+ thumbDiv.appendChild(img);+ }+ }+ }, { threshold: 0.1 });+ obs.observe(thumbDiv);+}+export function createAvatarPicker({ onSelect } = {}) {injectStyles();@@ -205,6 +286,10 @@ export function createAvatarPicker({ onSelect } = {}) {</div><div class="avp-label">${av.name}</div>`;+ if (!av.thumbnailUrl && av.url) {+ setupThumb3d(card.querySelector('.avp-thumb'), av.url);+ }+card.addEventListener('click', () => {grid.querySelectorAll('.avp-card').forEach(c => c.classList.remove('is-active'));card.classList.add('is-active');