Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
fix(create): land the create page follow-up with this batch's changelog entry
nirholas84410bc87a19
diff --git a/data/changelog.json b/data/changelog.jsonindex 961bfe6fd..7a78fc5ec 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,16 @@{"$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-08-17",+ "title": "Cosmos tells you when world generation is offline instead of showing you NVIDIA's internal error",+ "summary": "The Cosmos page asked NVIDIA for a world and, when NVIDIA had retired the model behind that endpoint, printed the vendor's raw reply straight into the banner: a function id, our account id, and a Retry button for a request that could never succeed. That failure is now recognised for what it is. The lane tries each published Cosmos world model in turn, and only when every one is gone does it report itself offline, with a plain sentence, the living aurora backdrop still running behind your avatar, and no button that pretends the next click will work. A dropped connection still gets a real Retry, because that one can. Alongside that: the stage no longer overflows its column on a phone (it was rendered 672px wide inside a 320px screen, clipping the avatar) and now stands portrait on small screens so your character has room; a clip that arrives but will not play says so instead of leaving a finished stage with nothing in it; the Share button copies a link that actually carries the world, so whoever opens it sees the scene playing rather than an empty stage with the prompt refilled; a community avatar whose thumbnail has been deleted falls back to its initial instead of a broken image; the status dot no longer claims the lane is healthy before anything has been asked of it; and a job the service can no longer track ends promptly rather than spinning for five minutes.",+ "tags": [+ "fix",+ "improvement"+ ],+ "link": "/cosmos"+ },{"date": "2026-08-17","title": "Compare Coins now tells you when a coin will not load instead of shimmering forever",diff --git a/src/create.js b/src/create.jsindex 6ec78baf0..25de935c1 100644--- a/src/create.js+++ b/src/create.js@@ -39,27 +39,81 @@ function requireAuthForSelfie() {// Probe runtime feature flags. Selfie reconstruction is always available// (BYOK providers are always an option); only video avatar is gated on an// optional Cloud Run worker.-let _videoAvatarReady = false;-async function probeFeatures() {+//+// Three states, not a boolean: "the probe never answered" is not the same+// answer as "the worker is off". Collapsing them brands a live lane "coming+// soon" for anyone who loaded the page during a network blip, with no way back+// short of a reload. 'unknown' keeps the card live and re-asks on activation.+/** @type {'ready' | 'unavailable' | 'unknown'} */+let _videoAvatar = 'unknown';++async function probeVideoAvatar() {try {const r = await fetch('/api/config', { credentials: 'omit' });- if (!r.ok) return;+ if (!r.ok) return 'unknown';const j = await r.json();- _videoAvatarReady = j?.features?.videoAvatar === true;+ return j?.features?.videoAvatar === true ? 'ready' : 'unavailable';} catch {- // network blip — keep defaults.+ return 'unknown';}- if (!_videoAvatarReady) markVideoAvatarUnavailable();}+async function probeFeatures() {+ _videoAvatar = await probeVideoAvatar();+ if (_videoAvatar === 'unavailable') markVideoAvatarUnavailable();+}++// The dimmed card has to say why it is dimmed. The title carries a data-i18n+// annotation, so runtime i18n reclaims anything written into it; the state goes+// into a chip and the CTA label instead, both of which the catalog never owns.function markVideoAvatarUnavailable() {const card = document.getElementById('card-video-avatar');- if (!card) return;+ if (!card || card.dataset.unavailable === '1') return;+ card.dataset.unavailable = '1';card.setAttribute('aria-disabled', 'true');+ card.setAttribute(+ 'aria-label',+ 'Talking avatar video: coming soon, this lane is not live yet',+ );card.style.opacity = '0.45';card.style.cursor = 'not-allowed';- const title = card.querySelector('.card-title');- if (title) title.textContent = 'Talking avatar video · coming soon';++ const meta = document.getElementById('card-video-avatar-meta');+ if (meta && !meta.querySelector('.chip-soon')) {+ const chip = document.createElement('span');+ chip.className = 'chip chip-soon';+ chip.textContent = 'Coming soon';+ meta.prepend(chip);+ }+ const cta = document.getElementById('card-video-avatar-cta');+ if (cta) cta.textContent = 'Coming soon';+}++// Activation handler for the video-avatar card, shared by pointer and keyboard.+// 'unknown' means the boot probe never got an answer, so ask again on the click+// rather than refusing a lane that may well be live.+async function openVideoAvatar() {+ if (_videoAvatar === 'unknown') {+ showStatus('Checking whether talking avatar video is available…', 'loading');+ _videoAvatar = await probeVideoAvatar();+ if (_videoAvatar === 'unavailable') markVideoAvatarUnavailable();+ if (_videoAvatar === 'unknown') {+ showStatus(+ 'Could not reach three.ws to check this feature. Check your connection and try again.',+ 'error',+ );+ return;+ }+ }+ if (_videoAvatar === 'unavailable') {+ showStatus('Talking avatar video is coming soon. Stay tuned.', 'info');+ return;+ }+ if (window.__authed === false) {+ window.location.replace(`/login?next=${encodeURIComponent('/create/video')}`);+ return;+ }+ window.location.href = '/create/video';}async function handleFork(avatarId) {@@ -110,17 +164,71 @@ async function handleFork(avatarId) {} catch (err) {hideSaveOverlay();log.error('[create] fork failed:', err);- showStatus(err.message || 'Could not remix this avatar. Try again.', 'error');+ showFatal({+ title: 'That remix could not be loaded',+ body: `${err.message || 'Could not remix this avatar.'} The original may have been deleted or made private. Every other way to create is still open below.`,+ retryLabel: 'Try the remix again',+ onRetry: () => handleFork(avatarId),+ });}}-async function boot() {- const forkId = new URLSearchParams(location.search).get('fork');- if (forkId) {- await handleFork(forkId);- return;+// Hard failures render into #create-alert-slot, not the 4.5s toast: a visitor+// who arrived on a ?fork= link and hit an error has nothing else on screen to+// act on, so the message has to persist and carry its own way forward.+function showFatal({ title, body, retryLabel, onRetry }) {+ const slot = document.getElementById('create-alert-slot');+ if (!slot) return;+ slot.replaceChildren();++ const box = document.createElement('div');+ box.className = 'create-alert';++ const h = document.createElement('p');+ h.className = 'create-alert-title';+ h.innerHTML =+ '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 7.5v5.5"/><path d="M12 16.5h.01"/></svg>';+ h.append(title);++ const p = document.createElement('p');+ p.className = 'create-alert-body';+ p.textContent = body;++ const actions = document.createElement('div');+ actions.className = 'create-alert-actions';++ if (onRetry) {+ const retry = document.createElement('button');+ retry.type = 'button';+ retry.className = 'create-alert-btn create-alert-btn--primary';+ retry.textContent = retryLabel || 'Try again';+ retry.addEventListener('click', () => {+ slot.replaceChildren();+ onRetry();+ });+ actions.appendChild(retry);}+ const dismiss = document.createElement('button');+ dismiss.type = 'button';+ dismiss.className = 'create-alert-btn';+ dismiss.textContent = 'Start something new instead';+ dismiss.addEventListener('click', () => {+ slot.replaceChildren();+ // Drop ?fork= so a reload does not replay the failure.+ const url = new URL(window.location.href);+ url.searchParams.delete('fork');+ history.replaceState(null, '', url.pathname + url.search + url.hash);+ document.getElementById('card-default-editor')?.focus();+ });+ actions.appendChild(dismiss);++ box.append(h, p, actions);+ slot.appendChild(box);+ box.scrollIntoView({ block: 'nearest', behavior: 'smooth' });+}++async function boot() {probeFeatures();const creator = new AvatarCreator(document.body, (blob, meta = {}) => {const provider = meta.provider || 'avaturn';@@ -163,17 +271,7 @@ async function boot() {if (await isAtAvatarLimit()) return;window.location.href = '/create/prompt';});- wireCard('card-video-avatar', () => {- if (!_videoAvatarReady) {- showStatus('Talking avatar video is coming soon — stay tuned.', 'info');- return;- }- if (window.__authed === false) {- window.location.replace(`/login?next=${encodeURIComponent('/create/video')}`);- return;- }- window.location.href = '/create/video';- });+ wireCard('card-video-avatar', () => openVideoAvatar());wireCard('card-cosmos', () => {window.location.href = '/cosmos';});