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
fix(community): proxy coin-world art so the browser stops refusing every gateway image
nirholas1542915f941d
diff --git a/data/changelog.json b/data/changelog.jsonindex 98da01b4c..6ce479ff5 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -26877,6 +26877,14 @@"tags": ["fix"]+ },+ {+ "date": "2026-09-07",+ "title": "World tiles show their artwork again",+ "summary": "The picker that lets you choose a community world was loading each world's artwork straight from a public storage gateway, and browsers now refuse to draw images served that way. Nine tiles on the page failed silently every visit. The artwork is now fetched through our own image service, so tiles paint their real picture, and a world whose artwork has gone missing falls back to its lettered tile instead of an empty square.",+ "tags": [+ "fix"+ ]}]}diff --git a/src/community/coin-lobby.js b/src/community/coin-lobby.jsindex d9b355bf6..10fab096e 100644--- a/src/community/coin-lobby.js+++ b/src/community/coin-lobby.js@@ -7,6 +7,7 @@// enter. Designed loading / empty / error states.import { fetchWorlds } from './town-client.js';+import { proxiedImageURL } from '../ipfs.js';let _stylesInjected = false;@@ -140,9 +141,16 @@ export class CoinLobby {card.type = 'button';card.setAttribute('aria-label', `Enter ${w.symbol ? '$' + w.symbol : 'world'}`);const img = el('div', 'cw__img');- if (w.image) {+ // Coin art is pinned on decentralised storage, and the public gateways+ // answer with `cross-origin-resource-policy: same-origin`, so painting+ // the gateway URL straight into an <img> is refused by the browser+ // before onerror can run. /api/img reads it server-side and answers+ // with open CORS; `fallback: 'none'` makes a dead pin a 204, which+ // still fires onerror so the card lands on its own initials tile.+ const art = w.image ? proxiedImageURL(w.image, '', { fallback: 'none' }) : '';+ if (art) {const i = el('img');- i.src = w.image;+ i.src = art;i.alt = '';i.loading = 'lazy';i.onerror = () => {diff --git a/src/community/town.js b/src/community/town.jsindex 3b3a5ff01..069580f3e 100644--- a/src/community/town.js+++ b/src/community/town.js@@ -13,6 +13,7 @@import { fetchCapabilities, fetchMessages, connectRealtime } from './town-client.js';import { getSession, signInWithX, ensureSolanaWallet, postAsUser, logout } from './town-auth.js';import { log } from '../shared/log.js';+import { proxiedImageURL } from '../ipfs.js';const MAX_BUBBLES = 4;const BUBBLE_TTL_MS = 7000;@@ -88,9 +89,12 @@ export class Town {// Header — coin identity, live status, counts, collapse toggle.const header = el('header', 'town__header');const badge = el('div', 'town__badge');- if (this.meta.image) {+ // Same gateway CORP rule as the lobby: proxy the pinned art so the+ // browser is allowed to paint it (see coin-lobby.js).+ const headerArt = this.meta.image ? proxiedImageURL(this.meta.image, '', { fallback: 'none' }) : '';+ if (headerArt) {const img = el('img', 'town__coin-img');- img.src = this.meta.image;+ img.src = headerArt;img.alt = '';img.loading = 'lazy';img.onerror = () => img.remove();@@ -484,9 +488,10 @@ export class Town {const sym = this.root.querySelector('.town__symbol');if (sym && this.meta.symbol) sym.textContent = `$${this.meta.symbol}`;const ph = this.root.querySelector('.town__coin-img--ph');- if (ph && this.meta.image) {+ const badgeArt = this.meta.image ? proxiedImageURL(this.meta.image, '', { fallback: 'none' }) : '';+ if (ph && badgeArt) {const img = el('img', 'town__coin-img');- img.src = this.meta.image;+ img.src = badgeArt;img.alt = '';img.loading = 'lazy';img.onerror = () => img.remove();