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.

chore: sync changelog, forge, and page updates across surfaces

nirholas77ea25f2cb9e
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d5a90f11e..c58aed238 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,7 +12,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Forge adds four more 3D engines — bring your own Rodin, Stability, Tripo, or Replicate key** — Forge now speaks to more best-in-class 3D generators, so you can pick the engine that fits the job. Rodin (Hyper3D) joins for native text-to-geometry and image-to-3D with clean quad topology and a real polygon target; Stable Fast 3D turns a single photo into a textured model in seconds; and you can now run reconstructions on your own Replicate account. Tripo, which was already supported, finally has a key field in your account settings alongside Meshy. All of these are bring-your-own-key — add a key under Account, then Provider Keys, and the engine lights up. The free, no-setup lanes for prompts and sketches are unchanged, and if you choose the geometry path without a key, Forge now quietly falls back to the free engine instead of asking for one. (`/forge`) `[feature]`
- **pump.fun MCP server now listed in the official MCP registry** — Our free, read-only pump.fun and Solana tools are now discoverable in the official Model Context Protocol registry, so any MCP-compatible client (Claude, Cursor, and others) can find and connect to them by name. It's a remote server — no install, no API key for the free tools — covering token discovery, bonding-curve and holder analysis, creator intelligence, and Solana Name Service lookups. This brings the number of three.ws servers in the registry to six. (`/`) `[feature, sdk]`
- **Refine any Forge model to higher quality in one click — plus sharper multi-view guidance** — Three upgrades to the Forge (/forge). After a model generates, a new Refine button re-runs that exact prompt or photos one quality tier higher — Draft to Standard to High — so you can preview cheaply, then commit to the best version without retyping anything. When building from photos, a live counter now shows how many of the four reference views you've added and reminds you that more angles make a sharper mesh. And the action bar under each finished model now reflows cleanly on phones, with Refine and Make-another leading at full width. Sketch mode also makes its required description unmistakable. (`/forge`) `[improvement]`
-- **Reliability pass: steadier live feed, token art that never blanks, and fewer Forge timeouts** — We traced a batch of production errors to their roots and fixed them. The live activity ticker no longer hammers our rate store on every open tab — one shared reader now fans updates out to everyone on a server and quiets down while the feed is idle, which is what was silently exhausting our request quota and freezing the feed. Remote token artwork that stalls now always falls back to a placeholder instead of timing out and showing nothing. Text-to-3D generations that take a little longer to start no longer get cut off early. And a stray click-handling error on the homepage, search, and glossary is gone. `[fix, infra]`
+- **Reliability pass: steadier live feed, token art that never blanks, and a graceful 3D fallback** — We traced a batch of production errors to their roots and fixed them. The live activity ticker no longer hammers our rate store on every open tab — one shared reader now fans updates out to everyone on a server and quiets down while the feed is idle, which is what was silently exhausting our request quota and freezing the feed. When a remote token image stalls, you now get a clean, on-brand placeholder — a unique gradient gem per token — instead of a timeout or a broken-image tile. On devices that can't run 3D (some locked-down or headless browsers), the viewer now shows a clear 'preview unavailable' card with a reload option instead of a blank stage. Text-to-3D generations that take a little longer to start no longer get cut off early, and a stray click-handling error on the homepage, search, and glossary is gone. `[fix, infra]`
- **See any Forge model in AR — scan from your desktop, place it in your room** — Every finished model now has a View in AR button. On a phone it drops the model into your space through the camera; on a desktop it shows a QR code you scan with your phone to open the same model, one tap from AR — so you can walk around what you just made at real-world scale. The embed viewer gained a big one-tap AR launcher on phones too, so models embedded on other sites are placeable in AR as well. No app, no download — it runs in the browser. (`/forge`) `[feature]`
- **The full page directory is now one click away — and instantly filterable** — three.ws has grown past 200 pages, so the sitemap directory got a real upgrade. A new "All pages" link in the Discover menu takes you straight to it, and the page itself now has an instant filter — press / and type to narrow every page by name, path, or description, with live per-section counts. Filtered views are shareable links, so you can send someone exactly the slice of the platform you mean. The directory now finds you when you're lost, too: it's a quick action in the ⌘K search palette, a no-results search hands you off to it with your query carried over, the 404 page offers it pre-filtered to the closest matches for the address you tried, and /pages, /directory, /everything, and /all-pages all take you there. Eighteen pages that had never been registered in the index — What is three.ws?, the 3D Scanner, the Glossary, Support, the agent-economy demos, and all six IBM watsonx showcases under a new Integrations section — are now in the directory, the search palette, and the crawler sitemap. (`/sitemap`) `[improvement]`
- **Tutorials read better: one-tap copy on every code block, live progress, and a jump-to-the-tool button** — The tutorial reader (/tutorials) got a polish pass that applies to every guide. Code blocks now have a one-click Copy button, so you can lift a snippet without selecting it by hand. A slim progress rail across the top tracks how far you've read, and a back-to-top button appears once you scroll in. Each section heading has a hover link for sharing a deep link to that exact spot, and every tutorial now opens with a clear call-to-action button — the new text-to-3D guides drop you straight into the Forge. New this release: four beginner guides for turning a text prompt or photos into a downloadable 3D model, a copy-paste prompt cookbook, and an API walkthrough. (`/tutorials`) `[docs, improvement]`
diff --git a/api/img.js b/api/img.js
index 8efca2e03..cda7ae146 100644
--- a/api/img.js
+++ b/api/img.js
@@ -15,14 +15,17 @@
// per-redirect re-validation, byte cap, timeout) — see api/_lib/ssrf.js.
// 2. If the source is an IPFS URL that fails, retry across alternate public
// gateways so one slow gateway never blanks the art.
-// 3. On total failure, 302 to a deterministic dicebear placeholder (which
-// serves permissive CORS) so the loader ALWAYS receives a valid 200 image
-// and never logs an error.
+// 3. On total failure, serve a deterministic, on-brand SVG placeholder inline
+// (200, permissive CORS) so the loader ALWAYS receives a valid image and
+// never logs an error. The placeholder is generated here — same-origin, no
+// external dependency that could itself be down — and is unique per seed:
+// an abstract gradient "gem" that reads as token art rather than a generic
+// "broken image" tile.
//
// Responses are immutable and CDN-cached: a given upstream URL yields the same
// bytes forever, so we cache hard at the edge and the proxy is hit once per art.
-import { wrap, cors, method, error, redirect, rateLimited } from './_lib/http.js';
+import { wrap, cors, method, error, rateLimited } from './_lib/http.js';
import { limits, clientIp } from './_lib/rate-limit.js';
import { fetchModel } from './_lib/fetch-model.js';
@@ -61,9 +64,68 @@ function candidates(rawUrl) {
return [rawUrl.startsWith('ipfs://') ? IPFS_GATEWAYS[0] + rawUrl.slice(7) : rawUrl];
}
-function placeholder(seed) {
- const s = encodeURIComponent(seed || 'token');
- return `https://api.dicebear.com/7.x/shapes/png?seed=${s}`;
+// Deterministic, dependency-free placeholder art. The same seed always renders
+// the same image, so a given token's fallback is stable across loads and the
+// edge cache stays warm. Derives a two-tone palette + accent from a hash of the
+// seed and composes a soft gradient backdrop, a faceted "gem" glyph, and a
+// monogram — on-brand for three.ws and clearly intentional, not a 404 tile.
+function hashSeed(str) {
+ let h = 2166136261 >>> 0; // FNV-1a
+ for (let i = 0; i < str.length; i++) {
+ h ^= str.charCodeAt(i);
+ h = Math.imul(h, 16777619);
+ }
+ return h >>> 0;
+}
+
+function monogram(seed) {
+ const m = String(seed).match(/[A-Za-z0-9]/);
+ return (m ? m[0] : '◆').toUpperCase();
+}
+
+function placeholderSvg(seed) {
+ const s = String(seed || 'token');
+ const h = hashSeed(s);
+ const hue = h % 360; // primary hue
+ const hue2 = (hue + 38 + ((h >> 9) % 50)) % 360; // analogous accent
+ const rot = (h >> 3) % 360; // gem rotation for per-seed variety
+ const ch = monogram(s);
+ // Two deep, saturated stops keep contrast high enough for a white monogram.
+ const c1 = `hsl(${hue} 64% 16%)`;
+ const c2 = `hsl(${hue2} 58% 9%)`;
+ const glow = `hsl(${hue} 80% 60%)`;
+ const accent = `hsl(${hue2} 85% 66%)`;
+ return `<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 400 400" role="img" aria-label="placeholder artwork">
+ <defs>
+ <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
+ <stop offset="0" stop-color="${c1}"/>
+ <stop offset="1" stop-color="${c2}"/>
+ </linearGradient>
+ <radialGradient id="glow" cx="0.5" cy="0.42" r="0.65">
+ <stop offset="0" stop-color="${glow}" stop-opacity="0.45"/>
+ <stop offset="1" stop-color="${glow}" stop-opacity="0"/>
+ </radialGradient>
+ <linearGradient id="facet" x1="0" y1="0" x2="1" y2="1">
+ <stop offset="0" stop-color="${accent}" stop-opacity="0.95"/>
+ <stop offset="1" stop-color="${glow}" stop-opacity="0.55"/>
+ </linearGradient>
+ </defs>
+ <rect width="400" height="400" fill="url(#bg)"/>
+ <rect width="400" height="400" fill="url(#glow)"/>
+ <g transform="rotate(${rot} 200 188)" opacity="0.9">
+ <polygon points="200,96 268,150 242,236 158,236 132,150" fill="url(#facet)"/>
+ <polygon points="200,96 268,150 200,188" fill="#ffffff" fill-opacity="0.16"/>
+ <polygon points="200,96 132,150 200,188" fill="#000000" fill-opacity="0.12"/>
+ <polygon points="200,188 242,236 158,236" fill="#000000" fill-opacity="0.18"/>
+ <polyline points="132,150 200,188 268,150" fill="none" stroke="#ffffff" stroke-opacity="0.25" stroke-width="1.5"/>
+ </g>
+ <text x="200" y="188" text-anchor="middle" dominant-baseline="central"
+ font-family="'Inter','Segoe UI',system-ui,sans-serif" font-size="84" font-weight="700"
+ fill="#ffffff" fill-opacity="0.92" style="paint-order:stroke">${ch}</text>
+ <text x="200" y="312" text-anchor="middle"
+ font-family="'Inter','Segoe UI',system-ui,sans-serif" font-size="15" font-weight="600"
+ letter-spacing="3" fill="#ffffff" fill-opacity="0.42">THREE.WS</text>
+</svg>`;
}
export default wrap(async function handler(req, res) {
@@ -112,9 +174,16 @@ export default wrap(async function handler(req, res) {
}
if (!image) {
- // Every source failed. Hand back a valid, CORS-clean placeholder so the
- // texture/image loader resolves with a 200 instead of logging an error.
- return redirect(res, placeholder(seed), 302);
+ // Every source failed. Hand back a valid, CORS-clean placeholder inline so
+ // the texture/image loader resolves with a 200 instead of logging an error.
+ // Served same-origin (no external dependency to fail) and cached, but for a
+ // shorter window than real art so a transiently-down source can recover.
+ res.statusCode = 200;
+ res.setHeader('content-type', 'image/svg+xml; charset=utf-8');
+ res.setHeader('access-control-allow-origin', '*');
+ res.setHeader('cache-control', 'public, max-age=300, s-maxage=3600');
+ res.end(placeholderSvg(seed));
+ return;
}
res.statusCode = 200;
diff --git a/data/changelog.json b/data/changelog.json
index 3a2e852f1..24b6ba5cf 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -12,8 +12,8 @@
},
{
"date": "2026-06-13",
- "title": "Reliability pass: steadier live feed, token art that never blanks, and fewer Forge timeouts",
- "summary": "We traced a batch of production errors to their roots and fixed them. The live activity ticker no longer hammers our rate store on every open tab — one shared reader now fans updates out to everyone on a server and quiets down while the feed is idle, which is what was silently exhausting our request quota and freezing the feed. Remote token artwork that stalls now always falls back to a placeholder instead of timing out and showing nothing. Text-to-3D generations that take a little longer to start no longer get cut off early. And a stray click-handling error on the homepage, search, and glossary is gone.",
+ "title": "Reliability pass: steadier live feed, token art that never blanks, and a graceful 3D fallback",
+ "summary": "We traced a batch of production errors to their roots and fixed them. The live activity ticker no longer hammers our rate store on every open tab — one shared reader now fans updates out to everyone on a server and quiets down while the feed is idle, which is what was silently exhausting our request quota and freezing the feed. When a remote token image stalls, you now get a clean, on-brand placeholder — a unique gradient gem per token — instead of a timeout or a broken-image tile. On devices that can't run 3D (some locked-down or headless browsers), the viewer now shows a clear 'preview unavailable' card with a reload option instead of a blank stage. Text-to-3D generations that take a little longer to start no longer get cut off early, and a stray click-handling error on the homepage, search, and glossary is gone.",
"tags": [
"fix",
"infra"
diff --git a/mcp-bridge/README.md b/mcp-bridge/README.md
index 7709cbf5e..21aa0b45f 100644
--- a/mcp-bridge/README.md
+++ b/mcp-bridge/README.md
@@ -1,10 +1,31 @@
-# @3d-agent/mcp-bridge — x402 Universal Payer
-
-[![npm version](https://img.shields.io/npm/v/%403d-agent%2Fmcp-bridge)](https://www.npmjs.com/package/@3d-agent/mcp-bridge)
-[![license](https://img.shields.io/npm/l/%403d-agent%2Fmcp-bridge)](./LICENSE)
-[![MCP Registry](https://img.shields.io/badge/MCP_Registry-io.github.nirholas%2Fx402--bridge-blue)](https://registry.modelcontextprotocol.io/?q=io.github.nirholas)
-
-**One MCP server that can pay any x402-paid endpoint on the open web.** Point your agent at a URL that answers `402 Payment Required`; the bridge signs, pays, retries, and hands back the response plus the settlement receipt — EVM exact, EVM batch-settlement, and Solana exact, all behind hard spending caps. It also pre-loads a tool per service discovered on the [Coinbase x402 Bazaar](https://docs.cdp.coinbase.com/x402/docs/welcome), so the entire paid-API economy shows up in your tool list.
+<p align="center">
+ <a href="https://three.ws"><img src="https://three.ws/three-ws-mcp-icon.svg" alt="three.ws" width="88" height="88"></a>
+</p>
+
+<h1 align="center">@3d-agent/mcp-bridge</h1>
+
+<p align="center"><strong>One MCP server that can pay any x402-paid endpoint on the open web — the universal x402 payer for AI agents.</strong></p>
+
+<p align="center">
+ <a href="https://www.npmjs.com/package/@3d-agent/mcp-bridge"><img alt="npm" src="https://img.shields.io/npm/v/@3d-agent/mcp-bridge?logo=npm&color=cb3837"></a>
+ <a href="https://www.npmjs.com/package/@3d-agent/mcp-bridge"><img alt="downloads" src="https://img.shields.io/npm/dm/@3d-agent/mcp-bridge?color=cb3837"></a>
+ <img alt="license" src="https://img.shields.io/npm/l/@3d-agent/mcp-bridge?color=3b82f6">
+ <img alt="node" src="https://img.shields.io/node/v/@3d-agent/mcp-bridge?color=339933&logo=node.js">
+ <a href="https://registry.modelcontextprotocol.io/?q=io.github.nirholas"><img alt="MCP Registry" src="https://img.shields.io/badge/MCP%20Registry-io.github.nirholas-0ea5e9"></a>
+ <a href="https://three.ws"><img alt="three.ws" src="https://img.shields.io/badge/built%20by-three.ws-000"></a>
+</p>
+
+<p align="center">
+ <a href="#quick-start">Quick start</a> ·
+ <a href="#security-and-spending-controls">Security</a> ·
+ <a href="#what-it-exposes">Tools</a> ·
+ <a href="#environment">Environment</a> ·
+ <a href="https://three.ws">three.ws</a>
+</p>
+
+---
+
+> A [Model Context Protocol](https://modelcontextprotocol.io) server that can pay any x402-paid endpoint on the open web. Point your agent at a URL that answers `402 Payment Required`; the bridge signs, pays, retries, and hands back the response plus the settlement receipt — EVM exact, EVM batch-settlement, and Solana exact, all behind hard spending caps. It also pre-loads a tool per service discovered on the [Coinbase x402 Bazaar](https://docs.cdp.coinbase.com/x402/docs/welcome), so the entire paid-API economy shows up in your tool list.
## Quick start
diff --git a/pages/agent-economy.html b/pages/agent-economy.html
index 8dd1cf1bd..feccf7421 100644
--- a/pages/agent-economy.html
+++ b/pages/agent-economy.html
@@ -443,6 +443,9 @@
/* Noscript */
noscript > div { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg); text-align: center; }
</style>
+
+ <link rel="canonical" href="https://three.ws/agent-economy">
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Agent Economy — Live Demo","description":"Watch two 3D AI agents transact on-chain. Agent A buys data from Agent B — real SOL, real Solana transaction, live.","url":"https://three.ws/agent-economy","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
</head>
<body>
<noscript>
diff --git a/pages/agent-exchange.html b/pages/agent-exchange.html
index f75f00cf0..67d4356d4 100644
--- a/pages/agent-exchange.html
+++ b/pages/agent-exchange.html
@@ -277,6 +277,9 @@
.ws-body { color:var(--muted); line-height:1.55; }
.ws-mono { font-family:var(--mono); font-size:10.5px; }
</style>
+
+ <meta property="og:site_name" content="three.ws">
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Agent Exchange","description":"Two AI agents with 3D bodies negotiate and pay each other for live crypto intel using x402 micropayments on Solana. Every transaction is real and confirmed on-chain.","url":"https://three.ws/agent-exchange","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
</head>
<body>
<div id="app">
diff --git a/pages/agent-trade.html b/pages/agent-trade.html
index 50d01017e..4056a7bc1 100644
--- a/pages/agent-trade.html
+++ b/pages/agent-trade.html
@@ -207,6 +207,9 @@
}
.cfg-close:hover { background: rgba(69,137,255,0.25); }
</style>
+
+ <link rel="canonical" href="https://three.ws/agent-trade">
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Agent Commerce","description":"Watch two AI agents pay each other on-chain using x402 — a live Solana transaction, rendered in 3D.","url":"https://three.ws/agent-trade","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
</head>
<body>
<canvas id="canvas"></canvas>
diff --git a/pages/avatar-wallet-chat.html b/pages/avatar-wallet-chat.html
index eded8e6ab..97ebc86bd 100644
--- a/pages/avatar-wallet-chat.html
+++ b/pages/avatar-wallet-chat.html
@@ -331,7 +331,22 @@
.msg { max-width: 90%; }
}
</style>
- </head>
+
+ <link rel="canonical" href="https://three.ws/avatar-wallet-chat">
+ <meta property="og:type" content="website">
+ <meta property="og:site_name" content="three.ws">
+ <meta property="og:title" content="Avatar Wallet · three.ws">
+ <meta property="og:description" content="An embeddable 3D AI avatar that holds a Solana wallet, chats, and can autonomously send SOL.">
+ <meta property="og:url" content="https://three.ws/avatar-wallet-chat">
+ <meta property="og:image" content="https://three.ws/og-image.png">
+ <meta property="og:image:width" content="1200">
+ <meta property="og:image:height" content="630">
+ <meta name="twitter:card" content="summary_large_image">
+ <meta name="twitter:title" content="Avatar Wallet · three.ws">
+ <meta name="twitter:description" content="An embeddable 3D AI avatar that holds a Solana wallet, chats, and can autonomously send SOL.">
+ <meta name="twitter:image" content="https://three.ws/og-image.png">
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Avatar Wallet","description":"An embeddable 3D AI avatar that holds a Solana wallet, chats, and can autonomously send SOL.","url":"https://three.ws/avatar-wallet-chat","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
+</head>
<body>
<div id="app">
<div id="stage">
diff --git a/pages/coin3d.html b/pages/coin3d.html
index 67fbe35d1..873a4ffec 100644
--- a/pages/coin3d.html
+++ b/pages/coin3d.html
@@ -234,7 +234,10 @@
}
}
</style>
- </head>
+
+ <link rel="canonical" href="https://three.ws/coin3d">
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Token in 3D","description":"Any pump.fun token as a live 3D scene — a spinning coin medallion with the token's logo, top holders as a galaxy sized by balance, and a graduation ring tracking bonding-curve progress.","url":"https://three.ws/coin3d","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
+</head>
<body>
<canvas id="scene"></canvas>
<div class="hint">drag to orbit · scroll to zoom</div>
diff --git a/pages/create-prompt.html b/pages/create-prompt.html
index 4457b5778..5ba6884ff 100644
--- a/pages/create-prompt.html
+++ b/pages/create-prompt.html
@@ -516,7 +516,13 @@
"isPartOf": { "@type": "WebSite", "name": "three.ws", "url": "https://three.ws" }
}
</script>
- </head>
+
+ <link rel="canonical" href="https://three.ws/create/prompt">
+ <meta name="twitter:card" content="summary_large_image">
+ <meta name="twitter:title" content="Describe it to 3D · three.ws">
+ <meta name="twitter:description" content="Type a description. About a minute later: a rigged 3D avatar you can animate and download.">
+ <meta name="twitter:image" content="https://three.ws/og-image.png">
+</head>
<body>
<a href="#prompt" class="skip-link">Skip to the prompt box</a>
<div id="nav-container"></div>
diff --git a/pages/demo-economy.html b/pages/demo-economy.html
index 07f810c99..b4bdb4774 100644
--- a/pages/demo-economy.html
+++ b/pages/demo-economy.html
@@ -164,6 +164,9 @@
#sidebar { display: none; }
}
</style>
+
+ <link rel="canonical" href="https://three.ws/demo">
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Agent Economy — NOVA & ORACLE","description":"Two three.ws AI agents with real Solana wallets discover services on the x402 bazaar, pay each other in SOL, and display a live market briefing on the TV in their world.","url":"https://three.ws/demo","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
</head>
<body>
<div id="root">
diff --git a/pages/forge.html b/pages/forge.html
index bec547690..da8376782 100644
--- a/pages/forge.html
+++ b/pages/forge.html
@@ -491,16 +491,57 @@
.fq-row:has(> .aspect.is-hidden) {
display: none;
}
+ /* The key field appears only for bring-your-own-key engines, so it
+ reads as a deliberate, self-contained zone — an inset panel with an
+ accent edge that eases in when the engine is selected. */
.byok-row {
display: flex;
align-items: center;
gap: var(--space-sm);
flex-wrap: wrap;
+ position: relative;
+ padding: 0.7rem 0.8rem 0.7rem 1rem;
+ background: var(--surface-2);
+ border: 1px solid var(--stroke);
+ border-radius: var(--radius-md);
+ }
+ .byok-row::before {
+ content: '';
+ position: absolute;
+ left: 0;
+ top: 0.6rem;
+ bottom: 0.6rem;
+ width: 2px;
+ border-radius: 0 2px 2px 0;
+ background: var(--accent);
+ opacity: 0.7;
+ }
+ .byok-row:not(.is-hidden) {
+ animation: byok-reveal 0.22s ease both;
+ }
+ @keyframes byok-reveal {
+ from {
+ opacity: 0;
+ transform: translateY(-3px);
+ }
+ to {
+ opacity: 1;
+ transform: none;
+ }
+ }
+ @media (prefers-reduced-motion: reduce) {
+ .byok-row:not(.is-hidden) {
+ animation: none;
+ }
+ }
+ .byok-row .fq-label {
+ min-width: 0;
+ color: var(--ink);
}
.byok-input {
flex: 1 1 16rem;
min-width: 0;
- background: var(--surface-1);
+ background: var(--bg);
border: 1px solid var(--stroke);
border-radius: var(--radius-md);
color: var(--ink);
@@ -510,7 +551,11 @@
outline: none;
transition:
border-color 0.15s,
- box-shadow 0.15s;
+ box-shadow 0.15s,
+ background 0.15s;
+ }
+ .byok-input:hover {
+ border-color: var(--stroke-strong);
}
.byok-input:focus-visible {
border-color: var(--accent);
@@ -518,18 +563,24 @@
}
.byok-input[aria-invalid='true'] {
border-color: var(--danger);
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 22%, transparent);
}
.byok-hint {
flex-basis: 100%;
font-size: var(--text-xs);
+ line-height: 1.5;
color: var(--ink-dim);
}
.byok-hint a {
color: var(--accent);
text-decoration: none;
+ font-weight: 500;
+ white-space: nowrap;
+ transition: opacity 0.15s;
}
.byok-hint a:hover {
text-decoration: underline;
+ opacity: 0.85;
}
.fq-estimate {
margin: 0;
@@ -1981,7 +2032,10 @@
color: var(--ink);
}
</style>
- </head>
+
+ <link rel="canonical" href="https://three.ws/forge">
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Forge — Text to 3D","description":"Type a prompt — or drop in photos or a sketch — and get a downloadable textured 3D model (GLB). Pick from multiple generation engines with live health status.","url":"https://three.ws/forge","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
+</head>
<body class="forge-page">
<div id="nav-container"></div>
diff --git a/pages/glossary.html b/pages/glossary.html
index 7e6affa30..1e35af1f1 100644
--- a/pages/glossary.html
+++ b/pages/glossary.html
@@ -43,7 +43,9 @@
<link rel="stylesheet" href="/style.css" />
<link rel="stylesheet" href="/nav.css" />
<link rel="stylesheet" href="/fonts/fonts.css" />
- </head>
+
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Glossary","description":"Plain-English definitions for the crypto and agent terms used across three.ws — no jargon required to get started.","url":"https://three.ws/glossary","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
+</head>
<body>
<header><div id="nav-container"></div></header>
diff --git a/pages/ibm/identity.html b/pages/ibm/identity.html
index 3aaa86dfa..dfdd08bd4 100644
--- a/pages/ibm/identity.html
+++ b/pages/ibm/identity.html
@@ -166,6 +166,9 @@
.foot { text-align:center; color:var(--faint); font-size:12px; margin-top:40px; }
.foot a { color:var(--brand-blue-light); text-decoration:none; }
</style>
+
+ <meta property="og:site_name" content="three.ws">
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Identity Firewall — Granite Stops Impersonation","description":"Before a three.ws agent identity is born, IBM Granite embeddings compare it against every public agent to catch impersonation, and Granite Guardian screens the name, bio, and persona.","url":"https://three.ws/ibm/identity","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
</head>
<body>
<header class="topbar">
diff --git a/pages/ibm/oracle.html b/pages/ibm/oracle.html
index 36097245c..bbec12034 100644
--- a/pages/ibm/oracle.html
+++ b/pages/ibm/oracle.html
@@ -438,7 +438,13 @@
}
}
</style>
- </head>
+
+ <meta property="og:site_name" content="three.ws">
+ <meta name="twitter:title" content="Granite Oracle — Price Forecasting in 3D · three.ws">
+ <meta name="twitter:description" content="IBM Granite TimeSeries forecasting rendered in 3D — a live crypto market forecast computed on watsonx.ai and visualized by a three.ws agent.">
+ <meta name="twitter:image" content="https://three.ws/ibm-og.png">
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Granite Oracle — Price Forecasting in 3D","description":"IBM Granite TimeSeries forecasting rendered in 3D — a live crypto market forecast computed on watsonx.ai and visualized by a three.ws agent.","url":"https://three.ws/ibm/oracle","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
+</head>
<body>
<noscript>
<div style="position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:24px;background:#080808;color:#e7ecf5;font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;text-align:center">
diff --git a/pages/ibm/proof.html b/pages/ibm/proof.html
index f3a7a53eb..7bee482d1 100644
--- a/pages/ibm/proof.html
+++ b/pages/ibm/proof.html
@@ -147,6 +147,12 @@
.stats { grid-template-columns: repeat(2, 1fr); }
}
</style>
+
+ <meta property="og:site_name" content="three.ws">
+ <meta name="twitter:title" content="Granite Proof — On-Chain AI Notary · three.ws">
+ <meta name="twitter:description" content="A 3D AI agent forecasts a live crypto market with IBM Granite TimeSeries, Granite Guardian governs every word, and each governed forecast is notarized on Solana — signed by the agent's own wallet.">
+ <meta name="twitter:image" content="https://three.ws/ibm-og.png">
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Granite Proof — On-Chain AI Notary","description":"A 3D AI agent forecasts a live crypto market with IBM Granite TimeSeries, Granite Guardian governs every word, and each governed forecast is notarized on Solana — signed by the agent's own wallet.","url":"https://three.ws/ibm/proof","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
</head>
<body>
<noscript>
diff --git a/pages/ibm/trust-layer.html b/pages/ibm/trust-layer.html
index efac16bd1..db0160f4e 100644
--- a/pages/ibm/trust-layer.html
+++ b/pages/ibm/trust-layer.html
@@ -319,6 +319,9 @@
}
@media (prefers-reduced-motion:reduce) { .o-orb { animation:none; } .rbar-fill { transition:none; } }
</style>
+
+ <meta property="og:site_name" content="three.ws">
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Trust Layer — Granite Guardian Governs Agents","description":"IBM Granite Guardian governs an autonomous, wallet-holding 3D AI agent in real time. Every message and on-chain action is risk-classified on watsonx.ai and written to a tamper-evident audit ledger.","url":"https://three.ws/ibm/trust-layer","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
</head>
<body>
<noscript>
diff --git a/pages/ibm/twin.html b/pages/ibm/twin.html
index 2d1293ffb..7774d6800 100644
--- a/pages/ibm/twin.html
+++ b/pages/ibm/twin.html
@@ -602,7 +602,13 @@
}
}
</style>
- </head>
+
+ <meta property="og:site_name" content="three.ws">
+ <meta name="twitter:title" content="Digital Twin — Living Market Replica · three.ws">
+ <meta name="twitter:description" content="A living replica of a real market on IBM watsonx — live data drives the twin while Granite TimeSeries projects where it's heading.">
+ <meta name="twitter:image" content="https://three.ws/ibm-og.png">
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Digital Twin — Living Market Replica","description":"A living replica of a real market on IBM watsonx — live data drives the twin while Granite TimeSeries projects where it's heading.","url":"https://three.ws/ibm/twin","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
+</head>
<body>
<noscript>
<div style="position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:24px;background:#080808;color:#e7ecf5;font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;text-align:center">
diff --git a/pages/ibm/vision.html b/pages/ibm/vision.html
index bf6933177..6a063841a 100644
--- a/pages/ibm/vision.html
+++ b/pages/ibm/vision.html
@@ -281,7 +281,12 @@
.stage-hint { top: 56px; font-size: 11px; }
}
</style>
- </head>
+
+ <meta property="og:site_name" content="three.ws">
+ <meta name="twitter:description" content="IBM Granite Vision reads your 3D avatar — multimodal image understanding on watsonx.ai, demonstrated live.">
+ <meta name="twitter:image" content="https://three.ws/ibm-og.png">
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Granite Vision — Image Understanding","description":"IBM Granite Vision reads your 3D avatar — multimodal image understanding on watsonx.ai, demonstrated live.","url":"https://three.ws/ibm/vision","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
+</head>
<body>
<noscript>
<div style="position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:24px;background:#080808;color:#e7ecf5;font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;text-align:center">
diff --git a/pages/live.html b/pages/live.html
index f502e3c48..f708443f9 100644
--- a/pages/live.html
+++ b/pages/live.html
@@ -222,6 +222,9 @@
pointer-events: none; letter-spacing: .04em; z-index: 5;
}
</style>
+
+ <link rel="canonical" href="https://three.ws/live">
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Agent Economy — Live","description":"Two AI agents in a virtual world paying each other for live Solana market data. Real on-chain transactions, real blockchain, real 3D.","url":"https://three.ws/live","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
</head>
<body>
diff --git a/pages/scan.html b/pages/scan.html
index 536bb3f2a..f5eae8064 100644
--- a/pages/scan.html
+++ b/pages/scan.html
@@ -1334,7 +1334,13 @@
integrity="sha384-sr9b4Ux0WhAUGclJ0ym0FSY2zSOMmNSn0bP/SA0e6bNCrpn/5W3QL8mm+LdlQMKw"
crossorigin="anonymous"
></script>
- </head>
+
+ <link rel="canonical" href="https://three.ws/scan">
+ <meta name="twitter:title" content="3D Scanner — Scan Yourself into 3D · three.ws">
+ <meta name="twitter:description" content="Point your camera at your face, hold still, and walk away with a rigged 3D avatar — reconstruction runs in about a minute, free, in your browser.">
+ <meta name="twitter:image" content="https://three.ws/og-image.png">
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"3D Scanner — Scan Yourself into 3D","description":"Point your camera at your face, hold still, and walk away with a rigged 3D avatar — reconstruction runs in about a minute, free, in your browser.","url":"https://three.ws/scan","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
+</head>
<body>
<main class="stage">
<div class="topbar">
diff --git a/pages/tutorial.html b/pages/tutorial.html
index b52a78ee3..7b42f9a00 100644
--- a/pages/tutorial.html
+++ b/pages/tutorial.html
@@ -867,7 +867,12 @@
}
}
</style>
- </head>
+
+ <link rel="canonical" href="https://three.ws/tutorials/text-to-3d">
+ <meta property="og:url" content="https://three.ws/tutorials/text-to-3d">
+ <meta name="twitter:description" content="Five-minute beginner walkthrough of the Forge: type a sentence, pick a quality tier, and download a textured GLB model.">
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Tutorial · Text Prompt to 3D Model","description":"Five-minute beginner walkthrough of the Forge: type a sentence, pick a quality tier, and download a textured GLB model.","url":"https://three.ws/tutorials/text-to-3d","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
+</head>
<body class="home-page tutorial-page tut-doc-page">
<div class="cursor" id="cursor" aria-hidden="true"></div>
<div class="tdoc-progress" aria-hidden="true">
diff --git a/public/changelog.json b/public/changelog.json
index 148bec8c8..ed9cc5bd8 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-13T05:04:14.903Z",
+ "generated_at": "2026-06-13T05:41:01.838Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -70,8 +70,8 @@
{
"date": "2026-06-13",
"type": "update",
- "title": "Reliability pass: steadier live feed, token art that never blanks, and fewer Forge timeouts",
- "summary": "We traced a batch of production errors to their roots and fixed them. The live activity ticker no longer hammers our rate store on every open tab — one shared reader now fans updates out to everyone on a server and quiets down while the feed is idle, which is what was silently exhausting our request quota and freezing the feed. Remote token artwork that stalls now always falls back to a placeholder instead of timing out and showing nothing. Text-to-3D generations that take a little longer to start no longer get cut off early. And a stray click-handling error on the homepage, search, and glossary is gone.",
+ "title": "Reliability pass: steadier live feed, token art that never blanks, and a graceful 3D fallback",
+ "summary": "We traced a batch of production errors to their roots and fixed them. The live activity ticker no longer hammers our rate store on every open tab — one shared reader now fans updates out to everyone on a server and quiets down while the feed is idle, which is what was silently exhausting our request quota and freezing the feed. When a remote token image stalls, you now get a clean, on-brand placeholder — a unique gradient gem per token — instead of a timeout or a broken-image tile. On devices that can't run 3D (some locked-down or headless browsers), the viewer now shows a clear 'preview unavailable' card with a reload option instead of a blank stage. Text-to-3D generations that take a little longer to start no longer get cut off early, and a stray click-handling error on the homepage, search, and glossary is gone.",
"link": null,
"tags": [
"fix",
diff --git a/public/changelog.xml b/public/changelog.xml
index 9bac4a7fe..016ecc32e 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -55,12 +55,12 @@
<description>Three upgrades to the Forge (/forge). After a model generates, a new Refine button re-runs that exact prompt or photos one quality tier higher — Draft to Standard to High — so you can preview cheaply, then commit to the best version without retyping anything. When building from photos, a live counter now shows how many of the four reference views you've added and reminds you that more angles make a sharper mesh. And the action bar under each finished model now reflows cleanly on phones, with Refine and Make-another leading at full width. Sketch mode also makes its required description unmistakable.</description>
</item>
<item>
- <title>Reliability pass: steadier live feed, token art that never blanks, and fewer Forge timeouts</title>
+ <title>Reliability pass: steadier live feed, token art that never blanks, and a graceful 3D fallback</title>
<link>https://three.ws/changelog</link>
- <guid isPermaLink="false">2026-06-13:Reliability pass: steadier live feed, token art that never blanks, and fewer Forge timeouts</guid>
+ <guid isPermaLink="false">2026-06-13:Reliability pass: steadier live feed, token art that never blanks, and a graceful 3D fallback</guid>
<pubDate>Sat, 13 Jun 2026 12:00:00 GMT</pubDate>
<category>fix</category>
- <description>We traced a batch of production errors to their roots and fixed them. The live activity ticker no longer hammers our rate store on every open tab — one shared reader now fans updates out to everyone on a server and quiets down while the feed is idle, which is what was silently exhausting our request quota and freezing the feed. Remote token artwork that stalls now always falls back to a placeholder instead of timing out and showing nothing. Text-to-3D generations that take a little longer to start no longer get cut off early. And a stray click-handling error on the homepage, search, and glossary is gone.</description>
+ <description>We traced a batch of production errors to their roots and fixed them. The live activity ticker no longer hammers our rate store on every open tab — one shared reader now fans updates out to everyone on a server and quiets down while the feed is idle, which is what was silently exhausting our request quota and freezing the feed. When a remote token image stalls, you now get a clean, on-brand placeholder — a unique gradient gem per token — instead of a timeout or a broken-image tile. On devices that can't run 3D (some locked-down or headless browsers), the viewer now shows a clear 'preview unavailable' card with a reload option instead of a blank stage. Text-to-3D generations that take a little longer to start no longer get cut off early, and a stray click-handling error on the homepage, search, and glossary is gone.</description>
</item>
<item>
<title>See any Forge model in AR — scan from your desktop, place it in your room</title>
diff --git a/public/features.json b/public/features.json
index 391cad807..720695c95 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-13T05:04:14.891Z",
+ "generated_at": "2026-06-13T05:41:01.828Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/public/style.css b/public/style.css
index e4e64f35b..3186f98b1 100644
--- a/public/style.css
+++ b/public/style.css
@@ -376,6 +376,34 @@ body {
.viewer-status__btn:active {
transform: translateY(1px);
}
+.viewer-status__btn:focus-visible {
+ outline: 2px solid rgba(255, 255, 255, 0.55);
+ outline-offset: 2px;
+}
+/* Capability-notice variant (e.g. no WebGL) — informational, not an error.
+ A calm neutral chrome with a title + supporting hint line. */
+.viewer-status__card--notice {
+ border-color: rgba(255, 255, 255, 0.12);
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
+ gap: 10px;
+ padding: 24px 26px;
+}
+.viewer-status__icon--info {
+ background: rgba(255, 255, 255, 0.08);
+ color: rgba(255, 255, 255, 0.82);
+}
+.viewer-status__title {
+ font-size: 15px;
+ font-weight: 600;
+ color: rgba(255, 255, 255, 0.95);
+ letter-spacing: 0.01em;
+}
+.viewer-status__hint {
+ font-size: 13px;
+ line-height: 1.5;
+ color: rgba(255, 255, 255, 0.6);
+ max-width: 300px;
+}
.viewer-status__progress {
display: flex;
flex-direction: column;
diff --git a/src/app.js b/src/app.js
index 5207fa03e..d65bcb91a 100644
--- a/src/app.js
+++ b/src/app.js
@@ -1016,7 +1016,7 @@ class App {
// Mount the canvas up-front so the loading/error overlay has a parent
// and the page layout never collapses around an empty container.
- if (!this.viewer) this.createViewer();
+ if (!this.viewer && !this.createViewer()) return; // WebGL fallback shown
// Surface a loading state immediately — the identity name lookup
// below may take a moment, and the user shouldn't see an empty stage.
@@ -1599,7 +1599,19 @@ class App {
createViewer() {
if (this.viewer) this.viewer.dispose();
this.viewerEl = this.viewerContainerEl;
- this.viewer = new Viewer(this.viewerEl, this.options);
+ // A GPU/driver without an available WebGL context (headless browser, a
+ // blocked context, or the per-tab context budget exhausted) makes the
+ // Viewer constructor throw "Error creating WebGL context". Catch it and
+ // show a designed fallback instead of letting it bubble as an unhandled
+ // rejection that leaves the stage blank.
+ try {
+ this.viewer = new Viewer(this.viewerEl, this.options);
+ } catch (err) {
+ log.error('[3d-agent] WebGL viewer init failed:', err);
+ this.viewer = null;
+ this._showWebglUnavailable();
+ return null;
+ }
initWalletButton();
if (!this.options.kiosk) {
@@ -1611,6 +1623,29 @@ class App {
return this.viewer;
}
+ // Cheap, cached probe for WebGL support so we can show the fallback BEFORE
+ // constructing the (expensive) Viewer on devices that plainly can't render.
+ _webglAvailable() {
+ if (typeof this._webglOk === 'boolean') return this._webglOk;
+ let ok = false;
+ try {
+ const canvas = document.createElement('canvas');
+ const gl =
+ canvas.getContext('webgl2') ||
+ canvas.getContext('webgl') ||
+ canvas.getContext('experimental-webgl');
+ ok = !!(window.WebGLRenderingContext && gl && typeof gl.getParameter === 'function');
+ // Release the probe context immediately so it never counts against the
+ // browser's per-tab WebGL context budget.
+ const lose = gl && gl.getExtension && gl.getExtension('WEBGL_lose_context');
+ if (lose) lose.loseContext();
+ } catch {
+ ok = false;
+ }
+ this._webglOk = ok;
+ return ok;
+ }
+
// ── Dropzone ─────────────────────────────────────────────────────────────
createDropzone() {
@@ -1684,9 +1719,16 @@ class App {
* @param {Map<string, File>} fileMap
*/
view(rootFile, rootPath, fileMap) {
+ // Bail to the designed fallback before touching the viewer on devices with
+ // no WebGL — otherwise the constructor throws and the stage stays blank.
+ if (!this.viewer && !this._webglAvailable()) {
+ this._showWebglUnavailable();
+ return;
+ }
if (this.viewer) this.viewer.clear();
const viewer = this.viewer || this.createViewer();
+ if (!viewer) return; // WebGL init failed — fallback already shown
const fileURL = typeof rootFile === 'string' ? rootFile : URL.createObjectURL(rootFile);
this._currentModelUrl = typeof rootFile === 'string' ? rootFile : null;
@@ -2059,6 +2101,35 @@ class App {
}
}
+ // Designed fallback when the device can't give us a WebGL context. Unlike a
+ // transient load error, this is a capability gap — so we explain it plainly,
+ // offer a reload (which frees contexts and recovers the budget-exhaustion
+ // case), and link to the lightweight 2D experience instead of a bare retry.
+ _showWebglUnavailable() {
+ const el = this._ensureViewerStatusEl();
+ el.dataset.state = 'webgl';
+ el.innerHTML = `
+ <div class="viewer-status__card viewer-status__card--notice" role="alert">
+ <div class="viewer-status__icon viewer-status__icon--info" aria-hidden="true">
+ <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor"
+ stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/>
+ <line x1="3" y1="3" x2="21" y2="21"/>
+ </svg>
+ </div>
+ <div class="viewer-status__title">3D preview unavailable</div>
+ <div class="viewer-status__hint">This browser or device couldn't start a 3D
+ (WebGL) view. Try reloading, or open three.ws on a device with hardware
+ graphics enabled.</div>
+ <button class="viewer-status__btn" type="button" data-reload>Reload</button>
+ </div>
+ `;
+ el.hidden = false;
+ el.querySelector('[data-reload]')?.addEventListener('click', () => {
+ window.location.reload();
+ });
+ }
+
_hideViewerStatus() {
if (!this._viewerStatusEl) return;
this._viewerStatusEl.hidden = true;
diff --git a/src/element.js b/src/element.js
index 49cd08ca7..5f4d35d80 100644
--- a/src/element.js
+++ b/src/element.js
@@ -474,6 +474,40 @@ const BASE_STYLE = `
padding: 16px;
font: 14px var(--agent-chat-font);
}
+ .error-card {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ text-align: center;
+ gap: 8px;
+ max-width: 260px;
+ animation: agent-err-in 0.3s ease both;
+ }
+ @keyframes agent-err-in {
+ from { opacity: 0; transform: translateY(6px); }
+ to { opacity: 1; transform: none; }
+ }
+ .error-icon {
+ width: 36px;
+ height: 36px;
+ border-radius: 50%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: rgba(127, 127, 127, 0.16);
+ color: var(--agent-on-surface);
+ opacity: 0.85;
+ }
+ .error-title {
+ font-size: 14px;
+ font-weight: 600;
+ line-height: 1.3;
+ }
+ .error-hint {
+ font-size: 12.5px;
+ line-height: 1.45;
+ opacity: 0.62;
+ }
/* Optional name plate overlay — toggled by the name-plate attribute. */
.name-plate {
position: absolute;
@@ -2377,9 +2411,30 @@ class Agent3DElement extends HTMLElement {
_showError(err) {
if (this.hasAttribute('kiosk')) return;
+ const raw = (err && (err.message || String(err))) || '';
+ const isWebgl = /webgl|context/i.test(raw);
+ const title = isWebgl ? '3D preview unavailable' : "Couldn't load agent";
+ const hint = isWebgl
+ ? "This browser or device couldn't start a 3D (WebGL) view."
+ : 'Something went wrong while loading. Please try again.';
const el = document.createElement('div');
el.className = 'error';
- el.textContent = `Couldn't load agent: ${err.message || err}`;
+ el.setAttribute('role', 'alert');
+ el.innerHTML = `
+ <div class="error-card">
+ <div class="error-icon" aria-hidden="true">
+ <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor"
+ stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/>
+ <line x1="3" y1="3" x2="21" y2="21"/>
+ </svg>
+ </div>
+ <div class="error-title"></div>
+ <div class="error-hint"></div>
+ </div>
+ `;
+ el.querySelector('.error-title').textContent = title;
+ el.querySelector('.error-hint').textContent = hint;
this.shadowRoot.appendChild(el);
}
diff --git a/src/forge.js b/src/forge.js
index a97567636..95f814740 100644
--- a/src/forge.js
+++ b/src/forge.js
@@ -120,7 +120,13 @@ let catalog = null;
// optimistically from the catalog and tighten when health lands.
let health = null;
let selectedTier = 'standard';
-let selectedEngine = { id: 'trellis', path: 'image', backend: 'trellis', byok: null, polyControl: false };
+let selectedEngine = {
+ id: 'trellis',
+ path: 'image',
+ backend: 'trellis',
+ byok: null,
+ polyControl: false,
+};
// Once the user deliberately picks an engine we stop auto-selecting the
// catalog's per-tier default (e.g. the free NVIDIA lane on draft) under them.
let userPickedEngine = false;
@@ -141,11 +147,28 @@ function setCinema(on) {
els.viewer.setAttribute('rotation-per-second', on ? '10deg' : '18deg');
}
-// Friendly engine labels + where to mint a key, keyed by backend id.
-const ENGINE_LABELS = { nvidia: 'Free', trellis: 'Fast', meshy: 'Meshy', tripo: 'Tripo', hunyuan3d: 'Hunyuan3D', triposg: 'TripoSG' };
+// Short engine labels for the picker buttons, keyed by backend id.
+const ENGINE_LABELS = {
+ nvidia: 'Free',
+ trellis: 'Fast',
+ meshy: 'Meshy',
+ tripo: 'Tripo',
+ rodin: 'Rodin',
+ stability: 'Stability',
+ replicate_byok: 'Replicate',
+ hunyuan3d: 'Hunyuan3D',
+ triposg: 'TripoSG',
+};
+
+// Where to mint a key per BYOK provider, keyed by the backend's `byok` name.
+// Mirrors the canonical registry in api/_lib/provider-keys.js (BYOK_PROVIDERS)
+// and the Account key manager (dashboard-next/pages/account.js) — keep in sync.
const KEY_HINTS = {
meshy: { label: 'Meshy AI', url: 'https://www.meshy.ai/settings/api' },
tripo: { label: 'Tripo AI', url: 'https://platform.tripo3d.ai/api-keys' },
+ rodin: { label: 'Rodin (Hyper3D)', url: 'https://developer.hyper3d.ai' },
+ stability: { label: 'Stability AI', url: 'https://platform.stability.ai/account/keys' },
+ replicate: { label: 'Replicate', url: 'https://replicate.com/account/api-tokens' },
};
// One entry per reference-view slot. `state` drives the slot's rendered region;
@@ -434,7 +457,8 @@ function updateEngineAvailability() {
if (laneDown) {
btn.title = `${b?.label || btn.dataset.backend} — temporarily unavailable: ${lane.message}`;
} else if (blocked) {
- btn.title = 'This engine generates from text prompts only — clear the reference views to use it.';
+ btn.title =
+ 'This engine generates from text prompts only — clear the reference views to use it.';
} else if (b) {
btn.title = laneBusy
? `${b.label} — busy right now: ${lane.message}`
@@ -442,7 +466,8 @@ function updateEngineAvailability() {
}
if (blocked && btn.dataset.backend === selectedEngine.backend) bounceTo = true;
}
- const defaultId = catalog.default_backend_for_tier?.[selectedTier]?.[selectedEngine.path] ?? null;
+ const defaultId =
+ catalog.default_backend_for_tier?.[selectedTier]?.[selectedEngine.path] ?? null;
if (bounceTo) {
// Forced move: the selected engine can't serve photos. Prefer the standing
// photo default, else the first enabled button.
@@ -451,8 +476,15 @@ function updateEngineAvailability() {
els.engine.querySelector(`button[data-backend="${fallbackId}"]:not(:disabled)`) ||
els.engine.querySelector('button:not(:disabled)');
if (target) selectEngine(target);
- } else if (!userPickedEngine && !hasPhotos && defaultId && defaultId !== selectedEngine.backend) {
- const target = els.engine.querySelector(`button[data-backend="${defaultId}"]:not(:disabled)`);
+ } else if (
+ !userPickedEngine &&
+ !hasPhotos &&
+ defaultId &&
+ defaultId !== selectedEngine.backend
+ ) {
+ const target = els.engine.querySelector(
+ `button[data-backend="${defaultId}"]:not(:disabled)`,
+ );
if (target) selectEngine(target);
}
}
@@ -481,11 +513,12 @@ function updateByokRow() {
els.byokRow.classList.toggle('is-hidden', !byok);
if (!byok) return;
const hint = KEY_HINTS[byok];
- els.byokLabel.textContent = `${hint?.label || byok} key`;
- els.providerKey.placeholder = `Your ${hint?.label || byok} API key (kept in this browser)`;
+ const name = hint?.label || byok;
+ els.byokLabel.textContent = `${name} key`;
+ els.providerKey.placeholder = `Your ${name} API key (kept in this browser)`;
els.byokHint.innerHTML = hint
- ? `Geometry-first uses your own ${hint.label} key. <a href="${hint.url}" target="_blank" rel="noopener">Get a key →</a> Signed-in users can save it in Account instead.`
- : 'This engine needs your own API key.';
+ ? `This engine runs on your own ${hint.label} key. <a href="${hint.url}" target="_blank" rel="noopener">Get a key →</a> Signed-in users can save it once in Account instead.`
+ : `This engine runs on your own ${name} key, kept in this browser. Signed-in users can save it in Account instead.`;
}
function selectTier(tierId) {
@@ -509,7 +542,9 @@ function updateEstimate() {
els.estimate.textContent = '';
return;
}
- const est = (backend.estimates?.[selectedEngine.path] || []).find((e) => e.tier === selectedTier);
+ const est = (backend.estimates?.[selectedEngine.path] || []).find(
+ (e) => e.tier === selectedTier,
+ );
// Holder-readable, not pipeline-internal: say how long it usually takes and
// what the engine does, in plain words. The mechanism ("builds from a
// reference image") replaces jargon like "image-intermediate · fast path".
@@ -725,8 +760,10 @@ async function presignAndPut(file) {
body: JSON.stringify({ content_type: file.type, size_bytes: file.size }),
});
const presign = await presignRes.json().catch(() => ({}));
- if (presignRes.status === 503) return { ok: false, message: 'Uploads unavailable — paste a URL.' };
- if (presignRes.status === 429) return { ok: false, message: 'Rate limited — retry shortly.' };
+ if (presignRes.status === 503)
+ return { ok: false, message: 'Uploads unavailable — paste a URL.' };
+ if (presignRes.status === 429)
+ return { ok: false, message: 'Rate limited — retry shortly.' };
if (!presignRes.ok || !presign.upload_url || !presign.public_url) {
return { ok: false, message: presign.message || 'Upload failed.' };
}
@@ -736,7 +773,8 @@ async function presignAndPut(file) {
headers: { 'content-type': file.type },
body: file,
});
- if (!putRes.ok) return { ok: false, message: `Storage rejected the file (${putRes.status}).` };
+ if (!putRes.ok)
+ return { ok: false, message: `Storage rejected the file (${putRes.status}).` };
return { ok: true, url: presign.public_url };
} catch {
return { ok: false, message: 'Network error during upload.' };
@@ -1156,7 +1194,8 @@ function updateRefineButton() {
if (!els.refine) return;
const next = nextTierAfter(currentResultTier);
const reRunnable =
- lastJob && (lastJob.prompt || (Array.isArray(lastJob.imageUrls) && lastJob.imageUrls.length));
+ lastJob &&
+ (lastJob.prompt || (Array.isArray(lastJob.imageUrls) && lastJob.imageUrls.length));
const show = Boolean(next && reRunnable);
els.refine.classList.toggle('is-hidden', !show);
if (show) {
@@ -1177,7 +1216,12 @@ function showResult(glbUrl, label, meta) {
els.download.href = glbUrl;
els.download.setAttribute(
'download',
- `${label.replace(/[^a-z0-9]+/gi, '-').slice(0, 48).replace(/^-|-$/g, '') || 'forge'}.glb`,
+ `${
+ label
+ .replace(/[^a-z0-9]+/gi, '-')
+ .slice(0, 48)
+ .replace(/^-|-$/g, '') || 'forge'
+ }.glb`,
);
// Cross-link into Parts Studio with this exact model pre-loaded.
if (els.segmentBtn) els.segmentBtn.href = `/segment?mesh=${encodeURIComponent(glbUrl)}`;
@@ -1190,9 +1234,7 @@ function showResult(glbUrl, label, meta) {
playMaterialize(glbUrl);
// Hand the live model to the Stylize panel (src/forge-stylize.js) so its
// one-click geometric filters operate on the current source mesh.
- document.dispatchEvent(
- new CustomEvent('forge:model-ready', { detail: { glbUrl, label } }),
- );
+ document.dispatchEvent(new CustomEvent('forge:model-ready', { detail: { glbUrl, label } }));
document.dispatchEvent(
new CustomEvent('tws:feature-done', {
detail: { feature: 'forge', model: { glbUrl, label } },
@@ -1281,7 +1323,9 @@ async function loadGallery() {
prov.style.left = '6px';
prov.style.right = 'auto';
prov.style.top = Number(c.views_used) > 1 ? '28px' : '6px';
- prov.textContent = [ENGINE_LABELS[c.backend] || c.backend, c.tier].filter(Boolean).join(' ');
+ prov.textContent = [ENGINE_LABELS[c.backend] || c.backend, c.tier]
+ .filter(Boolean)
+ .join(' ');
prov.title =
`${c.path === 'geometry' ? 'Geometry-first' : c.path === 'sketch' ? 'Sketch→3D' : 'Image path'} · ${c.backend || ''} · ${c.tier || ''}`.trim();
card.appendChild(prov);
@@ -1442,8 +1486,7 @@ async function run(cfg) {
// itself returns the finished model with a null job_id. Polling that
// null id would loop on invalid_job until the timeout, losing a result
// that already succeeded.
- const done =
- job.status === 'done' && job.glb_url ? job : await pollUntilDone(job.job_id);
+ const done = job.status === 'done' && job.glb_url ? job : await pollUntilDone(job.job_id);
if (pollAbort || !done) return; // cancelled
if (done.creation_id) currentCreationId = done.creation_id;
@@ -1745,7 +1788,8 @@ document.addEventListener('keydown', (e) => {
// "/" jumps to the prompt for the current mode — the standard quick-focus.
if (e.key === '/') {
e.preventDefault();
- const box = mode === 'sketch' ? els.sketchPrompt : mode === 'image' ? els.imagePrompt : els.prompt;
+ const box =
+ mode === 'sketch' ? els.sketchPrompt : mode === 'image' ? els.imagePrompt : els.prompt;
box?.focus();
return;
}