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: serve /.well-known discovery files; add self-hosted TRELLIS to forge reconstruct failover
fudjia163a4ed3b23c
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex f93a84fd7..84ba2568b 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -9,6 +9,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **/play: real water at the fishing ponds, and spare rods to find on the bank** — The two fishing ponds no longer look like a flat tinted disc — they're now an animated water surface with real ripples, a sun-tracked sparkle, and a deep-to-shallow gradient that reacts to the world's day/night lighting. New alongside it: three spare fishing rods, leaning on posts around the map (both pond banks and the plaza), that any player can walk up to and pick up into their backpack — on top of the rod everyone already starts with. This also brought the chop/mine/cook gathering stations (trees, rocks, roast pits) online for the first time — they existed in the code but were never actually rendered in the world until now. Caught fish still sell for cash at the General Store, same as before. (`/play`) `[feature]`- **Agents can now hunt money drops and complete IRL quests from code** — The @three-ws/irl SDK (v0.2.0) now covers the whole IRL surface, not just pins. New functions let any script or agent discover real-money drops near where it checks in, claim them with a proof-of-presence fix (a real on-chain release to its own wallet), place self- or agent-funded drops and bounties, and run the full World Lines quest loop — find nearby quests, take the challenge at the spot, and earn the agent-signed proof-of-presence collectible, plus verify anyone's proof independently. Fully typed, zero dependencies, verified against the live API. (`/irl`) `[sdk, feature]`- **Avatars render again on seven pages that were showing an empty viewer** — Avatars made on three.ws are saved in a compressed format to keep them small and quick to download. Seven pages — Cosmos, Minted, Creations, Vault, Pitch, the embodied-agent page, and the microphone lipsync demo — never set up the matching decompressor, so instead of a 3D model you got an empty viewer and an error in the console. All seven now load the decoder before the model, and the avatars appear as they should. The fix also went into the embeddable agent widget itself, so anyone who has pasted a three.ws agent onto their own site gets working compressed avatars automatically, with nothing to change on their end. (`/cosmos`) `[fix]`+- **Free 3D generation stays up when outside providers go down** — Free text-to-3D and image-to-3D now fall back to the platform's own GPU worker when every outside free provider is busy or out of quota — previously those moments returned a 'temporarily unavailable' error even though our own generator was healthy. Also fixed: the machine-readable discovery files under /.well-known (agent-card.json, ai-plugin.json, security.txt) were failing to load for agents and crawlers; they serve correctly again. `[fix, infra]`- **Homepage: agent thumbnails load, and the marketplace strip is alive again** — The avatar picker on the homepage was asking our image server for five pictures that had never been made, so the browser refused them and those slots sat blank. It now asks only for pictures that actually exist, and it leads with the avatars that have one — where an avatar has no picture yet, it draws a clean initial instead of a broken tile. Underneath it, the live marketplace strip had been silently empty: it was reading the agent list in the wrong shape and quietly gave up every time, leaving just a lone "Browse marketplace" link. It now reads the list correctly and shows ten real agents you can click straight through to. The 3D models themselves were always loading fine and are untouched. (`/`) `[fix]`- **IRL on phones: controls no longer cover each other** — The IRL screen was built up feature by feature until buttons buried the view on phones — the action pills stacked five rows deep over the walk joystick, the money-drops button floated on top of other controls, and small close buttons were easy to miss. The whole HUD is now built for thumbs: one swipeable action row hugs the bottom edge, the joystick zone floats above it so drags never hit a button, the drops button repositions itself and steps aside whenever a sheet is open, and every close button and tab meets the 44-pixel tap size. The avatar and camera view are finally unobstructed. (`/irl`) `[improvement, fix]`- **Live SOL price restored on /three-live; Flappin UFO demo retired** — Two quiet breakages, fixed. The live trade feed on /three-live now prices SOL-only trades correctly again — it was reading a price API directly from your browser, which the provider silently blocks, so those trades showed no dollar value; it now reads the same cached, multi-provider SOL/USD price the rest of the platform uses. Separately, the Flappin UFO arcade demo ran on an external deployment that has gone offline, leaving a blank screen and a leaderboard that never loaded. Rather than leave a broken page up, /play/ufo is now an honest retired notice that points you to the live experiences — the coin world, Sniper Arena, and Coin Clash. (`/three-live`) `[fix]`diff --git a/api/forge.js b/api/forge.jsindex 50d41df28..fad186a8e 100644--- a/api/forge.js+++ b/api/forge.js@@ -1762,9 +1762,47 @@ async function startJob(req, res) {const mode3d = isImageMode ? 'image→3D' : 'text→3D (via synthesized image)';- // Fallback #1 — self-hosted Hunyuan3D Cloud Run worker, when wired.+ // Fallback #1 — self-hosted TRELLIS Cloud Run worker (workers/model-trellis),+ // when wired and not cooled. FREE_FALLBACK_FOR_PATH prefers it first among+ // the free image lanes, so this paid-lane failover walks the same order:+ // our own GPU (zero vendor cost) before any external free allocation. It+ // reconstructs single-hop from the referenceImageUrl we already hold.+ if (backendIsConfigured('trellis_selfhost')) {+ let selfHostUsable = true;+ try {+ const snap = await laneHealthSnapshot(['trellis_selfhost']);+ selfHostUsable = snap.byId.trellis_selfhost?.status !== 'down';+ } catch {+ // No telemetry → try the lane anyway; the submit catch below cools it.+ }+ if (selfHostUsable) {+ console.warn(+ `[forge] platform TRELLIS lane unavailable (${submitErr?.providerStatus || submitErr?.code}); degrading ${mode3d} to self-hosted TRELLIS`,+ );+ try {+ const gcp = createGcpProvider();+ job = await gcp.submit({+ mode: 'trellis',+ sourceUrl: referenceImageUrl,+ params: { images: views, seed: opts.seed ?? undefined },+ });+ backendId = 'trellis_selfhost';+ provider = gcp;+ } catch (selfErr) {+ // A config/input fault surfaces as-is; an upstream blip cools the+ // lane and falls through to the remaining reconstruct fallbacks.+ if (!isUpstreamUnavailable(selfErr)) throw selfErr;+ await markLaneUnhealthy('trellis_selfhost');+ console.warn(+ `[forge] self-host TRELLIS fallback unavailable (${selfErr?.providerStatus || selfErr?.code}); trying the next image lane`,+ );+ }+ }+ }++ // Fallback #2 — self-hosted Hunyuan3D Cloud Run worker, when wired.const hunyuanUrl = process.env.GCP_HUNYUAN3D_URL;- if (hunyuanUrl && process.env.GCP_RECONSTRUCTION_KEY) {+ if (!job && hunyuanUrl && process.env.GCP_RECONSTRUCTION_KEY) {console.warn(`[forge] platform TRELLIS lane unavailable (${submitErr?.providerStatus || submitErr?.code}); degrading ${mode3d} to self-hosted Hunyuan3D`,);@@ -1780,8 +1818,8 @@ async function startJob(req, res) {sourceUrl: referenceImageUrl,params: reconstructParams,});- } else {- // Fallback #2 — free Hugging Face Spaces image→3D (gated on HF_TOKEN).+ } else if (!job) {+ // Fallback #3 — free Hugging Face Spaces image→3D (gated on HF_TOKEN).// It blocks and writes its own status:'done' response; if it does, the// request is complete. Otherwise fall through to surface the real error.// For text mode, views=[referenceImageUrl] (the FLUX-synthesized image).@@ -1826,7 +1864,7 @@ async function startJob(req, res) {// token tag so polling re-resolves the caller's key (not the platform one).// Either way the upstream id is what the store keys on.const jobHandle =- backendId === 'hunyuan3d'+ backendId === 'hunyuan3d' || backendId === 'trellis_selfhost'? encodeJobToken({ provider: 'gcp', kind: null, taskId: job.extJobId }): backendId === 'replicate_byok'? encodeJobToken({ provider: 'replicate_byok', kind: null, taskId: job.extJobId })diff --git a/data/changelog.json b/data/changelog.jsonindex dbaf2d4b9..74e4e3926 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -12591,6 +12591,15 @@"fix"],"link": "/irl"+ },+ {+ "date": "2026-07-09",+ "title": "Free 3D generation stays up when outside providers go down",+ "summary": "Free text-to-3D and image-to-3D now fall back to the platform's own GPU worker when every outside free provider is busy or out of quota — previously those moments returned a 'temporarily unavailable' error even though our own generator was healthy. Also fixed: the machine-readable discovery files under /.well-known (agent-card.json, ai-plugin.json, security.txt) were failing to load for agents and crawlers; they serve correctly again.",+ "tags": [+ "fix",+ "infra"+ ]}]}diff --git a/public/changelog.json b/public/changelog.jsonindex 875dceabf..1becf7605 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-09T21:53:06.654Z",+ "generated_at": "2026-07-09T21:57:24.244Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -37,6 +37,17 @@"fix"]},+ {+ "date": "2026-07-09",+ "type": "update",+ "title": "Free 3D generation stays up when outside providers go down",+ "summary": "Free text-to-3D and image-to-3D now fall back to the platform's own GPU worker when every outside free provider is busy or out of quota — previously those moments returned a 'temporarily unavailable' error even though our own generator was healthy. Also fixed: the machine-readable discovery files under /.well-known (agent-card.json, ai-plugin.json, security.txt) were failing to load for agents and crawlers; they serve correctly again.",+ "link": null,+ "tags": [+ "fix",+ "infra"+ ]+ },{"date": "2026-07-09","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 3f9a0e6b0..d3302ae72 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -30,6 +30,14 @@<category>fix</category><description>Avatars made on three.ws are saved in a compressed format to keep them small and quick to download. Seven pages — Cosmos, Minted, Creations, Vault, Pitch, the embodied-agent page, and the microphone lipsync demo — never set up the matching decompressor, so instead of a 3D model you got an empty viewer and an error in the console. All seven now load the decoder before the model, and the avatars appear as they should. The fix also went into the embeddable agent widget itself, so anyone who has pasted a three.ws agent onto their own site gets working compressed avatars automatically, with nothing to change on their end.</description></item>+ <item>+ <title>Free 3D generation stays up when outside providers go down</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-07-09:Free 3D generation stays up when outside providers go down</guid>+ <pubDate>Thu, 09 Jul 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>Free text-to-3D and image-to-3D now fall back to the platform's own GPU worker when every outside free provider is busy or out of quota — previously those moments returned a 'temporarily unavailable' error even though our own generator was healthy. Also fixed: the machine-readable discovery files under /.well-known (agent-card.json, ai-plugin.json, security.txt) were failing to load for agents and crawlers; they serve correctly again.</description>+ </item><item><title>Homepage: agent thumbnails load, and the marketplace strip is alive again</title><link>https://three.ws/</link>diff --git a/public/features.json b/public/features.jsonindex 6ad14e389..b62fb6999 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-09T21:53:06.639Z",+ "generated_at": "2026-07-09T21:57:24.229Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/server/index.mjs b/server/index.mjsindex 49efde5b7..ca70e486b 100644--- a/server/index.mjs+++ b/server/index.mjs@@ -322,8 +322,14 @@ function resolveStatic(pathname) {function serveFile(req, res, file, headers, status) {res.set(headers);if (status) res.status(status);+ // RFC 8615 discovery files (agent-card.json, ai-plugin.json, security.txt)+ // live under the `.well-known` dot-directory, which Express's dotfiles guard+ // would reject as Forbidden — allow exactly that directory and keep every+ // other dot-segment denied. resolveStatic() already confined `file` to+ // DIST_ROOT, so this loosens nothing else.+ const dotfiles = file.includes(`${path.sep}.well-known${path.sep}`) ? 'allow' : 'deny';return new Promise((resolvePromise) => {- res.sendFile(file, { dotfiles: 'deny' }, (err) => {+ res.sendFile(file, { dotfiles }, (err) => {if (err && !res.headersSent) {console.error(`[static] ${req.method} ${req.url} → ${file} failed:`, err.message);res.status(500).end();