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: update changelog for new motion-capture animations and improve health check logic
fudjia47ea1fc7fe64
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex dffee1f82..2fb18145c 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -9,7 +9,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Tour Builder — design a 3D store guide, no code** (`/tour-builder`) — A live, no-code playground: point and click on a demo storefront to build a 3D guide that walks and narrates it, preview it instantly, then copy the exact snippet into your Shopify theme.- **Tutorial · Customize Your Shopify 3D Store Guide** (`/tutorials/shopify-store-guide-advanced`) — Hand-tune the store guide: exact section targeting, multi-page tours, real spoken voices, your own avatar, autostart, deep links, and the JavaScript API.- **@three-ws/retarget — the animation engine behind every avatar, now a standalone package** — The rig-agnostic animation system that powers all three.ws avatars is now on npm as @three-ws/retarget. It maps bone names from Mixamo, VRM/VRoid, Avaturn, Daz, MakeHuman, Unreal, and Blender rigs onto one canonical skeleton, retargets any clip onto any humanoid with rest-pose and hip-axis correction, and ships the crossfading runtime that keeps characters from ever freezing in a T-pose. Only dependency: your own copy of Three.js. Same engine, same tests (2,800 lines of them) — now usable in any Three.js project. `[sdk, feature]`-- **2,000+ new motion-capture animations in the library** — The animation library just grew from around 100 curated clips to over 2,000 — the full professional motion-capture set, every one retargeted to the universal three.ws skeleton so it plays on any humanoid avatar. Walks, runs, dances, combat, idles, reactions, sports, and hundreds more are all searchable in the animations gallery, previewable on a live avatar, and one click away from the pose studio or any embed. The clips are served from the CDN, so the site stays fast no matter how big the library gets. (`/animations`) `[feature, improvement]`+- **2,800+ new motion-capture animations in the library** — The animation library just grew from around 100 curated clips to more than 2,800 — the full professional motion-capture set, including complete themed movement packs (breakdance, sword-and-shield combat, capoeira, zombie, rifle and pistol sets, and more), every one retargeted to the universal three.ws skeleton so it plays on any humanoid avatar. Walks, runs, dances, combat, idles, reactions, sports, and hundreds more are all searchable in the animations gallery, previewable on a live avatar, and one click away from the pose studio or any embed. The clips are served from the CDN, so the site stays fast no matter how big the library gets. (`/animations`) `[feature, improvement]`- **Agent creation now tells you what to do when your avatar library is full** — If you hit your plan's avatar limit while creating an agent, the wizard used to fail with a bare error and leave you stuck. It now explains what happened and gives you three ways forward, right in the form: connect an avatar you already own (one click jumps you to your library), free up a slot by deleting an old avatar, or upgrade your plan. Oversized model files get a clearer message too. (`/create-agent`) `[fix, improvement]`- **Animation Gallery rebuilt — see every clip before you use it** — The animation gallery at three.ws/animations got a ground-up upgrade. All 2,100+ clips now show a real poster image of the avatar mid-motion instead of a blank tile, and hovering any card plays the full animation live in 3D. Clips are organized into 16 browsable categories (dance, combat, weapons, sports, and more) with search, sorting, and loop filters, and every clip has its own shareable link with playback controls — scrub the timeline, change the speed, then send it straight to the Animation Studio or copy an embed snippet for your own site. (`/animations`) `[feature, improvement]`- **Faster, steadier pages under load — cache now compresses what it stores** — Behind the scenes, three.ws caches heavy data (live money flows, trending snapshots, leaderboards) in a shared store so pages stay fast without re-crunching everything on every visit. When that store sits far from our servers, the largest of those writes were timing out and quietly falling back to a per-server memory copy that vanishes on restart — so under traffic, pages kept hitting the origin and slowed down. Those payloads are now gzip-compressed before they're stored, shrinking them 5–10×, which lets them land in the shared cache instead of timing out. The result is fewer cache misses, less origin load, and steadier response times on data-heavy pages during busy periods. No action needed — it just works. `[fix, infra]`diff --git a/api/healthz.js b/api/healthz.jsindex f4f2dc095..155b8ed9b 100644--- a/api/healthz.js+++ b/api/healthz.js@@ -178,6 +178,38 @@ async function probeX402() {);}+ // The 402 challenge advertises a Solana fee payer PUBKEY (X402_FEE_PAYER_SOLANA),+ // but a sponsor-mode settle can only complete if the matching SECRET is loaded+ // to co-sign — a config where the pubkey is set and the secret is not passes+ // every check above yet 502s on every settle (observed: club-cover's last+ // on-chain settles failed with `sponsor_key_unconfigured`). Probe the co-sign+ // key so that false-green stops reading as healthy. No key material is exposed:+ // loadFeePayerKeypair throws on missing/mismatched secret and we report only a+ // status word.+ if (hasSolana) {+ try {+ const { SELF_FACILITATOR_ENABLED, loadFeePayerKeypair } = await import('./_lib/x402/self-facilitator.js');+ if (!SELF_FACILITATOR_ENABLED) {+ result.sponsor_cosign = 'facilitator_disabled';+ } else {+ try {+ loadFeePayerKeypair();+ result.sponsor_cosign = 'ready';+ } catch (err) {+ const mismatch = /!=|expected 64 bytes|mismatch/i.test(String(err?.message || ''));+ result.sponsor_cosign = mismatch ? 'mismatch' : 'missing';+ result.warnings.push(+ `sponsor_cosign_${result.sponsor_cosign}: the Solana fee-payer pubkey is advertised but its ` ++ 'co-signing secret cannot be loaded — sponsor-mode settlements 502 (club-cover, dance-tip). ' ++ 'Set/repair X402_FEE_PAYER_SECRET_BASE58 in the deploy environment.',+ );+ }+ }+ } catch {+ result.sponsor_cosign = 'unknown';+ }+ }+// Probe facilitator connectivity (cached at this level, 5 min TTL)const facilitatorUrl = process.env.X402_CDP_FACILITATOR_URL || process.env.X402_FACILITATOR_URL_BASE;if (facilitatorUrl) {diff --git a/data/changelog.json b/data/changelog.jsonindex d179e3b4c..54b67871c 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -68,8 +68,8 @@},{"date": "2026-07-05",- "title": "2,000+ new motion-capture animations in the library",- "summary": "The animation library just grew from around 100 curated clips to over 2,000 — the full professional motion-capture set, every one retargeted to the universal three.ws skeleton so it plays on any humanoid avatar. Walks, runs, dances, combat, idles, reactions, sports, and hundreds more are all searchable in the animations gallery, previewable on a live avatar, and one click away from the pose studio or any embed. The clips are served from the CDN, so the site stays fast no matter how big the library gets.",+ "title": "2,800+ new motion-capture animations in the library",+ "summary": "The animation library just grew from around 100 curated clips to more than 2,800 — the full professional motion-capture set, including complete themed movement packs (breakdance, sword-and-shield combat, capoeira, zombie, rifle and pistol sets, and more), every one retargeted to the universal three.ws skeleton so it plays on any humanoid avatar. Walks, runs, dances, combat, idles, reactions, sports, and hundreds more are all searchable in the animations gallery, previewable on a live avatar, and one click away from the pose studio or any embed. The clips are served from the CDN, so the site stays fast no matter how big the library gets.","tags": ["feature","improvement"diff --git a/public/changelog.json b/public/changelog.jsonindex 54652f2da..315a3183f 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-05T11:00:42.240Z",+ "generated_at": "2026-07-05T11:05:22.729Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -40,8 +40,8 @@{"date": "2026-07-05","type": "update",- "title": "2,000+ new motion-capture animations in the library",- "summary": "The animation library just grew from around 100 curated clips to over 2,000 — the full professional motion-capture set, every one retargeted to the universal three.ws skeleton so it plays on any humanoid avatar. Walks, runs, dances, combat, idles, reactions, sports, and hundreds more are all searchable in the animations gallery, previewable on a live avatar, and one click away from the pose studio or any embed. The clips are served from the CDN, so the site stays fast no matter how big the library gets.",+ "title": "2,800+ new motion-capture animations in the library",+ "summary": "The animation library just grew from around 100 curated clips to more than 2,800 — the full professional motion-capture set, including complete themed movement packs (breakdance, sword-and-shield combat, capoeira, zombie, rifle and pistol sets, and more), every one retargeted to the universal three.ws skeleton so it plays on any humanoid avatar. Walks, runs, dances, combat, idles, reactions, sports, and hundreds more are all searchable in the animations gallery, previewable on a live avatar, and one click away from the pose studio or any embed. The clips are served from the CDN, so the site stays fast no matter how big the library gets.","link": "/animations","tags": ["feature",diff --git a/public/changelog.xml b/public/changelog.xmlindex 5ec192b75..ca1802dfa 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -31,12 +31,12 @@<description>The rig-agnostic animation system that powers all three.ws avatars is now on npm as @three-ws/retarget. It maps bone names from Mixamo, VRM/VRoid, Avaturn, Daz, MakeHuman, Unreal, and Blender rigs onto one canonical skeleton, retargets any clip onto any humanoid with rest-pose and hip-axis correction, and ships the crossfading runtime that keeps characters from ever freezing in a T-pose. Only dependency: your own copy of Three.js. Same engine, same tests (2,800 lines of them) — now usable in any Three.js project.</description></item><item>- <title>2,000+ new motion-capture animations in the library</title>+ <title>2,800+ new motion-capture animations in the library</title><link>https://three.ws/animations</link>- <guid isPermaLink="false">2026-07-05:2,000+ new motion-capture animations in the library</guid>+ <guid isPermaLink="false">2026-07-05:2,800+ new motion-capture animations in the library</guid><pubDate>Sun, 05 Jul 2026 12:00:00 GMT</pubDate><category>feature</category>- <description>The animation library just grew from around 100 curated clips to over 2,000 — the full professional motion-capture set, every one retargeted to the universal three.ws skeleton so it plays on any humanoid avatar. Walks, runs, dances, combat, idles, reactions, sports, and hundreds more are all searchable in the animations gallery, previewable on a live avatar, and one click away from the pose studio or any embed. The clips are served from the CDN, so the site stays fast no matter how big the library gets.</description>+ <description>The animation library just grew from around 100 curated clips to more than 2,800 — the full professional motion-capture set, including complete themed movement packs (breakdance, sword-and-shield combat, capoeira, zombie, rifle and pistol sets, and more), every one retargeted to the universal three.ws skeleton so it plays on any humanoid avatar. Walks, runs, dances, combat, idles, reactions, sports, and hundreds more are all searchable in the animations gallery, previewable on a live avatar, and one click away from the pose studio or any embed. The clips are served from the CDN, so the site stays fast no matter how big the library gets.</description></item><item><title>Agent creation now tells you what to do when your avatar library is full</title>diff --git a/public/features.json b/public/features.jsonindex 4783af77f..08ea0cbc8 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-05T11:00:42.227Z",+ "generated_at": "2026-07-05T11:05:22.717Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/scripts/build-animations.mjs b/scripts/build-animations.mjsindex 8c58791a7..6bdb7f9eb 100644--- a/scripts/build-animations.mjs+++ b/scripts/build-animations.mjs@@ -25,7 +25,23 @@ import { liftHipsUpright } from './upright-hips.mjs';// three's loaders + exporter touch a handful of DOM globals; stub them out for node.globalThis.self = globalThis;globalThis.window = globalThis;-globalThis.document = { createElementNS: () => ({}) };+// FBXLoader loads embedded textures by creating an <img> and attaching load+// handlers. Mixamo MotionPack FBX (exported with the T-pose character mesh)+// carry such textures; without an addEventListener the loader throws+// "image.addEventListener is not a function" and the whole clip is dropped.+// We never use the texture — only the animation tracks — so a no-op image+// element that never "loads" lets retargeting proceed.+const stubImage = () => ({+ addEventListener() {},+ removeEventListener() {},+ setAttribute() {},+ style: {},+});+globalThis.document = {+ createElementNS: () => stubImage(),+ createElement: () => stubImage(),+};+globalThis.Image = class { addEventListener() {} removeEventListener() {} };globalThis.Blob = Blob;// GLTFExporter calls FileReader.readAsDataURL on Blob-wrapped texture/binarydiff --git a/scripts/mixamo-all.mjs b/scripts/mixamo-all.mjsindex d0f96df90..9e86a84b5 100644--- a/scripts/mixamo-all.mjs+++ b/scripts/mixamo-all.mjs@@ -65,7 +65,7 @@* account's primary character (/characters/primary), falling back to Y-Bot.*/-import { existsSync, readFileSync, writeFileSync, mkdirSync, renameSync, readdirSync, mkdtempSync, rmSync, copyFileSync } from 'node:fs';+import { existsSync, readFileSync, writeFileSync, mkdirSync, renameSync, readdirSync, mkdtempSync, rmSync, copyFileSync, statSync } from 'node:fs';import { join, dirname } from 'node:path';import { tmpdir } from 'node:os';import { fileURLToPath } from 'node:url';@@ -361,6 +361,12 @@ async function pollForDownloadUrl(animId, characterId, authHeaders) {throw new Error('poll timeout');}+// A pack zip exported with mesh_motionpack:'t-pose' bundles the character mesh+// FBX (tens of MB, textured) alongside the per-motion animation FBX. That mesh+// is not an animation — it fails to retarget and would waste ~65 MB each — so+// skip any FBX above this size. Real animation FBX are well under 2 MB.+const PACK_CLIP_MAX_BYTES = 5 * 1024 * 1024;+// MotionPack exports arrive as a zip of FBX files — extract each clip into// animation-sources/ under the mx-<slug>-<packId12>-<i> convention. The pack id// + index suffix guarantees uniqueness across packs and against single motions@@ -375,10 +381,12 @@ function extractPack(zipBuf, packId) {let i = 0;for (const rel of readdirSync(tmp, { recursive: true })) {if (!String(rel).toLowerCase().endsWith('.fbx')) continue;+ const src = join(tmp, rel);+ if (statSync(src).size > PACK_CLIP_MAX_BYTES) continue; // bundled character mesh, not a clipconst base = String(rel).split('/').pop().replace(/\.fbx$/i, '');const out = `mx-${slugify(base)}-${idFrag(packId)}-${i++}.fbx`;const dest = join(SOURCES_DIR, out);- if (!existsSync(dest)) copyFileSync(join(tmp, rel), dest);+ if (!existsSync(dest)) copyFileSync(src, dest);files.push(out);}} finally {diff --git a/tests/api/x402-facilitator-log-durable.test.js b/tests/api/x402-facilitator-log-durable.test.jsnew file mode 100644index 000000000..c0b7458ee--- /dev/null+++ b/tests/api/x402-facilitator-log-durable.test.js@@ -0,0 +1,82 @@+// Regression: the self-hosted facilitator must AWAIT its audit-log write before+// sending the /verify and /settle response. It used to fire-and-forget the+// INSERT, which on Vercel is dropped when the function freezes the instant the+// response is sent — leaving x402_self_facilitator_log (and every dashboard that+// reads it) empty despite live 200 traffic. These tests assert the response is+// gated on the log write resolving.++import { describe, it, expect, vi, beforeEach } from 'vitest';++// Controllable sql template tag: each call returns a promise we resolve by hand,+// so the test can prove the handler is still pending until the write settles.+let pendingResolvers = [];+vi.mock('../../api/_lib/db.js', () => ({+ sql: () => new Promise((resolve) => { pendingResolvers.push(() => resolve([])); }),+ isDbUnavailableError: () => false,+ isDbCapacityError: () => false,+}));++// Keep verify deterministic and side-effect free — we only care about log timing.+vi.mock('../../api/_lib/x402/self-facilitator.js', () => ({+ SELF_FACILITATOR_ENABLED: true,+ verifyRingPayment: () => ({ isValid: true, network: 'solana:x', asset: 'MINT', payer: 'BUYER' }),+ settleRingPayment: async () => ({ success: true, transaction: 'SIG', network: 'solana:x', payer: 'BUYER' }),+}));++import handler from '../../api/x402-facilitator/[action].js';++function makeReq({ action, body }) {+ return { url: `/api/x402-facilitator/${action}`, method: 'POST', query: { action }, headers: {}, body };+}+function makeRes() {+ return {+ statusCode: 200,+ ended: false,+ _body: null,+ setHeader() {},+ end(b) { this.ended = true; this._body = b; },+ };+}++const REQ_BODY = {+ paymentPayload: { payload: { transaction: 'x' } },+ paymentRequirements: { network: 'solana:x', payTo: 'PAYTO', asset: 'MINT', amount: '10000' },+};++beforeEach(() => { pendingResolvers = []; });++describe('self-facilitator log durability', () => {+ it('verify does not respond until the audit-log write resolves', async () => {+ const res = makeRes();+ const done = handler(makeReq({ action: 'verify', body: REQ_BODY }), res);++ // Let the handler run up to the awaited logOp. The INSERT promise is still+ // pending (we haven't resolved it), so the response must NOT have been sent.+ await Promise.resolve();+ await Promise.resolve();+ expect(res.ended).toBe(false);+ expect(pendingResolvers.length).toBe(1); // the log INSERT is in flight++ // Flush the write; only now may the handler respond.+ pendingResolvers.forEach((r) => r());+ await done;+ expect(res.ended).toBe(true);+ expect(JSON.parse(res._body).isValid).toBe(true);+ });++ it('settle does not respond until the audit-log write resolves', async () => {+ const res = makeRes();+ const done = handler(makeReq({ action: 'settle', body: REQ_BODY }), res);++ // settle awaits settleRingPayment (a resolved async) then awaits logOp.+ // Drain a few microtasks to reach the log await, then assert still pending.+ for (let i = 0; i < 6; i++) await Promise.resolve();+ expect(res.ended).toBe(false);+ expect(pendingResolvers.length).toBe(1);++ pendingResolvers.forEach((r) => r());+ await done;+ expect(res.ended).toBe(true);+ expect(JSON.parse(res._body).success).toBe(true);+ });+});