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
chore: update dashboard, avatar page, wallet, and memory-seed modules; refresh changelog and features data
nirholas52d33d630888
diff --git a/public/changelog.json b/public/changelog.jsonindex 5a778599c..eb27ee604 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-11T01:57:06.067Z",+ "generated_at": "2026-06-11T02:00:24.965Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",diff --git a/public/features.json b/public/features.jsonindex 54c5374b3..3bcbd78fc 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-11T01:57:06.052Z",+ "generated_at": "2026-06-11T02:00:24.953Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/src/a-me.js b/src/a-me.jsindex 1d135e42c..b766ba9ff 100644--- a/src/a-me.js+++ b/src/a-me.js@@ -336,11 +336,15 @@ function renderAvatarCards(host, avatars, agents) {if (!btn) return;if (btn.dataset.action === 'share') handleShare(btn.dataset.avatarId, btn.dataset.name);if (btn.dataset.action === 'selfie') {- const { openSelfieModal } = await import('./selfie-modal.js');- const result = await openSelfieModal({ existingAvatarId: btn.dataset.avatarId });- if (result?.avatarId) {- toast('Avatar updated from selfie');- setTimeout(() => location.reload(), 1200);+ try {+ const { openSelfieModal } = await import('./selfie-modal.js');+ const result = await openSelfieModal({ existingAvatarId: btn.dataset.avatarId });+ if (result?.avatarId) {+ toast('Avatar updated from selfie');+ setTimeout(() => location.reload(), 1200);+ }+ } catch {+ toast('Could not open the selfie tool — check your connection and try again.');}}});diff --git a/src/agent-solana-wallet.js b/src/agent-solana-wallet.jsindex ae97bd4ce..eaf423918 100644--- a/src/agent-solana-wallet.js+++ b/src/agent-solana-wallet.js@@ -288,7 +288,14 @@ export function mountAgentSolanaWalletCard({ panel, identity, onProvisioned }) {if (!state.address) return;// Host detached (route changed, parent re-rendered) — tear down and exit.if (!wrapper.isConnected) { stopBalancePoll(); return; }- const r = await fetchAgentSolanaWallet(identity.id, state.network);+ let r;+ try {+ r = await fetchAgentSolanaWallet(identity.id, state.network);+ } catch {+ // Transient network failure mid-poll — keep the last good balance;+ // the next poll tick (or a manual refresh) retries.+ return;+ }// Session lost or ownership revoked mid-poll — stop hammering the API.if (r.status === 'forbidden') { stopBalancePoll(); return; }if (r.status === 'ok') {diff --git a/src/avatar-page.js b/src/avatar-page.jsindex df5a941f2..98c051e88 100644--- a/src/avatar-page.js+++ b/src/avatar-page.js@@ -11,7 +11,7 @@ import { openTalkMode } from './voice/talk-mode.js';import { downloadAvatar } from './avatar-export.js';import { fbxFromUrl } from './remesh-convert.js';import { log } from './shared/log.js';-import { emptyStateHTML } from './shared/state-kit.js';+import { emptyStateHTML, errorStateHTML } from './shared/state-kit.js';import { mountViewSwitcher } from './view-switcher.js';const ATTACHED_KEY_PREFIX = 'avatar_attached_v1:';@@ -975,7 +975,17 @@ function playClipByHint(hints, { loop = false } = {}) {async function loadPlugins() {const list = $('av-plugins-list');if (!list) return;- const plugins = await fetchPlugins();+ let plugins;+ try {+ plugins = await fetchPlugins();+ } catch {+ list.innerHTML = errorStateHTML({+ title: 'Plugins unavailable',+ body: 'The plugin list could not be loaded. Check your connection and try again.',+ });+ list.querySelector('[data-sk-retry]')?.addEventListener('click', loadPlugins, { once: true });+ return;+ }if (!plugins.length) {list.innerHTML = emptyStateHTML({compact: true,@@ -1375,9 +1385,14 @@ async function loadUsedBy() {const section = $('av-used-by');if (!grid || !section) return;- const r = await fetch(`/api/avatars/${encodeURIComponent(avatarId)}/agents`);- if (!r.ok) return;- const { agents } = await r.json();+ let agents;+ try {+ const r = await fetch(`/api/avatars/${encodeURIComponent(avatarId)}/agents`);+ if (!r.ok) return;+ ({ agents } = await r.json());+ } catch {+ return; // optional section — stays hidden on network failure+ }if (!Array.isArray(agents) || agents.length === 0) return;section.hidden = false;@@ -1403,7 +1418,12 @@ async function loadUsedBy() {// ── Related avatars ───────────────────────────────────────────────────async function loadRelated() {- const items = await fetchRelated();+ let items;+ try {+ items = await fetchRelated();+ } catch {+ return; // optional below-the-fold section — stays hidden on network failure+ }if (!items.length) return;const grid = $('av-related-grid');if (!grid) return;diff --git a/src/dashboard/dashboard.js b/src/dashboard/dashboard.jsindex 70324fec4..ac19ef1b6 100644--- a/src/dashboard/dashboard.js+++ b/src/dashboard/dashboard.js@@ -1267,14 +1267,20 @@ async function loadXReviews(host) {btn.addEventListener('click', async () => {const id = btn.getAttribute('data-approve');btn.disabled = true;- const r = await fetch(`/api/x/reviews?id=${encodeURIComponent(id)}`, {- method: 'PATCH',- credentials: 'include',- headers: { 'content-type': 'application/json' },- body: JSON.stringify({ action: 'approve', append_link: true }),- });- if (!r.ok) {- alert((await r.json()).error_description || 'approve failed');+ try {+ const r = await fetch(`/api/x/reviews?id=${encodeURIComponent(id)}`, {+ method: 'PATCH',+ credentials: 'include',+ headers: { 'content-type': 'application/json' },+ body: JSON.stringify({ action: 'approve', append_link: true }),+ });+ if (!r.ok) {+ alert((await r.json().catch(() => ({}))).error_description || 'approve failed');+ btn.disabled = false;+ return;+ }+ } catch {+ alert('Network error — could not approve. Check your connection and try again.');btn.disabled = false;return;}@@ -1284,10 +1290,17 @@ async function loadXReviews(host) {host.querySelectorAll('[data-reject]').forEach((btn) => {btn.addEventListener('click', async () => {const id = btn.getAttribute('data-reject');- await fetch(`/api/x/reviews?id=${encodeURIComponent(id)}`, {- method: 'DELETE',- credentials: 'include',- });+ btn.disabled = true;+ try {+ await fetch(`/api/x/reviews?id=${encodeURIComponent(id)}`, {+ method: 'DELETE',+ credentials: 'include',+ });+ } catch {+ alert('Network error — could not reject. Check your connection and try again.');+ btn.disabled = false;+ return;+ }loadXReviews(host);});});@@ -1547,10 +1560,17 @@ async function loadScheduledPosts(host) {host.querySelectorAll('[data-cancel]').forEach((btn) => {btn.addEventListener('click', async () => {const id = btn.getAttribute('data-cancel');- await fetch(`/api/x/schedule?id=${encodeURIComponent(id)}`, {- method: 'DELETE',- credentials: 'include',- });+ btn.disabled = true;+ try {+ await fetch(`/api/x/schedule?id=${encodeURIComponent(id)}`, {+ method: 'DELETE',+ credentials: 'include',+ });+ } catch {+ alert('Network error — could not cancel this post. Check your connection and try again.');+ btn.disabled = false;+ return;+ }loadScheduledPosts(host);});});@@ -3403,11 +3423,14 @@ async function renderSubscriptions(root) {btn.addEventListener('click', async () => {if (!confirm('Remove this plan?')) return;btn.disabled = true;- const r = await fetch(`/api/subscriptions/plans/${btn.dataset.id}`, {- method: 'DELETE',- credentials: 'include',- });- if (r.ok) renderSubscriptions(root);+ let r = null;+ try {+ r = await fetch(`/api/subscriptions/plans/${btn.dataset.id}`, {+ method: 'DELETE',+ credentials: 'include',+ });+ } catch { /* network failure — handled below */ }+ if (r?.ok) renderSubscriptions(root);else {btn.disabled = false;alert('Failed to remove plan');@@ -3420,11 +3443,14 @@ async function renderSubscriptions(root) {btn.addEventListener('click', async () => {if (!confirm('Cancel this subscription?')) return;btn.disabled = true;- const r = await fetch(`/api/subscriptions/${btn.dataset.id}`, {- method: 'DELETE',- credentials: 'include',- });- if (r.ok) renderSubscriptions(root);+ let r = null;+ try {+ r = await fetch(`/api/subscriptions/${btn.dataset.id}`, {+ method: 'DELETE',+ credentials: 'include',+ });+ } catch { /* network failure — handled below */ }+ if (r?.ok) renderSubscriptions(root);else {btn.disabled = false;alert('Failed to cancel subscription');@@ -3455,17 +3481,20 @@ async function renderSubscriptions(root) {}createBtn.disabled = true;msg.textContent = 'Creating…';- const r = await fetch('/api/subscriptions/plans', {- method: 'POST',- credentials: 'include',- headers: { 'content-type': 'application/json' },- body: JSON.stringify({ name, price_usd: price, interval, perks }),- });- if (r.ok) {+ let r = null;+ try {+ r = await fetch('/api/subscriptions/plans', {+ method: 'POST',+ credentials: 'include',+ headers: { 'content-type': 'application/json' },+ body: JSON.stringify({ name, price_usd: price, interval, perks }),+ });+ } catch { /* network failure — handled below */ }+ if (r?.ok) {renderSubscriptions(root);} else {- const d = await r.json().catch(() => ({}));- msg.textContent = d.error_description || 'Failed to create plan';+ const d = r ? await r.json().catch(() => ({})) : {};+ msg.textContent = d.error_description || 'Failed to create plan — check your connection and try again.';createBtn.disabled = false;}});diff --git a/src/memory-seed.js b/src/memory-seed.jsindex 7f98de290..5601ce80a 100644--- a/src/memory-seed.js+++ b/src/memory-seed.js@@ -311,9 +311,13 @@ export function mountSeedWidget(host, opts = {}) {q('[data-copy]')?.addEventListener('click', async () => {if (!state.seedMarkdown) return;- await navigator.clipboard.writeText(state.seedMarkdown);const btn = q('[data-copy]');- btn.textContent = 'Copied';+ try {+ await navigator.clipboard.writeText(state.seedMarkdown);+ btn.textContent = 'Copied';+ } catch {+ btn.textContent = 'Copy failed'; // clipboard blocked (permissions / unfocused doc)+ }setTimeout(() => { btn.textContent = 'Copy'; }, 1200);});@@ -400,7 +404,14 @@ export function mountMemoryBrowser(host, opts = {}) {async function load() {if (!state.agentId) { render([]); return; }- state.memories = await loadAgentMemories(state.agentId);+ try {+ state.memories = await loadAgentMemories(state.agentId);+ } catch {+ q('[data-grid]').innerHTML =+ '<div class="mmb-empty"><h4>Could not load memories</h4><p>Check your connection, then <a href="#" data-mmb-retry>retry</a>.</p></div>';+ q('[data-mmb-retry]')?.addEventListener('click', (e) => { e.preventDefault(); load(); }, { once: true });+ return;+ }render(state.memories);}@@ -491,7 +502,13 @@ export function mountMemoryBrowser(host, opts = {}) {q('[data-grid]').addEventListener('click', async e => {const del = e.target.closest('[data-del]');if (del && state.agentId) {- await deleteAgentMemory(state.agentId, del.dataset.del);+ del.disabled = true;+ try {+ await deleteAgentMemory(state.agentId, del.dataset.del);+ } catch {+ del.disabled = false;+ return; // network failure — keep the row so the user can retry+ }state.memories = state.memories.filter(m => m.id !== del.dataset.del);render(state.memories);}diff --git a/src/walk-net.js b/src/walk-net.jsindex 5806171ba..22a27a28f 100644--- a/src/walk-net.js+++ b/src/walk-net.js@@ -223,8 +223,12 @@ export class WalkNet {this._setStatus('online');} catch (err) {- log.warn('[walk-net] connect failed:', err?.message ?? err);- this._setStatus('failed', err?.message ?? String(err));+ // Colyseus handshake failures often carry an empty message (the 403+ // is only visible on the WS upgrade) — fall back to code/String so+ // the diagnostic is never blank.+ const reason = err?.message || (err?.code != null ? `code ${err.code}` : String(err));+ log.warn('[walk-net] connect failed:', reason);+ this._setStatus('failed', reason);// Single retry after ~3s — most failures here are "server not// running yet" during local dev. After that we go offline until// the user clicks the HUD pill (handled by walk.js).