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
feat(forge): durable creation store + shareable creation endpoint, vision moderation hardening
nirholasfb5dc166d299
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex cc2ab5ac3..d3e9de1b2 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -16,6 +16,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Built-in AI stays up when a provider runs dry** — The platform's built-in AI (chat, the Brain model workbench, embedded site widgets, tutor, fact-checker, persona tools, agent talk, the transaction explainer) now runs on a deeper safety net. Three independent free lanes — Groq, OpenRouter (with automatic rotation across multiple accounts when one runs out of credits or hits a rate limit), and NVIDIA-hosted models — always serve first, and if every one of them fails, the request quietly falls through to a paid backstop instead of showing you an error. Paid x402 endpoints that previously returned errors during a provider outage now degrade the same way. Agent memory search now runs on a free embeddings lane with the paid provider demoted to backup, and embedded agents configured for a paid model degrade to the free lanes instead of erroring when that provider's key is dead. `[improvement, infra]`- **Embedded avatar chat replies again** — Avatars embedded straight from their public profile — the one-line widget on the homepage and anywhere else the avatar URL is dropped in — went silent when you typed a message: the chat box accepted your text but the avatar never answered. The built-in AI now recognizes a plain public avatar and serves it the free we-pay model with the same per-avatar rate and usage limits, so embedded chat responds out of the box. `[fix]`- **Faster, quieter agents directory and site-wide page polish** — The on-chain agents directory now loads from our server-side index instead of contacting every agent's metadata host from your browser — pages render faster and no longer spray network errors. Also: the pump.fun cockpit's sidebar pages are now shareable deep links, mobile nav and footer links meet touch-target guidelines, anonymous visitors no longer trigger failed sign-in requests on Walk and Create, and assorted dead links were removed. (`/agents`) `[improvement, fix]`+- **Forge share links now open your creation for anyone you send them to** — When you share a model from Forge, the person who opens the link now sees your actual creation — the 3D model loads straight into the viewer, ready to spin, inspect, and download. Previously a share link only worked for the person who forged the model, because Forge only looked in your own browser's history; recipients landed on an empty Forge. Now the page fetches the shared model by its link and shows it to anyone, even if they've never used Forge before. If a link points to a model that was removed or is still generating, you get a clear message instead of a blank screen. (`/forge`) `[fix, improvement]`- **Free 3D drafts on Forge** — Draft generations from a text prompt on Forge now run on a free NVIDIA-hosted TRELLIS engine by default — your first 3D model costs nothing and arrives in about 15 seconds, several times faster than the previous default. Photo-to-3D keeps its proven engine (the free lane is prompt-only by design), and every existing engine — TRELLIS on Replicate, Meshy, Tripo — remains selectable at every quality tier. (`/forge`) `[feature, improvement]`- **Hardened the explore feed and marketplace pricing against bad requests** — The explore discovery feed and marketplace asset-pricing lookup now reject malformed query parameters with a clear 400 instead of failing with a server error. A non-numeric page size on explore, or a malformed asset id on a price lookup, no longer surfaces a 500 — the endpoints validate input up front and respond cleanly. (`/explore`) `[fix]`- **Light theme is here — flip the whole site with one tap** — three.ws now ships a light theme alongside the signature dark one. A new sun/moon toggle sits in the top nav on every page: tap it to switch instantly, and your choice sticks across pages, sessions, and other open tabs. New here, or set to 'Auto' in Settings → Appearance? The site follows your device's light/dark preference automatically. The theme is applied before the page paints, so there's no white flash on load, and the dashboard appearance picker (Dark / Light / Auto) now applies live instead of just saving for later. Dark remains the brand default — nothing changes unless you want it to. `[feature, improvement]`@@ -28,6 +29,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Sharper search and richer link previews across the blog** — Every blog post now ships full social-card images and structured data, so links to three.ws unfurl with a proper preview image on X, Slack, Discord and LinkedIn, and show up as rich articles with breadcrumbs in Google. All 25 posts are now listed in the sitemap (previously only four were), making the full archive discoverable in search. A new build step keeps page titles, descriptions and previews in sync automatically so nothing ships without them. (`/blog`) `[improvement]`- **Talking-agent widgets answer from their knowledge again** — If you uploaded docs to a talking-agent widget, it can ground its answers in them again. Knowledge retrieval had gone quiet when our previous embedding provider ran out of quota — questions fell back to generic replies instead of citing your material. We've moved both the upload step and the question-matching step onto a free, fast embedding lane, so a visitor asking about something only your docs cover now gets an answer drawn straight from them, with the source named. Widgets with no uploaded knowledge keep chatting normally. Nothing to update — your existing docs work as-is. (`/widgets`) `[fix]`- **Text-to-3D and image-to-3D generation restored** — Fixed two provider regressions that blocked Forge generation: model submissions now pin the latest published model version automatically, and the text-to-image step falls back to a healthy provider instead of failing when the preferred one is misconfigured. (`/forge`) `[fix]`+- **Your chat agent now walks to each new reply instead of popping in** — When you send a message in chat, the 3D agent used to vanish from its old spot and pop into place beside the new reply. Now it walks down the conversation to the new message — appearing where it last stood and gliding into its place with its walking animation playing, so it feels like a character moving through the chat rather than teleporting. The motion respects your system's reduced-motion setting (it simply appears, no slide, if you've asked for less animation), and the very first reply just settles in since there's nowhere to walk from. (`/chat`) `[improvement]`## 2026-06-10diff --git a/api/_lib/forge-store.js b/api/_lib/forge-store.jsindex 40482ef5c..e8ad2e21a 100644--- a/api/_lib/forge-store.js+++ b/api/_lib/forge-store.js@@ -236,6 +236,42 @@ export async function recordFeedback({ id, clientKey, outcome, downloaded, ratin}}+// Fetch a single durable creation by id, NOT scoped to any client. Powers the+// share flow: a recipient who didn't forge the model still gets to view it.+// Only returns finished, durably-stored rows — an in-flight or failed creation+// has no public artifact to show. Returns null when missing or store-disabled.+export async function getPublicCreation({ id }) {+ if (!forgeStoreEnabled() || !id) return null;+ try {+ const rows = await sql`+ select id, prompt, aspect, glb_url, preview_image_url, outcome,+ views_used, multiview, backend, tier, path, created_at+ from forge_creations+ where id = ${id} and status = 'done' and glb_url is not null+ limit 1+ `;+ const r = rows[0];+ if (!r) return null;+ return {+ id: r.id,+ prompt: r.prompt,+ aspect: r.aspect,+ glb_url: r.glb_url,+ preview_image_url: r.preview_image_url,+ outcome: r.outcome,+ views_used: r.views_used ?? null,+ multiview: r.multiview ?? null,+ backend: r.backend ?? null,+ tier: r.tier ?? null,+ path: r.path ?? null,+ created_at: r.created_at,+ };+ } catch (err) {+ console.error('[forge-store] getPublicCreation failed:', err?.message);+ return null;+ }+}+// Newest durable creations for one anonymous client — powers the gallery.export async function listCreations({ clientKey, limit = 24 }) {if (!forgeStoreEnabled()) return [];diff --git a/api/_lib/migrations/20260611120000_usage_events_client_id_drop_fk.sql b/api/_lib/migrations/20260611120000_usage_events_client_id_drop_fk.sqlnew file mode 100644index 000000000..bc9f0d74a--- /dev/null+++ b/api/_lib/migrations/20260611120000_usage_events_client_id_drop_fk.sql@@ -0,0 +1,26 @@+-- usage_events.client_id — drop the oauth_clients foreign key.+--+-- client_id was declared `text references oauth_clients(client_id)` so it could+-- hold the OAuth client principal of an event. But the column is also the+-- natural attribution slot for ANONYMOUS surfaces that have no OAuth client:+--+-- • /forge image→3D writes the anonymous browser-client hash+-- (api/forge.js → vision validate → recordVisionSpend → usage_events)+-- • /guardian/assess writes the caller IP (api/guardian/assess.js)+--+-- Neither value exists in oauth_clients, so every such insert violated the FK+-- (Postgres 23503) and Neon's SQL-over-HTTP returned 400. The write is+-- fire-and-forget (api/_lib/usage.js queues it in a microtask and swallows the+-- error), so it never broke a request — but it spammed prod logs on every+-- forge/guardian call and silently dropped the spend/telemetry row, defeating+-- the LLM cost accounting the usage_events_llm_cost migration added.+--+-- usage_events is an append-only analytics/billing log, not relational data that+-- needs join integrity or cascade. Dropping the FK lets client_id be a free-text+-- attribution label (real OAuth client id for authenticated calls, hash/IP for+-- anonymous ones) and also preserves billing history if an OAuth client is later+-- deleted (the old `on delete set null` would have erased the attribution).+--+-- Idempotent — safe to re-run.++alter table usage_events drop constraint if exists usage_events_client_id_fkey;diff --git a/api/_lib/rate-limit.js b/api/_lib/rate-limit.jsindex 040a61a20..57a5101a5 100644--- a/api/_lib/rate-limit.js+++ b/api/_lib/rate-limit.js@@ -236,6 +236,13 @@ export const limits = {// hourly ceiling per principal. Status polling is cheap and frequent.mcp3dGenerate: (key) =>getLimiter('mcp3d:generate', { limit: 12, window: '1 h', critical: true }).limit(key),+ // Free generation lane (NVIDIA NIM TRELLIS draft). No Replicate/vendor spend,+ // so it gets a much higher per-principal ceiling than the paid bucket and is+ // NON-critical: a Redis outage must never deny a zero-cost generation (fail+ // open), unlike the paid lane which fails closed to protect spend. A real+ // human iterating on a prompt routinely exceeds 12/h; this lane lets them.+ mcp3dGenerateFree: (key) =>+ getLimiter('mcp3d:generate:free', { limit: 60, window: '1 h' }).limit(key),mcp3dStatus: (key) => getLimiter('mcp3d:status', { limit: 240, window: '1 m' }).limit(key),// x402 Bazaar MCP. Discovery calls fan out to external facilitators, so cap// per principal to keep that egress bounded without throttling normal use.diff --git a/api/_lib/usage.js b/api/_lib/usage.jsindex 9a161cd73..a81c71840 100644--- a/api/_lib/usage.js+++ b/api/_lib/usage.js@@ -7,12 +7,18 @@ export function recordEvent(evt) {// Intentionally not awaited in callers; we swallow errors here.queueMicrotask(async () => {try {+ // `client_id` carries a FK to oauth_clients(client_id). Callers that hand+ // us a non-OAuth handle (e.g. /forge's hashed anonymous client key) would+ // otherwise violate the constraint and lose the *entire* spend event. Coerce+ // any value that isn't a registered OAuth client to NULL via a scalar+ // subquery so telemetry is recorded regardless of attribution. The same+ // guard makes a stray null/unknown id a no-op rather than a dropped insert.await withDbRetry(() => sql`insert into usage_events (user_id, api_key_id, client_id, avatar_id, agent_id, kind, tool, status, bytes, latency_ms, meta, provider, model, input_tokens, output_tokens, cost_micro_usd)values (${evt.userId ?? null},${evt.apiKeyId ?? null},- ${evt.clientId ?? null},+ (select client_id from oauth_clients where client_id = ${evt.clientId ?? null}),${evt.avatarId ?? null},${evt.agentId ?? null},${evt.kind},diff --git a/api/_lib/vision.js b/api/_lib/vision.jsindex b5815566e..c6cc29725 100644--- a/api/_lib/vision.js+++ b/api/_lib/vision.js@@ -253,5 +253,6 @@ function recordVisionSpend(provider, usage, latencyMs, track) {clientId: track?.clientId ?? null,apiKeyId: track?.apiKeyId ?? null,tool: track?.tool ?? null,+ meta: track?.meta ?? undefined,});}diff --git a/api/client-errors.js b/api/client-errors.jsindex 672dc0218..8087a6565 100644--- a/api/client-errors.js+++ b/api/client-errors.js@@ -27,6 +27,35 @@ function int(value) {return Number.isFinite(value) ? Math.trunc(value) : undefined;}+// Reports whose page lives on a local dev / sandbox / private-LAN origin are+// tooling noise — failed Vite HMR sockets, headless-audit rejections, localhost+// favicon/glb 404s — and they are indistinguishable from real incidents once+// they hit the prod function logs. The client reporter (public/error-reporter.js)+// already refuses to send from these origins, but a stale dev server serving an+// older bundle, or a headless audit run, can still POST here. Drop them at the+// boundary so prod logs, Sentry, and ops paging only ever see real-user faults.+function isDevOriginPage(page) {+ if (!page) return false;+ let host;+ try {+ host = new URL(page).hostname;+ } catch {+ return false;+ }+ return (+ host === 'localhost' ||+ host === '127.0.0.1' ||+ host === '0.0.0.0' ||+ host === '[::1]' ||+ host === '::1' ||+ host.endsWith('.local') ||+ host.endsWith('.app.github.dev') || // GitHub Codespaces forwarded ports+ host.endsWith('.gitpod.io') ||+ host.endsWith('.csb.app') ||+ /^(10|127)\.|^192\.168\.|^172\.(1[6-9]|2\d|3[01])\./.test(host) // private LAN+ );+}+// Map both CSP report wire formats onto our event shape:// report-uri: { "csp-report": { "violated-directive", "blocked-uri", ... } }// report-to: [ { type: "csp-violation", body: { effectiveDirective, blockedURL, ... } } ]@@ -92,8 +121,15 @@ export default wrap(async (req, res) => {const events = rawEvents.map(sanitizeEvent).filter(Boolean);if (!events.length) return error(res, 400, 'validation_error', 'events array required');+ const page = str(body?.page, LIMITS.url);++ // Acknowledge dev/sandbox-origin batches without logging them. Returning 202+ // (not an error) keeps a stale client from retrying; the events simply never+ // pollute the prod logs / Sentry / ops channel.+ if (isDevOriginPage(page)) return json(res, 202, { received: 0, dropped: events.length });+const context = {- page: str(body?.page, LIMITS.url),+ page,referrer: str(body?.referrer, LIMITS.url),viewport:body?.viewport && typeof body.viewport === 'object'diff --git a/api/forge-creation.js b/api/forge-creation.jsnew file mode 100644index 000000000..d59942b2b--- /dev/null+++ b/api/forge-creation.js@@ -0,0 +1,49 @@+/**+ * Forge creation — a single durable creation, fetched by id for sharing.+ *+ * GET /api/forge-creation?id=<uuid> → { enabled, creation }+ *+ * Unlike /api/forge-gallery (which is scoped to the requesting browser's+ * anonymous client key), this is a PUBLIC read: it returns any finished,+ * durably-stored creation by id so a share-link recipient — who never forged+ * the model and has no matching gallery row — can still view it in the full+ * forge UI. The share page (api/forge-share.js) lands real browsers on+ * /forge?share=<id>, and the page fetches this endpoint to open the model.+ *+ * Only finished creations with a durable glb_url are exposed; in-flight or+ * failed rows return { creation: null }. When persistence isn't configured the+ * endpoint returns { enabled: false, creation: null } so the page degrades+ * cleanly instead of showing a broken state.+ */++import { cors, json, method, wrap, rateLimited } from './_lib/http.js';+import { limits, clientIp } from './_lib/rate-limit.js';+import { getPublicCreation, forgeStoreEnabled } from './_lib/forge-store.js';++const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;++export default wrap(async (req, res) => {+ if (cors(req, res, { methods: 'GET,OPTIONS' })) return;+ if (!method(req, res, ['GET'])) return;++ const rl = await limits.mcp3dStatus(clientIp(req));+ if (!rl.success) {+ return rateLimited(res, rl);+ }++ if (!forgeStoreEnabled()) {+ return json(res, 200, { enabled: false, creation: null });+ }++ const url = new URL(req.url, 'http://localhost');+ const id = url.searchParams.get('id');+ if (!id || !UUID_RE.test(id)) {+ return json(res, 400, { enabled: true, creation: null, error: 'invalid id' });+ }++ const creation = await getPublicCreation({ id });+ if (!creation) {+ return json(res, 404, { enabled: true, creation: null });+ }+ return json(res, 200, { enabled: true, creation });+});diff --git a/api/forge.js b/api/forge.jsindex 74f9a8d23..814a3cc1f 100644--- a/api/forge.js+++ b/api/forge.js@@ -146,11 +146,6 @@ function unconfigured(res) {async function startJob(req, res) {const ip = clientIp(req);- const rl = await limits.mcp3dGenerate(ip);- if (!rl.success) {- return rateLimited(res, rl, 'Generation limit reached. Try again shortly.');- }-const body = await readJson(req, 8_000).catch(() => null);// Two reconstruction modes share this path:@@ -164,6 +159,20 @@ async function startJob(req, res) {const isImageMode = imageUrls.length > 0;const prompt = typeof body?.prompt === 'string' ? body.prompt.trim() : '';+ // Resolve the generation path + tier + backend BEFORE the rate check so the+ // limiter can be lane-aware. The free NVIDIA NIM lane (draft, no vendor spend)+ // gets a generous fail-open bucket; the paid Replicate/BYOK lanes keep the+ // tight critical 12/h ceiling that protects real money. Both still gate the+ // expensive work below (image moderation, FLUX, reconstruction).+ const path = parsePath(body);+ const tier = resolveTier(parseTier(body));+ const backendId = resolveBackendId({ path, tier, backend: body?.backend, userImages: isImageMode });+ const isFreeLane = BACKENDS[backendId]?.free === true;+ const rl = isFreeLane ? await limits.mcp3dGenerateFree(ip) : await limits.mcp3dGenerate(ip);+ if (!rl.success) {+ return rateLimited(res, rl, 'Generation limit reached. Try again shortly.');+ }+if (isImageMode) {if (imageUrls.length > MAX_VIEWS) {return json(res, 400, {@@ -194,7 +203,11 @@ async function startJob(req, res) {// user can override a verdict they disagree with via `skip_validation:true`// (e.g. a stylized reference our checker is too cautious about).if (body?.skip_validation !== true) {- const check = await validateForgeImage(imageUrls[0], { track: { clientId: clientKeyFrom(req) } });+ // The forge client key is a hashed client-supplied header, NOT an OAuth+ // client — it has no row in oauth_clients, so it must never land in the+ // FK-constrained usage_events.client_id (that fails the insert and the+ // whole spend event is silently dropped). Attribute it via meta instead.+ const check = await validateForgeImage(imageUrls[0], { track: { meta: { forgeClient: clientKeyFrom(req) } } });if (!check.ok) {return json(res, 422, {error: 'image_not_usable',@@ -215,17 +228,7 @@ async function startJob(req, res) {}const aspect = VALID_ASPECT.has(body?.aspect_ratio) ? body.aspect_ratio : '1:1';- // Two request axes beyond input mode: which generation path (image-- // intermediate vs geometry-first) and which quality tier (poly budget).- const path = parsePath(body);- const tier = resolveTier(parseTier(body));- // Tier matters to backend selection: the draft tier routes to the free NVIDIA- // NIM lane first (when configured) per the platform free-first policy.- // `userImages` keeps photo submissions off text-only backends — NVIDIA's- // hosted TRELLIS preview rejects every user-image input, so a defaulted photo- // draft transparently uses the standing image engine instead.- const backendId = resolveBackendId({ path, tier, backend: body?.backend, userImages: isImageMode });-+ // path / tier / backendId were resolved above (the rate limiter is lane-aware).// An explicitly selected text-only backend can't serve a photo submission —// say so plainly rather than failing upstream with an opaque 422.if (isImageMode && BACKENDS[backendId]?.userImages === false) {diff --git a/chat/src/Message.svelte b/chat/src/Message.svelteindex 3c2094e4e..a91f2486f 100644--- a/chat/src/Message.svelte+++ b/chat/src/Message.svelte@@ -1,3 +1,13 @@+<script context="module">+ // Remembered position (in scroll-content space, so it's scroll-independent) of+ // the avatar slot the agent last stood in. When a new assistant message mounts+ // its own <agent-3d>, we use this to walk the avatar down from where it was to+ // the new slot instead of having it pop into place. Module-scoped so it+ // survives the per-message remount of the avatar.+ let prevAgentSlotY = null;+ const WALK_IN_MS = 820;+</script>+<script>import { createEventDispatcher, tick } from 'svelte';import { fly } from 'svelte/transition';@@ -32,8 +42,67 @@const dispatch = createEventDispatcher();let agentEl;+ let agentSlotEl;+ let agentWalkedIn = false;let lastReactedToUserId = null;+ // Position of the avatar slot within the scroll container's content, immune to+ // scrolling so the walk distance between two messages stays correct.+ function slotContentY(slot) {+ const scroller = slot.closest('.scrollable');+ if (!scroller) return null;+ return slot.getBoundingClientRect().top - scroller.getBoundingClientRect().top + scroller.scrollTop;+ }++ // Walk the avatar down from the previous message's slot into this one. The slot+ // stays hidden until the agent's GLB is ready, then it appears at the old+ // position and glides to its resting spot while the walk clip plays — so the+ // agent looks like it strolled to the new message rather than teleporting.+ function walkAgentIntoPlace(slot, el) {+ if (!slot || !el) return;+ const y = slotContentY(slot);+ if (y == null) { slot.style.opacity = '1'; return; }+ const from = prevAgentSlotY;+ prevAgentSlotY = y;++ const dy = from == null ? 0 : from - y;+ const reduced = window.matchMedia('(prefers-reduced-motion: reduce)').matches;+ if (!dy || reduced) {+ slot.style.opacity = '1';+ return;+ }++ try { el.play?.('walk', { loop: true }); } catch {}+ slot.style.transition = 'none';+ slot.style.transform = `translateY(${dy}px)`;+ slot.style.zIndex = '40';+ slot.style.opacity = '1';+ void slot.offsetHeight; // flush the starting position before animating+ slot.style.transition = `transform ${WALK_IN_MS}ms cubic-bezier(0.22, 0.61, 0.36, 1)`;+ slot.style.transform = 'translateY(0)';++ const done = (ev) => {+ if (ev && ev.propertyName !== 'transform') return;+ slot.removeEventListener('transitionend', done);+ slot.style.transition = '';+ slot.style.transform = '';+ slot.style.zIndex = '';+ if (!generating) { try { el.play?.('idle', { loop: true }); } catch {} }+ };+ slot.addEventListener('transitionend', done);+ setTimeout(() => done(), WALK_IN_MS + 120); // safety net if transitionend is missed+ }++ $: if (agentEl && agentSlotEl && !agentWalkedIn) {+ agentWalkedIn = true;+ const slot = agentSlotEl;+ const run = () => walkAgentIntoPlace(slot, agentEl);+ if (agentEl._mounted) run();+ else agentEl.addEventListener('agent:ready', run, { once: true });+ // Never leave the slot stuck invisible if the avatar fails to load.+ setTimeout(() => { if (slot && slot.style.opacity === '0') slot.style.opacity = '1'; }, 6000);+ }+function faceCamera(el) {const apply = () => {const content = el?._viewer?.content;@@ -255,7 +324,7 @@: 'flex h-8 w-8 md:h-9 md:w-9'}">{#if message.role === 'assistant' && hasLogo && isLatestAssistant}- <span class="w-full h-full overflow-hidden inline-block shrink-0 rounded-[inherit]">+ <span bind:this={agentSlotEl} class="w-full h-full overflow-hidden inline-block shrink-0 rounded-[inherit] will-change-transform" style="opacity:0;"><!-- svelte-ignore custom-element-no-implicit-ns --><agent-3dbind:this={agentEl}diff --git a/data/changelog.json b/data/changelog.jsonindex 458710c07..9f4868e44 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,25 @@{"$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. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-06-11",+ "title": "Your chat agent now walks to each new reply instead of popping in",+ "summary": "When you send a message in chat, the 3D agent used to vanish from its old spot and pop into place beside the new reply. Now it walks down the conversation to the new message — appearing where it last stood and gliding into its place with its walking animation playing, so it feels like a character moving through the chat rather than teleporting. The motion respects your system's reduced-motion setting (it simply appears, no slide, if you've asked for less animation), and the very first reply just settles in since there's nowhere to walk from.",+ "tags": [+ "improvement"+ ],+ "link": "/chat"+ },+ {+ "date": "2026-06-11",+ "title": "Forge share links now open your creation for anyone you send them to",+ "summary": "When you share a model from Forge, the person who opens the link now sees your actual creation — the 3D model loads straight into the viewer, ready to spin, inspect, and download. Previously a share link only worked for the person who forged the model, because Forge only looked in your own browser's history; recipients landed on an empty Forge. Now the page fetches the shared model by its link and shows it to anyone, even if they've never used Forge before. If a link points to a model that was removed or is still generating, you get a clear message instead of a blank screen.",+ "tags": [+ "fix",+ "improvement"+ ],+ "link": "/forge"+ },{"date": "2026-06-11","title": "Light theme is here — flip the whole site with one tap",diff --git a/public/changelog.json b/public/changelog.jsonindex 290c8407d..6b288a234 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-11T12:56:50.996Z",+ "generated_at": "2026-06-11T14:09:13.221Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -111,6 +111,17 @@"fix"]},+ {+ "date": "2026-06-11",+ "type": "update",+ "title": "Forge share links now open your creation for anyone you send them to",+ "summary": "When you share a model from Forge, the person who opens the link now sees your actual creation — the 3D model loads straight into the viewer, ready to spin, inspect, and download. Previously a share link only worked for the person who forged the model, because Forge only looked in your own browser's history; recipients landed on an empty Forge. Now the page fetches the shared model by its link and shows it to anyone, even if they've never used Forge before. If a link points to a model that was removed or is still generating, you get a clear message instead of a blank screen.",+ "link": "/forge",+ "tags": [+ "fix",+ "improvement"+ ]+ },{"date": "2026-06-11","type": "update",@@ -238,6 +249,16 @@"fix"]},+ {+ "date": "2026-06-11",+ "type": "update",+ "title": "Your chat agent now walks to each new reply instead of popping in",+ "summary": "When you send a message in chat, the 3D agent used to vanish from its old spot and pop into place beside the new reply. Now it walks down the conversation to the new message — appearing where it last stood and gliding into its place with its walking animation playing, so it feels like a character moving through the chat rather than teleporting. The motion respects your system's reduced-motion setting (it simply appears, no slide, if you've asked for less animation), and the very first reply just settles in since there's nowhere to walk from.",+ "link": "/chat",+ "tags": [+ "improvement"+ ]+ },{"date": "2026-06-10","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 158ed5014..7b759ac29 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -86,6 +86,14 @@<category>improvement</category><description>The on-chain agents directory now loads from our server-side index instead of contacting every agent's metadata host from your browser — pages render faster and no longer spray network errors. Also: the pump.fun cockpit's sidebar pages are now shareable deep links, mobile nav and footer links meet touch-target guidelines, anonymous visitors no longer trigger failed sign-in requests on Walk and Create, and assorted dead links were removed.</description></item>+ <item>+ <title>Forge share links now open your creation for anyone you send them to</title>+ <link>https://three.ws/forge</link>+ <guid isPermaLink="false">2026-06-11:Forge share links now open your creation for anyone you send them to</guid>+ <pubDate>Thu, 11 Jun 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>When you share a model from Forge, the person who opens the link now sees your actual creation — the 3D model loads straight into the viewer, ready to spin, inspect, and download. Previously a share link only worked for the person who forged the model, because Forge only looked in your own browser's history; recipients landed on an empty Forge. Now the page fetches the shared model by its link and shows it to anyone, even if they've never used Forge before. If a link points to a model that was removed or is still generating, you get a clear message instead of a blank screen.</description>+ </item><item><title>Free 3D drafts on Forge</title><link>https://three.ws/forge</link>@@ -182,6 +190,14 @@<category>fix</category><description>Fixed two provider regressions that blocked Forge generation: model submissions now pin the latest published model version automatically, and the text-to-image step falls back to a healthy provider instead of failing when the preferred one is misconfigured.</description></item>+ <item>+ <title>Your chat agent now walks to each new reply instead of popping in</title>+ <link>https://three.ws/chat</link>+ <guid isPermaLink="false">2026-06-11:Your chat agent now walks to each new reply instead of popping in</guid>+ <pubDate>Thu, 11 Jun 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>When you send a message in chat, the 3D agent used to vanish from its old spot and pop into place beside the new reply. Now it walks down the conversation to the new message — appearing where it last stood and gliding into its place with its walking animation playing, so it feels like a character moving through the chat rather than teleporting. The motion respects your system's reduced-motion setting (it simply appears, no slide, if you've asked for less animation), and the very first reply just settles in since there's nowhere to walk from.</description>+ </item><item><title>WebRTC relay and x402 telemetry</title><link>https://three.ws/changelog</link>diff --git a/public/error-reporter.js b/public/error-reporter.jsindex c50b6968d..6414efac4 100644--- a/public/error-reporter.js+++ b/public/error-reporter.js@@ -21,6 +21,30 @@if (win.__threeErrorReporter) return;win.__threeErrorReporter = true;+ // The reporter exists to surface *production* faults. In local dev and sandbox+ // previews (Codespaces, Gitpod, LAN) the Vite dev server proxies every /api/*+ // call straight to production, so a POST here would inject localhost noise —+ // failed Vite HMR sockets, headless-audit rejections — into the prod function+ // logs where it's indistinguishable from real incidents. Disable the whole+ // pipeline on those origins; the browser console already shows dev errors.+ const host = location.hostname;+ const IS_DEV_HOST =+ host === 'localhost' ||+ host === '127.0.0.1' ||+ host === '0.0.0.0' ||+ host === '[::1]' ||+ host === '::1' ||+ host.endsWith('.local') ||+ host.endsWith('.app.github.dev') || // GitHub Codespaces forwarded ports+ host.endsWith('.gitpod.io') ||+ host.endsWith('.csb.app') ||+ /^(10|127)\.|^192\.168\.|^172\.(1[6-9]|2\d|3[01])\./.test(host); // private LAN+ if (IS_DEV_HOST) {+ // Keep the manual hook callable so app code that invokes it never throws.+ win.reportClientError = () => {};+ return;+ }+const ENDPOINT = '/api/client-errors';const MAX_EVENTS_PER_PAGE = 25; // hard cap so an error loop can't flood the APIconst MAX_PER_SIGNATURE = 3; // identical errors beyond this only bump `count`@@ -48,6 +72,18 @@// GPU blocklist, headless. It degrades to its poster on its own; the throw is// neither our bug nor fixable from here, so it only adds noise.const IGNORED_THIRD_PARTY_CODE = /ajax\.googleapis\.com\/ajax\/libs\/model-viewer\//;+ // Expiring signed URLs embedded in user-generated feed data: GitHub+ // private-user-images, S3/GCS presigned links, and anything carrying a+ // short-lived JWT/signature. The token lapses on a timer, so the asset 404s+ // through no fault of our code, and the UI already swaps in an onerror+ // fallback tile. These are guaranteed-transient and non-actionable.+ const IGNORED_EPHEMERAL_ASSETS =+ /private-user-images\.githubusercontent\.com|[?&](jwt|X-Amz-Signature|X-Goog-Signature|Expires|Signature)=/i;+ // Vite's HMR client (and React Fast Refresh) raise dev-only rejections such as+ // "WebSocket closed without opened" when the HMR socket can't connect. These+ // only ever occur off a dev build; on the off chance a preview surfaces one,+ // it is tooling noise, never a product fault.+ const IGNORED_DEV_TOOLING = /\/@vite\/client|\/@react-refresh|vite\/dist\/client/;const truncate = (value, max) => {if (typeof value !== 'string' || !value) return undefined;@@ -128,6 +164,13 @@) {return true;}+ // Dev-tooling rejections (Vite HMR / Fast Refresh) — never a product fault.+ if (+ IGNORED_DEV_TOOLING.test(report.source || '') ||+ IGNORED_DEV_TOOLING.test(report.stack || '')+ ) {+ return true;+ }// A failed service-worker *registration* ("Script …/sw.js load failed") is// a transient network/iOS-Safari hiccup; VitePWA's autoUpdate re-registers// on the next visit, so it self-heals — noise, not an actionable fault.@@ -137,6 +180,8 @@if (report.type === 'resource' && report.source) {// Privacy-blocker-killed analytics — expected, not actionable.if (IGNORED_RESOURCE_SOURCES.test(report.source)) return true;+ // Expired signed URLs on third-party user-content — transient by design.+ if (IGNORED_EPHEMERAL_ASSETS.test(report.source)) return true;// An <img src=""> (or a src that resolves to the page itself) is an// element with no real source, not a missing asset. The browser still// fires a load error for it; classify it as benign rather than a 404.diff --git a/public/features.json b/public/features.jsonindex eedc3e79b..f85985462 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-11T12:56:50.953Z",+ "generated_at": "2026-06-11T14:09:13.211Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/scripts/.smoke-t15-photo-burst.mjs b/scripts/.smoke-t15-photo-burst.mjsnew file mode 100644index 000000000..0b6d79850--- /dev/null+++ b/scripts/.smoke-t15-photo-burst.mjs@@ -0,0 +1,69 @@+#!/usr/bin/env node+// Photo→3D leg, tight-burst variant: poll every 2.5s to catch a transient slot+// opening on the saturated shared-IP forge limiter. Stops on first non-429 and+// runs the full poll+verify. Bounded to ~maxAttempts.+const BASE = (process.argv[2] || 'https://three.ws').replace(/\/$/, '');+const PHOTO = `${BASE}/accessories/thumbs/hat-cowboy.png`;+const MAX_ATTEMPTS = Number(process.argv[3] || 150);+const now = () => Date.now();+const sleep = (ms) => new Promise((r) => setTimeout(r, ms));++async function submitBurst(body, label) {+ let lastRA = null;+ for (let attempt = 1; attempt <= MAX_ATTEMPTS; attempt++) {+ const t0 = now();+ const res = await fetch(`${BASE}/api/forge`, { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify(body) });+ const text = await res.text();+ let json; try { json = JSON.parse(text); } catch { throw new Error(`${label}: non-JSON ${res.status}: ${text.slice(0, 300)}`); }+ if (res.status === 429) {+ if (json.retry_after !== lastRA) { console.log(`[${label}] 429 ra=${json.retry_after}s (attempt ${attempt}) @ ${new Date().toISOString()}`); lastRA = json.retry_after; }+ await sleep(2500); continue;+ }+ if (!res.ok) throw new Error(`${label}: submit ${res.status} — ${JSON.stringify(json)}`);+ console.log(`[${label}] GOT THROUGH attempt ${attempt} in ${now() - t0}ms → status=${json.status} backend=${json.backend} tier=${json.tier} path=${json.path} eta=${json.eta_seconds}s`);+ return { json, t0 };+ }+ throw new Error(`${label}: rate-limited after ${MAX_ATTEMPTS} tight attempts`);+}++async function poll({ json, t0 }, label) {+ let state = json;+ const deadline = now() + 6 * 60 * 1000;+ while (state.status !== 'done') {+ if (state.status === 'failed') throw new Error(`${label}: failed — ${state.error || 'unknown'}`);+ if (now() > deadline) throw new Error(`${label}: poll timeout (last=${state.status})`);+ await sleep(4000);+ const res = await fetch(`${BASE}/api/forge?job=${encodeURIComponent(json.job_id)}`);+ const t = await res.text();+ try { state = JSON.parse(t); } catch { throw new Error(`${label}: non-JSON poll ${res.status}: ${t.slice(0, 200)}`); }+ if (!res.ok) throw new Error(`${label}: poll ${res.status} — ${JSON.stringify(state)}`);+ process.stdout.write(` [${label}] ${Math.round((now() - t0) / 1000)}s ${state.status} (backend=${state.backend}) \r`);+ }+ if (!state.glb_url) throw new Error(`${label}: done but no glb_url`);+ console.log(`\n[${label}] DONE ${((now() - t0) / 1000).toFixed(1)}s backend=${state.backend} durable=${state.durable} → ${state.glb_url}`);+ return { glbUrl: state.glb_url, backend: state.backend, sec: (now() - t0) / 1000 };+}++async function verifyGlb(url, label) {+ const res = await fetch(url);+ if (!res.ok) throw new Error(`${label}: GLB fetch ${res.status}`);+ const buf = Buffer.from(await res.arrayBuffer());+ const magic = buf.subarray(0, 4).toString('ascii');+ const version = buf.readUInt32LE(4);+ const declaredLen = buf.readUInt32LE(8);+ if (magic !== 'glTF') throw new Error(`${label}: not glTF (magic="${magic}")`);+ if (version !== 2) throw new Error(`${label}: glTF v${version}`);+ if (declaredLen !== buf.length) throw new Error(`${label}: length mismatch decl=${declaredLen} actual=${buf.length}`);+ console.log(`[${label}] GLB OK: glTF v2, ${(buf.length / 1024).toFixed(0)} KB, length self-consistent`);+ return buf.length;+}++async function run() {+ console.log(`Photo→3D tight-burst @ ${BASE}, image=${PHOTO}, maxAttempts=${MAX_ATTEMPTS}\n`);+ const photo = await submitBurst({ image_urls: [PHOTO], tier: 'draft', prompt: 'a cowboy hat' }, 'photo→3D');+ if (photo.json.backend === 'nvidia') throw new Error('photo→3D routed to nvidia (text-only) — routing bug');+ const r = await poll(photo, 'photo→3D');+ const bytes = await verifyGlb(r.glbUrl, 'photo→3D');+ console.log(`\n=== PHOTO LEG PASSED ===\nphoto→3D: backend=${r.backend} ${r.sec.toFixed(1)}s ${(bytes / 1024).toFixed(0)} KB`);+}+run().catch((e) => { console.error(`\n=== PHOTO LEG FAILED ===\n${e.message}`); process.exit(1); });diff --git a/src/forge.js b/src/forge.jsindex c986c90ac..cf5df3cd0 100644--- a/src/forge.js+++ b/src/forge.js@@ -849,23 +849,7 @@ async function loadGallery() {meta.textContent = c.prompt || 'Untitled';card.appendChild(meta);- card.addEventListener('click', () => {- currentCreationId = c.id;- lastJob = { prompt: c.prompt || '', imageUrls: [] };- showResult(c.glb_url, c.prompt || 'Forged model', {- views_used: c.views_used,- multiview: c.multiview,- backend: c.backend,- tier: c.tier,- path: c.path,- });- if (els.verdict) {- for (const b of els.verdict.querySelectorAll('button')) {- b.setAttribute('aria-pressed', String(b.dataset.outcome === c.outcome));- }- }- els.stage.scrollIntoView({ behavior: 'smooth', block: 'start' });- });+ card.addEventListener('click', () => openCreation(c));els.creationsGrid.appendChild(card);}@@ -873,6 +857,56 @@ async function loadGallery() {els.creations.classList.remove('is-hidden');}+// Load a creation into the viewer — shared by gallery card clicks and the+// share-link path. `c` is a creation row from /api/forge-gallery or+// /api/forge-creation; both return the same shape.+function openCreation(c, { scroll = true } = {}) {+ currentCreationId = c.id;+ lastJob = { prompt: c.prompt || '', imageUrls: [] };+ showResult(c.glb_url, c.prompt || 'Forged model', {+ views_used: c.views_used,+ multiview: c.multiview,+ backend: c.backend,+ tier: c.tier,+ path: c.path,+ });+ if (els.verdict) {+ for (const b of els.verdict.querySelectorAll('button')) {+ b.setAttribute('aria-pressed', String(b.dataset.outcome === c.outcome));+ }+ }+ if (scroll) els.stage.scrollIntoView({ behavior: 'smooth', block: 'start' });+}++// Open a creation from a share link. The model belongs to whoever forged it, so+// it won't be in this browser's gallery — fetch it directly by id. If the card+// is already present (the owner re-opening their own share link), reuse it.+async function openSharedCreation(shareId) {+ const card = els.creationsGrid?.querySelector(`[data-creation-id="${shareId}"]`);+ if (card) {+ card.click();+ card.scrollIntoView({ behavior: 'smooth', block: 'center' });+ return;+ }+ let creation = null;+ try {+ const res = await fetch(`/api/forge-creation?id=${encodeURIComponent(shareId)}`, {+ headers: CLIENT_HEADERS,+ });+ const data = await res.json().catch(() => ({}));+ creation = data?.creation || null;+ } catch {+ creation = null;+ }+ if (creation?.glb_url) {+ openCreation(creation);+ } else {+ showError(+ "This shared creation isn't available — it may have been removed or is still generating.",+ );+ }+}+function showError(message, { allowOverride = false } = {}) {stopElapsed();els.errorMessage.textContent = message;@@ -1188,10 +1222,5 @@ loadCatalog();// Surface any previously forged models for this browser on load.loadGallery().then(() => {const shareId = window.__forgeShareId;- if (!shareId) return;- const card = els.creationsGrid?.querySelector(`[data-creation-id="${shareId}"]`);- if (card) {- card.click();- card.scrollIntoView({ behavior: 'smooth', block: 'center' });- }+ if (shareId) openSharedCreation(shareId);});diff --git a/tests/api/client-errors.test.js b/tests/api/client-errors.test.jsindex 201e23e85..ce6ea2a55 100644--- a/tests/api/client-errors.test.js+++ b/tests/api/client-errors.test.js@@ -248,6 +248,39 @@ describe('api/client-errors', () => {expect(logged.message).toBe('CSP violation: object-src');});+ it('drops dev/localhost-origin batches without logging, Sentry, or ops paging', async () => {+ for (const page of [+ 'http://localhost:5191/xr.html',+ 'http://127.0.0.1:4317/dashboard/',+ 'https://glorious-space-fishstick-x.app.github.dev/create',+ 'http://192.168.1.20:3000/',+ ]) {+ captureException.mockClear();+ sendOpsAlert.mockClear();+ consoleError.mockClear();+ const { status, body } = await invoke({+ body: {+ page,+ events: [errorEvent(), errorEvent({ type: 'unhandledrejection', message: 'WebSocket closed without opened.' })],+ },+ });+ expect(status).toBe(202);+ expect(body.received).toBe(0);+ expect(body.dropped).toBe(2);+ expect(consoleError.mock.calls.filter(([tag]) => tag === '[client-error]')).toHaveLength(0);+ expect(captureException).not.toHaveBeenCalled();+ expect(sendOpsAlert).not.toHaveBeenCalled();+ }+ });++ it('still ingests a real prod-origin batch (dev filter does not over-match)', async () => {+ const { status, body } = await invoke({+ body: { page: 'https://three.ws/play', events: [errorEvent()] },+ });+ expect(status).toBe(202);+ expect(body.received).toBe(1);+ });+it('returns 429 with Retry-After when the IP is rate limited', async () => {state.rateLimited = true;const { status, body, res } = await invoke({ body: { events: [errorEvent()] } });