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(deploy-onchain): proxy registry thumbnails so dead third-party art stops failing in the browser
nirholas62e4d19ba65c
diff --git a/src/deploy-onchain.js b/src/deploy-onchain.jsindex 8c11041b7..ce5c1b2b6 100644--- a/src/deploy-onchain.js+++ b/src/deploy-onchain.js@@ -28,6 +28,7 @@ import {chainRegistration,jsonDataUri,} from '@three-ws/metaplex-agent-mcp/lib/registration';+import { proxiedImageURL } from './ipfs.js';const $ = (id) => document.getElementById(id);@@ -625,17 +626,23 @@ async function loadLatest() {strip.innerHTML = '<p class="do-latest-empty">Quiet on-chain right now. Yours could be next.</p>';return;}+ // Registry thumbnails live on arbitrary third-party hosts that 404, drop+ // CORS or trip the browser's Opaque Response Blocking. The same-origin+ // proxy resizes them to the tile and answers a dead host with a seeded+ // placeholder, the way /deployments renders this same feed.strip.innerHTML = items- .map(- (d) =>+ .map((d) => {+ const thumb = d.image ? proxiedImageURL(String(d.image), `${d.chain_id}:${d.agent_id}`, { width: 192 }) : '';+ return (`<a class="do-agent-tile" href="https://www.metaplex.com/agents/${escapeHtml(d.agent_id)}" target="_blank" rel="noopener">` +- (d.image- ? `<img class="do-agent-thumb" src="${escapeHtml(d.image)}" alt="" loading="lazy" />`+ (thumb+ ? `<img class="do-agent-thumb" src="${escapeHtml(thumb)}" alt="" loading="lazy" decoding="async" />`: '<span class="do-agent-thumb" aria-hidden="true"></span>') +`<span class="do-agent-name">${escapeHtml(d.name || short(d.agent_id))}</span>` +`<span class="do-agent-sub">${d.has_3d ? '3D · ' : ''}${d.x402_support ? 'x402 · ' : ''}${new Date(d.registered_at).toLocaleDateString()}</span>` +- '</a>',- )+ '</a>'+ );+ }).join('');// A dead remote thumbnail leaves the tile's layout intact instead of a// broken-image glyph. Bound here rather than as an inline onerror: the