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
Coincommunities UI, play joy script, and changelog updates
nirholas57109a84eb15
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex d576bdaad..5f7a15329 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -11,6 +11,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Forge checkout no longer dead-ends when generation is briefly busy** — When the 3D generator was momentarily rate-limited mid-checkout, Forge could show a raw technical error and look like the payment had failed for good. Now a brief upstream slowdown shows a clear message — your payment was not taken, and the generation retries in a few seconds — and the checkout auto-retries on its own before ever asking you to try again. Your payment only settles once the model is actually produced, so a busy moment never costs you anything. (`/forge`) `[fix]`- **Holding $THREE now unlocks a premium feature** — $THREE gets its first hard utility: High-quality 3D generation on Forge — the 200k-polygon, PBR-textured tier — is now reserved for $THREE holders. Reach the Bronze holder tier (the entry tier) by holding $THREE and the High tier unlocks automatically, with no payment step. Draft and Standard generation stay free forever, and bring-your-own-key generation is unaffected. Sign in, link your Solana wallet, and the economy page shows your live holder tier and exactly what it unlocks. (`/three`) `[feature]`- **Pay $THREE per High generation — no holding required** — Don't hold $THREE yet but want a High-quality model? You can now pay in $THREE for a single High generation instead. Pick High in Forge, choose "Pay" on the holder panel, and a clean payment flow prices it in $THREE, takes one wallet approval, verifies it on-chain, and runs your generation automatically. The platform now genuinely accepts $THREE for compute. One payment buys exactly one High generation, and if a generation fails before it runs your payment stays usable — you're never charged for a model you didn't get. Draft and Standard remain free, and holders still generate High straight away. (`/forge`) `[feature]`+- **Play loads reliably in private windows and embeds, and explains itself if 3D can't start** — Two ways Play could fail silently are fixed. First: if your browser couldn't start 3D graphics — hardware acceleration switched off, an older device, or some in-app browsers — Play used to sit on the loading screen forever with no explanation. It now shows a clear recovery card that tells you what happened and how to fix it, with a one-tap “Try again”. Second: opening Play in a private/incognito window, or where it's embedded inside another page, could stop it loading at all because the browser blocks saved settings there. Play now treats blocked storage gracefully — it falls back to a default name and avatar and loads normally instead of breaking. `[fix]`- **The 3D agent on the homepage moves again instead of standing frozen** — The live avatar in the homepage hero had stopped animating — it loaded but stood in a stiff arms-out pose, and the Wave, Dance, and Pray buttons did nothing. The viewer only renders frames while something is moving to save your battery, and a recent change meant that starting an animation no longer woke the renderer back up once it had gone idle, so the avatar was stuck on its first frame. The renderer is now nudged awake the instant any animation starts, so the homepage agent idles, walks, and responds to the move buttons as intended. `[fix]`- **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]`diff --git a/data/changelog.json b/data/changelog.jsonindex 8b198eb95..7b1c33a92 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,14 @@{"$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": "Play loads reliably in private windows and embeds, and explains itself if 3D can't start",+ "summary": "Two ways Play could fail silently are fixed. First: if your browser couldn't start 3D graphics — hardware acceleration switched off, an older device, or some in-app browsers — Play used to sit on the loading screen forever with no explanation. It now shows a clear recovery card that tells you what happened and how to fix it, with a one-tap “Try again”. Second: opening Play in a private/incognito window, or where it's embedded inside another page, could stop it loading at all because the browser blocks saved settings there. Play now treats blocked storage gracefully — it falls back to a default name and avatar and loads normally instead of breaking.",+ "tags": [+ "fix"+ ]+ },{"date": "2026-06-18","title": "Coin community worlds no longer get stuck on “Connecting…”",diff --git a/public/changelog.json b/public/changelog.jsonindex a6e480092..6dd0487df 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-18T01:57:16.378Z",+ "generated_at": "2026-06-18T02:07:16.130Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -56,6 +56,16 @@"feature"]},+ {+ "date": "2026-06-18",+ "type": "update",+ "title": "Play loads reliably in private windows and embeds, and explains itself if 3D can't start",+ "summary": "Two ways Play could fail silently are fixed. First: if your browser couldn't start 3D graphics — hardware acceleration switched off, an older device, or some in-app browsers — Play used to sit on the loading screen forever with no explanation. It now shows a clear recovery card that tells you what happened and how to fix it, with a one-tap “Try again”. Second: opening Play in a private/incognito window, or where it's embedded inside another page, could stop it loading at all because the browser blocks saved settings there. Play now treats blocked storage gracefully — it falls back to a default name and avatar and loads normally instead of breaking.",+ "link": null,+ "tags": [+ "fix"+ ]+ },{"date": "2026-06-18","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex a9c2435e7..413d96be7 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -46,6 +46,14 @@<category>feature</category><description>Don't hold $THREE yet but want a High-quality model? You can now pay in $THREE for a single High generation instead. Pick High in Forge, choose "Pay" on the holder panel, and a clean payment flow prices it in $THREE, takes one wallet approval, verifies it on-chain, and runs your generation automatically. The platform now genuinely accepts $THREE for compute. One payment buys exactly one High generation, and if a generation fails before it runs your payment stays usable — you're never charged for a model you didn't get. Draft and Standard remain free, and holders still generate High straight away.</description></item>+ <item>+ <title>Play loads reliably in private windows and embeds, and explains itself if 3D can't start</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-18:Play loads reliably in private windows and embeds, and explains itself if 3D can't start</guid>+ <pubDate>Thu, 18 Jun 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>Two ways Play could fail silently are fixed. First: if your browser couldn't start 3D graphics — hardware acceleration switched off, an older device, or some in-app browsers — Play used to sit on the loading screen forever with no explanation. It now shows a clear recovery card that tells you what happened and how to fix it, with a one-tap “Try again”. Second: opening Play in a private/incognito window, or where it's embedded inside another page, could stop it loading at all because the browser blocks saved settings there. Play now treats blocked storage gracefully — it falls back to a default name and avatar and loads normally instead of breaking.</description>+ </item><item><title>The 3D agent on the homepage moves again instead of standing frozen</title><link>https://three.ws/changelog</link>diff --git a/public/features.json b/public/features.jsonindex c568a7f06..6c42a3d4e 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-18T01:57:16.360Z",+ "generated_at": "2026-06-18T02:07:16.093Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/scripts/play-joy-confirm.mjs b/scripts/play-joy-confirm.mjsnew file mode 100644index 000000000..d6c4ec775--- /dev/null+++ b/scripts/play-joy-confirm.mjs@@ -0,0 +1,42 @@+import { chromium } from 'playwright';++const URL = process.env.PROBE_URL || 'http://localhost:3000/play';+const browser = await chromium.launch();++// Returning user: onboarding already dismissed (cc-onboarded-v1 set).+const ctx = await browser.newContext({ viewport: { width: 390, height: 780 }, hasTouch: true, isMobile: true });+await ctx.addInitScript(() => { try { localStorage.setItem('cc-onboarded-v1', '1'); } catch {} });+const page = await ctx.newPage();+await page.goto(URL, { waitUntil: 'domcontentloaded' });+await page.waitForSelector('.cc-card', { timeout: 15000 });+await page.tap('.cc-card');+await page.waitForFunction(() => window.__CC__?.phase === 'world', { timeout: 20000 }).catch(() => {});+await page.waitForTimeout(1200);++const onboardingPresent = await page.evaluate(() => !!document.getElementById('po-overlay'));++// Try to move with the joystick via touch drag.+const before = await page.evaluate(() => ({ ...window.__CC__.localPos }));+const box = await page.evaluate(() => {+ const z = document.getElementById('cc-joystick');+ const r = z.getBoundingClientRect();+ return { cx: r.left + r.width / 2, cy: r.top + r.height / 2 };+});+// Touchscreen drag up+await page.touchscreen.tap(box.cx, box.cy); // ensure touch supported+// Use raw pointer for hold-drag+await page.mouse.move(box.cx, box.cy);+await page.mouse.down();+await page.mouse.move(box.cx, box.cy - 55, { steps: 5 });+await page.waitForTimeout(500);+const joyVec = await page.evaluate(() => window.__CC__._joy);+const during = await page.evaluate(() => ({ ...window.__CC__.localPos }));+await page.mouse.up();++const moved = Math.abs(before.x - during.x) > 0.02 || Math.abs(before.z - during.z) > 0.02;+console.log('onboardingPresent:', onboardingPresent);+console.log('joyVec:', JSON.stringify(joyVec));+console.log('before:', JSON.stringify(before), 'during:', JSON.stringify(during));+console.log('MOVED:', moved);++await browser.close();diff --git a/src/game/coincommunities-ui.js b/src/game/coincommunities-ui.jsindex 5b92ab02c..e25944136 100644--- a/src/game/coincommunities-ui.js+++ b/src/game/coincommunities-ui.js@@ -17,6 +17,13 @@ import { COMPOSITE_PIECES } from './build-voxels.js';import { PROP_CATALOG, GALLERY_PROP_PREFIX, registerGalleryProp } from './world-objects.js';import { log } from '../shared/log.js';+// localStorage throws in private mode and in third-party iframe contexts where+// storage is blocked (the `?bg=transparent` embed). Guard every access so a+// blocked store degrades to defaults instead of throwing while the HUD builds —+// same contract as play-onboard.js / play-intro.js / play-handoff.js.+function lsGet(k) { try { return localStorage.getItem(k); } catch { return null; } }+function lsSet(k, v) { try { localStorage.setItem(k, v); } catch { /* storage disabled */ } }+// Degrees shown on the rotate button for each quarter-turn step (0–3).const ROT_DEG = ['0°', '90°', '180°', '270°'];@@ -132,7 +139,7 @@ export class CommunityUI {this.searching = false;this._searchSeq = 0; // guards against out-of-order async search responsesthis._searchTimer = null;- this.avatar = localStorage.getItem('cc-avatar') || DEFAULT_AVATAR;+ this.avatar = lsGet('cc-avatar') || DEFAULT_AVATAR;this._buildLobby();this._buildHud();this._buildStructures();@@ -149,7 +156,7 @@ export class CommunityUI {this.nameInput = el('input', {type: 'text', maxlength: '24', class: 'cc-name-input', id: 'cc-name-input',placeholder: 'Pick a name', 'aria-label': 'Your display name',- value: localStorage.getItem('cc-name') || '',+ value: lsGet('cc-name') || '',onchange: () => this._commitName(),onkeydown: (e) => { if (e.key === 'Enter') { this._commitName(); this.nameInput.blur(); } e.stopPropagation(); },});@@ -741,7 +748,7 @@ export class CommunityUI {_setAvatar(url, fromCustom) {this.avatar = url || DEFAULT_AVATAR;- localStorage.setItem('cc-avatar', this.avatar);+ lsSet('cc-avatar', this.avatar);for (const chip of this.presetRow.children) chip.classList.toggle('cc-on', chip._url === this.avatar);if (!fromCustom) this.customInput.value = (this.avatar === DEFAULT_AVATAR || !/^https?:|^\//.test(this.avatar)) ? '' : this.avatar;this.h.onAvatarChange?.(this.avatar);@@ -1219,7 +1226,7 @@ export class CommunityUI {this.chat = el('div', { id: 'cc-chat' }, [head, this.chatBody]);// Default: collapsed on touch (small screens), open on desktop — unless the// user has expressed a preference before.- const stored = localStorage.getItem('cc-chat-min');+ const stored = lsGet('cc-chat-min');this._unread = 0;this.toggleChat(stored != null ? stored === '1' : matchMedia('(pointer: coarse)').matches);const chat = this.chat;@@ -2132,7 +2139,7 @@ export class CommunityUI {/** Persist the typed display name and, if connected, broadcast it live. */_commitName() {const name = this.nameInput.value.trim().slice(0, 24);- if (name) localStorage.setItem('cc-name', name);+ if (name) lsSet('cc-name', name);this.h.onRename?.(name);}@@ -2185,7 +2192,7 @@ export class CommunityUI {this.chat.classList.toggle('cc-min', this._chatMin);this.chatChevron.textContent = this._chatMin ? '▴' : '▾';this.chat.setAttribute('aria-expanded', String(!this._chatMin));- localStorage.setItem('cc-chat-min', this._chatMin ? '1' : '0');+ lsSet('cc-chat-min', this._chatMin ? '1' : '0');if (!this._chatMin) {this._unread = 0;this.chatUnread.hidden = true;diff --git a/src/game/coincommunities.js b/src/game/coincommunities.jsindex 584058031..ce25086de 100644--- a/src/game/coincommunities.js+++ b/src/game/coincommunities.js@@ -59,6 +59,14 @@ import { PlaySystems } from './play-systems.js';import { PlayOnboard } from './play-onboard.js';import { log } from '../shared/log.js';+// localStorage throws in private mode and in third-party iframe contexts where+// storage is blocked — exactly the `?bg=transparent` embed case (e.g. the IBM+// x402 showcase). Guard every access so a blocked store degrades to defaults+// instead of throwing mid-boot. Same contract as the lsGet/lsSet helpers in+// play-onboard.js / play-intro.js / play-handoff.js.+function lsGet(k) { try { return localStorage.getItem(k); } catch { return null; } }+function lsSet(k, v) { try { localStorage.setItem(k, v); } catch { /* storage disabled */ } }+// Reaction bar (R04): the 6 emoji available to all players.const REACTIONS = [{ emoji: '🎉', label: 'Celebrate' },@@ -844,10 +852,10 @@ export class CoinCommunities {// they left it blank, and reflect that id back into the field so it's theirs.let name = this.ui.getName();if (!name) {- name = localStorage.getItem('cc-name') || ('guest-' + Math.random().toString(36).slice(2, 6));+ name = lsGet('cc-name') || ('guest-' + Math.random().toString(36).slice(2, 6));this.ui.setName(name);}- localStorage.setItem('cc-name', name);+ lsSet('cc-name', name);// Fresh voxel build layer for this coin. The server is authoritative: it// streams the persisted build in on join and every live edit after, so the// geometry is driven entirely by these block events (local clicks only send).@@ -1725,7 +1733,7 @@ export class CoinCommunities {// Live rename: persist and broadcast so peers' nameplates update instantly._rename(name) {const clean = (name || '').trim().slice(0, 24);- if (clean) localStorage.setItem('cc-name', clean);+ if (clean) lsSet('cc-name', clean);if (this.net && clean) this.net.rename(clean);}