Skip to content

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.

fix(gallery,marketplace): fall back broken thumbnails instead of showing the browser's default icon

nirholas2bd8a23d0fc7
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8dce9b520..4896f9daf 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
## 2026-10-25
+- **Gallery and marketplace thumbnails degrade gracefully instead of showing a broken-image icon**: Six image spots on /gallery and /marketplace (the avatar grid thumbnail, the equip-avatar picker row, the live-sale ticker avatar, the animation marketplace listing card, the animation buy-modal preview, and a tool-detail icon) rendered a plain <img> with no fallback, so a 502 or missing thumbnail left the browser's default broken-image glyph on two of the highest-traffic pages in the product. All six now carry the same data-fallback attribute the site already uses elsewhere: card-style thumbnails swap to the existing placeholder box, small avatar icons just disappear instead. A seventh untagged image turned up in the gallery's forge-card renderer while verifying the other six and got the same fix. (`/gallery`) `[fix]`
- **GET /api/pump-bounties and its stats/detail routes serve last-known-good data instead of a 502**: pump.fun's Cloudflare anti-bot challenge has been rejecting livestream-api.pump.fun's bounty API for hours at a time, which left the bounty list, the aggregate stats, and individual bounty detail pages 502ing for every visitor even though the board itself had not changed. All three routes now go through the same last-known-good cache tier already proven on /api/portal and /api/crypto/bonding: a fresh answer is mirrored into a 24-hour backup, and that backup answers (flagged with an x-pump-stale header) instead of a 502 once the live fetch fails. A true miss, with nothing cached at all, still returns the original pump.fun error unchanged. (`/bounties`) `[fix]`
- **Image-to-3D Forge instances recycle before a VRAM leak crashes a job**: The trellis lane's GPU worker already restarted itself between jobs once host memory ratcheted up, but had no equivalent check for GPU memory: a rasterizer dependency allocates outside torch's own memory pool, so an instance's usable VRAM only ever shrank, and the instance's own health check kept passing right up until a job crashed or Cloud Run killed it mid-generation. The worker now also tracks GPU memory after every job and restarts cleanly between jobs once it has ratcheted far enough, the same way the existing memory guard already does, so Forge image-to-3D jobs on this lane fail or stall less often. (`/image-to-3d`) `[fix]`
diff --git a/data/changelog.json b/data/changelog.json
index 40d7a1eb8..26a1b237a 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,15 @@
{
"$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, desktop (desktop entries become the desktop app's release notes). `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-10-25",
+ "title": "Gallery and marketplace thumbnails degrade gracefully instead of showing a broken-image icon",
+ "summary": "Six image spots on /gallery and /marketplace (the avatar grid thumbnail, the equip-avatar picker row, the live-sale ticker avatar, the animation marketplace listing card, the animation buy-modal preview, and a tool-detail icon) rendered a plain <img> with no fallback, so a 502 or missing thumbnail left the browser's default broken-image glyph on two of the highest-traffic pages in the product. All six now carry the same data-fallback attribute the site already uses elsewhere: card-style thumbnails swap to the existing placeholder box, small avatar icons just disappear instead. A seventh untagged image turned up in the gallery's forge-card renderer while verifying the other six and got the same fix.",
+ "tags": [
+ "fix"
+ ],
+ "link": "/gallery"
+ },
{
"date": "2026-10-25",
"title": "GET /api/pump-bounties and its stats/detail routes serve last-known-good data instead of a 502",
diff --git a/public/changelog-recent.json b/public/changelog-recent.json
index a63dad2e5..c07a7f6b9 100644
--- a/public/changelog-recent.json
+++ b/public/changelog-recent.json
@@ -1,14 +1,24 @@
{
- "generated_at": "2026-10-25T01:58:36.704Z",
+ "generated_at": "2026-10-25T02:17:38.557Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
"url": "https://three.ws"
},
- "total": 4194,
+ "total": 4195,
"complete": false,
"full_feed": "/changelog.json",
"entries": [
+ {
+ "date": "2026-10-25",
+ "type": "update",
+ "title": "Gallery and marketplace thumbnails degrade gracefully instead of showing a broken-image icon",
+ "summary": "Six image spots on /gallery and /marketplace (the avatar grid thumbnail, the equip-avatar picker row, the live-sale ticker avatar, the animation marketplace listing card, the animation buy-modal preview, and a tool-detail icon) rendered a plain <img> with no fallback, so a 502 or missing thumbnail left the browser's default broken-image glyph on two of the highest-traffic pages in the product. All six now carry the same data-fallback attribute the site already uses elsewhere: card-style thumbnails swap to the existing placeholder box, small avatar icons just disappear instead. A seventh untagged image turned up in the gallery's forge-card renderer while verifying the other six and got the same fix.",
+ "link": "/gallery",
+ "tags": [
+ "fix"
+ ]
+ },
{
"date": "2026-10-25",
"type": "update",
@@ -1550,17 +1560,6 @@
"tags": [
"improvement"
]
- },
- {
- "date": "2026-10-12",
- "type": "update",
- "title": "An in-depth X Article on how three.ws renders 3D, and a playbook for answering basic questions at length",
- "summary": "A reader asked how three.ws renders 3D. The answer is now a full draft Article: one rigged character followed through making, packing, loading, lighting and animating, with runnable embed code, decoder and boot-phase tables, the free Rig Doctor, validator and viewer tools, every partner by exact designation, and the roadmap. Every claim is tied to evidence in the repo. A new playbook describes how to turn any basic question into a long reply thread plus an Article.",
- "link": "/viewer",
- "tags": [
- "feature",
- "docs"
- ]
}
]
}
diff --git a/public/changelog.json b/public/changelog.json
index 53426ee81..4d25f28f1 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,11 +1,21 @@
{
- "generated_at": "2026-10-25T01:58:36.680Z",
+ "generated_at": "2026-10-25T02:17:38.533Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
"url": "https://three.ws"
},
"entries": [
+ {
+ "date": "2026-10-25",
+ "type": "update",
+ "title": "Gallery and marketplace thumbnails degrade gracefully instead of showing a broken-image icon",
+ "summary": "Six image spots on /gallery and /marketplace (the avatar grid thumbnail, the equip-avatar picker row, the live-sale ticker avatar, the animation marketplace listing card, the animation buy-modal preview, and a tool-detail icon) rendered a plain <img> with no fallback, so a 502 or missing thumbnail left the browser's default broken-image glyph on two of the highest-traffic pages in the product. All six now carry the same data-fallback attribute the site already uses elsewhere: card-style thumbnails swap to the existing placeholder box, small avatar icons just disappear instead. A seventh untagged image turned up in the gallery's forge-card renderer while verifying the other six and got the same fix.",
+ "link": "/gallery",
+ "tags": [
+ "fix"
+ ]
+ },
{
"date": "2026-10-25",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 65872a765..828ae1d33 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -6,6 +6,14 @@
<atom:link href="https://three.ws/changelog.xml" rel="self" type="application/rss+xml"/>
<description>What's new on three.ws: features, improvements, and releases, newest first.</description>
<language>en</language>
+ <item>
+ <title>Gallery and marketplace thumbnails degrade gracefully instead of showing a broken-image icon</title>
+ <link>https://three.ws/gallery</link>
+ <guid isPermaLink="false">2026-10-25:Gallery and marketplace thumbnails degrade gracefully instead of showing a broken-image icon</guid>
+ <pubDate>Sun, 25 Oct 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>Six image spots on /gallery and /marketplace (the avatar grid thumbnail, the equip-avatar picker row, the live-sale ticker avatar, the animation marketplace listing card, the animation buy-modal preview, and a tool-detail icon) rendered a plain &lt;img&gt; with no fallback, so a 502 or missing thumbnail left the browser's default broken-image glyph on two of the highest-traffic pages in the product. All six now carry the same data-fallback attribute the site already uses elsewhere: card-style thumbnails swap to the existing placeholder box, small avatar icons just disappear instead. A seventh untagged image turned up in the gallery's forge-card renderer while verifying the other six and got the same fix.</description>
+ </item>
<item>
<title>GET /api/pump-bounties and its stats/detail routes serve last-known-good data instead of a 502</title>
<link>https://three.ws/bounties</link>
diff --git a/public/features.json b/public/features.json
index 41b18ad60..7edef765f 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-10-25T01:58:36.663Z",
+ "generated_at": "2026-10-25T02:17:38.516Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/public/gallery/gallery.js b/public/gallery/gallery.js
index fde6c4cf3..eb4d06b97 100644
--- a/public/gallery/gallery.js
+++ b/public/gallery/gallery.js
@@ -505,7 +505,7 @@ function renderCard(a) {
exposure="1"
poster="${escapeAttr(thumbSrc)}"
></model-viewer>`
- : `<img src="${escapeAttr(thumbSrc)}" alt="${escapeAttr(altText)}" loading="lazy" decoding="async" />`;
+ : `<img src="${escapeAttr(thumbSrc)}" alt="${escapeAttr(altText)}" loading="lazy" decoding="async" data-fallback="element" data-fallback-class="card-img-fallback" />`;
const tagChips = (a.tags || [])
.slice(0, 3)
@@ -656,7 +656,7 @@ async function openEquipModal({ accessoryId, glbUrl, name, thumb }) {
row.href = editUrl;
row.className = 'equip-avatar-row';
row.innerHTML = `
- <img class="equip-avatar-thumb" src="${escapeAttr(thumbSrc)}" alt="" loading="lazy" decoding="async" />
+ <img class="equip-avatar-thumb" src="${escapeAttr(thumbSrc)}" alt="" loading="lazy" decoding="async" data-fallback="hide" />
<span class="equip-avatar-name">${escapeHtml(av.name || 'Untitled')}</span>
<span class="equip-avatar-cta">Equip →</span>
`;
@@ -860,6 +860,8 @@ function renderForgeCard(c) {
img.alt = '';
img.loading = 'lazy';
img.decoding = 'async';
+ img.dataset.fallback = 'element';
+ img.dataset.fallbackClass = 'card-img-fallback';
thumb.appendChild(img);
} else {
// Gradient placeholder — deterministic color, centered cube icon
diff --git a/src/marketplace.js b/src/marketplace.js
index 73b1e0205..b04fdb276 100644
--- a/src/marketplace.js
+++ b/src/marketplace.js
@@ -986,7 +986,7 @@ function pulseItemHTML(sale) {
const amount = pulseAmountLabel(sale.amountAtomic, sale.currencyMint);
const when = liveTime(sale.confirmedAt);
const avatar = sale.agentImage
- ? `<img class="market-pulse-av" src="${escapeHtml(sale.agentImage)}" alt="" loading="lazy" decoding="async" />`
+ ? `<img class="market-pulse-av" src="${escapeHtml(sale.agentImage)}" alt="" loading="lazy" decoding="async" data-fallback="hide" />`
: `<span class="market-pulse-av" aria-hidden="true">${escapeHtml(initial(sale.agentName))}</span>`;
const verb = sale.trial ? 'started a trial of' : 'unlocked';
const amtClass = sale.trial ? 'market-pulse-amt is-trial' : 'market-pulse-amt';
@@ -3810,7 +3810,7 @@ function renderCreatorListings() {
const dur = it.duration ? `${it.duration.toFixed(it.duration % 1 ? 1 : 0)}s` : '';
const typeLabel = it.loop !== false ? 'Loop' : 'Action';
const thumb = it.thumbnail_url
- ? `<img class="anim-listing-thumb" src="${escapeHtml(it.thumbnail_url)}" alt="" loading="lazy" />`
+ ? `<img class="anim-listing-thumb" src="${escapeHtml(it.thumbnail_url)}" alt="" loading="lazy" data-fallback="element" data-fallback-class="card-img-fallback" />`
: `<div class="anim-listing-thumb anim-listing-thumb-empty">🎬</div>`;
return `<article class="anim-listing-card" data-listing-id="${escapeHtml(it.id)}" tabindex="0" role="button" aria-label="${escapeHtml(it.name)} — ${priceLabel}">
<div class="anim-listing-media">
@@ -3964,7 +3964,7 @@ async function openAnimationPurchase(id) {
<button class="anim-buy-close" type="button" aria-label="Close">✕</button>
<div class="anim-buy-media">
${item.thumbnail_url
- ? `<img loading="lazy" decoding="async" src="${escapeHtml(item.thumbnail_url)}" alt="" />`
+ ? `<img loading="lazy" decoding="async" src="${escapeHtml(item.thumbnail_url)}" alt="" data-fallback="element" data-fallback-class="card-img-fallback" />`
: `<div class="anim-buy-media-empty">🎬</div>`}
<span class="anim-listing-price ${item.free ? 'free' : 'paid'}">${escapeHtml(priceLabel)}</span>
</div>
@@ -8701,7 +8701,7 @@ function renderToolDetail(p) {
if (iconEl) {
const isUrl = avatarUrl && /^(https?:\/\/|\/)/.test(avatarUrl);
if (isUrl) {
- iconEl.innerHTML = `<img src="${escapeHtml(avatarUrl)}" alt="" loading="lazy" />`;
+ iconEl.innerHTML = `<img src="${escapeHtml(avatarUrl)}" alt="" loading="lazy" data-fallback="hide" />`;
} else {
iconEl.textContent = avatarUrl || (title || '?')[0].toUpperCase();
}