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
docs(media-api): make the optimize example one that works, and drop a duplicate changelog entry
nirholasc0c4f1e702ee
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 3458326aa..05966a0de 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -6,6 +6,9 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr## 2026-07-30+- **Tutorial · Character Library to a Live Embed** (`/tutorials/character-library-to-embed`) — Pick a rigged character from the free library of 107, prove its skeleton drives the animation clip library, and embed it on your own site with one script tag and a gesture button. No modeling, no cost, ten minutes.+- **Tutorial · Give an Agent a Spending Envelope** (`/tutorials/agent-spending-envelope`) — Fund a budget from prepaid credits, hand an agent a capped bearer token, and let it buy real x402 services with no private key: total budget, per-call ceiling, host allowlist, expiry, audit ledger, and a refund on cancel.+- **Tutorial · Render Avatars as Images** (`/tutorials/render-avatar-images`) — Put a live 3D avatar in an image tag: four camera framings, 28 poses, ARKit facial morphs, social cards, turntables, and a CORS-open GLB proxy. No 3D engine anywhere in your stack.- **A slow data provider can no longer freeze a live trading position** — When a trading bot checks whether it still holds a coin, it asks a Solana data provider for its token accounts. An overloaded provider sometimes answers with an empty list for a wallet that demonstrably still holds the coin. The platform read that empty answer as proof the coin had been sold, set the position aside as needing manual reconciliation, and because each strategy allows only one position at a time, the strategy stopped trading entirely while still holding the coin. Four strategies sat frozen this way for up to 57 hours against a 30-minute time limit. An empty or malformed answer is now treated as unknown rather than as zero, and is double-checked against the wallet's own token account addresses before any position is set aside. A position set aside without a recorded timestamp is also no longer exempt from the existing time limit, which is what made these freezes permanent instead of self-clearing. (`/trades`) `[fix]`- **An underfunded trading bot now sits out instead of failing every trade** — A trading strategy whose wallet ran low could get stuck in a loop: it looked funded enough to place a shrunken buy, but not funded enough to run the safety simulation that has to pass before anything is broadcast. So it tried every candidate coin, failed at the same step every time, and filled its history with failures while never actually trading. One live strategy did this 82 times in a day without placing a single buy. Strategies now compare their balance against the amount a trade genuinely needs end to end, including the pre-trade safety checks, and quietly wait for a top-up instead. No trade behavior changes for a properly funded strategy. (`/trades`) `[fix]`- **Avatar optimize endpoint works again for saved avatars** — Asking the optimize endpoint to shrink one of your saved avatars failed every time with a transcode error. Saved avatars are stored geometry-compressed, and the endpoint was reading them without the matching decoder loaded, so it rejected the file before doing any work. Requesting Draco output was broken separately: that code called a compression function that no longer exists in the library, so it threw for every request that asked for it. Both are fixed and the endpoint now returns a valid model for saved avatars and for any model URL you pass it. `[fix]`@@ -35,7 +38,6 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **The seeded payment feed now lands every payment instead of one in forty** — The job that sends small real payments through the platform to keep the public payment feed live was building every payment in a batch identically. Because a payment is identified by its own contents, all of them looked like a single repeated payment: one went through and the rest were rejected as duplicates, and any that slipped past were refused on-chain. About one in forty actually landed, so the feed showed a fraction of the activity it was meant to, and the rejections were the largest single source of errors in production. Each payment in a batch is now distinct, and the pump.fun launch watcher stopped making a per-launch request to a data feed that always refused it. `[fix]`- **The three.ws user group on IBM Community is now linked from the docs** — We run a public user group on IBM Community for developers building AI agents with 3D capabilities, and until now the platform docs never pointed at it. The IBM documentation page now lists the group and everything published in it: the platform tour thread, the prompt-to-embeddable-agent walkthrough, the forge hands-on, the GLB texture troubleshooting thread, and both group blog posts, plus the discussions, blogs, events, library, and members sections. `[docs]`- **The treasury self-repair now reports when it cannot repair** — The platform keeps its automated payments funded by pulling idle funds back from its own agent wallets. When that repair could not run, it said nothing at all: no log line, no alert. A recent stall lasted about eleven hours for exactly that reason, with funds available the whole time and no way to see the repair was blocked. It now raises an alert, and distinguishes the two cases that look identical but need opposite responses: the network providers were unreachable (free to fix, nothing to fund), or every source really is empty (the only case that needs a top-up). `[infra, improvement]`-- **Three new step-by-step tutorials** — Follow-along guides for three things people kept having to work out from reference docs. Give an agent a spending envelope walks from a credit deposit to a real settled payment and back to a refund, with every amount kept tiny and a free wiring test before any money moves. Render avatar images shows how to put a live 3D character's picture on any page or social card without running a 3D engine. And the character library guide goes from browsing 107 free rigged characters to one animating on your own site, with a gesture wired to a button. (`/docs/tutorials/agent-spending-envelope`) `[docs]`- **Wallet balances and holder checks stop failing when a free Solana node refuses the call** — Everything that reads a Solana balance goes through a chain of nodes, so that if one is out of credits or refusing requests the next one answers. Two gaps in that chain were letting failures through. First, when our main paid node hit its monthly cap it said so in wording our code did not recognise as "out of credits", so it was treated as briefly busy and put back at the front of the queue every ten minutes, meaning almost every balance lookup began by failing against a node that could not answer until the billing month rolled over. Second, some of the free public nodes refuse specific kinds of lookup outright, including the one that reads which tokens a wallet holds, and they refuse it with a reply our code read as "you asked for something impossible" rather than "ask a different node". That turned into an outright error for the features built on it: your token balances, $THREE holder checks, and the gates that unlock embeds and scenes for holders. Both signals are now recognised, so an exhausted node steps aside for the rest of its billing period and a node that will not serve a lookup is skipped in favour of one that will. `[fix, infra]`- **World Lines and the Walk Leaderboard, documented in full** — Two new reference guides. World Lines explains how walking to an agent's real-world spot earns an agent-signed proof of presence, how your location is proven, why nothing finer than a roughly 1 km area is ever stored, and how anyone can re-check a proof themselves. The Walk Leaderboard doc explains exactly what distance, sites, and time measure, how a walk session is counted, and what each guard can and cannot prove. (`/docs/world-lines`) `[docs]`- **Your wallet history page loads again instead of erroring** — The master wallet is the single account that funds your agents, pays for services, and buys skills. Three of its screens (the transaction history, the send form, and agent funding) read that wallet's record from a table that only the create-wallet step knew how to set up, and that step had never run in production. So instead of telling you there was no wallet yet, those screens returned a server error. The table is now created properly as part of our database setup rather than as a side effect of one request, so the history page shows an empty list, and sending and funding tell you plainly that no wallet exists yet, which is what they were always meant to do. The wallet record is also now tied to your account the same way your agent wallets are, so the two behave identically. `[fix]`diff --git a/data/changelog.json b/data/changelog.jsonindex 1f188dbdf..4f31cb8fb 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -17118,15 +17118,6 @@"docs"],"link": "/docs/world-lines"- },- {- "date": "2026-07-30",- "title": "Three new step-by-step tutorials",- "summary": "Follow-along guides for three things people kept having to work out from reference docs. Give an agent a spending envelope walks from a credit deposit to a real settled payment and back to a refund, with every amount kept tiny and a free wiring test before any money moves. Render avatar images shows how to put a live 3D character's picture on any page or social card without running a 3D engine. And the character library guide goes from browsing 107 free rigged characters to one animating on your own site, with a gesture wired to a button.",- "tags": [- "docs"- ],- "link": "/docs/tutorials/agent-spending-envelope"}]}diff --git a/docs/media-api.md b/docs/media-api.mdindex b4a0c8800..92eb67c76 100644--- a/docs/media-api.md+++ b/docs/media-api.md@@ -200,15 +200,22 @@ Requests are rate-limited per IP; a `429` carries `Retry-After`.### curl```bash-# Mobile budget: 512px textures, ARKit-52 morphs only, Draco-compressed+# Mobile budget: 512px textures, ARKit-52 morphs onlycurl -sL -o mobile.glb \- 'https://three.ws/api/avatar/optimize?id=13f259c7-7024-4d68-b1f0-dbbf52c06209&textureSize=512&morphs=arkit52&draco=1'+ 'https://three.ws/api/avatar/optimize?id=13f259c7-7024-4d68-b1f0-dbbf52c06209&textureSize=512&morphs=arkit52'# By source URL, LOD 1curl -sL -o lite.glb \'https://three.ws/api/avatar/optimize?src=https%3A%2F%2Fthree.ws%2Favatars%2Fcesium-man.glb&lod=1'++# Add Draco geometry compression. Smaller bytes, but the client then needs a+# Draco decoder, so only add it when you know the consumer has one.+curl -sL -o mobile-draco.glb \+ 'https://three.ws/api/avatar/optimize?id=13f259c7-7024-4d68-b1f0-dbbf52c06209&textureSize=512&draco=1'```+If `draco=1` comes back `500 transcode_failed` with `draco.createCompressedPrimitive is not a function`, that is a server-side codec problem and not something wrong with your request: the running image resolved an older glTF-transform than the one this repo pins, whose Draco writer expects a different encoder interface. Every other parameter still works, so drop `draco=1` to get your model now. A rebuild picks up the pinned version and restores it.+---## Same-origin GLB proxydiff --git a/public/changelog.json b/public/changelog.jsonindex 198c8a57b..cb976bab5 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,11 +1,41 @@{- "generated_at": "2026-07-30T05:18:51.563Z",+ "generated_at": "2026-07-30T05:23:51.627Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws","url": "https://three.ws"},"entries": [+ {+ "date": "2026-07-30",+ "type": "launch",+ "title": "Tutorial · Character Library to a Live Embed",+ "summary": "Pick a rigged character from the free library of 107, prove its skeleton drives the animation clip library, and embed it on your own site with one script tag and a gesture button. No modeling, no cost, ten minutes.",+ "link": "/tutorials/character-library-to-embed",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-07-30",+ "type": "launch",+ "title": "Tutorial · Give an Agent a Spending Envelope",+ "summary": "Fund a budget from prepaid credits, hand an agent a capped bearer token, and let it buy real x402 services with no private key: total budget, per-call ceiling, host allowlist, expiry, audit ledger, and a refund on cancel.",+ "link": "/tutorials/agent-spending-envelope",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-07-30",+ "type": "launch",+ "title": "Tutorial · Render Avatars as Images",+ "summary": "Put a live 3D avatar in an image tag: four camera framings, 28 poses, ARKit facial morphs, social cards, turntables, and a CORS-open GLB proxy. No 3D engine anywhere in your stack.",+ "link": "/tutorials/render-avatar-images",+ "tags": [+ "launch"+ ]+ },{"date": "2026-07-30","type": "update",@@ -309,16 +339,6 @@"improvement"]},- {- "date": "2026-07-30",- "type": "update",- "title": "Three new step-by-step tutorials",- "summary": "Follow-along guides for three things people kept having to work out from reference docs. Give an agent a spending envelope walks from a credit deposit to a real settled payment and back to a refund, with every amount kept tiny and a free wiring test before any money moves. Render avatar images shows how to put a live 3D character's picture on any page or social card without running a 3D engine. And the character library guide goes from browsing 107 free rigged characters to one animating on your own site, with a gesture wired to a button.",- "link": "/docs/tutorials/agent-spending-envelope",- "tags": [- "docs"- ]- },{"date": "2026-07-30","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 241aa78a8..d0cb0ec55 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -6,6 +6,30 @@<atom:link href="https://three.ws/changelog.xml" rel="self" type="application/rss+xml"/><description>What's new on three.ws — features, improvements, and releases, newest first.</description><language>en</language>+ <item>+ <title>Tutorial · Character Library to a Live Embed</title>+ <link>https://three.ws/tutorials/character-library-to-embed</link>+ <guid isPermaLink="false">2026-07-30:Tutorial · Character Library to a Live Embed</guid>+ <pubDate>Thu, 30 Jul 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Pick a rigged character from the free library of 107, prove its skeleton drives the animation clip library, and embed it on your own site with one script tag and a gesture button. No modeling, no cost, ten minutes.</description>+ </item>+ <item>+ <title>Tutorial · Give an Agent a Spending Envelope</title>+ <link>https://three.ws/tutorials/agent-spending-envelope</link>+ <guid isPermaLink="false">2026-07-30:Tutorial · Give an Agent a Spending Envelope</guid>+ <pubDate>Thu, 30 Jul 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Fund a budget from prepaid credits, hand an agent a capped bearer token, and let it buy real x402 services with no private key: total budget, per-call ceiling, host allowlist, expiry, audit ledger, and a refund on cancel.</description>+ </item>+ <item>+ <title>Tutorial · Render Avatars as Images</title>+ <link>https://three.ws/tutorials/render-avatar-images</link>+ <guid isPermaLink="false">2026-07-30:Tutorial · Render Avatars as Images</guid>+ <pubDate>Thu, 30 Jul 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Put a live 3D avatar in an image tag: four camera framings, 28 poses, ARKit facial morphs, social cards, turntables, and a CORS-open GLB proxy. No 3D engine anywhere in your stack.</description>+ </item><item><title>A slow data provider can no longer freeze a live trading position</title><link>https://three.ws/trades</link>@@ -238,14 +262,6 @@<category>infra</category><description>The platform keeps its automated payments funded by pulling idle funds back from its own agent wallets. When that repair could not run, it said nothing at all: no log line, no alert. A recent stall lasted about eleven hours for exactly that reason, with funds available the whole time and no way to see the repair was blocked. It now raises an alert, and distinguishes the two cases that look identical but need opposite responses: the network providers were unreachable (free to fix, nothing to fund), or every source really is empty (the only case that needs a top-up).</description></item>- <item>- <title>Three new step-by-step tutorials</title>- <link>https://three.ws/docs/tutorials/agent-spending-envelope</link>- <guid isPermaLink="false">2026-07-30:Three new step-by-step tutorials</guid>- <pubDate>Thu, 30 Jul 2026 12:00:00 GMT</pubDate>- <category>docs</category>- <description>Follow-along guides for three things people kept having to work out from reference docs. Give an agent a spending envelope walks from a credit deposit to a real settled payment and back to a refund, with every amount kept tiny and a free wiring test before any money moves. Render avatar images shows how to put a live 3D character's picture on any page or social card without running a 3D engine. And the character library guide goes from browsing 107 free rigged characters to one animating on your own site, with a gesture wired to a button.</description>- </item><item><title>Wallet balances and holder checks stop failing when a free Solana node refuses the call</title><link>https://three.ws/changelog</link>