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
Club, communities, agent token widget, and changelog updates
nirholasd86d87fd127c
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 6122c2a5b..d19a8d8da 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -17,6 +17,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **The animated 3D bot in the site footer renders again** — The little animated 3D robot that sits in the footer across the site — and on the sign-in page — had gone missing, leaving an empty space. The model files it loads are compressed, but the footer loader wasn't set up to unpack that format, so it failed before the bot could appear. The decoder is now wired in, so the bot loads and spins as intended everywhere the footer shows. `[fix]`- **The disco dance floor in coin worlds works again** — Every coin world has a disco pad beside the totem that pulses to a shared beat and crossfades dancers in lockstep. A wiring gap meant the world tried to listen for a beat the connection didn't know about, which threw an error the moment you entered and left the pad dark. The beat is now delivered properly: step onto the pad, hit Dance, and you and everyone else standing on it move to the same animation on the same beat, with the floor and lights pulsing in time. (`/play`) `[fix]`- **The homepage avatar now prays, then walks** — Tap “🙏 Pray” on the homepage hero and the avatar finishes the prayer and rises straight into a walk — one smooth motion instead of snapping back to a standing idle at the end of the clip. After the walk plays out, the avatar eases back into its gentle idle-and-stroll rhythm. The other one-tap emotes (wave, dance, jump, and the rest) also return to that ambient motion now instead of freezing on their last frame. `[improvement]`+- **Tipping a dancer goes straight to the wallet now** — Tapping Tip in the Pole Club used to open a three-step “Before you go on-chain” explainer first, and dismissing it cancelled the tip entirely — so first-time visitors couldn't pay without sitting through the wizard. That gate is gone. Tip now opens the wallet-and-amount checkout directly, where you pick Phantom or a browser wallet, see the exact USDC amount, and approve with one signature. The checkout already shows everything the explainer did, so there's no reason to stack a lecture in front of a fraction-of-a-cent tip. (`/club`) `[improvement]`- **Token swaps now confirm success or failure clearly** — When you buy $THREE (or swap any pair) from the swap window, it now tells you exactly how it went. After you approve in your wallet, a banner shows it submitting and confirming on-chain, then resolves to a clear result: a green “Swap confirmed” with the amount you received and a Solscan link, a red on-chain failure with the reason (and a hint to widen slippage when that's the cause), or a “still confirming” notice with a link if the network is slow. Previously a swap could land successfully but the window sat on “Confirming…” indefinitely with no confirmation — because it was waiting on a live socket the swap proxy doesn't carry. It now polls the chain directly and gives you a definite answer in seconds. (`/three-token`) `[fix]`- **Your $THREE holder tier now shows across the site** — Holding $THREE is now visible everywhere you are. A holder chip in the top bar shows your live tier (◆ Bronze, Silver, Gold…) on every page and links to the full tier breakdown. On Forge, choosing the High quality tier now shows a clear, designed panel instead of a silent block: holders see an "Unlocked" badge and generate straight away, while everyone else gets a "Get $THREE" path, the exact reason (sign in, link a wallet, or hold more), and a one-tap switch back to free Draft or Standard — no dead ends and no raw errors. (`/forge`) `[feature, improvement]`diff --git a/data/changelog.json b/data/changelog.jsonindex d16f0a97e..522a73614 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,15 @@{"$comment": "Curated changelog entries for three.ws \u2014 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-18",+ "title": "Tipping a dancer goes straight to the wallet now",+ "summary": "Tapping Tip in the Pole Club used to open a three-step “Before you go on-chain” explainer first, and dismissing it cancelled the tip entirely — so first-time visitors couldn't pay without sitting through the wizard. That gate is gone. Tip now opens the wallet-and-amount checkout directly, where you pick Phantom or a browser wallet, see the exact USDC amount, and approve with one signature. The checkout already shows everything the explainer did, so there's no reason to stack a lecture in front of a fraction-of-a-cent tip.",+ "tags": [+ "improvement"+ ],+ "link": "/club"+ },{"date": "2026-06-18","title": "Token swaps now confirm success or failure clearly",diff --git a/public/changelog.json b/public/changelog.jsonindex c3c137c0a..0f7f748bb 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-18T02:23:59.485Z",+ "generated_at": "2026-06-18T02:58:11.699Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -116,6 +116,16 @@"improvement"]},+ {+ "date": "2026-06-18",+ "type": "update",+ "title": "Tipping a dancer goes straight to the wallet now",+ "summary": "Tapping Tip in the Pole Club used to open a three-step “Before you go on-chain” explainer first, and dismissing it cancelled the tip entirely — so first-time visitors couldn't pay without sitting through the wizard. That gate is gone. Tip now opens the wallet-and-amount checkout directly, where you pick Phantom or a browser wallet, see the exact USDC amount, and approve with one signature. The checkout already shows everything the explainer did, so there's no reason to stack a lecture in front of a fraction-of-a-cent tip.",+ "link": "/club",+ "tags": [+ "improvement"+ ]+ },{"date": "2026-06-18","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 75512840d..3b04ee96d 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -94,6 +94,14 @@<category>improvement</category><description>Tap “🙏 Pray” on the homepage hero and the avatar finishes the prayer and rises straight into a walk — one smooth motion instead of snapping back to a standing idle at the end of the clip. After the walk plays out, the avatar eases back into its gentle idle-and-stroll rhythm. The other one-tap emotes (wave, dance, jump, and the rest) also return to that ambient motion now instead of freezing on their last frame.</description></item>+ <item>+ <title>Tipping a dancer goes straight to the wallet now</title>+ <link>https://three.ws/club</link>+ <guid isPermaLink="false">2026-06-18:Tipping a dancer goes straight to the wallet now</guid>+ <pubDate>Thu, 18 Jun 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>Tapping Tip in the Pole Club used to open a three-step “Before you go on-chain” explainer first, and dismissing it cancelled the tip entirely — so first-time visitors couldn't pay without sitting through the wizard. That gate is gone. Tip now opens the wallet-and-amount checkout directly, where you pick Phantom or a browser wallet, see the exact USDC amount, and approve with one signature. The checkout already shows everything the explainer did, so there's no reason to stack a lecture in front of a fraction-of-a-cent tip.</description>+ </item><item><title>Token swaps now confirm success or failure clearly</title><link>https://three.ws/three-token</link>diff --git a/public/features.json b/public/features.jsonindex b698294ca..f3fccbb11 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-18T02:23:59.441Z",+ "generated_at": "2026-06-18T02:58:11.667Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/src/club.js b/src/club.jsindex 05bde2e6c..e87d40373 100644--- a/src/club.js+++ b/src/club.js@@ -1342,15 +1342,11 @@ async function tipDancer({ dancer, dance, button }) {return;}- // A tip is a real on-chain micro-payment. First-timers get the wallet/USDC- // explainer + guided setup before the payment modal; returning users pass- // straight through. Lazy-loaded so the club only pays for it on first tip.- try {- const { ensureOnchainPrimer } = await import('./shared/onchain-primer.js');- if (!(await ensureOnchainPrimer({ action: 'tip' }))) return;- } catch (err) {- log.warn('[club] onchain primer unavailable', err);- }+ // A tip is a real on-chain micro-payment, but X402.pay's checkout owns the+ // entire money flow — wallet connect (Phantom/EVM), USDC, and the amount the+ // user confirms before signing. A $0.001 tip should never sit behind a+ // three-step explainer that re-teaches what the checkout already shows, so+ // there's no pre-gate here: click Tip → the wallet/amount modal opens.// First click on a Tip button is the user gesture browsers require to// unlock AudioContext. Do this BEFORE opening the wallet modal so thediff --git a/src/communities.js b/src/communities.jsindex 5774822c0..4125fa62c 100644--- a/src/communities.js+++ b/src/communities.js@@ -450,7 +450,9 @@ async function loadCoinMarket(mint) {const data = await r.json();if (_coinProfileMint !== mint) return;- const usd = data?.price?.usdPrice;+ // Graduated coins carry no bonding-curve price object; their live DEX price+ // arrives under graduatedPrice instead. Prefer the curve price, fall back.+ const usd = data?.price?.usdPrice ?? data?.graduatedPrice?.priceUsd;const priceEl = $('cp-stat-price');if (priceEl && usd) priceEl.textContent = fmtPrice(usd) || priceEl.textContent;diff --git a/src/pump/agent-token-widget.js b/src/pump/agent-token-widget.jsindex 84fbedfdb..01d056e16 100644--- a/src/pump/agent-token-widget.js+++ b/src/pump/agent-token-widget.js@@ -275,9 +275,8 @@ export class AgentTokenWidget {this._curve = null;this._mobileStrip = null;this._poll = null;+ this._balPoll = null; // fast balances-only poll (near-realtime vaults)this._destroyed = false;- this._wsUnsubs = []; // realtime onAccountChange subscriptions- this._wsConn = null;injectStyles();}@@ -286,70 +285,31 @@ export class AgentTokenWidget {this.mount.innerHTML = `<div class="atok"><div class="atok-empty">Loading $AGENT…</div></div>`;await this._refresh();if (this.token) {- // Polling is the fallback. Real-time vault subscription kicks in via- // _ensureRealtime() and shrinks the polling interval to a long beat- // (60s) used only for stats/feed/quote that lack account-subscriptions.+ // Two HTTP polls, both through the same-origin /api/solana-rpc proxy:+ // • a 60s full refresh (stats, quote, feed, reputation), and+ // • a 15s balances-only poll for near-realtime vault updates.+ // The vault refresh was previously an onAccountChange subscription, but+ // web3.js derives its websocket endpoint from the HTTP URL — yielding+ // wss://<origin>/api/solana-rpc, an HTTP-only serverless proxy that can+ // never upgrade. That connection never delivered an event and+ // storm-reconnected forever in the background. Polling the proxy is+ // reliable, rate-limit friendly, and silent.this._poll = setInterval(() => this._refresh().catch(() => {}), 60_000);- this._ensureRealtime().catch(() => {});+ this._balPoll = setInterval(() => {+ if (typeof document !== 'undefined' && document.hidden) return;+ this._refreshBalancesOnly().catch(() => {});+ }, 15_000);}}destroy() {this._destroyed = true;if (this._poll) clearInterval(this._poll);- this._teardownRealtime();+ if (this._balPoll) clearInterval(this._balPoll);if (this._curve) { this._curve.destroy(); this._curve = null; }if (this._mobileStrip?.parentNode) this._mobileStrip.parentNode.removeChild(this._mobileStrip);}- async _ensureRealtime() {- if (!this.token || !this.balances) return;- if (this._wsUnsubs.length) return; // already subscribed- try {- const [{ Connection, PublicKey }] = await Promise.all([import('@solana/web3.js')]);- // Route through our same-origin proxy. Public mainnet RPC 403s most- // browser origins. NOTE: WS subscriptions still go direct to the- // derived ws:// URL; proxying WS is a separate concern.- const rpcOrigin = window.location?.origin || 'https://three.ws';- const url =- this.token.network === 'devnet'- ? `${rpcOrigin}/api/solana-rpc?net=devnet`- : `${rpcOrigin}/api/solana-rpc`;- const conn = new Connection(url, 'confirmed');- this._wsConn = conn;- const subscribe = (addr, name) => {- if (!addr) return;- try {- const id = conn.onAccountChange(- new PublicKey(addr),- () => this._refreshBalancesOnly().catch(() => {}),- 'confirmed',- );- this._wsUnsubs.push({ id, conn });- } catch {- /* ignore subscription failures, polling fallback covers it */- }- };- subscribe(this.balances.payment?.address, 'payment');- subscribe(this.balances.buyback?.address, 'buyback');- subscribe(this.balances.withdraw?.address, 'withdraw');- } catch {- /* RPC may not support websocket; polling continues */- }- }-- _teardownRealtime() {- for (const sub of this._wsUnsubs) {- try {- sub.conn.removeAccountChangeListener(sub.id);- } catch {- /* swallow */- }- }- this._wsUnsubs = [];- this._wsConn = null;- }-async _refreshBalancesOnly() {if (this._destroyed || !this.token) return;try {@@ -412,7 +372,6 @@ export class AgentTokenWidget {this.feed = feedRes.data || [];this.reputation = repRes || null;this._renderLive();- this._ensureRealtime().catch(() => {});} catch (e) {this._renderError(e.message);}