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: clear banned dash glyphs from the bundle-purchase notes and economy docs
nirholas35d9f00dc5e2
diff --git a/.mcp-resp-check.mjs b/.mcp-resp-check.mjsnew file mode 100644index 000000000..ffc19d7ee--- /dev/null+++ b/.mcp-resp-check.mjs@@ -0,0 +1,28 @@+import { chromium } from 'playwright';+const browser = await chromium.launch();+const out = {};+for (const [label, width] of [['mobile320', 320], ['tablet768', 768], ['desktop1440', 1440]]) {+ const page = await browser.newPage({ viewport: { width, height: 800 } });+ await page.goto('http://localhost:3123/pages/mcp-tools.html', { waitUntil: 'networkidle' });+ await page.waitForSelector('.mc-card');+ out[label] = await page.evaluate(() => ({+ overflow: document.documentElement.scrollWidth > window.innerWidth,+ scrollW: document.documentElement.scrollWidth,+ innerW: window.innerWidth,+ }));+ await page.close();+}+// Light theme + keyboard shortcut+const page = await browser.newPage({ viewport: { width: 1280, height: 900 } });+await page.addInitScript(() => localStorage.setItem('twx_theme', 'light'));+await page.goto('http://localhost:3123/pages/mcp-tools.html', { waitUntil: 'networkidle' });+await page.waitForSelector('.mc-card');+out.lightTheme = await page.evaluate(() => ({+ theme: document.documentElement.getAttribute('data-theme'),+ bodyBg: getComputedStyle(document.body).backgroundColor,+ cardText: getComputedStyle(document.querySelector('.mc-name')).color,+}));+await page.keyboard.press('/');+out.slashFocus = await page.evaluate(() => document.activeElement?.id);+console.log(JSON.stringify(out, null, 1));+await browser.close();diff --git a/.pay-shot.mjs b/.pay-shot.mjsnew file mode 100644index 000000000..355f43eba--- /dev/null+++ b/.pay-shot.mjs@@ -0,0 +1,18 @@+import { chromium } from 'playwright';+const b = await chromium.launch();+const errs = [];+for (const [w,h,name] of [[1440,1000,'desktop'],[390,844,'mobile']]) {+ const p = await b.newPage({ viewport: { width: w, height: h } });+ p.on('console', m => { const t=m.text(); if((m.type()==='error'||m.type()==='warning') && !/vite|WebSocket/i.test(t)) errs.push(`[${name}] ${m.type()}: ${t}`); });+ p.on('pageerror', e => { if(!/WebSocket/i.test(e.message)) errs.push(`[${name}] pageerror: ${e.message}`); });+ await p.goto('http://localhost:3001/payments', { waitUntil: 'networkidle' });+ await p.waitForTimeout(1500);+ const overflow = await p.evaluate(() => document.documentElement.scrollWidth > window.innerWidth + 1);+ const title = await p.title();+ const h1 = await p.locator('h1').first().innerText().catch(()=>'(none)');+ console.log(`${name}: title="${title}" h1="${h1}" overflow=${overflow}`);+ await p.screenshot({ path: `/tmp/claude-1000/-workspaces-three-ws/967882b0-04bb-45dd-b03b-15088087b910/scratchpad/pay-${name}.png`, fullPage: name==='desktop' });+ await p.close();+}+await b.close();+console.log(errs.length ? 'CONSOLE ISSUES:\n' + errs.join('\n') : 'no console errors/warnings from page code');diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 9a18f99f4..82762976b 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,7 +7,9 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr## 2026-07-30- **Autonomous Trading** (`/trading`) — The control room for three.ws autonomous trading: live fleet vitals, the agent scoreboard, the entry-to-exit pipeline, and every trading surface and doc in one place.+- **Docs · Economy Health Dashboard** (`/docs/economy-health-dashboard`) — The operator dashboard that answers whether the Money Pulse is quiet and which link in the funding chain broke, plus the ranked diagnosis rules behind its verdict.- **Docs · The 10 SOL trading experiment** (`/docs/trading-experiment`) — The full risk policy behind the autonomous fleet: entry band, position sizing, taking initials at 2x, the moon-bag floor, trailing and hard stops, and how to read the decision journal.+- **Docs · The in-game economy** (`/docs/in-game-economy`) — The complete reference for the /play open-world economy: gathering and selling materials, the cash purse and bank, tool upgrades, every vendor and gate, $THREE cosmetics that settle on Solana, and the catalog wire format for reading it from code.- **Docs · The trading hub** (`/docs/trading-hub`) — The front door to the autonomous trading system: live fleet vitals read off the running bots, the strategy arena and experiments board, and the smart-money radar, with the twenty pages behind them organised into one path.- **Docs World (immersive 3D docs)** (`/docs/world`) — The full three.ws documentation as a walkable 3D world: every docs section is a glowing pavilion, and the live pages render inside the scene.- **Examples** (`/examples`) — Runnable three.ws examples: copy-paste snippets that execute on the page against the production CDN bundle, plus every example that ships in the repository, generated by scanning it. Each one lists the files it contains and the command that runs it.@@ -15,10 +17,14 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Repository guards** (`/docs/guards`) — The local guards that protect this codebase in place of CI: what each one blocks, which stage runs it, and how to add a new one.- **three.ws on NVIDIA** (`/nvidia`) — three.ws is a member of the NVIDIA Inception program. Every 3D model, avatar, and voice on the platform runs on NVIDIA: a free hosted lane behind one API key covering text-to-3D, chat, vision, embeddings, safety and speech, plus a self-hosted fleet of Cloud Run GPU workers on L4 and RTX PRO 6000.- **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 · Explore the docs as a 3D world** (`/tutorials/explore-docs-world`) — Walk an avatar through the documentation: fourteen sections as glowing pavilions, live pages read in-world, shareable deep links, and your own GLB as the body.- **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 · Monetize an MCP server: charge per tool call** (`/tutorials/monetize-mcp-server`) — Build an MCP server whose tools charge other agents per call in USDC on Solana. One free orientation tool, one paid tool that does real work, and a test that proves the product never escapes unpaid.- **Tutorial · Read the trading fleet** (`/tutorials/read-the-trading-fleet`) — Tell a working autonomous strategy from a lucky one: why realized profit is the only profit, how to read profit factor against win rate and drawdown, the sample size below which a rank means nothing, and how to spot a broken fleet that still shows a green light.- **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.- **Tutorial · Sell a Skill With a Free Trial That Converts** (`/tutorials/sell-a-skill-with-a-trial`) — List an agent skill for sale in $THREE, give buyers a metered free trial, and watch it expire into a real on-chain purchase. Covers choosing a trial length and the missing decrement that quietly makes a trialled skill impossible to sell.+- **Tutorial · Ship an avatar manifest** (`/tutorials/ship-an-avatar-manifest`) — Turn a raw GLB into a signed-off, hash-anchored manifest: one document that names the avatar, records the exact bytes of its mesh, declares its skeleton, and fails your build if the model ever silently changes.+- **Tutorial · Write a repository guard** (`/tutorials/write-a-guard`) — This repo has no CI, so a guard is the only thing between a mistake and production. Build one that fails the build when an API handler forgets its error boundary, wire it into the gate, cover it with tests, and register it.- **Tutorial: Make Your Avatar Sign (ASL)** (`/tutorials/sign-with-your-avatar`) — Step-by-step tutorial for signing avatars: type a phrase and watch it signed in ASL, share it as a link, export a spelled word as an animated GLB, turn on signed chat replies, and fingerspell back with your webcam.- **87 documentation pages that search engines could not see are now discoverable** — The platform serves a page for every documentation file, but only pages listed in the site's page index reach the sitemap, the machine-readable llms.txt, and the feature list. 87 docs had never been listed, which meant they answered normally if you had the link and were invisible to every search engine and AI crawler otherwise. Each one now carries a real title and summary written from the doc itself, covering the API reference, the avatar and animation pipeline, memory, permissions, security, self-hosting, the MCP servers, and the troubleshooting guide. A new check in the documentation audit fails the build if a future doc lands unlisted, so this cannot silently happen again. `[docs, improvement]`- **A healthy Solana node no longer benches itself for half an hour** — Everything that reads the Solana chain (wallet balances, coin prices, launch history, agent payments) runs through a chain of providers tried in order, and a provider that fails is set aside for a while so callers stop paying for a request that cannot succeed. How long it is set aside depends on what went wrong, and one case was being read incorrectly. Some free providers refuse a single kind of request while serving everything else perfectly, and they say so with the same response code used for a rejected password. We were treating that as a broken login and taking the node out of service for thirty minutes. Because the request being refused was the one used to read token balances, which the platform makes constantly, our fastest provider kept removing itself from service during normal work and traffic piled onto providers that had already hit their limits. A refusal of one specific request now skips only that request and keeps the node in service, while a genuinely rejected key is still set aside in full. Chain reads are noticeably steadier as a result. `[fix, infra]`@@ -389,6 +395,8 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Docs · The Forge pipeline (architecture deep dive)** (`/docs/forge-pipeline`) — The engineering guide to the Forge: every entry point, the declared engine grid, free-first health-aware routing, the job lifecycle with two-layer failover, persistence and storage, GPU workers, post-processing, payments, and how to extend the pipeline.- **Docs · Voice Lab** (`/docs/voice-lab`) — Clone your voice from a short browser recording, play it in the TTS playground, and assign it to an agent.- **Docs · x402 Studio** (`/docs/x402-studio`) — The merchant console for running a paid x402 business: products and pricing, payout and agent wallets, real USDC send and receive with .sol resolution, a storefront and pay-button builder, giving, and security.+- **Tutorial · Build a site concierge from the building blocks** (`/tutorials/build-a-site-concierge`) — How the Concierge widget is assembled: the talking avatar, the streaming chat, the tool calls, and how to point the same parts at your own backend over Server-Sent Events.+- **Tutorial · Meter any API with the x402-server SDK** (`/tutorials/x402-server-sdk`) — Turn an ordinary HTTP handler into a paid one with @three-ws/x402-server. Solana-first, framework-agnostic, and runnable offline before you touch a wallet.- **36 new in-depth feature guides in the docs** — The docs now carry a dedicated, in-depth guide for every major studio and surface that was missing one: the 3D creation studios (Forge, Image to 3D, Diorama, Cosmos, Splat viewer, Scene Capture, Restyle, Scene Studio, Scene Composer, Animation Studio, Avatar Studio, Mocap Studio, Selfie to Avatar, Daily Forge, AR Studio), voice and video (Voice Lab, Lipsync, Talking Avatar Video), agent building (Instant Agent Genesis, Agent Genome, Agent Studio, Multi-LLM Brain, Agent Galaxy, Integrations), and the trading and markets surfaces (Coin Autopilot, Signal Marketplace, the AGI, Alpha Co-pilot, Guardian, Strategy Objects, Mission Control, Smart Money Radar, Coin Radar, Coin Clash, x402 Studio, Fact Check). Each guide explains why the feature exists, how it actually works, a first-time walkthrough, runnable examples, its states and limits, and links to related surfaces. Browse them from the docs sidebar. (`/docs/forge`) `[docs]`- **Build an agent, leave, come back: never lose a build in progress** — The create-agent wizard now autosaves your work as you go, so a signed-out visitor who starts building and then closes the tab can return and pick up on the exact step they left, with everything filled in. A subtle Start fresh option is always one click away if you would rather begin anew, and abandoned drafts expire after a week. This closes the last gap in the try-first flow: you can now build across visits without an account, and only sign in at the final ship step. (`/create-agent`) `[improvement]`- **Concierge widget now follows your site's own theme, not just the OS setting** — The embeddable Concierge chat widget's auto theme mode used to check only the visitor's OS-level light/dark preference, so a site pinned to dark mode could still hand visitors a light widget if their system happened to be set to light. Auto mode now checks the host page's own theme signal first (the standard data-theme attribute) and live-follows it if the site's own theme toggle changes, falling back to the OS preference only when the host doesn't publish one. (`/docs/concierge`) `[fix, sdk]`@@ -716,6 +724,8 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Spatial MCP — reference renderer** (`/spatial-mcp`) — The open standard for returning a live, interactive 3D scene as a first-class MCP tool result, with a framework-free reference renderer that displays any conformant artifact — including ones transformed from other tools.- **Stablecoins Market Cap & Peg Health** (`/stablecoins`) — Every major stablecoin ranked by circulating market cap, with live peg health, backing mechanism (fiat-backed, crypto-backed, algorithmic), and the chains it lives on. Live from DeFiLlama.- **Top Crypto Exchanges** (`/exchanges`) — The leading cryptocurrency exchanges ranked by trust score and 24-hour trading volume, with country, launch year, and a direct link to each. Real CoinGecko data, sortable by any column.+- **Tutorial · Animations from data: wire your agent's gestures to real APIs and AI** (`/tutorials/emotion-from-data`) — Trigger real body animations — celebrate, dance, flinch — from a live data feed. A free lexicon lane to prove the wiring, then a real AI model classifying arbitrary text into a richer set of gestures, with cooldown/dedupe so a fast feed never spams the queue.+- **Tutorial · Load a ready-made 3D tour for a DeFi protocol (Sperax)** (`/tutorials/sperax-tour`) — The Tour Builder's first template: an 8-stop guided tour of Sperax's USDs auto-yield stablecoin, ready to load, edit, and export as a one-tag snippet in minutes.- **Vault — Buy & Unlock Encrypted 3D Models on BNB Chain** (`/vault`) — Browse encrypted 3D listings, buy access with a real BSC testnet transaction, watch the cross-chain Greenfield permission grant settle, then unlock and view the model — decrypted entirely client-side, the raw key never leaves your browser.- **/create is now the front door for everything you can build** — /create used to be just the avatar picker. It's now a four-way intent hub, Build an AI agent, Make a 3D avatar, Generate a 3D model, or Launch a token world, so you pick your destination in one click instead of hunting through a flat menu of tools. The avatar picker didn't go anywhere: it's still exactly where it was, now reachable as the 'Make a 3D avatar' path with its photo/scratch/prompt/upload options intact. (`/create`) `[improvement]`- **/play gets a Jobs Board: quest-giver NPCs with real missions** — Walk up to a quest-giver NPC in /play (marked with a visible quest indicator) and you can open the new Jobs Board to view and accept missions, tracked and validated by the server in real time. It's the same jobs system that already powers the world's driving delivery missions, now with NPCs to hand them out and markers to find them, reachable from either the HUD or a quest-giver directly. (`/play`) `[feature]`@@ -1566,6 +1576,16 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Make Dad a 3D Avatar** (`/dad`) — Turn one photo of your dad into a recognizable, rigged, animated 3D avatar — it idles, walks, and waves — then share a permalink.- **Studio — Object + Avatar from text** (`/forge-studio`) — One canvas for both text-to-3D pipelines: forge a textured object (GLB) in the Object tab, or describe a character and get a rigged avatar in the Avatar tab.- **The Agent Economy — Live** (`/economy`) — The live three.ws agent economy: agents earning real money ranked by buyers and ratings, and the pay-per-call (x402) services they expose across Solana and Base.+- **Tutorial · Add the Walk Companion to your site** (`/tutorials/walk-companion`) — Drop a 3D avatar that strolls across any web page — corner mascot or full-page playground — with one script tag, the npm SDK, or a postMessage bridge.+- **Tutorial · Claim a .threews.sol name & get paid by name** (`/tutorials/claim-threews-name`) — Mint a *.threews.sol Solana subdomain for your agent and accept USDC payments addressed to the name instead of a raw wallet.+- **Tutorial · Create, enhance & edit agent memory** (`/tutorials/create-and-edit-memory`) — Teach an agent a fact that sticks between sessions — five ways: the dashboard, the agent itself, MCP tools, the REST API, and from a skill. Plus how to sharpen, edit, and forget.+- **Tutorial · Discover and pay for an x402 service** (`/tutorials/pay-for-x402-service`) — Browse the x402 Bazaar and call a paid API from your agent — the 402 challenge, the USDC payment, and the retry, end to end.+- **Tutorial · Getting started (hosted)** (`/tutorials/getting-started`) — A five-minute, no-code tour: create an agent, pick a body, give it a personality, share the URL.+- **Tutorial · Give your agent a voice with lipsync** (`/tutorials/voice-and-lipsync`) — Add real-time text-to-speech with synchronized mouth movement — pick or clone a voice, drive visemes from audio, and wire it into a live agent.+- **Tutorial · Import an avatar by URL** (`/tutorials/import-avatar-url`) — Bring a Ready Player Me or any hosted glTF/GLB avatar into three.ws by link — auto-validated, auto-rigged, ready for an agent.+- **Tutorial · Mine a Solana vanity address** (`/tutorials/mine-vanity-address`) — Grind a custom-prefix Solana address in the browser, then prove how it was made with the proof-of-grind receipt, gallery, and bounty market.+- **Tutorial · Place your agent in the real world (IRL)** (`/tutorials/place-agent-irl`) — Use camera passthrough, a joystick, and tap-to-place to drop your 3D agent into your physical space — and understand how location privacy works.+- **Tutorial · Turn a selfie into a 3D avatar** (`/tutorials/selfie-to-avatar`) — Snap or upload a photo and get a rigged 3D avatar that can walk, wave, and talk — then put it on an agent.- **Walk Anywhere on the Web** (`/walk`) — Your 3D avatar walks anywhere on the web. Live demos across six environments, a Chrome extension, one-tag embeds, and a global distance leaderboard.- **Walk Leaderboard** (`/walk-leaderboard`) — Global leaderboard for the walking avatar — distance walked, sites visited, and time, ranked daily, weekly, and all-time.- **"Fresh from the Forge" thumbnails now show your models** — The community strip on the Forge page shows the newest models people make. Half the tiles were rendering as blank dark squares: for models generated without a reference image, the page builds a thumbnail by snapshotting the 3D model itself, but it was doing that on a one-pixel-wide canvas, so the snapshot came out as a solid block. The snapshot now renders at full thumbnail resolution, and a snapshot that comes back empty cleanly falls back to a labeled prompt card instead of an empty tile. Every card in the strip now shows real artwork. (`/forge`) `[fix]`@@ -2127,6 +2147,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **AR & WebXR — Place Any 3D Agent in Your Real World** (`/features/ar`) — Every three.ws avatar and Forge model has a View in AR button. On mobile it anchors the model to real surfaces through your camera. WebXR on Android, Quick Look on iOS — no app, no download.- **IRL** (`/irl`) — Place a 3D avatar in your real environment. Camera AR passthrough, joystick movement, and tap-to-place 3D objects on your floor.- **Scene Composer** (`/compose`) — Real-time 3D scene composer: forge items from text, attach them to your avatar's skeleton bones, arrange and scale freely, then export your creation or save it as an outfit.+- **Tutorial · View your 3D model in AR** (`/tutorials/view-in-ar`) — See any three.ws model in augmented reality and walk around it in your kitchen — straight from the browser, no app to install. iOS Quick Look and Android WebXR.- **3D model categories, every model is now typed as Avatar, Accessory, Item, Scene, Creature, or Vehicle** — All 3D models on the platform now carry a category that describes what they actually are, not just how they were created. Avatar cards in the marketplace show a color-coded type badge (Avatar, Accessory, Item, Scene, Creature, or Vehicle) and a new filter row lets you browse by type. The Forge gallery shows the same badges on showcase cards, and when you finish forging a model you can tag it right in the result bar with a single click. This is the foundation for the upcoming agent equipment system, where your agents will be able to wear accessories, hold items, and inhabit scenes. (`/marketplace`) `[feature, improvement]`- **All 14 three.ws MCP servers are now live on npm and the official MCP registry** — Every three.ws MCP server is now publicly installable and discoverable. The eight install-and-run servers ship on npm under the @three-ws scope, pull any of them with one command, e.g. npx -y @three-ws/mcp-server (3D + agent tools), @three-ws/three-token-mcp ($THREE price, hold, and burn), @three-ws/pumpfun-mcp, @three-ws/ibm-x402-mcp, @three-ws/avatar-agent, and more. Together with the six hosted remote servers, all 14 are registered in the official Model Context Protocol registry, so any MCP-compatible client, Claude, Cursor, and others, can find them by name. No more dead install links: the documented commands now work. (`/docs/mcp`) `[sdk, feature]`- **Animation library expands: 100+ clips, FBX and BVH upload** — The platform animation library grows to 100+ retargeted motion clips drawn from Mixamo, Avaturn packs, and MIT-licensed Three.js example models (Soldier, Michelle, Xbot). The agent dashboard's Upload clip dialog now accepts .glb, .fbx, and .bvh files, FBX and BVH are converted to GLB client-side via three.js loaders before upload, so creators can bring mocap data directly from capture tools without a separate conversion step. A full Mixamo catalog download pipeline (scripts/mixamo-all.mjs) is in place to expand the library to 2,000+ clips as soon as credentials are supplied. (`/temporary`) `[feature, improvement]`@@ -2437,6 +2458,23 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr## 2026-05-14+- **Tutorial · Add a greeting & first speech line** (`/tutorials/greeting-and-first-speech`) — Make your agent say hello the moment it loads — and have its mouth move with the words.+- **Tutorial · Build a paid x402 endpoint your agent calls** (`/tutorials/paid-x402-endpoint`) — Stand up an API that other agents pay USDC to call — using the x402 protocol on Base mainnet. Real money, real flow.+- **Tutorial · Connect Anthropic or OpenAI as the brain** (`/tutorials/connect-ai-brain`) — Plug your own model provider into the agent loop. Bring your API key, choose your model, control cost and latency.+- **Tutorial · Custom skill with database + auth** (`/tutorials/skill-with-database-auth`) — A real production skill — Postgres-backed CRM lookup, signed requests, per-user permissions, rate limits. Not a toy weather demo.+- **Tutorial · Customize size, position & background** (`/tutorials/customize-appearance`) — Tune every visible knob — bubble size, corner placement, background, rotation speed — entirely through data-* attributes.+- **Tutorial · Deploy to Vercel with a custom domain** (`/tutorials/deploy-to-vercel-custom-domain`) — Take a forked three.ws and ship it as agent.yourcompany.com — CI, environment variables, custom domain, SSL, the lot.+- **Tutorial · Drive the agent with the JavaScript API** (`/tutorials/js-api-events`) — Listen for the ready event, play animations on demand, make the agent speak from anywhere in your app code.+- **Tutorial · Embed in 30 seconds** (`/tutorials/embed-in-30-seconds`) — Drop one script tag into any HTML page. Your agent loads, auto-sizes, and starts animating.+- **Tutorial · Expose your agent as an MCP server** (`/tutorials/mcp-server-for-your-agent`) — Wrap your agent in the Model Context Protocol so any MCP-compatible client (Claude Desktop, Cursor, etc.) can drive it.+- **Tutorial · Mint an agent token on Pump.fun** (`/tutorials/mint-pumpfun-token`) — Launch a Solana token for your agent, bond it to its on-chain identity, and let people speculate on (or hold) a piece of it.+- **Tutorial · Multi-agent coordination** (`/tutorials/multi-agent-coordination`) — Two or more agents on the same page that talk to each other — turn-taking, shared memory, delegating subtasks.+- **Tutorial · Pick & swap an avatar in Studio** (`/tutorials/swap-avatar-in-studio`) — Visually browse the avatar gallery, switch bodies with one click, and have the change ripple to every embed without redeploying.+- **Tutorial · Self-host the agent backend** (`/tutorials/self-host-agent-backend`) — Run the full three.ws backend on your own infrastructure — workers, function endpoints, model proxies. No three.ws dependency in production.+- **Tutorial · Share your agent (link, QR, social preview)** (`/tutorials/share-your-agent`) — Get a permanent link to your agent, generate a QR for print, and set the Open Graph preview so it looks good in tweets.+- **Tutorial · Trigger the agent from page events** (`/tutorials/trigger-from-page-events`) — Make your agent react to clicks, scrolls, form submits, and route changes — turn it into a real co-pilot, not a chat widget.+- **Tutorial · Upload a custom GLB avatar** (`/tutorials/upload-custom-glb`) — Bring your own model — any glTF 2.0 .glb from Blender, three.ws Studio, or any other source. Get it validated, fixed, and live.+- **Tutorial · Use the <agent-3d> web component end-to-end** (`/tutorials/web-component-end-to-end`) — Skip the script tag — drop a real custom element into your DOM, bind attributes, and use the full event lifecycle.- **15 tutorials and six new paid endpoints** — New developer walkthroughs from embed quickstart to multi-agent coordination, plus six x402 paid endpoints including agent reputation, identity verify, and skill marketplace. `[docs, feature]`- **Launchpad Studio, no-code hosted pages** — Pick a template, fill a form, and publish a hosted page for your token or service at /p/<slug>, no code required. `[feature]`- **Multiplayer walk scenes** — Live multiplayer walkaround with websocket infrastructure, multiple players see each other in the same 3D scene. `[feature, infra]`@@ -2533,6 +2571,11 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **OpenAPI** (`/openapi.json`) — Machine-readable HTTP API spec.- **Privacy Policy** (`/legal/privacy`) — How three.ws handles user data.- **Terms of Use** (`/legal/tos`) — Terms of service for three.ws.+- **Tutorial · Build a custom skill** (`/tutorials/custom-skill`) — A complete walkthrough of building a weather skill an agent can invoke — bundle format, LLM tool calling, context API.+- **Tutorial · Build a personal AI website** (`/tutorials/personal-ai-site`) — A 3D version of you, on your domain, ready to answer any question about your work — with a portfolio, contact form, and resume.+- **Tutorial · Build your first agent (from scratch)** (`/tutorials/first-agent`) — A complete walkthrough from a blank HTML file to a live, talking 3D character you wrote yourself — no framework, no build tools.+- **Tutorial · Embed on a website (HTML, React, Next.js)** (`/tutorials/embed-on-website`) — Five different ways to add an agent to your site — pick the one that matches how you build today.+- **Tutorial · Register your agent on-chain (ERC-8004)** (`/tutorials/register-onchain`) — Give your agent a permanent, verifiable identity. Publish an ERC-8004 attestation anyone can read from any chain.- **3D viewer polish** — Better first-load camera framing, keyboard shortcuts, saved per-agent animation preferences, and improved mobile accessibility. `[improvement]`- **Create-to-deploy flow** — A streamlined creator path: create, edit, see your 3D body on your public profile, and deploy on-chain with chain selection, with onboarding for first-time creators. `[feature]`- **Hello, three.ws** — The platform rebranded from 3D Agent to three.ws across every page, with consolidated routing and new Privacy Policy and Terms of Service. `[improvement]`diff --git a/ISSUES.md b/ISSUES.mdindex ba7200a53..fa48d9fd1 100644--- a/ISSUES.md+++ b/ISSUES.md@@ -193,6 +193,28 @@ here; the code-quality items from that pass are not production issues.Kept briefly because each one was previously mis-stated on this list, and thewrong version is what a future reader would otherwise trust.+- **The autopilot spend default.** `POST /api/agents/:id/autopilot/run` read+ `body?.dry_run === true`, so a bare `POST {}` ran a REAL cycle while the+ sibling runner on the same wallet (`api/agents/wallet-intents.js`) read+ `dry_run !== false` and simulated. Now `body?.dry_run !== false`: silence+ simulates, and spending must ask for itself. The cockpit's Run button relied+ on the unsafe default, so it now sends `dry_run: false` explicitly and asks a+ second time before spending; a Preview cycle button runs the simulation.+ Pinned by `tests/autopilot-run-dry-run-default.test.js` (3 of its 6 cases fail+ against the old expression).+- **The `/pulse` marketplace GMV.** This list said "a confirmed `trial` row with+ a non-zero amount inflates published GMV". **That mechanism never occurred**:+ a trial is written `status='trial', kind='trial'` and only a `'pending'` row+ is ever promoted to `'confirmed'`, so the `status='confirmed'` filter already+ excluded every trial. Live data agrees: all 10,454 `skill_purchases` rows are+ `kind='trial', status='trial'`, and there is not one confirmed purchase yet.+ The defect was real but latent: the money aggregates filtered on status alone+ while the counts filtered on status AND kind, so they rested on an invariant+ nothing enforced, and a trial carries the listing's FULL price in `amount`+ despite nothing being paid. Every aggregate now derives from one shared+ `paidRow` predicate, `series_7d` included. Do not re-file this as an+ observed inflation of a published number; it was never that.+- **Oversized sources on `/api/avatar/optimize`.** See item 9.- **Neon storage pressure.** `isStoragePressured()` reports `pressured: false` at2768MB, and `SHOW neon.max_cluster_size` returns **16TB**, so the 8192MBhigh-water on the service is a deliberate runaway backstop rather than a capdiff --git a/STRUCTURE.md b/STRUCTURE.mdindex 53e4269d2..9806e8dcb 100644--- a/STRUCTURE.md+++ b/STRUCTURE.md@@ -20,6 +20,7 @@ bottom.| The walkaround world (`/walk`) | [pages/temporary.html](pages/temporary.html) `→ /temporary`, app [src/walk.js](src/walk.js), environments [src/walk-environments.js](src/walk-environments.js) + [public/environments/](public/environments), multiplayer [src/walk-net.js](src/walk-net.js) → `walk_world`, day/night [src/walk-day-night.js](src/walk-day-night.js), radar [src/game/hud/minimap.js](src/game/hud/minimap.js), companions [src/walk-npcs.js](src/walk-npcs.js), agent desks [src/walk-agent-desk.js](src/walk-agent-desk.js) | Live | Walk your avatar through six real staged environments (park, cyberpunk street, beach, gallery, void, office) with physics-driven locomotion on a heightfield, four camera modes, gestures, voice chat, trails, capture, and live peers. **Time of day is real and shared:** the same deterministic world clock `/play` runs on ([src/shared/world-clock.js](src/shared/world-clock.js)) drives the sun arc, sky gradient, light levels, and IBL strength, so two people in the same world always agree on whether it is night. The sky crossfades on a wider curve than the light levels, so dawn and dusk linger instead of flipping. Armed for outdoor stages only (indoor/void keep their authored manifest lighting) and paused while AR passthrough owns the rig. **The radar is `/play`'s:** `/walk` mounts the same rotating GTA-style minimap the world HUD uses, with a compass, the walkable-disc boundary ring, and live blips for peers (their nameplate colours), NPC companions, live agent desks, the guide's named landmarks, and scenery. Click or tap it to set a walk-to waypoint (`Minimap.worldFromScreen()` inverts the rotating projection); `M` or the dock button toggles it and the choice persists. **Frame pacing is shared too:** the loop runs through [src/shared/frame-governor.js](src/shared/frame-governor.js) (60fps focused, 30 unfocused, 30 under power saver) and the controls overlay carries the cross-surface Power-saver switch. Tests: [tests/walk-day-night.test.js](tests/walk-day-night.test.js), [tests/minimap-projection.test.js](tests/minimap-projection.test.js) || Docs World (immersive 3D docs) | [pages/docs-world.html](pages/docs-world.html) `→ /docs/world`, app [src/docs-world/](src/docs-world) (world/player/controls/overlays), styles [public/docs-world.css](public/docs-world.css), shared manifest [docs/nav.json](docs/nav.json) | Live | The documentation as a walkable place: each section of the docs sidebar is a glowing pavilion on a ring; walk up (WASD / touch joystick, four shared camera modes via [src/game/camera-modes.js](src/game/camera-modes.js)) or tap one to list its pages, and read the live markdown in an in-world DOM reader ([src/shared/markdown.js](src/shared/markdown.js)). One content source: both surfaces read `docs/nav.json` + `/docs/<slug>.md`, so classic and immersive docs cannot drift. Deep links mirror the classic hash routes (`/docs/world#forge`); the classic header's "3D world" button carries the open page across. Avatar is the platform's default rigged body (the same one `/walk` uses, since the agent mannequin ships unskinned and cannot be clip-driven) or any rigged GLB via `?avatar=`, animated by the canonical clip library. No-WebGL devices get a designed fallback routing to `/docs`. Docs: [docs/docs-world.md](docs/docs-world.md). Tests: [tests/docs-world.test.js](tests/docs-world.test.js) || React avatar creator | [avatar-sdk/](avatar-sdk) `→ /react` `/creator` | Published as `@three-ws/avatar` | Same package, React subpath |+| Avatar CLI (manifests in the build pipeline) | [packages/avatar-cli/](packages/avatar-cli), landing [pages/avatar-cli.html](pages/avatar-cli.html) `→ /avatar-cli`, styles [public/avatar-cli.css](public/avatar-cli.css), page runtime [src/avatar-cli-page.js](src/avatar-cli-page.js) | Published as `@three-ws/avatar-cli` | The terminal half of the avatar story, and the half that makes an avatar auditable. Four commands over one file: `init` scaffolds a schema-valid manifest from a wallet plus a mesh (reading the GLB once to compute its SHA-256 and size, so the document cannot disagree with the bytes it was built from), `validate` checks it against [packages/avatar-schema/](packages/avatar-schema) and exits non-zero so it works as a build gate, `hash` prints a bare digest that composes in a shell, and `preview` emits a resolver URL, an `<agent-3d>` snippet paired with the loader that registers it, and a zero-install iframe. Offline and deterministic throughout: no account, no API key, no network call, which is what makes it safe in a release script. `preview` warns instead of printing a dead snippet when `mesh.uri` is still a local `file://` path. The landing page proves the emitted markup by rendering it live rather than screenshotting it. Docs: [docs/avatar-cli.md](docs/avatar-cli.md) `→ /docs/avatar-cli`, tutorial [docs/tutorials/ship-an-avatar-manifest.md](docs/tutorials/ship-an-avatar-manifest.md). Tests: [packages/avatar-cli/test/](packages/avatar-cli/test) || Talking page guide | [page-agent-sdk/](page-agent-sdk) | Published as `@three-ws/page-agent` | Drop-in rigged 3D agent that narrates any page + visitor avatar picker. `<page-agent>` web component. Rigged-only catalog. `preset="…"` resolves one of 5 personas (greeting/role/suggested-prompt chips/tool allowlist) — see [page-agent-sdk/README.md#persona-presets](page-agent-sdk/README.md#persona-presets). See [page-agent-sdk/PUBLISHING.md](page-agent-sdk/PUBLISHING.md) || Guided site tour | [tour-sdk/](tour-sdk) | Published as `@three-ws/tour` | 3D guide walks a live site, spotlights sections, narrates each. One-tag CDN build + free roam || Concierge (embeddable AI support chat) | [concierge-sdk/](concierge-sdk), backend [api/concierge.js](api/concierge.js) `→ /api/concierge`, landing [pages/concierge.html](pages/concierge.html) `→ /concierge`, first-party CDN copy `→ /concierge/concierge.global.js` (mirrored by [concierge-sdk/build.mjs](concierge-sdk/build.mjs)) | Published as `@three-ws/concierge` | An AI concierge for ANY website: floating launcher, chat panel with a rigged 3D avatar bust (blink/idle/viseme lipsync via the page-agent stage lineage), SSE-streamed answers grounded in the live page (ask-time DOM harvest + host `knowledge`, no crawler), speaks while streaming (sentence-level TTS handoff), push-to-talk mic, themes/accent/position, avatar picker or custom GLB. Backend is anonymous + CORS-`*` (third-party origins by design) with its own rate buckets (`limits.conciergeIp`/`conciergeGlobal`), fail-open moderation, and streaming failover over the shared free-first chain (api/_lib/llm.js). Shopping mode (Shopify): when embedded on a Shopify storefront it auto-detects the store (`window.Shopify` / `shop` config) and becomes a shopping assistant, reading the store's public `/products.json` + `/collections.json` + `/policies/*` at ask-time (no key, no crawler, same-origin), retrieving the relevant products per question via keyword+intent search ([concierge-sdk/src/shopify.js](concierge-sdk/src/shopify.js)), grounding the answer in them, and rendering real product cards (image/live price/link + on-store `/cart/add.js` add-to-cart). The endpoint accepts a bounded `shopping` payload and swaps the system prompt to a store assistant. `<three-concierge>` element, `data-concierge` one-tag auto-init, or `new Concierge({...})`. Also reachable from any AI agent via the MCP server [packages/concierge-mcp/](packages/concierge-mcp) (`@three-ws/concierge-mcp`, registry `io.github.nirholas/concierge-mcp`): `concierge_ask` (ask any site's concierge, grounded in the fetched page), `concierge_embed` (generate the embed), `concierge_avatars`. Examples: [concierge-sdk/examples/](concierge-sdk/examples) (one-tag, web component, imperative, custom avatar, React, self-hosted backend). Docs: [docs/concierge.md](docs/concierge.md), tutorial [docs/tutorials/build-a-site-concierge.md](docs/tutorials/build-a-site-concierge.md). Tests: [concierge-sdk/test/](concierge-sdk/test), [tests/api-concierge.test.js](tests/api-concierge.test.js), [packages/concierge-mcp/test/](packages/concierge-mcp/test) |@@ -140,8 +141,10 @@ bottom.| Fleet stall diagnosis (why an arm is not trading) | policy [api/_lib/sniper-stall.js](api/_lib/sniper-stall.js), funding invariant [api/_lib/agent-funding-policy.js](api/_lib/agent-funding-policy.js), operational floor `MIN_OPERATIONAL_WALLET_SOL` in [api/_lib/agent-trade-guards.js](api/_lib/agent-trade-guards.js), board field on [api/sniper/experiments.js](api/sniper/experiments.js) + [src/sniper-experiments.js](src/sniper-experiments.js) `→ /sniper/experiments`, ops page [workers/agent-sniper/alerts.js](workers/agent-sniper/alerts.js) | Live | An armed arm can evaluate every launch and still never buy, because a skipped evaluation writes no row: four arms sat dead for a week behind a bare `0`. Each armed strategy now reports a `stall` code the executor actually enforces (`wallet_dry`, `mcap_band_unreachable`, `mcap_band_tight`, `strict_model_offline`, `size_over_budget`, `kill_switch`, `no_qualifying_launch`), and the two arithmetic deadlocks behind them are gone: an entry clamps to the day's remaining budget instead of sitting out when size drifted above the cap, and the reclaim that pulls idle SOL back to the treasury can no longer take a trading wallet below one complete trade or below the level the auto-funder will instantly restore (the two crons were ping-ponging 0.24 SOL six times in 15 minutes). Tests: [tests/sniper-stall.test.js](tests/sniper-stall.test.js), [tests/economy-sweepback.test.js](tests/economy-sweepback.test.js). See [docs/trading-experiment.md](docs/trading-experiment.md), [docs/economy-master.md](docs/economy-master.md) || Autonomous trading experiment | policy [scripts/trading-experiment-setup.mjs](scripts/trading-experiment-setup.mjs), laddered exit [workers/agent-sniper/exit-logic.js](workers/agent-sniper/exit-logic.js) (`decideLadderedExit`), no-Mayhem gate [workers/agent-sniper/mayhem-gate.js](workers/agent-sniper/mayhem-gate.js), journal [workers/agent-sniper/journal.js](workers/agent-sniper/journal.js) → [api/sniper/journal.js](api/sniper/journal.js) | In-repo | One agent, ~10 SOL, newer pump.fun launches ($10k–$100k mcap, no Mayhem). Take-initials-at-2× laddered exit keeps a moon bag (never a 100% exit up), hard stop-loss underneath. Every decision journaled with its reasoning. UI-funded, simulate-first. See [docs/trading-experiment.md](docs/trading-experiment.md) || Never sell 100% of a winner (moon-bag policy) | rule [workers/agent-sniper/exit-logic.js](workers/agent-sniper/exit-logic.js) (`moonbagExitFraction`, `moonbagAlways`), retained-bag booking [workers/agent-sniper/executor.js](workers/agent-sniper/executor.js), position fields [api/_lib/migrations/20260725100000_sniper_moonbag_always.sql](api/_lib/migrations/20260725100000_sniper_moonbag_always.sql), board [api/sniper/experiments.js](api/sniper/experiments.js) + [src/sniper-experiments.js](src/sniper-experiments.js) `→ /sniper/experiments` | Live | Fleet-wide owner rule: a terminal exit that is IN PROFIT sells down to the moon-bag floor (default 15%) instead of to zero, and the retained tokens ride indefinitely. Once the cost basis is back the remainder is free, so a bag that goes to zero costs nothing and a bag that runs is the whole upside; selling the last slice for a rounding error gives that up. Applies with or without the proactive 2x ladder. A loss exit with the stake still at risk is still a FULL exit and the hard stop-loss is never overridden. The position still books `closed`, so realized P&L and the `max_concurrent_positions` slot are unaffected and a held bag can never stop an arm trading; only the tokens stay behind (`moonbag_base_amount`). Per-strategy opt-out `moonbag_always = false`. Tests: [tests/sniper-laddered-exit.test.js](tests/sniper-laddered-exit.test.js), [tests/trading-experiment-e2e.test.js](tests/trading-experiment-e2e.test.js). See [docs/trading-experiment.md](docs/trading-experiment.md) |+| Autonomous Trading hub (front door) | [pages/trading.html](pages/trading.html) `→ /trading` + [src/trading-hub.js](src/trading-hub.js), pure formatters [src/trading-hub-format.js](src/trading-hub-format.js), surface + doc directory [src/trading-hub-data.js](src/trading-hub-data.js), styles [src/trading-hub.css](src/trading-hub.css) | Live | One entry point for a trading system that had grown to ~20 pages with no front door. Live fleet vitals from `GET /api/sniper/status` (mode, armed strategies, open positions, feed health, funding, uptime), the agent scoreboard from `GET /api/sniper/leaderboard` (realized P&L only, closed trades only, with cumulative sparkline), the five-gate entry-to-exit explainer, and directories of every trading surface and doc. Feed health is reported separately from process health because a beating worker with a silent feed reads as green while seeing nothing. Directory is data, so [tests/trading-hub.test.js](tests/trading-hub.test.js) asserts every link resolves against `data/pages.json` and the docs tree. Docs: [docs/trading-hub.md](docs/trading-hub.md), tutorial [docs/tutorials/read-the-trading-fleet.md](docs/tutorials/read-the-trading-fleet.md) || Sniper Experiments (rules vs LLM A/B fleet) | [pages/sniper-experiments.html](pages/sniper-experiments.html) + [src/sniper-experiments.js](src/sniper-experiments.js) `→ /sniper/experiments`, aggregate [api/sniper/experiments.js](api/sniper/experiments.js), LLM judge [workers/agent-sniper/llm-judge.js](workers/agent-sniper/llm-judge.js), fleet seeding [scripts/seed-sniper-experiments.mjs](scripts/seed-sniper-experiments.mjs) | Live | The sniper fleet runs labeled rule-set variants side by side (strict shields, oracle-gated, and `decision_mode=llm` arms judged per-launch by Grok / Claude / OpenRouter auto with no shields), all behind the same safety rails. The page is the live scoreboard of which entry conditions actually make money; real on-chain fills only. || Trading Copilot (conversational) | client [src/agent-copilot.js](src/agent-copilot.js), hub tab [src/agent-wallet-hub/tabs/copilot.js](src/agent-wallet-hub/tabs/copilot.js), server [api/agents/copilot.js](api/agents/copilot.js) `→ POST /api/agents/:id/copilot` (SSE) | In-repo | Owner-only chat over an agent's Solana wallet: text/voice in, markdown replies, live **data cards** (portfolio, firewall, quote, smart-money, intel) and **confirm-before-execute** trade/limits cards. Read-only tools run server-side; state-changing intents return as proposals the browser re-quotes and runs through the existing spend guards + firewall + custody audit. Slash commands, copy/regenerate, localStorage persistence. See [docs/trading-copilot.md](docs/trading-copilot.md) |+| Master wallet (per-user custodial hub) | page [pages/wallet.html](pages/wallet.html) `→ /wallet` + controller [src/master-wallet.js](src/master-wallet.js), client [src/wallet-api.js](src/wallet-api.js), styles [public/master-wallet.css](public/master-wallet.css); API [api/user/wallet/index.js](api/user/wallet/index.js) (create + balances), [send.js](api/user/wallet/send.js), [fund-agent.js](api/user/wallet/fund-agent.js), [history.js](api/user/wallet/history.js); schema [master_wallets](api/_lib/migrations/20260730040000_master_wallets.sql) | In-repo | One custodial Solana + EVM keypair per USER account (distinct from per-agent wallets): hold SOL/USDC across Solana and Base, top up any agent you own, send to any Solana address, and read history straight from chain. Session-cookie auth only, so no API key or agent can ever spend it; writes are CSRF-guarded and capped at 5 outbound transfers per user per day. The page prices every send through the server's `simulate` path first and requires an explicit confirm showing recipient, amount, asset and network before anything is signed. NOT [src/wallet.js](src/wallet.js), which connects an external Phantom/Seed-Vault wallet. Docs: [docs/user-wallet.md](docs/user-wallet.md). Tests: [tests/master-wallet-page.test.js](tests/master-wallet-page.test.js) || Real-funds risk acknowledgment | gate [public/risk-ack.js](public/risk-ack.js) `→ /legal/risk`, app wrapper [src/shared/risk-ack.js](src/shared/risk-ack.js), record endpoint [api/legal/risk-ack.js](api/legal/risk-ack.js), disclosure [public/legal/risk.html](public/legal/risk.html) | In-repo | Versioned, once-per-browser acceptance dialog every money-committing surface awaits before executing (trade, snipe, withdraw, swap, launch, x402, onramp — devnet exempt). Acceptances persist in `audit_log` (`risk-ack-accept`). See [docs/risk-acknowledgment.md](docs/risk-acknowledgment.md) || Global markets + coin detail pages | [pages/coins.html](pages/coins.html) + [src/coins-index.js](src/coins-index.js) `→ /coins`, [pages/coin.html](pages/coin.html) + [src/coin-page.js](src/coin-page.js) `→ /coin/:id`, backend [api/coin/](api/coin) (detail, tickers, ohlc, pool, markets, news, global over [api/_lib/coingecko.js](api/_lib/coingecko.js)) | In-repo | CoinGecko-style markets index (global stats bar, sortable top-coins table, search, sparklines) + a rich detail page per coin: interactive chart with a source switcher (native CoinGecko line chart, TradingView advanced candlesticks, or the DexScreener / GeckoTerminal on-chain terminal — each shown only when it can chart the coin; GeckoTerminal's pool resolved via [api/coin/pool.js](api/coin/pool.js)), 1h→1y price-performance matrix, market-stats grid, circulating/max supply bar with Mcap/FDV ratio, ATH/ATL with drawdown & recovery multiple, community sentiment vote split, community + developer (GitHub) activity grids, a paginated exchange-listings table (`api/coin/tickers`, ±2% depth + trust) linking into exchange detail, related news, and full link pills (site/social/whitepaper/forum/chat/explorers). Design adopted from cryptocurrency.cv; accepts CoinGecko slugs or Solana mints. Docs: [docs/coin-pages.md](docs/coin-pages.md) || Market tools (heatmap, sentiment, gas, compare) | [pages/heatmap.html](pages/heatmap.html) + [src/heatmap.js](src/heatmap.js) `→ /heatmap`, [pages/fear-greed.html](pages/fear-greed.html) + [src/fear-greed.js](src/fear-greed.js) `→ /fear-greed`, [pages/gas.html](pages/gas.html) + [src/gas.js](src/gas.js) `→ /gas`, [pages/compare.html](pages/compare.html) + [src/compare.js](src/compare.js) `→ /compare`; backend [api/coin/fear-greed.js](api/coin/fear-greed.js), [api/coin/gas.js](api/coin/gas.js) | In-repo | Four tools extending Markets, same design system: treemap heatmap (market-cap-sized tiles), Fear & Greed gauge + history, live Ethereum gas tracker (keyless `eth_feeHistory`), and up-to-4-coin compare (overlay perf + stats). All real key-free data; cross-linked from the markets table. Docs: [docs/coin-pages.md](docs/coin-pages.md) |diff --git a/api/marketplace/purchase-bundle.js b/api/marketplace/purchase-bundle.jsindex 1576db97d..298569eab 100644--- a/api/marketplace/purchase-bundle.js+++ b/api/marketplace/purchase-bundle.js@@ -162,7 +162,7 @@ async function handleConfirm(req, res, purchaseId) {});if (verdict.status === 'pending')- return json(res, 200, { data: { ok: false, status: 'pending', message: 'payment not yet found on-chain — retry shortly' } });+ return json(res, 200, { data: { ok: false, status: 'pending', message: 'payment not yet found on-chain: retry shortly' } });if (verdict.status !== 'confirmed')return error(res, 402, 'payment_not_verified', verdict.message || 'payment could not be verified on-chain');@@ -187,19 +187,19 @@ async function handleConfirm(req, res, purchaseId) {if (claimed.length === 0)return error(res, 409, 'already_processed', 'purchase is no longer pending');- // Unlock every skill in the bundle — one row per skill. hasSkillAccess() reads+ // Unlock every skill in the bundle: one row per skill. hasSkillAccess() reads// skill_purchases, so this row IS the unlock.//// Three column choices are load-bearing, and getting any of them wrong silently// costs the buyer what they paid for:- // reference — NOT NULL and UNIQUE, so it is derived per skill. Omitting it+ // reference : NOT NULL and UNIQUE, so it is derived per skill. Omitting it// made this insert throw 23502 for every bundle ever sold.- // tx_signature — UNIQUE, so it CANNOT be repeated across the bundle's skills:+ // tx_signature : UNIQUE, so it CANNOT be repeated across the bundle's skills:// the second row would collide and ON CONFLICT DO NOTHING would// swallow it, unlocking only the first skill. The settlement tx// is recorded once on the bundle_purchases row above, which is// where it belongs; these rows point back via `reference`.- // amount/kind — 0 and 'bundle'. The bundle's revenue is already counted once+ // amount/kind : 0 and 'bundle'. The bundle's revenue is already counted once// on bundle_purchases, so these access records stay out of the// marketplace GMV and purchase counts on /pulse, which filter// to paid kinds. Pricing them per skill would double-count thediff --git a/data/changelog.json b/data/changelog.jsonindex 40ba8d9cf..ef8a4959f 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-07-30",+ "title": "One front door for autonomous trading",+ "summary": "The agents that trade on their own had grown to about twenty separate pages, and you could only reach most of them if you already knew the address. There is now a single control room at /trading that answers the three questions people actually ask, in order: is the fleet working right now, is it any good, and where do I go next. It shows live fleet vitals read straight off the running trader, a scoreboard of every agent by profit actually realized (an open position is never counted as profit, however far up it is), a plain explanation of the five checks every trade passes before any money moves, and a map of every trading page and document. Feed health is shown separately from whether the trader is running, because a trader can be perfectly healthy while seeing no new coins at all, which looks identical to working and is not. A new guide also covers how to tell a genuinely good strategy from a lucky one.",+ "tags": [+ "feature",+ "docs"+ ],+ "link": "/trading"+ },{"date": "2026-07-30","title": "Marketplace analytics no longer counts free trials as sales",diff --git a/data/pages.json b/data/pages.jsonindex d6d5ceeac..750f45470 100644--- a/data/pages.json+++ b/data/pages.json@@ -2151,6 +2151,14 @@"changefreq": "weekly","added": "2026-04-27"},+ {+ "path": "/docs/in-game-economy",+ "title": "Docs · The in-game economy",+ "description": "The complete reference for the /play open-world economy: gathering and selling materials, the cash purse and bank, tool upgrades, every vendor and gate, $THREE cosmetics that settle on Solana, and the catalog wire format for reading it from code.",+ "priority": 0.6,+ "changefreq": "monthly",+ "added": "2026-07-30"+ },{"path": "/docs/trading-hub","title": "Docs · The trading hub",@@ -2665,6 +2673,12 @@"description": "The autonomous agent-to-agent activity loop — a pool of real platform agents tipping, paying, trading, and launching with one another.","added": "2026-06-29"},+ {+ "path": "/docs/economy-health-dashboard",+ "title": "Docs · Economy Health Dashboard",+ "description": "The operator dashboard that answers whether the Money Pulse is quiet and which link in the funding chain broke, plus the ranked diagnosis rules behind its verdict.",+ "added": "2026-07-30"+ },{"path": "/docs/money-feed","title": "Docs · Money Feed",@@ -4002,6 +4016,350 @@"priority": 0.6,"changefreq": "monthly","added": "2026-07-30"+ },+ {+ "path": "/tutorials/getting-started",+ "title": "Tutorial · Getting started (hosted)",+ "description": "A five-minute, no-code tour: create an agent, pick a body, give it a personality, share the URL.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-06-21"+ },+ {+ "path": "/tutorials/explore-docs-world",+ "title": "Tutorial · Explore the docs as a 3D world",+ "description": "Walk an avatar through the documentation: fourteen sections as glowing pavilions, live pages read in-world, shareable deep links, and your own GLB as the body.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-07-30"+ },+ {+ "path": "/tutorials/embed-in-30-seconds",+ "title": "Tutorial · Embed in 30 seconds",+ "description": "Drop one script tag into any HTML page. Your agent loads, auto-sizes, and starts animating.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-05-14"+ },+ {+ "path": "/tutorials/customize-appearance",+ "title": "Tutorial · Customize size, position & background",+ "description": "Tune every visible knob — bubble size, corner placement, background, rotation speed — entirely through data-* attributes.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-05-14"+ },+ {+ "path": "/tutorials/swap-avatar-in-studio",+ "title": "Tutorial · Pick & swap an avatar in Studio",+ "description": "Visually browse the avatar gallery, switch bodies with one click, and have the change ripple to every embed without redeploying.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-05-14"+ },+ {+ "path": "/tutorials/greeting-and-first-speech",+ "title": "Tutorial · Add a greeting & first speech line",+ "description": "Make your agent say hello the moment it loads — and have its mouth move with the words.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-05-14"+ },+ {+ "path": "/tutorials/share-your-agent",+ "title": "Tutorial · Share your agent (link, QR, social preview)",+ "description": "Get a permanent link to your agent, generate a QR for print, and set the Open Graph preview so it looks good in tweets.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-05-14"+ },+ {+ "path": "/tutorials/selfie-to-avatar",+ "title": "Tutorial · Turn a selfie into a 3D avatar",+ "description": "Snap or upload a photo and get a rigged 3D avatar that can walk, wave, and talk — then put it on an agent.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-06-21"+ },+ {+ "path": "/tutorials/view-in-ar",+ "title": "Tutorial · View your 3D model in AR",+ "description": "See any three.ws model in augmented reality and walk around it in your kitchen — straight from the browser, no app to install. iOS Quick Look and Android WebXR.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-06-13"+ },+ {+ "path": "/tutorials/import-avatar-url",+ "title": "Tutorial · Import an avatar by URL",+ "description": "Bring a Ready Player Me or any hosted glTF/GLB avatar into three.ws by link — auto-validated, auto-rigged, ready for an agent.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-06-21"+ },+ {+ "path": "/tutorials/walk-companion",+ "title": "Tutorial · Add the Walk Companion to your site",+ "description": "Drop a 3D avatar that strolls across any web page — corner mascot or full-page playground — with one script tag, the npm SDK, or a postMessage bridge.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-06-21"+ },+ {+ "path": "/tutorials/sperax-tour",+ "title": "Tutorial · Load a ready-made 3D tour for a DeFi protocol (Sperax)",+ "description": "The Tour Builder's first template: an 8-stop guided tour of Sperax's USDs auto-yield stablecoin, ready to load, edit, and export as a one-tag snippet in minutes.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-07-08"+ },+ {+ "path": "/tutorials/first-agent",+ "title": "Tutorial · Build your first agent (from scratch)",+ "description": "A complete walkthrough from a blank HTML file to a live, talking 3D character you wrote yourself — no framework, no build tools.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-04-27"+ },+ {+ "path": "/tutorials/embed-on-website",+ "title": "Tutorial · Embed on a website (HTML, React, Next.js)",+ "description": "Five different ways to add an agent to your site — pick the one that matches how you build today.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-04-27"+ },+ {+ "path": "/tutorials/personal-ai-site",+ "title": "Tutorial · Build a personal AI website",+ "description": "A 3D version of you, on your domain, ready to answer any question about your work — with a portfolio, contact form, and resume.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-04-27"+ },+ {+ "path": "/tutorials/js-api-events",+ "title": "Tutorial · Drive the agent with the JavaScript API",+ "description": "Listen for the ready event, play animations on demand, make the agent speak from anywhere in your app code.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-05-14"+ },+ {+ "path": "/tutorials/web-component-end-to-end",+ "title": "Tutorial · Use the <agent-3d> web component end-to-end",+ "description": "Skip the script tag — drop a real custom element into your DOM, bind attributes, and use the full event lifecycle.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-05-14"+ },+ {+ "path": "/tutorials/build-a-site-concierge",+ "title": "Tutorial · Build a site concierge from the building blocks",+ "description": "How the Concierge widget is assembled: the talking avatar, the streaming chat, the tool calls, and how to point the same parts at your own backend over Server-Sent Events.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-07-18"+ },+ {+ "path": "/tutorials/trigger-from-page-events",+ "title": "Tutorial · Trigger the agent from page events",+ "description": "Make your agent react to clicks, scrolls, form submits, and route changes — turn it into a real co-pilot, not a chat widget.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-05-14"+ },+ {+ "path": "/tutorials/upload-custom-glb",+ "title": "Tutorial · Upload a custom GLB avatar",+ "description": "Bring your own model — any glTF 2.0 .glb from Blender, three.ws Studio, or any other source. Get it validated, fixed, and live.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-05-14"+ },+ {+ "path": "/tutorials/connect-ai-brain",+ "title": "Tutorial · Connect Anthropic or OpenAI as the brain",+ "description": "Plug your own model provider into the agent loop. Bring your API key, choose your model, control cost and latency.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-05-14"+ },+ {+ "path": "/tutorials/create-and-edit-memory",+ "title": "Tutorial · Create, enhance & edit agent memory",+ "description": "Teach an agent a fact that sticks between sessions — five ways: the dashboard, the agent itself, MCP tools, the REST API, and from a skill. Plus how to sharpen, edit, and forget.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-06-21"+ },+ {+ "path": "/tutorials/place-agent-irl",+ "title": "Tutorial · Place your agent in the real world (IRL)",+ "description": "Use camera passthrough, a joystick, and tap-to-place to drop your 3D agent into your physical space — and understand how location privacy works.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-06-21"+ },+ {+ "path": "/tutorials/voice-and-lipsync",+ "title": "Tutorial · Give your agent a voice with lipsync",+ "description": "Add real-time text-to-speech with synchronized mouth movement — pick or clone a voice, drive visemes from audio, and wire it into a live agent.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-06-21"+ },+ {+ "path": "/tutorials/pay-for-x402-service",+ "title": "Tutorial · Discover and pay for an x402 service",+ "description": "Browse the x402 Bazaar and call a paid API from your agent — the 402 challenge, the USDC payment, and the retry, end to end.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-06-21"+ },+ {+ "path": "/tutorials/emotion-from-data",+ "title": "Tutorial · Animations from data: wire your agent's gestures to real APIs and AI",+ "description": "Trigger real body animations — celebrate, dance, flinch — from a live data feed. A free lexicon lane to prove the wiring, then a real AI model classifying arbitrary text into a richer set of gestures, with cooldown/dedupe so a fast feed never spams the queue.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-07-08"+ },+ {+ "path": "/tutorials/custom-skill",+ "title": "Tutorial · Build a custom skill",+ "description": "A complete walkthrough of building a weather skill an agent can invoke — bundle format, LLM tool calling, context API.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-04-27"+ },+ {+ "path": "/tutorials/register-onchain",+ "title": "Tutorial · Register your agent on-chain (ERC-8004)",+ "description": "Give your agent a permanent, verifiable identity. Publish an ERC-8004 attestation anyone can read from any chain.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-04-27"+ },+ {+ "path": "/tutorials/mint-pumpfun-token",+ "title": "Tutorial · Mint an agent token on Pump.fun",+ "description": "Launch a Solana token for your agent, bond it to its on-chain identity, and let people speculate on (or hold) a piece of it.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-05-14"+ },+ {+ "path": "/tutorials/paid-x402-endpoint",+ "title": "Tutorial · Build a paid x402 endpoint your agent calls",+ "description": "Stand up an API that other agents pay USDC to call — using the x402 protocol on Base mainnet. Real money, real flow.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-05-14"+ },+ {+ "path": "/tutorials/monetize-mcp-server",+ "title": "Tutorial · Monetize an MCP server: charge per tool call",+ "description": "Build an MCP server whose tools charge other agents per call in USDC on Solana. One free orientation tool, one paid tool that does real work, and a test that proves the product never escapes unpaid.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-07-30"+ },+ {+ "path": "/tutorials/x402-server-sdk",+ "title": "Tutorial · Meter any API with the x402-server SDK",+ "description": "Turn an ordinary HTTP handler into a paid one with @three-ws/x402-server. Solana-first, framework-agnostic, and runnable offline before you touch a wallet.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-07-18"+ },+ {+ "path": "/tutorials/self-host-agent-backend",+ "title": "Tutorial · Self-host the agent backend",+ "description": "Run the full three.ws backend on your own infrastructure — workers, function endpoints, model proxies. No three.ws dependency in production.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-05-14"+ },+ {+ "path": "/tutorials/multi-agent-coordination",+ "title": "Tutorial · Multi-agent coordination",+ "description": "Two or more agents on the same page that talk to each other — turn-taking, shared memory, delegating subtasks.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-05-14"+ },+ {+ "path": "/tutorials/mcp-server-for-your-agent",+ "title": "Tutorial · Expose your agent as an MCP server",+ "description": "Wrap your agent in the Model Context Protocol so any MCP-compatible client (Claude Desktop, Cursor, etc.) can drive it.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-05-14"+ },+ {+ "path": "/tutorials/skill-with-database-auth",+ "title": "Tutorial · Custom skill with database + auth",+ "description": "A real production skill — Postgres-backed CRM lookup, signed requests, per-user permissions, rate limits. Not a toy weather demo.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-05-14"+ },+ {+ "path": "/tutorials/deploy-to-vercel-custom-domain",+ "title": "Tutorial · Deploy to Vercel with a custom domain",+ "description": "Take a forked three.ws and ship it as agent.yourcompany.com — CI, environment variables, custom domain, SSL, the lot.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-05-14"+ },+ {+ "path": "/tutorials/claim-threews-name",+ "title": "Tutorial · Claim a .threews.sol name & get paid by name",+ "description": "Mint a *.threews.sol Solana subdomain for your agent and accept USDC payments addressed to the name instead of a raw wallet.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-06-21"+ },+ {+ "path": "/tutorials/mine-vanity-address",+ "title": "Tutorial · Mine a Solana vanity address",+ "description": "Grind a custom-prefix Solana address in the browser, then prove how it was made with the proof-of-grind receipt, gallery, and bounty market.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-06-21"+ },+ {+ "path": "/tutorials/ship-an-avatar-manifest",+ "title": "Tutorial · Ship an avatar manifest",+ "description": "Turn a raw GLB into a signed-off, hash-anchored manifest: one document that names the avatar, records the exact bytes of its mesh, declares its skeleton, and fails your build if the model ever silently changes.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-07-30"+ },+ {+ "path": "/tutorials/write-a-guard",+ "title": "Tutorial · Write a repository guard",+ "description": "This repo has no CI, so a guard is the only thing between a mistake and production. Build one that fails the build when an API handler forgets its error boundary, wire it into the gate, cover it with tests, and register it.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-07-30"+ },+ {+ "path": "/guards",+ "title": "Repository guards",+ "description": "Every mechanical guard that protects the three.ws codebase, and the stage each one runs in. This repository has no CI, so correctness is enforced by fast local checks wired into the prebuild, the gate, the deploy build, and the git pre-push hook. Filter by stage, search by command, and read the incident behind each one.",+ "priority": 0.6,+ "changefreq": "weekly",+ "added": "2026-07-30"+ },+ {+ "path": "/docs/tutorials/write-a-guard",+ "title": "Tutorial · Write a repository guard",+ "description": "Build a real guard end to end: write the checker, give it an npm script, register it in data/guards.json, wire it into a stage, and cover it with a test that includes the false positive it must never report.",+ "priority": 0.5,+ "changefreq": "monthly",+ "added": "2026-07-30"}]},diff --git a/docs/circulation-engine.md b/docs/circulation-engine.mdindex 985a59dee..915f662f7 100644--- a/docs/circulation-engine.md+++ b/docs/circulation-engine.md@@ -1,15 +1,15 @@# Circulation EngineThe circulation engine is three.ws's autonomous agent-to-agent activity loop. It-operates a pool of real platform agents — each a published marketplace listing-with its own custodial Solana (and optionally EVM) wallet — and on every tick it+operates a pool of real platform agents: each a published marketplace listing+with its own custodial Solana (and optionally EVM) wallet: and on every tick itmakes those agents do real, on-chain things with one another: tip each other,pay for services, trade and launch coins, register on-chain identities, and listand buy skills and assets.Every event flows through the **same code paths a human-owned agent uses**, so itlands in the live economy as genuine wallet activity. There are no synthetic rows-and no fake numbers — only the per-action amounts are kept deliberately small.+and no fake numbers: only the per-action amounts are kept deliberately small.> Source: [`api/_lib/circulation.js`](../api/_lib/circulation.js),> [`api/_lib/circulation-personas.js`](../api/_lib/circulation-personas.js),@@ -22,12 +22,12 @@ and no fake numbers — only the per-action amounts are kept deliberately small.1. A single **treasury wallet** (funded by the operator) backs the whole engine.2. On each tick the engine ensures the pool is at its target size, creating newagents from a fixed persona set when it is short.-3. It tops up the working agents' wallets from the treasury **just in time** —+3. It tops up the working agents' wallets from the treasury **just in time** -only enough for the action about to run, plus a small fee buffer.4. It picks a small number of actions from a weighted mix, runs them against realRPC / pump.fun / marketplace code paths, and records each one.5. With `CIRCULATION_ENABLED` unset or the treasury secret missing, the engine is- **fully inert** — no pool growth, no actions, no transactions.+ **fully inert**: no pool growth, no actions, no transactions.## The agent pool@@ -39,7 +39,7 @@ configured ceiling. Pool members are agents tagged `meta.circulation = 'true'`and are loaded fresh from the database every tick.Senders and receivers for an action are drawn from this pool at random-(`pickTwo()`); there is no fixed "sender" subset — every pool agent is eligible+(`pickTwo()`); there is no fixed "sender" subset: every pool agent is eligiblefor every role on every tick.## Action types@@ -59,13 +59,13 @@ falls back to a weighted everyday mix.| Action | Weight | Real money? | Settlement ||---|---|---|---|| `buy_skill` | 34 | **Real** | Buyer acquires $THREE via the trade engine, pays the seller in $THREE (SPL transfer) + marketplace fee; records `skill_purchases` |-| `tip` | 18 | **Real** | Direct SOL transfer between two agents (0.001–0.006 SOL) |+| `tip` | 18 | **Real** | Direct SOL transfer between two agents (0.001-0.006 SOL) || `trade` | 12 | **Real** | On-chain trade via the platform trade engine; records `pump_agent_trades` || `trial` | 12 | DB only | Records a `trial` skill-purchase row (no transfer) || `use_trial` | 12 | DB only | Spends one run of an existing trial via `consumeTrialUse`, and logs real usage || `buy_asset` | 8 | **Real** | Buyer pays in $THREE (SPL transfer) for an avatar/agent/plugin; records `asset_purchases` || `review` | 8 | DB only | Inserts a marketplace review row |-| `payment` | 6 | **Real** | Direct SOL transfer for a named service (0.0012–0.01 SOL), logged with category `x402` |+| `payment` | 6 | **Real** | Direct SOL transfer for a named service (0.0012-0.01 SOL), logged with category `x402` |Listing actions (`list_skill`, `list_asset`) are emitted as needed to keepsellers "stocked" and are database-only (they create a price row, not a@@ -113,7 +113,7 @@ again.## Amounts-All amounts are small by design — a steady, believable heartbeat, not volume for+All amounts are small by design: a steady, believable heartbeat, not volume forits own sake.| Constant | Value |@@ -162,7 +162,7 @@ Each tick grows the pool by up to `CIRCULATION_GROWTH_PER_TICK` agents and runswins first refusal). The `pulse-tick` function is bounded to a 120-second`maxDuration` in [`vercel.json`](../vercel.json).-All scheduled jobs — the `economy-tick` dispatcher included — run on **Google+All scheduled jobs: the `economy-tick` dispatcher included: run on **GoogleCloud Scheduler**. `vercel.json`'s cron list is the source of truth the CloudRun server (`server/index.mjs`) reads at runtime; there is no GitHub Actionsfailover.@@ -174,13 +174,13 @@ failover.| `CIRCULATION_ENABLED` | _(off)_ | `1`/`true`/`yes` | Master gate. Engine is inert unless set. || `CIRCULATION_TREASURY_SECRET` | _(required)_ | base58 / base64 / JSON keypair | Solana treasury that funds the pool. || `CIRCULATION_NETWORK` | `mainnet` | `mainnet` / `devnet` | Solana cluster. |-| `CIRCULATION_POOL_TARGET` | `14` | 2–2000 | Target pool size. |-| `CIRCULATION_GROWTH_PER_TICK` | `3` | 1–40 | New agents created per tick when short. |-| `CIRCULATION_ACTIONS_PER_TICK` | `2` | 1–12 | Everyday actions executed per tick. |+| `CIRCULATION_POOL_TARGET` | `14` | 2-2000 | Target pool size. |+| `CIRCULATION_GROWTH_PER_TICK` | `3` | 1-40 | New agents created per tick when short. |+| `CIRCULATION_ACTIONS_PER_TICK` | `2` | 1-12 | Everyday actions executed per tick. || `CIRCULATION_EVM_TREASURY_SECRET` | _(off)_ | secret | Enables ERC-8004 `deploy` actions. |-| `CIRCULATION_EVM_CHAIN_ID` | `8453` (Base) | 1–1e9 | EVM chain for deploys. |+| `CIRCULATION_EVM_CHAIN_ID` | `8453` (Base) | 1-1e9 | EVM chain for deploys. |-Manufactured demand only ever reaches circulation sellers — agents the platform+Manufactured demand only ever reaches circulation sellers: agents the platformowns. It is never routed to real user-owned wallets, so no SOL or $THREE leaves theloop as a payout.@@ -201,7 +201,7 @@ in the public pump feed and the launches directory.## Safety- **Skips, not errors.** A low treasury, an under-sized pool, or a buyer that- can't be funded raises an internal `Skip` — an expected, logged non-event. The+ can't be funded raises an internal `Skip`: an expected, logged non-event. Thetick records it and moves on; it is never surfaced as a failure.- **Just-in-time funding.** Wallets are topped up only to `AGENT_FLOOR` plus theamount needed for the imminent action, bounding treasury exposure per tick.@@ -216,8 +216,8 @@ in the public pump feed and the launches directory.The safest levers, in order, all reversible:-1. Raise `CIRCULATION_ACTIONS_PER_TICK` (e.g. 2 → 6) — near-linear throughput.-2. Raise `CIRCULATION_POOL_TARGET` (e.g. 14 → 40) — spreads activity across more+1. Raise `CIRCULATION_ACTIONS_PER_TICK` (e.g. 2 → 6): near-linear throughput.+2. Raise `CIRCULATION_POOL_TARGET` (e.g. 14 → 40): spreads activity across morewallets so no single agent dominates.3. Raise `CIRCULATION_GROWTH_PER_TICK` to fill a larger pool faster.@@ -226,10 +226,10 @@ budget, so raise gradually and watch tick runtime and treasury balance.## Related-- [Economy Health dashboard](economy-health-dashboard.md) — the operator page+- [Economy Health dashboard](economy-health-dashboard.md): the operator pagethat diagnoses this engine when the pulse goes quiet.-- [Money feed](money-feed.md) — where circulation activity surfaces.-- [Autonomous x402 loop](autonomous-x402.md) — the separate treasury-paid loop+- [Money feed](money-feed.md): where circulation activity surfaces.+- [Autonomous x402 loop](autonomous-x402.md): the separate treasury-paid loopthat buys polling intel from our own x402 endpoints.-- [Agent wallets](agent-wallets.md) — the custodial key model every action uses.+- [Agent wallets](agent-wallets.md): the custodial key model every action uses.- [Marketplace](marketplace.md), [Coin launches](coin-launches.md).diff --git a/docs/economy-health-dashboard.md b/docs/economy-health-dashboard.mdindex f6fa7b89e..e79a4f93e 100644--- a/docs/economy-health-dashboard.md+++ b/docs/economy-health-dashboard.md@@ -135,8 +135,8 @@ diagnose({ stats, health, topup });## Related-- [Circulation engine](circulation-engine.md) — the engine this page watches.-- [Economy master](economy-master.md) — the funding root at the top of the chain.-- [Money feed](money-feed.md) — the public surface the volume comes from.-- [Ring dashboard](x402-ring-economy.md#watching-it--the-operator-dashboard) —+- [Circulation engine](circulation-engine.md): the engine this page watches.+- [Economy master](economy-master.md): the funding root at the top of the chain.+- [Money feed](money-feed.md): the public surface the volume comes from.+- [Ring dashboard](x402-ring-economy.md#watching-it--the-operator-dashboard) -the sibling operator page for the x402 ring.diff --git a/docs/nav.json b/docs/nav.jsonindex b7a0a4915..8b960ac09 100644--- a/docs/nav.json+++ b/docs/nav.json@@ -495,6 +495,10 @@{"title": "Economy & payments","links": [+ {+ "label": "The in-game economy",+ "path": "in-game-economy"+ },{"label": "Circulation engine","path": "circulation-engine"@@ -991,6 +995,10 @@{"label": "Read the trading fleet","path": "tutorials/read-the-trading-fleet"+ },+ {+ "label": "Earn and spend in /play",+ "path": "tutorials/earn-and-spend-in-play"}]},diff --git a/docs/swarms.md b/docs/swarms.mdnew file mode 100644index 000000000..63ce1a598--- /dev/null+++ b/docs/swarms.md@@ -0,0 +1,173 @@+# Trading swarms: many agents, one treasury, weighted consensus++A **swarm** is a group of agents that pool real SOL into one on-chain treasury and trade it together. No single agent decides. Each member votes with its own reputation as weight, and the swarm only buys when the weighted vote clears the threshold the creator set when the swarm was formed.++Two things make this different from a group chat with a shared wallet. The treasury is a real Solana account, so **every balance ties to chain and there are no virtual balances**: contributing and exiting execute actual transfers, spend-guarded and audited. And the kill switch is not the creator's alone, so a creator cannot trap members' funds in a swarm that is losing.++Live at [three.ws/swarms](https://three.ws/swarms). This document covers the swarm surface specifically. For how agents coordinate in general (delegation, agent-to-agent messaging, task handoff), read [multi-agent](./multi-agent.md) first, which this builds on rather than repeats. For the single-agent trading pipeline that a swarm's treasury reuses, see [agent sniper](./agent-sniper.md), and for the earned-autonomy model behind each member's weight, see [earned autonomy](./sniper-autonomy.md).++> **This moves real money.** `contribute` and `exit` transfer real SOL on Solana mainnet. Nothing here is simulated. Read the [risk acknowledgment](./risk-acknowledgment.md) before joining a swarm with funds you cannot afford to lose.++Code: [api/swarms/index.js](../api/swarms/index.js) (directory plus every mutation), [api/swarms/[id].js](../api/swarms/%5Bid%5D.js) (dashboard state and the live stream), [api/_lib/swarms.js](../api/_lib/swarms.js) (policy, treasury, consensus, kill switch).++---++## The shape of a swarm++```+creator agent ──create──▶ swarm (name, network, policy)+ │+ member agents ──join──▶ │ each member contributes SOL+ ▼+ one on-chain treasury+ │+ every member votes, weighted by its reputation+ ▼+ consensus ≥ policy.min_consensus ──▶ buy+ │+ exit ladder, stop loss, trailing stop+ ▼+ proceeds return to the treasury+```++A swarm has four lifecycle states: `open` (accepting members), `active` (first contribution landed, trading), `paused` (creator halted new buys, positions still managed), and `killed` (kill switch pulled, positions liquidating, no new buys ever).++## Weighted consensus, and why reputation is the weight++When the swarm evaluates a candidate, each active member is either long or not. Consensus is **not** a headcount. Each member's vote carries its reputation as weight, floored at 5 so a brand-new agent still has a voice but not a decisive one:++```+weight(member) = max(5, member.reputation)+consensus = sum(weight of members voting long) / sum(weight of all members)+```++A separate smart-money signal can then lift conviction, but it deliberately **cannot manufacture agreement**. It scales what members already voted rather than adding to it:++```+smBonus = clamp(smartMoneyScore / 100, 0, 1) * 0.25+conviction = clamp(consensus * (1 + smBonus), 0, 1)+```++So a swarm where nobody is long has `consensus = 0`, and a perfect smart-money score still leaves conviction at zero. That is the intended property: outside signal can strengthen a call the members made, never create one.++The response carries the full `breakdown`, one row per member with its reputation, weight, and whether it voted long, so a member can always audit exactly why a trade did or did not fire.++## Policy++Every swarm carries a policy, normalized and clamped on write so a malformed value can never reach the treasury strategy. Defaults and bounds, exactly as validated in `normalizeSwarmPolicy`:++| Field | Default | Range | What it controls |+|---|---|---|---|+| `min_consensus` | `0.6` | 0.05 to 1 | Weighted agreement needed to buy |+| `max_per_trade_lamports` | 50,000,000 (0.05 SOL) | at least 1,000,000 | Ceiling on a single trade |+| `daily_budget_lamports` | 500,000,000 (0.5 SOL) | at least `max_per_trade` | Ceiling on a day's spending |+| `creator_fee_bps` | `0` | 0 to 2000 (20% cap) | Creator's cut of profit |+| `max_member_share_bps` | `5000` (50%) | 1000 to 10000 | Largest share one member may hold |+| `stop_loss_pct` | `35` | 1 to 95 | Position stop |+| `take_profit_pct` | `80` | 5 to 100000 | Position target |+| `trailing_stop_pct` | `25` | 1 to 95 | Trailing stop |+| `max_hold_seconds` | `3600` | 60 to 86400 | Forced exit after this long |+| `slippage_bps` | `500` | 50 to 5000 | Swap slippage tolerance |+| `firewall_level` | `block` | `block`, `warn`, `off` | Trade-firewall strictness |+| `require_smart_money` | `false` | boolean | Require smart-money confirmation |+| `min_smart_money_score` | `0` | 0 to 100 | Minimum score when required |+| `join_open` | `true` | boolean | Whether anyone may join |+| `kill_threshold_bps` | `3000` (30%) | 0 to 10000 | Treasury share that can force a kill |+| `exit_policy` | `settle_at_mark` | `settle_at_mark`, `wait_to_close` | How an exiting member is paid |++Two floors are fixed rather than policy: a contribution must be at least **0.005 SOL** (`MIN_CONTRIBUTION_LAMPORTS`), and the treasury holds back **0.015 SOL** as a gas reserve (`GAS_RESERVE_LAMPORTS`) so it can always sign its own exits.++## The kill switch is not the creator's alone++The creator can always kill a swarm. So can any member, or set of members, holding at least `kill_threshold_bps` of the treasury (30% by default). Killing halts new consensus buys and flips the kill flag on the treasury strategy and every open position, so the sweep liquidates them.++This is the structural answer to the obvious question about pooling money with strangers: a creator who stops managing, or manages badly, cannot hold the pool hostage. A minority stake large enough to matter can end it.++`max_member_share_bps` is the complement. Capping any one member's share (50% by default) stops a single whale from owning the vote outright.++## API++`GET` is public for the directory. Every mutation requires a signed-in account, and the caller must own the agent it acts for.++### Browse swarms++```bash+# Public directory with aggregate track record+curl -s 'https://three.ws/api/swarms?status=active&limit=10'++# Filter by network (mainnet is the default; devnet is the only other value)+curl -s 'https://three.ws/api/swarms?network=devnet'+```++`limit` defaults to 30 and is capped at 60; `offset` pages. Anything other than `devnet` for `network` resolves to `mainnet`.++### Your own swarms++```bash+curl -s 'https://three.ws/api/swarms?mine=1' -H 'Cookie: <session>'+```++Returns swarms the caller owns or belongs to, **including killed and closed ones**. That is deliberate: it is the only route that reaches an ended swarm's dashboard, so a member can still read the final accounting.++### One swarm, and its live stream++```bash+curl -s https://three.ws/api/swarms/<SWARM_ID> # full dashboard state+curl -sN https://three.ws/api/swarms/<SWARM_ID>/stream # SSE: votes, payouts, treasury ticks+```++### Mutations++All mutations are `POST /api/swarms` with an `action` field.++```bash+# Create. The policy is optional; anything you omit takes the default above.+curl -s -X POST https://three.ws/api/swarms \+ -H 'Content-Type: application/json' -H 'Cookie: <session>' \+ -d '{"action":"create","owner_agent_id":"<AGENT_UUID>","name":"Momentum pod",+ "policy":{"min_consensus":0.7,"creator_fee_bps":500}}'++# Join with one of your agents+curl -s -X POST https://three.ws/api/swarms \+ -H 'Content-Type: application/json' -H 'Cookie: <session>' \+ -d '{"action":"join","swarm_id":"<SWARM_UUID>","agent_id":"<AGENT_UUID>"}'+```++**`contribute` and `exit` move real SOL.** Amounts accept either `sol` or `lamports`; `sol` is multiplied by 1e9 and rounded.++```bash+# Contribute 0.05 SOL. This is a real on-chain transfer.+curl -s -X POST https://three.ws/api/swarms \+ -H 'Content-Type: application/json' -H 'Cookie: <session>' \+ -d '{"action":"contribute","swarm_id":"<SWARM_UUID>","agent_id":"<AGENT_UUID>","sol":0.05}'++# Exit: paid out per the swarm's exit_policy+curl -s -X POST https://three.ws/api/swarms \+ -H 'Content-Type: application/json' -H 'Cookie: <session>' \+ -d '{"action":"exit","swarm_id":"<SWARM_UUID>","agent_id":"<AGENT_UUID>"}'+```++The first contribution flips a swarm from `open` to `active`.++Remaining actions, all taking `swarm_id`: `kill` (optional `reason`), `pause`, and `resume`. `pause` and `resume` are the creator's; `kill` follows the threshold rule above.++### Errors++Every failure returns `{ error, error_description }` with a specific code rather than a generic 500:++| Status | Code | Meaning |+|---|---|---|+| 400 | `bad_agent`, `bad_swarm` | The id is missing or not a UUID |+| 400 | `bad_amount` | `contribute` without a positive `sol` or `lamports` |+| 400 | `bad_action` | Unrecognized `action` |+| 400 | `too_small` | Contribution under the 0.005 SOL floor |+| 401 | `unauthorized` | Mutation or `?mine=1` without a session |+| 404 | `not_found` | No such swarm |+| 409 | `killed` | The swarm's kill switch is already pulled |++## Related++- [Multi-agent coordination](./multi-agent.md), the general model swarms specialize.+- [Trading arenas](./trading-arenas.md), which covers swarms alongside tournaments, the theater, and vaults.+- [USDC agent vaults](./vaults.md), the other way to pool capital behind an agent. A vault has one manager and NAV-priced shares; a swarm has many voters and one treasury.+- [Custody you can verify](./custody.md) for the spend guards every transfer here passes through.diff --git a/examples/wallet-sign-in/index.html b/examples/wallet-sign-in/index.htmlindex 53ffb0f6e..a5538288e 100644--- a/examples/wallet-sign-in/index.html+++ b/examples/wallet-sign-in/index.html@@ -536,8 +536,10 @@account_deleted: 'That wallet belongs to a deleted account.',};+ // The API's error shape is {error, error_description}: the machine code+ // is in `error`, not in a `code` field.function describe(data) {- return CODES[data?.code] || data?.error_description || data?.error || 'Sign-in failed.';+ return CODES[data?.error] || data?.error_description || data?.error || 'Sign-in failed.';}function friendly(err) {diff --git a/package.json b/package.jsonindex a4d3b3d6d..319220250 100644--- a/package.json+++ b/package.json@@ -247,6 +247,8 @@"lint:fix": "eslint . --fix","check:dist": "node scripts/check-dist.mjs","check:pages": "node scripts/check-pages.mjs",+ "check:tutorials": "node scripts/sync-tutorial-pages.mjs",+ "tutorials:sync": "node scripts/sync-tutorial-pages.mjs --write","check:claude": "node scripts/check-claude-md.mjs","check:rules": "node scripts/check-rules.mjs","check:gcloudignore": "node scripts/check-gcloudignore.mjs",diff --git a/public/changelog.json b/public/changelog.jsonindex 94f0fc6f2..1b452bc42 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-30T22:44:41.037Z",+ "generated_at": "2026-07-30T22:46:10.115Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -16,6 +16,16 @@"launch"]},+ {+ "date": "2026-07-30",+ "type": "launch",+ "title": "Docs · Economy Health Dashboard",+ "summary": "The operator dashboard that answers whether the Money Pulse is quiet and which link in the funding chain broke, plus the ranked diagnosis rules behind its verdict.",+ "link": "/docs/economy-health-dashboard",+ "tags": [+ "launch"+ ]+ },{"date": "2026-07-30","type": "launch",@@ -26,6 +36,16 @@"launch"]},+ {+ "date": "2026-07-30",+ "type": "launch",+ "title": "Docs · The in-game economy",+ "summary": "The complete reference for the /play open-world economy: gathering and selling materials, the cash purse and bank, tool upgrades, every vendor and gate, $THREE cosmetics that settle on Solana, and the catalog wire format for reading it from code.",+ "link": "/docs/in-game-economy",+ "tags": [+ "launch"+ ]+ },{"date": "2026-07-30","type": "launch",@@ -96,6 +116,16 @@"launch"]},+ {+ "date": "2026-07-30",+ "type": "launch",+ "title": "Tutorial · Explore the docs as a 3D world",+ "summary": "Walk an avatar through the documentation: fourteen sections as glowing pavilions, live pages read in-world, shareable deep links, and your own GLB as the body.",+ "link": "/tutorials/explore-docs-world",+ "tags": [+ "launch"+ ]+ },{"date": "2026-07-30","type": "launch",@@ -106,6 +136,16 @@"launch"]},+ {+ "date": "2026-07-30",+ "type": "launch",+ "title": "Tutorial · Monetize an MCP server: charge per tool call",+ "summary": "Build an MCP server whose tools charge other agents per call in USDC on Solana. One free orientation tool, one paid tool that does real work, and a test that proves the product never escapes unpaid.",+ "link": "/tutorials/monetize-mcp-server",+ "tags": [+ "launch"+ ]+ },{"date": "2026-07-30","type": "launch",@@ -136,6 +176,26 @@"launch"]},+ {+ "date": "2026-07-30",+ "type": "launch",+ "title": "Tutorial · Ship an avatar manifest",+ "summary": "Turn a raw GLB into a signed-off, hash-anchored manifest: one document that names the avatar, records the exact bytes of its mesh, declares its skeleton, and fails your build if the model ever silently changes.",+ "link": "/tutorials/ship-an-avatar-manifest",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-07-30",+ "type": "launch",+ "title": "Tutorial · Write a repository guard",+ "summary": "This repo has no CI, so a guard is the only thing between a mistake and production. Build one that fails the build when an API handler forgets its error boundary, wire it into the gate, cover it with tests, and register it.",+ "link": "/tutorials/write-a-guard",+ "tags": [+ "launch"+ ]+ },{"date": "2026-07-30","type": "launch",@@ -3642,6 +3702,26 @@"launch"]},+ {+ "date": "2026-07-18",+ "type": "launch",+ "title": "Tutorial · Build a site concierge from the building blocks",+ "summary": "How the Concierge widget is assembled: the talking avatar, the streaming chat, the tool calls, and how to point the same parts at your own backend over Server-Sent Events.",+ "link": "/tutorials/build-a-site-concierge",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-07-18",+ "type": "launch",+ "title": "Tutorial · Meter any API with the x402-server SDK",+ "summary": "Turn an ordinary HTTP handler into a paid one with @three-ws/x402-server. Solana-first, framework-agnostic, and runnable offline before you touch a wallet.",+ "link": "/tutorials/x402-server-sdk",+ "tags": [+ "launch"+ ]+ },{"date": "2026-07-18","type": "update",@@ -6747,6 +6827,26 @@"launch"]},+ {+ "date": "2026-07-08",+ "type": "launch",+ "title": "Tutorial · Animations from data: wire your agent's gestures to real APIs and AI",+ "summary": "Trigger real body animations — celebrate, dance, flinch — from a live data feed. A free lexicon lane to prove the wiring, then a real AI model classifying arbitrary text into a richer set of gestures, with cooldown/dedupe so a fast feed never spams the queue.",+ "link": "/tutorials/emotion-from-data",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-07-08",+ "type": "launch",+ "title": "Tutorial · Load a ready-made 3D tour for a DeFi protocol (Sperax)",+ "summary": "The Tour Builder's first template: an 8-stop guided tour of Sperax's USDs auto-yield stablecoin, ready to load, edit, and export as a one-tag snippet in minutes.",+ "link": "/tutorials/sperax-tour",+ "tags": [+ "launch"+ ]+ },{"date": "2026-07-08","type": "launch",@@ -15086,6 +15186,106 @@"launch"]},+ {+ "date": "2026-06-21",+ "type": "launch",+ "title": "Tutorial · Add the Walk Companion to your site",+ "summary": "Drop a 3D avatar that strolls across any web page — corner mascot or full-page playground — with one script tag, the npm SDK, or a postMessage bridge.",+ "link": "/tutorials/walk-companion",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-06-21",+ "type": "launch",+ "title": "Tutorial · Claim a .threews.sol name & get paid by name",+ "summary": "Mint a *.threews.sol Solana subdomain for your agent and accept USDC payments addressed to the name instead of a raw wallet.",+ "link": "/tutorials/claim-threews-name",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-06-21",+ "type": "launch",+ "title": "Tutorial · Create, enhance & edit agent memory",+ "summary": "Teach an agent a fact that sticks between sessions — five ways: the dashboard, the agent itself, MCP tools, the REST API, and from a skill. Plus how to sharpen, edit, and forget.",+ "link": "/tutorials/create-and-edit-memory",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-06-21",+ "type": "launch",+ "title": "Tutorial · Discover and pay for an x402 service",+ "summary": "Browse the x402 Bazaar and call a paid API from your agent — the 402 challenge, the USDC payment, and the retry, end to end.",+ "link": "/tutorials/pay-for-x402-service",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-06-21",+ "type": "launch",+ "title": "Tutorial · Getting started (hosted)",+ "summary": "A five-minute, no-code tour: create an agent, pick a body, give it a personality, share the URL.",+ "link": "/tutorials/getting-started",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-06-21",+ "type": "launch",+ "title": "Tutorial · Give your agent a voice with lipsync",+ "summary": "Add real-time text-to-speech with synchronized mouth movement — pick or clone a voice, drive visemes from audio, and wire it into a live agent.",+ "link": "/tutorials/voice-and-lipsync",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-06-21",+ "type": "launch",+ "title": "Tutorial · Import an avatar by URL",+ "summary": "Bring a Ready Player Me or any hosted glTF/GLB avatar into three.ws by link — auto-validated, auto-rigged, ready for an agent.",+ "link": "/tutorials/import-avatar-url",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-06-21",+ "type": "launch",+ "title": "Tutorial · Mine a Solana vanity address",+ "summary": "Grind a custom-prefix Solana address in the browser, then prove how it was made with the proof-of-grind receipt, gallery, and bounty market.",+ "link": "/tutorials/mine-vanity-address",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-06-21",+ "type": "launch",+ "title": "Tutorial · Place your agent in the real world (IRL)",+ "summary": "Use camera passthrough, a joystick, and tap-to-place to drop your 3D agent into your physical space — and understand how location privacy works.",+ "link": "/tutorials/place-agent-irl",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-06-21",+ "type": "launch",+ "title": "Tutorial · Turn a selfie into a 3D avatar",+ "summary": "Snap or upload a photo and get a rigged 3D avatar that can walk, wave, and talk — then put it on an agent.",+ "link": "/tutorials/selfie-to-avatar",+ "tags": [+ "launch"+ ]+ },{"date": "2026-06-21","type": "launch",@@ -20644,6 +20844,16 @@"launch"]},+ {+ "date": "2026-06-13",+ "type": "launch",+ "title": "Tutorial · View your 3D model in AR",+ "summary": "See any three.ws model in augmented reality and walk around it in your kitchen — straight from the browser, no app to install. iOS Quick Look and Android WebXR.",+ "link": "/tutorials/view-in-ar",+ "tags": [+ "launch"+ ]+ },{"date": "2026-06-13","type": "update",@@ -22962,6 +23172,176 @@"feature"]},+ {+ "date": "2026-05-14",+ "type": "launch",+ "title": "Tutorial · Add a greeting & first speech line",+ "summary": "Make your agent say hello the moment it loads — and have its mouth move with the words.",+ "link": "/tutorials/greeting-and-first-speech",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-05-14",+ "type": "launch",+ "title": "Tutorial · Build a paid x402 endpoint your agent calls",+ "summary": "Stand up an API that other agents pay USDC to call — using the x402 protocol on Base mainnet. Real money, real flow.",+ "link": "/tutorials/paid-x402-endpoint",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-05-14",+ "type": "launch",+ "title": "Tutorial · Connect Anthropic or OpenAI as the brain",+ "summary": "Plug your own model provider into the agent loop. Bring your API key, choose your model, control cost and latency.",+ "link": "/tutorials/connect-ai-brain",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-05-14",+ "type": "launch",+ "title": "Tutorial · Custom skill with database + auth",+ "summary": "A real production skill — Postgres-backed CRM lookup, signed requests, per-user permissions, rate limits. Not a toy weather demo.",+ "link": "/tutorials/skill-with-database-auth",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-05-14",+ "type": "launch",+ "title": "Tutorial · Customize size, position & background",+ "summary": "Tune every visible knob — bubble size, corner placement, background, rotation speed — entirely through data-* attributes.",+ "link": "/tutorials/customize-appearance",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-05-14",+ "type": "launch",+ "title": "Tutorial · Deploy to Vercel with a custom domain",+ "summary": "Take a forked three.ws and ship it as agent.yourcompany.com — CI, environment variables, custom domain, SSL, the lot.",+ "link": "/tutorials/deploy-to-vercel-custom-domain",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-05-14",+ "type": "launch",+ "title": "Tutorial · Drive the agent with the JavaScript API",+ "summary": "Listen for the ready event, play animations on demand, make the agent speak from anywhere in your app code.",+ "link": "/tutorials/js-api-events",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-05-14",+ "type": "launch",+ "title": "Tutorial · Embed in 30 seconds",+ "summary": "Drop one script tag into any HTML page. Your agent loads, auto-sizes, and starts animating.",+ "link": "/tutorials/embed-in-30-seconds",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-05-14",+ "type": "launch",+ "title": "Tutorial · Expose your agent as an MCP server",+ "summary": "Wrap your agent in the Model Context Protocol so any MCP-compatible client (Claude Desktop, Cursor, etc.) can drive it.",+ "link": "/tutorials/mcp-server-for-your-agent",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-05-14",+ "type": "launch",+ "title": "Tutorial · Mint an agent token on Pump.fun",+ "summary": "Launch a Solana token for your agent, bond it to its on-chain identity, and let people speculate on (or hold) a piece of it.",+ "link": "/tutorials/mint-pumpfun-token",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-05-14",+ "type": "launch",+ "title": "Tutorial · Multi-agent coordination",+ "summary": "Two or more agents on the same page that talk to each other — turn-taking, shared memory, delegating subtasks.",+ "link": "/tutorials/multi-agent-coordination",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-05-14",+ "type": "launch",+ "title": "Tutorial · Pick & swap an avatar in Studio",+ "summary": "Visually browse the avatar gallery, switch bodies with one click, and have the change ripple to every embed without redeploying.",+ "link": "/tutorials/swap-avatar-in-studio",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-05-14",+ "type": "launch",+ "title": "Tutorial · Self-host the agent backend",+ "summary": "Run the full three.ws backend on your own infrastructure — workers, function endpoints, model proxies. No three.ws dependency in production.",+ "link": "/tutorials/self-host-agent-backend",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-05-14",+ "type": "launch",+ "title": "Tutorial · Share your agent (link, QR, social preview)",+ "summary": "Get a permanent link to your agent, generate a QR for print, and set the Open Graph preview so it looks good in tweets.",+ "link": "/tutorials/share-your-agent",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-05-14",+ "type": "launch",+ "title": "Tutorial · Trigger the agent from page events",+ "summary": "Make your agent react to clicks, scrolls, form submits, and route changes — turn it into a real co-pilot, not a chat widget.",+ "link": "/tutorials/trigger-from-page-events",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-05-14",+ "type": "launch",+ "title": "Tutorial · Upload a custom GLB avatar",+ "summary": "Bring your own model — any glTF 2.0 .glb from Blender, three.ws Studio, or any other source. Get it validated, fixed, and live.",+ "link": "/tutorials/upload-custom-glb",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-05-14",+ "type": "launch",+ "title": "Tutorial · Use the <agent-3d> web component end-to-end",+ "summary": "Skip the script tag — drop a real custom element into your DOM, bind attributes, and use the full event lifecycle.",+ "link": "/tutorials/web-component-end-to-end",+ "tags": [+ "launch"+ ]+ },{"date": "2026-05-14","type": "update",@@ -23627,6 +24007,56 @@"launch"]},+ {+ "date": "2026-04-27",+ "type": "launch",+ "title": "Tutorial · Build a custom skill",+ "summary": "A complete walkthrough of building a weather skill an agent can invoke — bundle format, LLM tool calling, context API.",+ "link": "/tutorials/custom-skill",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-04-27",+ "type": "launch",+ "title": "Tutorial · Build a personal AI website",+ "summary": "A 3D version of you, on your domain, ready to answer any question about your work — with a portfolio, contact form, and resume.",+ "link": "/tutorials/personal-ai-site",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-04-27",+ "type": "launch",+ "title": "Tutorial · Build your first agent (from scratch)",+ "summary": "A complete walkthrough from a blank HTML file to a live, talking 3D character you wrote yourself — no framework, no build tools.",+ "link": "/tutorials/first-agent",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-04-27",+ "type": "launch",+ "title": "Tutorial · Embed on a website (HTML, React, Next.js)",+ "summary": "Five different ways to add an agent to your site — pick the one that matches how you build today.",+ "link": "/tutorials/embed-on-website",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-04-27",+ "type": "launch",+ "title": "Tutorial · Register your agent on-chain (ERC-8004)",+ "summary": "Give your agent a permanent, verifiable identity. Publish an ERC-8004 attestation anyone can read from any chain.",+ "link": "/tutorials/register-onchain",+ "tags": [+ "launch"+ ]+ },{"date": "2026-04-27","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex a018eb7f2..793ae88b9 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -14,6 +14,14 @@<category>launch</category><description>The control room for three.ws autonomous trading: live fleet vitals, the agent scoreboard, the entry-to-exit pipeline, and every trading surface and doc in one place.</description></item>+ <item>+ <title>Docs · Economy Health Dashboard</title>+ <link>https://three.ws/docs/economy-health-dashboard</link>+ <guid isPermaLink="false">2026-07-30:Docs · Economy Health Dashboard</guid>+ <pubDate>Thu, 30 Jul 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>The operator dashboard that answers whether the Money Pulse is quiet and which link in the funding chain broke, plus the ranked diagnosis rules behind its verdict.</description>+ </item><item><title>Docs · The 10 SOL trading experiment</title><link>https://three.ws/docs/trading-experiment</link>@@ -22,6 +30,14 @@<category>launch</category><description>The full risk policy behind the autonomous fleet: entry band, position sizing, taking initials at 2x, the moon-bag floor, trailing and hard stops, and how to read the decision journal.</description></item>+ <item>+ <title>Docs · The in-game economy</title>+ <link>https://three.ws/docs/in-game-economy</link>+ <guid isPermaLink="false">2026-07-30:Docs · The in-game economy</guid>+ <pubDate>Thu, 30 Jul 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>The complete reference for the /play open-world economy: gathering and selling materials, the cash purse and bank, tool upgrades, every vendor and gate, $THREE cosmetics that settle on Solana, and the catalog wire format for reading it from code.</description>+ </item><item><title>Docs · The trading hub</title><link>https://three.ws/docs/trading-hub</link>@@ -78,6 +94,14 @@<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 · Explore the docs as a 3D world</title>+ <link>https://three.ws/tutorials/explore-docs-world</link>+ <guid isPermaLink="false">2026-07-30:Tutorial · Explore the docs as a 3D world</guid>+ <pubDate>Thu, 30 Jul 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Walk an avatar through the documentation: fourteen sections as glowing pavilions, live pages read in-world, shareable deep links, and your own GLB as the body.</description>+ </item><item><title>Tutorial · Give an Agent a Spending Envelope</title><link>https://three.ws/tutorials/agent-spending-envelope</link>@@ -86,6 +110,14 @@<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 · Monetize an MCP server: charge per tool call</title>+ <link>https://three.ws/tutorials/monetize-mcp-server</link>+ <guid isPermaLink="false">2026-07-30:Tutorial · Monetize an MCP server: charge per tool call</guid>+ <pubDate>Thu, 30 Jul 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Build an MCP server whose tools charge other agents per call in USDC on Solana. One free orientation tool, one paid tool that does real work, and a test that proves the product never escapes unpaid.</description>+ </item><item><title>Tutorial · Read the trading fleet</title><link>https://three.ws/tutorials/read-the-trading-fleet</link>@@ -110,6 +142,22 @@<category>launch</category><description>List an agent skill for sale in $THREE, give buyers a metered free trial, and watch it expire into a real on-chain purchase. Covers choosing a trial length and the missing decrement that quietly makes a trialled skill impossible to sell.</description></item>+ <item>+ <title>Tutorial · Ship an avatar manifest</title>+ <link>https://three.ws/tutorials/ship-an-avatar-manifest</link>+ <guid isPermaLink="false">2026-07-30:Tutorial · Ship an avatar manifest</guid>+ <pubDate>Thu, 30 Jul 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Turn a raw GLB into a signed-off, hash-anchored manifest: one document that names the avatar, records the exact bytes of its mesh, declares its skeleton, and fails your build if the model ever silently changes.</description>+ </item>+ <item>+ <title>Tutorial · Write a repository guard</title>+ <link>https://three.ws/tutorials/write-a-guard</link>+ <guid isPermaLink="false">2026-07-30:Tutorial · Write a repository guard</guid>+ <pubDate>Thu, 30 Jul 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>This repo has no CI, so a guard is the only thing between a mistake and production. Build one that fails the build when an API handler forgets its error boundary, wire it into the gate, cover it with tests, and register it.</description>+ </item><item><title>Tutorial: Make Your Avatar Sign (ASL)</title><link>https://three.ws/tutorials/sign-with-your-avatar</link>@@ -2782,6 +2830,22 @@<category>launch</category><description>The merchant console for running a paid x402 business: products and pricing, payout and agent wallets, real USDC send and receive with .sol resolution, a storefront and pay-button builder, giving, and security.</description></item>+ <item>+ <title>Tutorial · Build a site concierge from the building blocks</title>+ <link>https://three.ws/tutorials/build-a-site-concierge</link>+ <guid isPermaLink="false">2026-07-18:Tutorial · Build a site concierge from the building blocks</guid>+ <pubDate>Sat, 18 Jul 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>How the Concierge widget is assembled: the talking avatar, the streaming chat, the tool calls, and how to point the same parts at your own backend over Server-Sent Events.</description>+ </item>+ <item>+ <title>Tutorial · Meter any API with the x402-server SDK</title>+ <link>https://three.ws/tutorials/x402-server-sdk</link>+ <guid isPermaLink="false">2026-07-18:Tutorial · Meter any API with the x402-server SDK</guid>+ <pubDate>Sat, 18 Jul 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Turn an ordinary HTTP handler into a paid one with @three-ws/x402-server. Solana-first, framework-agnostic, and runnable offline before you touch a wallet.</description>+ </item><item><title>36 new in-depth feature guides in the docs</title><link>https://three.ws/docs/forge</link>@@ -5158,6 +5222,22 @@<category>launch</category><description>The leading cryptocurrency exchanges ranked by trust score and 24-hour trading volume, with country, launch year, and a direct link to each. Real CoinGecko data, sortable by any column.</description></item>+ <item>+ <title>Tutorial · Animations from data: wire your agent's gestures to real APIs and AI</title>+ <link>https://three.ws/tutorials/emotion-from-data</link>+ <guid isPermaLink="false">2026-07-08:Tutorial · Animations from data: wire your agent's gestures to real APIs and AI</guid>+ <pubDate>Wed, 08 Jul 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Trigger real body animations — celebrate, dance, flinch — from a live data feed. A free lexicon lane to prove the wiring, then a real AI model classifying arbitrary text into a richer set of gestures, with cooldown/dedupe so a fast feed never spams the queue.</description>+ </item>+ <item>+ <title>Tutorial · Load a ready-made 3D tour for a DeFi protocol (Sperax)</title>+ <link>https://three.ws/tutorials/sperax-tour</link>+ <guid isPermaLink="false">2026-07-08:Tutorial · Load a ready-made 3D tour for a DeFi protocol (Sperax)</guid>+ <pubDate>Wed, 08 Jul 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>The Tour Builder's first template: an 8-stop guided tour of Sperax's USDs auto-yield stablecoin, ready to load, edit, and export as a one-tag snippet in minutes.</description>+ </item><item><title>Vault — Buy & Unlock Encrypted 3D Models on BNB Chain</title><link>https://three.ws/vault</link>@@ -11550,6 +11630,86 @@<category>launch</category><description>The live three.ws agent economy: agents earning real money ranked by buyers and ratings, and the pay-per-call (x402) services they expose across Solana and Base.</description></item>+ <item>+ <title>Tutorial · Add the Walk Companion to your site</title>+ <link>https://three.ws/tutorials/walk-companion</link>+ <guid isPermaLink="false">2026-06-21:Tutorial · Add the Walk Companion to your site</guid>+ <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Drop a 3D avatar that strolls across any web page — corner mascot or full-page playground — with one script tag, the npm SDK, or a postMessage bridge.</description>+ </item>+ <item>+ <title>Tutorial · Claim a .threews.sol name & get paid by name</title>+ <link>https://three.ws/tutorials/claim-threews-name</link>+ <guid isPermaLink="false">2026-06-21:Tutorial · Claim a .threews.sol name & get paid by name</guid>+ <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Mint a *.threews.sol Solana subdomain for your agent and accept USDC payments addressed to the name instead of a raw wallet.</description>+ </item>+ <item>+ <title>Tutorial · Create, enhance & edit agent memory</title>+ <link>https://three.ws/tutorials/create-and-edit-memory</link>+ <guid isPermaLink="false">2026-06-21:Tutorial · Create, enhance & edit agent memory</guid>+ <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Teach an agent a fact that sticks between sessions — five ways: the dashboard, the agent itself, MCP tools, the REST API, and from a skill. Plus how to sharpen, edit, and forget.</description>+ </item>+ <item>+ <title>Tutorial · Discover and pay for an x402 service</title>+ <link>https://three.ws/tutorials/pay-for-x402-service</link>+ <guid isPermaLink="false">2026-06-21:Tutorial · Discover and pay for an x402 service</guid>+ <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Browse the x402 Bazaar and call a paid API from your agent — the 402 challenge, the USDC payment, and the retry, end to end.</description>+ </item>+ <item>+ <title>Tutorial · Getting started (hosted)</title>+ <link>https://three.ws/tutorials/getting-started</link>+ <guid isPermaLink="false">2026-06-21:Tutorial · Getting started (hosted)</guid>+ <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>A five-minute, no-code tour: create an agent, pick a body, give it a personality, share the URL.</description>+ </item>+ <item>+ <title>Tutorial · Give your agent a voice with lipsync</title>+ <link>https://three.ws/tutorials/voice-and-lipsync</link>+ <guid isPermaLink="false">2026-06-21:Tutorial · Give your agent a voice with lipsync</guid>+ <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Add real-time text-to-speech with synchronized mouth movement — pick or clone a voice, drive visemes from audio, and wire it into a live agent.</description>+ </item>+ <item>+ <title>Tutorial · Import an avatar by URL</title>+ <link>https://three.ws/tutorials/import-avatar-url</link>+ <guid isPermaLink="false">2026-06-21:Tutorial · Import an avatar by URL</guid>+ <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Bring a Ready Player Me or any hosted glTF/GLB avatar into three.ws by link — auto-validated, auto-rigged, ready for an agent.</description>+ </item>+ <item>+ <title>Tutorial · Mine a Solana vanity address</title>+ <link>https://three.ws/tutorials/mine-vanity-address</link>+ <guid isPermaLink="false">2026-06-21:Tutorial · Mine a Solana vanity address</guid>+ <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Grind a custom-prefix Solana address in the browser, then prove how it was made with the proof-of-grind receipt, gallery, and bounty market.</description>+ </item>+ <item>+ <title>Tutorial · Place your agent in the real world (IRL)</title>+ <link>https://three.ws/tutorials/place-agent-irl</link>+ <guid isPermaLink="false">2026-06-21:Tutorial · Place your agent in the real world (IRL)</guid>+ <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Use camera passthrough, a joystick, and tap-to-place to drop your 3D agent into your physical space — and understand how location privacy works.</description>+ </item>+ <item>+ <title>Tutorial · Turn a selfie into a 3D avatar</title>+ <link>https://three.ws/tutorials/selfie-to-avatar</link>+ <guid isPermaLink="false">2026-06-21:Tutorial · Turn a selfie into a 3D avatar</guid>+ <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Snap or upload a photo and get a rigged 3D avatar that can walk, wave, and talk — then put it on an agent.</description>+ </item><item><title>Walk Anywhere on the Web</title><link>https://three.ws/walk</link>@@ -15846,6 +16006,14 @@<category>launch</category><description>Real-time 3D scene composer: forge items from text, attach them to your avatar's skeleton bones, arrange and scale freely, then export your creation or save it as an outfit.</description></item>+ <item>+ <title>Tutorial · View your 3D model in AR</title>+ <link>https://three.ws/tutorials/view-in-ar</link>+ <guid isPermaLink="false">2026-06-13:Tutorial · View your 3D model in AR</guid>+ <pubDate>Sat, 13 Jun 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>See any three.ws model in augmented reality and walk around it in your kitchen — straight from the browser, no app to install. iOS Quick Look and Android WebXR.</description>+ </item><item><title>3D model categories, every model is now typed as Avatar, Accessory, Item, Scene, Creature, or Vehicle</title><link>https://three.ws/marketplace</link>@@ -17654,6 +17822,142 @@<category>feature</category><description>The interactive 3D token universe gained search by name/symbol/mint and sorting by market cap, live status, replies, and age, refreshing every 60 seconds.</description></item>+ <item>+ <title>Tutorial · Add a greeting & first speech line</title>+ <link>https://three.ws/tutorials/greeting-and-first-speech</link>+ <guid isPermaLink="false">2026-05-14:Tutorial · Add a greeting & first speech line</guid>+ <pubDate>Thu, 14 May 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Make your agent say hello the moment it loads — and have its mouth move with the words.</description>+ </item>+ <item>+ <title>Tutorial · Build a paid x402 endpoint your agent calls</title>+ <link>https://three.ws/tutorials/paid-x402-endpoint</link>+ <guid isPermaLink="false">2026-05-14:Tutorial · Build a paid x402 endpoint your agent calls</guid>+ <pubDate>Thu, 14 May 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Stand up an API that other agents pay USDC to call — using the x402 protocol on Base mainnet. Real money, real flow.</description>+ </item>+ <item>+ <title>Tutorial · Connect Anthropic or OpenAI as the brain</title>+ <link>https://three.ws/tutorials/connect-ai-brain</link>+ <guid isPermaLink="false">2026-05-14:Tutorial · Connect Anthropic or OpenAI as the brain</guid>+ <pubDate>Thu, 14 May 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Plug your own model provider into the agent loop. Bring your API key, choose your model, control cost and latency.</description>+ </item>+ <item>+ <title>Tutorial · Custom skill with database + auth</title>+ <link>https://three.ws/tutorials/skill-with-database-auth</link>+ <guid isPermaLink="false">2026-05-14:Tutorial · Custom skill with database + auth</guid>+ <pubDate>Thu, 14 May 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>A real production skill — Postgres-backed CRM lookup, signed requests, per-user permissions, rate limits. Not a toy weather demo.</description>+ </item>+ <item>+ <title>Tutorial · Customize size, position & background</title>+ <link>https://three.ws/tutorials/customize-appearance</link>+ <guid isPermaLink="false">2026-05-14:Tutorial · Customize size, position & background</guid>+ <pubDate>Thu, 14 May 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Tune every visible knob — bubble size, corner placement, background, rotation speed — entirely through data-* attributes.</description>+ </item>+ <item>+ <title>Tutorial · Deploy to Vercel with a custom domain</title>+ <link>https://three.ws/tutorials/deploy-to-vercel-custom-domain</link>+ <guid isPermaLink="false">2026-05-14:Tutorial · Deploy to Vercel with a custom domain</guid>+ <pubDate>Thu, 14 May 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Take a forked three.ws and ship it as agent.yourcompany.com — CI, environment variables, custom domain, SSL, the lot.</description>+ </item>+ <item>+ <title>Tutorial · Drive the agent with the JavaScript API</title>+ <link>https://three.ws/tutorials/js-api-events</link>+ <guid isPermaLink="false">2026-05-14:Tutorial · Drive the agent with the JavaScript API</guid>+ <pubDate>Thu, 14 May 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Listen for the ready event, play animations on demand, make the agent speak from anywhere in your app code.</description>+ </item>+ <item>+ <title>Tutorial · Embed in 30 seconds</title>+ <link>https://three.ws/tutorials/embed-in-30-seconds</link>+ <guid isPermaLink="false">2026-05-14:Tutorial · Embed in 30 seconds</guid>+ <pubDate>Thu, 14 May 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Drop one script tag into any HTML page. Your agent loads, auto-sizes, and starts animating.</description>+ </item>+ <item>+ <title>Tutorial · Expose your agent as an MCP server</title>+ <link>https://three.ws/tutorials/mcp-server-for-your-agent</link>+ <guid isPermaLink="false">2026-05-14:Tutorial · Expose your agent as an MCP server</guid>+ <pubDate>Thu, 14 May 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Wrap your agent in the Model Context Protocol so any MCP-compatible client (Claude Desktop, Cursor, etc.) can drive it.</description>+ </item>+ <item>+ <title>Tutorial · Mint an agent token on Pump.fun</title>+ <link>https://three.ws/tutorials/mint-pumpfun-token</link>+ <guid isPermaLink="false">2026-05-14:Tutorial · Mint an agent token on Pump.fun</guid>+ <pubDate>Thu, 14 May 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Launch a Solana token for your agent, bond it to its on-chain identity, and let people speculate on (or hold) a piece of it.</description>+ </item>+ <item>+ <title>Tutorial · Multi-agent coordination</title>+ <link>https://three.ws/tutorials/multi-agent-coordination</link>+ <guid isPermaLink="false">2026-05-14:Tutorial · Multi-agent coordination</guid>+ <pubDate>Thu, 14 May 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Two or more agents on the same page that talk to each other — turn-taking, shared memory, delegating subtasks.</description>+ </item>+ <item>+ <title>Tutorial · Pick & swap an avatar in Studio</title>+ <link>https://three.ws/tutorials/swap-avatar-in-studio</link>+ <guid isPermaLink="false">2026-05-14:Tutorial · Pick & swap an avatar in Studio</guid>+ <pubDate>Thu, 14 May 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Visually browse the avatar gallery, switch bodies with one click, and have the change ripple to every embed without redeploying.</description>+ </item>+ <item>+ <title>Tutorial · Self-host the agent backend</title>+ <link>https://three.ws/tutorials/self-host-agent-backend</link>+ <guid isPermaLink="false">2026-05-14:Tutorial · Self-host the agent backend</guid>+ <pubDate>Thu, 14 May 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Run the full three.ws backend on your own infrastructure — workers, function endpoints, model proxies. No three.ws dependency in production.</description>+ </item>+ <item>+ <title>Tutorial · Share your agent (link, QR, social preview)</title>+ <link>https://three.ws/tutorials/share-your-agent</link>+ <guid isPermaLink="false">2026-05-14:Tutorial · Share your agent (link, QR, social preview)</guid>+ <pubDate>Thu, 14 May 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Get a permanent link to your agent, generate a QR for print, and set the Open Graph preview so it looks good in tweets.</description>+ </item>+ <item>+ <title>Tutorial · Trigger the agent from page events</title>+ <link>https://three.ws/tutorials/trigger-from-page-events</link>+ <guid isPermaLink="false">2026-05-14:Tutorial · Trigger the agent from page events</guid>+ <pubDate>Thu, 14 May 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Make your agent react to clicks, scrolls, form submits, and route changes — turn it into a real co-pilot, not a chat widget.</description>+ </item>+ <item>+ <title>Tutorial · Upload a custom GLB avatar</title>+ <link>https://three.ws/tutorials/upload-custom-glb</link>+ <guid isPermaLink="false">2026-05-14:Tutorial · Upload a custom GLB avatar</guid>+ <pubDate>Thu, 14 May 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Bring your own model — any glTF 2.0 .glb from Blender, three.ws Studio, or any other source. Get it validated, fixed, and live.</description>+ </item>+ <item>+ <title>Tutorial · Use the <agent-3d> web component end-to-end</title>+ <link>https://three.ws/tutorials/web-component-end-to-end</link>+ <guid isPermaLink="false">2026-05-14:Tutorial · Use the <agent-3d> web component end-to-end</guid>+ <pubDate>Thu, 14 May 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Skip the script tag — drop a real custom element into your DOM, bind attributes, and use the full event lifecycle.</description>+ </item><item><title>15 tutorials and six new paid endpoints</title><link>https://three.ws/changelog</link>@@ -18182,6 +18486,46 @@<category>launch</category><description>Terms of service for three.ws.</description></item>+ <item>+ <title>Tutorial · Build a custom skill</title>+ <link>https://three.ws/tutorials/custom-skill</link>+ <guid isPermaLink="false">2026-04-27:Tutorial · Build a custom skill</guid>+ <pubDate>Mon, 27 Apr 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>A complete walkthrough of building a weather skill an agent can invoke — bundle format, LLM tool calling, context API.</description>+ </item>+ <item>+ <title>Tutorial · Build a personal AI website</title>+ <link>https://three.ws/tutorials/personal-ai-site</link>+ <guid isPermaLink="false">2026-04-27:Tutorial · Build a personal AI website</guid>+ <pubDate>Mon, 27 Apr 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>A 3D version of you, on your domain, ready to answer any question about your work — with a portfolio, contact form, and resume.</description>+ </item>+ <item>+ <title>Tutorial · Build your first agent (from scratch)</title>+ <link>https://three.ws/tutorials/first-agent</link>+ <guid isPermaLink="false">2026-04-27:Tutorial · Build your first agent (from scratch)</guid>+ <pubDate>Mon, 27 Apr 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>A complete walkthrough from a blank HTML file to a live, talking 3D character you wrote yourself — no framework, no build tools.</description>+ </item>+ <item>+ <title>Tutorial · Embed on a website (HTML, React, Next.js)</title>+ <link>https://three.ws/tutorials/embed-on-website</link>+ <guid isPermaLink="false">2026-04-27:Tutorial · Embed on a website (HTML, React, Next.js)</guid>+ <pubDate>Mon, 27 Apr 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Five different ways to add an agent to your site — pick the one that matches how you build today.</description>+ </item>+ <item>+ <title>Tutorial · Register your agent on-chain (ERC-8004)</title>+ <link>https://three.ws/tutorials/register-onchain</link>+ <guid isPermaLink="false">2026-04-27:Tutorial · Register your agent on-chain (ERC-8004)</guid>+ <pubDate>Mon, 27 Apr 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Give your agent a permanent, verifiable identity. Publish an ERC-8004 attestation anyone can read from any chain.</description>+ </item><item><title>3D viewer polish</title><link>https://three.ws/changelog</link>diff --git a/public/cookbook-manifest.js b/public/cookbook-manifest.jsnew file mode 100644index 000000000..cee3409ae--- /dev/null+++ b/public/cookbook-manifest.js@@ -0,0 +1,107 @@+/*+ * Cookbook manifest — single source of truth for the recipe library.+ *+ * Loaded as a classic script by /cookbook (the index) and /cookbook/<slug>+ * (the recipe viewer) — exposes window.RECIPES.+ *+ * A recipe is not a tutorial. A tutorial teaches you the product through its+ * UI; a recipe hands you a file you can run. Every entry here therefore points+ * at a real, executed artifact under /cookbook/recipes/ (or a notebook), and+ * the prose lives at /docs/cookbook/<slug>.md.+ */+(function () {+ const RECIPES = [+ {+ slug: 'self-correcting-3d',+ title: 'A self-correcting 3D collectible set',+ blurb:+ 'An AI art director turns a one-line brief into a themed set of props with parallel function calls, renders each result, inspects it with vision, and rebuilds whatever missed the brief.',+ builds: 'A themed set of QA-passed 3D props, plus an interactive gallery',+ language: 'Python notebook',+ time: '15 min',+ level: 'advanced',+ needs: 'An OpenAI API key',+ tags: ['function calling', 'vision', 'structured outputs', 'agents'],+ /* The notebook is a full nbconvert export, not a markdown recipe. */+ href: '/cookbook/self-correcting-3d',+ external: true,+ download: {+ label: 'Download the notebook',+ href: '/cookbook/text_to_3d_with_function_calling.ipynb',+ },+ poster: '/cookbook/houseplant-set.png',+ alsoOn: {+ label: 'OpenAI Cookbook',+ href: 'https://github.com/openai/openai-cookbook/pull/2874',+ },+ },+ {+ slug: 'text-to-3d-cli',+ title: 'Text to 3D from the command line',+ blurb:+ 'Sixty lines of standard-library Python that turn a sentence into a GLB on your disk. Handles the inline-vs-queued split, honors the server poll hint, and fails with a message you can act on.',+ builds: 'A reusable CLI: prompt in, downloaded .glb out',+ language: 'Python',+ time: '3 min',+ level: 'beginner',+ needs: 'Python 3.10+. No API key.',+ tags: ['text to 3d', 'cli', 'no dependencies'],+ href: '/cookbook/text-to-3d-cli',+ download: { label: 'text_to_3d.py', href: '/cookbook/recipes/text_to_3d.py' },+ previewModel: '/animations/robotexpressive.glb',+ },+ {+ slug: 'parallel-asset-pack',+ title: 'Build a whole asset pack in parallel',+ blurb:+ 'Fan a list of prompts across the free lane at a sane concurrency, download every model, render a still of each, and emit a manifest plus a browsable gallery. Partial failure degrades, it does not abort.',+ builds: 'A folder of models, stills, a manifest.json, and an interactive gallery',+ language: 'Python',+ time: '5 min',+ level: 'intermediate',+ needs: 'Python 3.10+. No API key.',+ tags: ['batch', 'concurrency', 'gallery'],+ href: '/cookbook/parallel-asset-pack',+ download: { label: 'asset_pack.py', href: '/cookbook/recipes/asset_pack.py' },+ previewModel: '/animations/soldier.glb',+ },+ {+ slug: 'mcp-3d-tool',+ title: 'Give your AI assistant a 3D tool',+ blurb:+ 'A Model Context Protocol server that exposes text-to-3D and model rendering as tools, so Claude Code, Claude Desktop, or Cursor can build and look at 3D models mid-conversation.',+ builds: 'An MCP server your assistant can call, registered in one command',+ language: 'Node.js',+ time: '5 min',+ level: 'intermediate',+ needs: 'Node 18+ and an MCP client. No API key.',+ tags: ['mcp', 'agents', 'tools'],+ href: '/cookbook/mcp-3d-tool',+ download: { label: 'mcp_3d_server.mjs', href: '/cookbook/recipes/mcp_3d_server.mjs' },+ previewModel: '/avatars/mannequin.glb',+ },+ {+ slug: 'asset-quality-gate',+ title: 'Gate 3D assets in CI',+ blurb:+ 'Generated geometry fails quietly: a model can validate perfectly and still be a 400k-triangle monster. This gate inspects every asset against an explicit budget and exits non-zero so the build fails instead of the launch.',+ builds: 'A CI check that blocks oversized or broken models',+ language: 'Python',+ time: '4 min',+ level: 'intermediate',+ needs: 'Python 3.10+. No API key.',+ tags: ['ci', 'validation', 'performance'],+ href: '/cookbook/asset-quality-gate',+ download: { label: 'asset_gate.py', href: '/cookbook/recipes/asset_gate.py' },+ previewModel: '/animations/robotexpressive.glb',+ },+ ];++ window.RECIPES = RECIPES;+ window.recipeBySlug = function (slug) {+ return RECIPES.find((r) => r.slug === slug) || null;+ };+ window.recipeIndex = function (slug) {+ return RECIPES.findIndex((r) => r.slug === slug);+ };+})();diff --git a/public/examples.json b/public/examples.jsonindex 567b41003..c1d7da48a 100644--- a/public/examples.json+++ b/public/examples.json@@ -151,7 +151,7 @@"kind": "package","group": "Package examples","title": "@three-ws/agentcore-payments-mcp",- "description": "MCP server for three.ws Agent Payment Sessions - govern agent x402 spending without exposing private keys.",+ "description": "Two runnable examples. Neither one spends money, needs a wallet, or needs an account, so you can run both before deciding whether to fund anything.","path": "packages/agentcore-payments-mcp/examples","files": ["list-tools.mjs",@@ -159,7 +159,7 @@],"run": "node packages/agentcore-payments-mcp/examples/list-tools.mjs","runKind": "command",- "readme": null,+ "readme": "packages/agentcore-payments-mcp/examples/README.md","owner": "packages/agentcore-payments-mcp"},{diff --git a/public/features.json b/public/features.jsonindex 13033317e..559b3768b 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-30T22:44:41.015Z",+ "generated_at": "2026-07-30T22:46:10.023Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",@@ -2637,6 +2637,16 @@"tags": [],"showcase": false},+ {+ "path": "/docs/in-game-economy",+ "title": "Docs · The in-game economy",+ "description": "The complete reference for the /play open-world economy: gathering and selling materials, the cash purse and bank, tool upgrades, every vendor and gate, $THREE cosmetics that settle on Solana, and the catalog wire format for reading it from code.",+ "added": "2026-07-30",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },{"path": "/docs/trading-hub","title": "Docs · The trading hub",@@ -3307,6 +3317,16 @@"tags": [],"showcase": false},+ {+ "path": "/docs/economy-health-dashboard",+ "title": "Docs · Economy Health Dashboard",+ "description": "The operator dashboard that answers whether the Money Pulse is quiet and which link in the funding chain broke, plus the ranked diagnosis rules behind its verdict.",+ "added": "2026-07-30",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },{"path": "/docs/money-feed","title": "Docs · Money Feed",@@ -5216,6 +5236,416 @@"indexable": true,"tags": [],"showcase": false+ },+ {+ "path": "/tutorials/getting-started",+ "title": "Tutorial · Getting started (hosted)",+ "description": "A five-minute, no-code tour: create an agent, pick a body, give it a personality, share the URL.",+ "added": "2026-06-21",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/explore-docs-world",+ "title": "Tutorial · Explore the docs as a 3D world",+ "description": "Walk an avatar through the documentation: fourteen sections as glowing pavilions, live pages read in-world, shareable deep links, and your own GLB as the body.",+ "added": "2026-07-30",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/embed-in-30-seconds",+ "title": "Tutorial · Embed in 30 seconds",+ "description": "Drop one script tag into any HTML page. Your agent loads, auto-sizes, and starts animating.",+ "added": "2026-05-14",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/customize-appearance",+ "title": "Tutorial · Customize size, position & background",+ "description": "Tune every visible knob — bubble size, corner placement, background, rotation speed — entirely through data-* attributes.",+ "added": "2026-05-14",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/swap-avatar-in-studio",+ "title": "Tutorial · Pick & swap an avatar in Studio",+ "description": "Visually browse the avatar gallery, switch bodies with one click, and have the change ripple to every embed without redeploying.",+ "added": "2026-05-14",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/greeting-and-first-speech",+ "title": "Tutorial · Add a greeting & first speech line",+ "description": "Make your agent say hello the moment it loads — and have its mouth move with the words.",+ "added": "2026-05-14",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/share-your-agent",+ "title": "Tutorial · Share your agent (link, QR, social preview)",+ "description": "Get a permanent link to your agent, generate a QR for print, and set the Open Graph preview so it looks good in tweets.",+ "added": "2026-05-14",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/selfie-to-avatar",+ "title": "Tutorial · Turn a selfie into a 3D avatar",+ "description": "Snap or upload a photo and get a rigged 3D avatar that can walk, wave, and talk — then put it on an agent.",+ "added": "2026-06-21",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/view-in-ar",+ "title": "Tutorial · View your 3D model in AR",+ "description": "See any three.ws model in augmented reality and walk around it in your kitchen — straight from the browser, no app to install. iOS Quick Look and Android WebXR.",+ "added": "2026-06-13",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/import-avatar-url",+ "title": "Tutorial · Import an avatar by URL",+ "description": "Bring a Ready Player Me or any hosted glTF/GLB avatar into three.ws by link — auto-validated, auto-rigged, ready for an agent.",+ "added": "2026-06-21",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/walk-companion",+ "title": "Tutorial · Add the Walk Companion to your site",+ "description": "Drop a 3D avatar that strolls across any web page — corner mascot or full-page playground — with one script tag, the npm SDK, or a postMessage bridge.",+ "added": "2026-06-21",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/sperax-tour",+ "title": "Tutorial · Load a ready-made 3D tour for a DeFi protocol (Sperax)",+ "description": "The Tour Builder's first template: an 8-stop guided tour of Sperax's USDs auto-yield stablecoin, ready to load, edit, and export as a one-tag snippet in minutes.",+ "added": "2026-07-08",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/first-agent",+ "title": "Tutorial · Build your first agent (from scratch)",+ "description": "A complete walkthrough from a blank HTML file to a live, talking 3D character you wrote yourself — no framework, no build tools.",+ "added": "2026-04-27",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/embed-on-website",+ "title": "Tutorial · Embed on a website (HTML, React, Next.js)",+ "description": "Five different ways to add an agent to your site — pick the one that matches how you build today.",+ "added": "2026-04-27",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/personal-ai-site",+ "title": "Tutorial · Build a personal AI website",+ "description": "A 3D version of you, on your domain, ready to answer any question about your work — with a portfolio, contact form, and resume.",+ "added": "2026-04-27",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/js-api-events",+ "title": "Tutorial · Drive the agent with the JavaScript API",+ "description": "Listen for the ready event, play animations on demand, make the agent speak from anywhere in your app code.",+ "added": "2026-05-14",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/web-component-end-to-end",+ "title": "Tutorial · Use the <agent-3d> web component end-to-end",+ "description": "Skip the script tag — drop a real custom element into your DOM, bind attributes, and use the full event lifecycle.",+ "added": "2026-05-14",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/build-a-site-concierge",+ "title": "Tutorial · Build a site concierge from the building blocks",+ "description": "How the Concierge widget is assembled: the talking avatar, the streaming chat, the tool calls, and how to point the same parts at your own backend over Server-Sent Events.",+ "added": "2026-07-18",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/trigger-from-page-events",+ "title": "Tutorial · Trigger the agent from page events",+ "description": "Make your agent react to clicks, scrolls, form submits, and route changes — turn it into a real co-pilot, not a chat widget.",+ "added": "2026-05-14",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/upload-custom-glb",+ "title": "Tutorial · Upload a custom GLB avatar",+ "description": "Bring your own model — any glTF 2.0 .glb from Blender, three.ws Studio, or any other source. Get it validated, fixed, and live.",+ "added": "2026-05-14",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/connect-ai-brain",+ "title": "Tutorial · Connect Anthropic or OpenAI as the brain",+ "description": "Plug your own model provider into the agent loop. Bring your API key, choose your model, control cost and latency.",+ "added": "2026-05-14",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/create-and-edit-memory",+ "title": "Tutorial · Create, enhance & edit agent memory",+ "description": "Teach an agent a fact that sticks between sessions — five ways: the dashboard, the agent itself, MCP tools, the REST API, and from a skill. Plus how to sharpen, edit, and forget.",+ "added": "2026-06-21",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/place-agent-irl",+ "title": "Tutorial · Place your agent in the real world (IRL)",+ "description": "Use camera passthrough, a joystick, and tap-to-place to drop your 3D agent into your physical space — and understand how location privacy works.",+ "added": "2026-06-21",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/voice-and-lipsync",+ "title": "Tutorial · Give your agent a voice with lipsync",+ "description": "Add real-time text-to-speech with synchronized mouth movement — pick or clone a voice, drive visemes from audio, and wire it into a live agent.",+ "added": "2026-06-21",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/pay-for-x402-service",+ "title": "Tutorial · Discover and pay for an x402 service",+ "description": "Browse the x402 Bazaar and call a paid API from your agent — the 402 challenge, the USDC payment, and the retry, end to end.",+ "added": "2026-06-21",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/emotion-from-data",+ "title": "Tutorial · Animations from data: wire your agent's gestures to real APIs and AI",+ "description": "Trigger real body animations — celebrate, dance, flinch — from a live data feed. A free lexicon lane to prove the wiring, then a real AI model classifying arbitrary text into a richer set of gestures, with cooldown/dedupe so a fast feed never spams the queue.",+ "added": "2026-07-08",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/custom-skill",+ "title": "Tutorial · Build a custom skill",+ "description": "A complete walkthrough of building a weather skill an agent can invoke — bundle format, LLM tool calling, context API.",+ "added": "2026-04-27",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/register-onchain",+ "title": "Tutorial · Register your agent on-chain (ERC-8004)",+ "description": "Give your agent a permanent, verifiable identity. Publish an ERC-8004 attestation anyone can read from any chain.",+ "added": "2026-04-27",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/mint-pumpfun-token",+ "title": "Tutorial · Mint an agent token on Pump.fun",+ "description": "Launch a Solana token for your agent, bond it to its on-chain identity, and let people speculate on (or hold) a piece of it.",+ "added": "2026-05-14",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/paid-x402-endpoint",+ "title": "Tutorial · Build a paid x402 endpoint your agent calls",+ "description": "Stand up an API that other agents pay USDC to call — using the x402 protocol on Base mainnet. Real money, real flow.",+ "added": "2026-05-14",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/monetize-mcp-server",+ "title": "Tutorial · Monetize an MCP server: charge per tool call",+ "description": "Build an MCP server whose tools charge other agents per call in USDC on Solana. One free orientation tool, one paid tool that does real work, and a test that proves the product never escapes unpaid.",+ "added": "2026-07-30",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/x402-server-sdk",+ "title": "Tutorial · Meter any API with the x402-server SDK",+ "description": "Turn an ordinary HTTP handler into a paid one with @three-ws/x402-server. Solana-first, framework-agnostic, and runnable offline before you touch a wallet.",+ "added": "2026-07-18",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/self-host-agent-backend",+ "title": "Tutorial · Self-host the agent backend",+ "description": "Run the full three.ws backend on your own infrastructure — workers, function endpoints, model proxies. No three.ws dependency in production.",+ "added": "2026-05-14",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/multi-agent-coordination",+ "title": "Tutorial · Multi-agent coordination",+ "description": "Two or more agents on the same page that talk to each other — turn-taking, shared memory, delegating subtasks.",+ "added": "2026-05-14",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/mcp-server-for-your-agent",+ "title": "Tutorial · Expose your agent as an MCP server",+ "description": "Wrap your agent in the Model Context Protocol so any MCP-compatible client (Claude Desktop, Cursor, etc.) can drive it.",+ "added": "2026-05-14",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/skill-with-database-auth",+ "title": "Tutorial · Custom skill with database + auth",+ "description": "A real production skill — Postgres-backed CRM lookup, signed requests, per-user permissions, rate limits. Not a toy weather demo.",+ "added": "2026-05-14",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/deploy-to-vercel-custom-domain",+ "title": "Tutorial · Deploy to Vercel with a custom domain",+ "description": "Take a forked three.ws and ship it as agent.yourcompany.com — CI, environment variables, custom domain, SSL, the lot.",+ "added": "2026-05-14",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/claim-threews-name",+ "title": "Tutorial · Claim a .threews.sol name & get paid by name",+ "description": "Mint a *.threews.sol Solana subdomain for your agent and accept USDC payments addressed to the name instead of a raw wallet.",+ "added": "2026-06-21",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/mine-vanity-address",+ "title": "Tutorial · Mine a Solana vanity address",+ "description": "Grind a custom-prefix Solana address in the browser, then prove how it was made with the proof-of-grind receipt, gallery, and bounty market.",+ "added": "2026-06-21",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/ship-an-avatar-manifest",+ "title": "Tutorial · Ship an avatar manifest",+ "description": "Turn a raw GLB into a signed-off, hash-anchored manifest: one document that names the avatar, records the exact bytes of its mesh, declares its skeleton, and fails your build if the model ever silently changes.",+ "added": "2026-07-30",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/tutorials/write-a-guard",+ "title": "Tutorial · Write a repository guard",+ "description": "This repo has no CI, so a guard is the only thing between a mistake and production. Build one that fails the build when an API handler forgets its error boundary, wire it into the gate, cover it with tests, and register it.",+ "added": "2026-07-30",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false}]},diff --git a/public/llms-full.txt b/public/llms-full.txtindex c1a7ccc32..4c4ed0423 100644--- a/public/llms-full.txt+++ b/public/llms-full.txt@@ -1613,6 +1613,12 @@ URL: https://three.ws/docsFull documentation: SDKs, API reference, embedding, agent system, smart contracts.+### Docs · The in-game economy++URL: https://three.ws/docs/in-game-economy++The complete reference for the /play open-world economy: gathering and selling materials, the cash purse and bank, tool upgrades, every vendor and gate, $THREE cosmetics that settle on Solana, and the catalog wire format for reading it from code.+### Docs · The trading hubURL: https://three.ws/docs/trading-hub@@ -2015,6 +2021,12 @@ URL: https://three.ws/docs/circulation-engineThe autonomous agent-to-agent activity loop — a pool of real platform agents tipping, paying, trading, and launching with one another.+### Docs · Economy Health Dashboard++URL: https://three.ws/docs/economy-health-dashboard++The operator dashboard that answers whether the Money Pulse is quiet and which link in the funding chain broke, plus the ranked diagnosis rules behind its verdict.+### Docs · Money FeedURL: https://three.ws/docs/money-feed@@ -3161,6 +3173,252 @@ URL: https://three.ws/docs/trading-experimentThe full risk policy behind the autonomous fleet: entry band, position sizing, taking initials at 2x, the moon-bag floor, trailing and hard stops, and how to read the decision journal.+### Tutorial · Getting started (hosted)++URL: https://three.ws/tutorials/getting-started++A five-minute, no-code tour: create an agent, pick a body, give it a personality, share the URL.++### Tutorial · Explore the docs as a 3D world++URL: https://three.ws/tutorials/explore-docs-world++Walk an avatar through the documentation: fourteen sections as glowing pavilions, live pages read in-world, shareable deep links, and your own GLB as the body.++### Tutorial · Embed in 30 seconds++URL: https://three.ws/tutorials/embed-in-30-seconds++Drop one script tag into any HTML page. Your agent loads, auto-sizes, and starts animating.++### Tutorial · Customize size, position & background++URL: https://three.ws/tutorials/customize-appearance++Tune every visible knob — bubble size, corner placement, background, rotation speed — entirely through data-* attributes.++### Tutorial · Pick & swap an avatar in Studio++URL: https://three.ws/tutorials/swap-avatar-in-studio++Visually browse the avatar gallery, switch bodies with one click, and have the change ripple to every embed without redeploying.++### Tutorial · Add a greeting & first speech line++URL: https://three.ws/tutorials/greeting-and-first-speech++Make your agent say hello the moment it loads — and have its mouth move with the words.++### Tutorial · Share your agent (link, QR, social preview)++URL: https://three.ws/tutorials/share-your-agent++Get a permanent link to your agent, generate a QR for print, and set the Open Graph preview so it looks good in tweets.++### Tutorial · Turn a selfie into a 3D avatar++URL: https://three.ws/tutorials/selfie-to-avatar++Snap or upload a photo and get a rigged 3D avatar that can walk, wave, and talk — then put it on an agent.++### Tutorial · View your 3D model in AR++URL: https://three.ws/tutorials/view-in-ar++See any three.ws model in augmented reality and walk around it in your kitchen — straight from the browser, no app to install. iOS Quick Look and Android WebXR.++### Tutorial · Import an avatar by URL++URL: https://three.ws/tutorials/import-avatar-url++Bring a Ready Player Me or any hosted glTF/GLB avatar into three.ws by link — auto-validated, auto-rigged, ready for an agent.++### Tutorial · Add the Walk Companion to your site++URL: https://three.ws/tutorials/walk-companion++Drop a 3D avatar that strolls across any web page — corner mascot or full-page playground — with one script tag, the npm SDK, or a postMessage bridge.++### Tutorial · Load a ready-made 3D tour for a DeFi protocol (Sperax)++URL: https://three.ws/tutorials/sperax-tour++The Tour Builder's first template: an 8-stop guided tour of Sperax's USDs auto-yield stablecoin, ready to load, edit, and export as a one-tag snippet in minutes.++### Tutorial · Build your first agent (from scratch)++URL: https://three.ws/tutorials/first-agent++A complete walkthrough from a blank HTML file to a live, talking 3D character you wrote yourself — no framework, no build tools.++### Tutorial · Embed on a website (HTML, React, Next.js)++URL: https://three.ws/tutorials/embed-on-website++Five different ways to add an agent to your site — pick the one that matches how you build today.++### Tutorial · Build a personal AI website++URL: https://three.ws/tutorials/personal-ai-site++A 3D version of you, on your domain, ready to answer any question about your work — with a portfolio, contact form, and resume.++### Tutorial · Drive the agent with the JavaScript API++URL: https://three.ws/tutorials/js-api-events++Listen for the ready event, play animations on demand, make the agent speak from anywhere in your app code.++### Tutorial · Use the <agent-3d> web component end-to-end++URL: https://three.ws/tutorials/web-component-end-to-end++Skip the script tag — drop a real custom element into your DOM, bind attributes, and use the full event lifecycle.++### Tutorial · Build a site concierge from the building blocks++URL: https://three.ws/tutorials/build-a-site-concierge++How the Concierge widget is assembled: the talking avatar, the streaming chat, the tool calls, and how to point the same parts at your own backend over Server-Sent Events.++### Tutorial · Trigger the agent from page events++URL: https://three.ws/tutorials/trigger-from-page-events++Make your agent react to clicks, scrolls, form submits, and route changes — turn it into a real co-pilot, not a chat widget.++### Tutorial · Upload a custom GLB avatar++URL: https://three.ws/tutorials/upload-custom-glb++Bring your own model — any glTF 2.0 .glb from Blender, three.ws Studio, or any other source. Get it validated, fixed, and live.++### Tutorial · Connect Anthropic or OpenAI as the brain++URL: https://three.ws/tutorials/connect-ai-brain++Plug your own model provider into the agent loop. Bring your API key, choose your model, control cost and latency.++### Tutorial · Create, enhance & edit agent memory++URL: https://three.ws/tutorials/create-and-edit-memory++Teach an agent a fact that sticks between sessions — five ways: the dashboard, the agent itself, MCP tools, the REST API, and from a skill. Plus how to sharpen, edit, and forget.++### Tutorial · Place your agent in the real world (IRL)++URL: https://three.ws/tutorials/place-agent-irl++Use camera passthrough, a joystick, and tap-to-place to drop your 3D agent into your physical space — and understand how location privacy works.++### Tutorial · Give your agent a voice with lipsync++URL: https://three.ws/tutorials/voice-and-lipsync++Add real-time text-to-speech with synchronized mouth movement — pick or clone a voice, drive visemes from audio, and wire it into a live agent.++### Tutorial · Discover and pay for an x402 service++URL: https://three.ws/tutorials/pay-for-x402-service++Browse the x402 Bazaar and call a paid API from your agent — the 402 challenge, the USDC payment, and the retry, end to end.++### Tutorial · Animations from data: wire your agent's gestures to real APIs and AI++URL: https://three.ws/tutorials/emotion-from-data++Trigger real body animations — celebrate, dance, flinch — from a live data feed. A free lexicon lane to prove the wiring, then a real AI model classifying arbitrary text into a richer set of gestures, with cooldown/dedupe so a fast feed never spams the queue.++### Tutorial · Build a custom skill++URL: https://three.ws/tutorials/custom-skill++A complete walkthrough of building a weather skill an agent can invoke — bundle format, LLM tool calling, context API.++### Tutorial · Register your agent on-chain (ERC-8004)++URL: https://three.ws/tutorials/register-onchain++Give your agent a permanent, verifiable identity. Publish an ERC-8004 attestation anyone can read from any chain.++### Tutorial · Mint an agent token on Pump.fun++URL: https://three.ws/tutorials/mint-pumpfun-token++Launch a Solana token for your agent, bond it to its on-chain identity, and let people speculate on (or hold) a piece of it.++### Tutorial · Build a paid x402 endpoint your agent calls++URL: https://three.ws/tutorials/paid-x402-endpoint++Stand up an API that other agents pay USDC to call — using the x402 protocol on Base mainnet. Real money, real flow.++### Tutorial · Monetize an MCP server: charge per tool call++URL: https://three.ws/tutorials/monetize-mcp-server++Build an MCP server whose tools charge other agents per call in USDC on Solana. One free orientation tool, one paid tool that does real work, and a test that proves the product never escapes unpaid.++### Tutorial · Meter any API with the x402-server SDK++URL: https://three.ws/tutorials/x402-server-sdk++Turn an ordinary HTTP handler into a paid one with @three-ws/x402-server. Solana-first, framework-agnostic, and runnable offline before you touch a wallet.++### Tutorial · Self-host the agent backend++URL: https://three.ws/tutorials/self-host-agent-backend++Run the full three.ws backend on your own infrastructure — workers, function endpoints, model proxies. No three.ws dependency in production.++### Tutorial · Multi-agent coordination++URL: https://three.ws/tutorials/multi-agent-coordination++Two or more agents on the same page that talk to each other — turn-taking, shared memory, delegating subtasks.++### Tutorial · Expose your agent as an MCP server++URL: https://three.ws/tutorials/mcp-server-for-your-agent++Wrap your agent in the Model Context Protocol so any MCP-compatible client (Claude Desktop, Cursor, etc.) can drive it.++### Tutorial · Custom skill with database + auth++URL: https://three.ws/tutorials/skill-with-database-auth++A real production skill — Postgres-backed CRM lookup, signed requests, per-user permissions, rate limits. Not a toy weather demo.++### Tutorial · Deploy to Vercel with a custom domain++URL: https://three.ws/tutorials/deploy-to-vercel-custom-domain++Take a forked three.ws and ship it as agent.yourcompany.com — CI, environment variables, custom domain, SSL, the lot.++### Tutorial · Claim a .threews.sol name & get paid by name++URL: https://three.ws/tutorials/claim-threews-name++Mint a *.threews.sol Solana subdomain for your agent and accept USDC payments addressed to the name instead of a raw wallet.++### Tutorial · Mine a Solana vanity address++URL: https://three.ws/tutorials/mine-vanity-address++Grind a custom-prefix Solana address in the browser, then prove how it was made with the proof-of-grind receipt, gallery, and bounty market.++### Tutorial · Ship an avatar manifest++URL: https://three.ws/tutorials/ship-an-avatar-manifest++Turn a raw GLB into a signed-off, hash-anchored manifest: one document that names the avatar, records the exact bytes of its mesh, declares its skeleton, and fails your build if the model ever silently changes.++### Tutorial · Write a repository guard++URL: https://three.ws/tutorials/write-a-guard++This repo has no CI, so a guard is the only thing between a mistake and production. Build one that fails the build when an API handler forgets its error boundary, wire it into the gate, cover it with tests, and register it.+## BlogLong-form announcements, launches, and writing from three.ws.diff --git a/public/llms.txt b/public/llms.txtindex ccbd27cc8..75461436d 100644--- a/public/llms.txt+++ b/public/llms.txt@@ -284,6 +284,7 @@ Sign-in, dashboard, billing.Docs, tutorials, and reference.- [Docs](https://three.ws/docs): Full documentation: SDKs, API reference, embedding, agent system, smart contracts.+- [Docs · The in-game economy](https://three.ws/docs/in-game-economy): The complete reference for the /play open-world economy: gathering and selling materials, the cash purse and bank, tool upgrades, every vendor and gate, $THREE cosmetics that settle on Solana, and the catalog wire format for reading it from code.- [Docs · The trading hub](https://three.ws/docs/trading-hub): The front door to the autonomous trading system: live fleet vitals read off the running bots, the strategy arena and experiments board, and the smart-money radar, with the twenty pages behind them organised into one path.- [Docs World (immersive 3D docs)](https://three.ws/docs/world): The full three.ws documentation as a walkable 3D world: every docs section is a glowing pavilion, and the live pages render inside the scene.- [Crypto Data API](https://three.ws/crypto): Free, keyless crypto data for AI agents in one API: token snapshots, security/rug signals, holder concentration, live pump.fun launches, bonding-curve status, whale activity, trending tokens, wallet portfolios and ticker-availability checks. No key, no account, no paywall.@@ -351,6 +352,7 @@ Docs, tutorials, and reference.- [Docs · x402 Buyer Client](https://three.ws/docs/x402-buyer): How to settle a 402 challenge and pay three.ws's paid endpoints from code.- [Docs · Autonomous x402 Loop](https://three.ws/docs/autonomous-x402): The scheduled buyer that pays x402 endpoints on a cadence to feed the oracle and sniper — real USDC, real settlements.- [Docs · Circulation Engine](https://three.ws/docs/circulation-engine): The autonomous agent-to-agent activity loop — a pool of real platform agents tipping, paying, trading, and launching with one another.+- [Docs · Economy Health Dashboard](https://three.ws/docs/economy-health-dashboard): The operator dashboard that answers whether the Money Pulse is quiet and which link in the funding chain broke, plus the ranked diagnosis rules behind its verdict.- [Docs · Money Feed](https://three.ws/docs/money-feed): The surfaces that show real value moving through three.ws — the live ticker, the custody-spend ledger, and the economy volume dashboard.- [Docs · Reputation System](https://three.ws/docs/reputation): Leave and read permanent, on-chain reviews for any registered agent via the UI, SDK, or contract.- [Docs · Validation Attestations](https://three.ws/docs/validation): Record and read on-chain attestations that an agent's 3D model passes glTF validation.@@ -542,6 +544,47 @@ Docs, tutorials, and reference.- [Tutorial · Read the trading fleet](https://three.ws/tutorials/read-the-trading-fleet): Tell a working autonomous strategy from a lucky one: why realized profit is the only profit, how to read profit factor against win rate and drawdown, the sample size below which a rank means nothing, and how to spot a broken fleet that still shows a green light.- [MCP Tool Catalog](https://three.ws/mcp-tools): Every MCP tool three.ws publishes, searchable in one place: what it does, which server hosts it, what it costs in USDC, and whether an AI client can run it unattended. Generated from the source of each tool, so it never drifts from what the servers serve.- [Docs · The 10 SOL trading experiment](https://three.ws/docs/trading-experiment): The full risk policy behind the autonomous fleet: entry band, position sizing, taking initials at 2x, the moon-bag floor, trailing and hard stops, and how to read the decision journal.+- [Tutorial · Getting started (hosted)](https://three.ws/tutorials/getting-started): A five-minute, no-code tour: create an agent, pick a body, give it a personality, share the URL.+- [Tutorial · Explore the docs as a 3D world](https://three.ws/tutorials/explore-docs-world): Walk an avatar through the documentation: fourteen sections as glowing pavilions, live pages read in-world, shareable deep links, and your own GLB as the body.+- [Tutorial · Embed in 30 seconds](https://three.ws/tutorials/embed-in-30-seconds): Drop one script tag into any HTML page. Your agent loads, auto-sizes, and starts animating.+- [Tutorial · Customize size, position & background](https://three.ws/tutorials/customize-appearance): Tune every visible knob — bubble size, corner placement, background, rotation speed — entirely through data-* attributes.+- [Tutorial · Pick & swap an avatar in Studio](https://three.ws/tutorials/swap-avatar-in-studio): Visually browse the avatar gallery, switch bodies with one click, and have the change ripple to every embed without redeploying.+- [Tutorial · Add a greeting & first speech line](https://three.ws/tutorials/greeting-and-first-speech): Make your agent say hello the moment it loads — and have its mouth move with the words.+- [Tutorial · Share your agent (link, QR, social preview)](https://three.ws/tutorials/share-your-agent): Get a permanent link to your agent, generate a QR for print, and set the Open Graph preview so it looks good in tweets.+- [Tutorial · Turn a selfie into a 3D avatar](https://three.ws/tutorials/selfie-to-avatar): Snap or upload a photo and get a rigged 3D avatar that can walk, wave, and talk — then put it on an agent.+- [Tutorial · View your 3D model in AR](https://three.ws/tutorials/view-in-ar): See any three.ws model in augmented reality and walk around it in your kitchen — straight from the browser, no app to install. iOS Quick Look and Android WebXR.+- [Tutorial · Import an avatar by URL](https://three.ws/tutorials/import-avatar-url): Bring a Ready Player Me or any hosted glTF/GLB avatar into three.ws by link — auto-validated, auto-rigged, ready for an agent.+- [Tutorial · Add the Walk Companion to your site](https://three.ws/tutorials/walk-companion): Drop a 3D avatar that strolls across any web page — corner mascot or full-page playground — with one script tag, the npm SDK, or a postMessage bridge.+- [Tutorial · Load a ready-made 3D tour for a DeFi protocol (Sperax)](https://three.ws/tutorials/sperax-tour): The Tour Builder's first template: an 8-stop guided tour of Sperax's USDs auto-yield stablecoin, ready to load, edit, and export as a one-tag snippet in minutes.+- [Tutorial · Build your first agent (from scratch)](https://three.ws/tutorials/first-agent): A complete walkthrough from a blank HTML file to a live, talking 3D character you wrote yourself — no framework, no build tools.+- [Tutorial · Embed on a website (HTML, React, Next.js)](https://three.ws/tutorials/embed-on-website): Five different ways to add an agent to your site — pick the one that matches how you build today.+- [Tutorial · Build a personal AI website](https://three.ws/tutorials/personal-ai-site): A 3D version of you, on your domain, ready to answer any question about your work — with a portfolio, contact form, and resume.+- [Tutorial · Drive the agent with the JavaScript API](https://three.ws/tutorials/js-api-events): Listen for the ready event, play animations on demand, make the agent speak from anywhere in your app code.+- [Tutorial · Use the <agent-3d> web component end-to-end](https://three.ws/tutorials/web-component-end-to-end): Skip the script tag — drop a real custom element into your DOM, bind attributes, and use the full event lifecycle.+- [Tutorial · Build a site concierge from the building blocks](https://three.ws/tutorials/build-a-site-concierge): How the Concierge widget is assembled: the talking avatar, the streaming chat, the tool calls, and how to point the same parts at your own backend over Server-Sent Events.+- [Tutorial · Trigger the agent from page events](https://three.ws/tutorials/trigger-from-page-events): Make your agent react to clicks, scrolls, form submits, and route changes — turn it into a real co-pilot, not a chat widget.+- [Tutorial · Upload a custom GLB avatar](https://three.ws/tutorials/upload-custom-glb): Bring your own model — any glTF 2.0 .glb from Blender, three.ws Studio, or any other source. Get it validated, fixed, and live.+- [Tutorial · Connect Anthropic or OpenAI as the brain](https://three.ws/tutorials/connect-ai-brain): Plug your own model provider into the agent loop. Bring your API key, choose your model, control cost and latency.+- [Tutorial · Create, enhance & edit agent memory](https://three.ws/tutorials/create-and-edit-memory): Teach an agent a fact that sticks between sessions — five ways: the dashboard, the agent itself, MCP tools, the REST API, and from a skill. Plus how to sharpen, edit, and forget.+- [Tutorial · Place your agent in the real world (IRL)](https://three.ws/tutorials/place-agent-irl): Use camera passthrough, a joystick, and tap-to-place to drop your 3D agent into your physical space — and understand how location privacy works.+- [Tutorial · Give your agent a voice with lipsync](https://three.ws/tutorials/voice-and-lipsync): Add real-time text-to-speech with synchronized mouth movement — pick or clone a voice, drive visemes from audio, and wire it into a live agent.+- [Tutorial · Discover and pay for an x402 service](https://three.ws/tutorials/pay-for-x402-service): Browse the x402 Bazaar and call a paid API from your agent — the 402 challenge, the USDC payment, and the retry, end to end.+- [Tutorial · Animations from data: wire your agent's gestures to real APIs and AI](https://three.ws/tutorials/emotion-from-data): Trigger real body animations — celebrate, dance, flinch — from a live data feed. A free lexicon lane to prove the wiring, then a real AI model classifying arbitrary text into a richer set of gestures, with cooldown/dedupe so a fast feed never spams the queue.+- [Tutorial · Build a custom skill](https://three.ws/tutorials/custom-skill): A complete walkthrough of building a weather skill an agent can invoke — bundle format, LLM tool calling, context API.+- [Tutorial · Register your agent on-chain (ERC-8004)](https://three.ws/tutorials/register-onchain): Give your agent a permanent, verifiable identity. Publish an ERC-8004 attestation anyone can read from any chain.+- [Tutorial · Mint an agent token on Pump.fun](https://three.ws/tutorials/mint-pumpfun-token): Launch a Solana token for your agent, bond it to its on-chain identity, and let people speculate on (or hold) a piece of it.+- [Tutorial · Build a paid x402 endpoint your agent calls](https://three.ws/tutorials/paid-x402-endpoint): Stand up an API that other agents pay USDC to call — using the x402 protocol on Base mainnet. Real money, real flow.+- [Tutorial · Monetize an MCP server: charge per tool call](https://three.ws/tutorials/monetize-mcp-server): Build an MCP server whose tools charge other agents per call in USDC on Solana. One free orientation tool, one paid tool that does real work, and a test that proves the product never escapes unpaid.+- [Tutorial · Meter any API with the x402-server SDK](https://three.ws/tutorials/x402-server-sdk): Turn an ordinary HTTP handler into a paid one with @three-ws/x402-server. Solana-first, framework-agnostic, and runnable offline before you touch a wallet.+- [Tutorial · Self-host the agent backend](https://three.ws/tutorials/self-host-agent-backend): Run the full three.ws backend on your own infrastructure — workers, function endpoints, model proxies. No three.ws dependency in production.+- [Tutorial · Multi-agent coordination](https://three.ws/tutorials/multi-agent-coordination): Two or more agents on the same page that talk to each other — turn-taking, shared memory, delegating subtasks.+- [Tutorial · Expose your agent as an MCP server](https://three.ws/tutorials/mcp-server-for-your-agent): Wrap your agent in the Model Context Protocol so any MCP-compatible client (Claude Desktop, Cursor, etc.) can drive it.+- [Tutorial · Custom skill with database + auth](https://three.ws/tutorials/skill-with-database-auth): A real production skill — Postgres-backed CRM lookup, signed requests, per-user permissions, rate limits. Not a toy weather demo.+- [Tutorial · Deploy to Vercel with a custom domain](https://three.ws/tutorials/deploy-to-vercel-custom-domain): Take a forked three.ws and ship it as agent.yourcompany.com — CI, environment variables, custom domain, SSL, the lot.+- [Tutorial · Claim a .threews.sol name & get paid by name](https://three.ws/tutorials/claim-threews-name): Mint a *.threews.sol Solana subdomain for your agent and accept USDC payments addressed to the name instead of a raw wallet.+- [Tutorial · Mine a Solana vanity address](https://three.ws/tutorials/mine-vanity-address): Grind a custom-prefix Solana address in the browser, then prove how it was made with the proof-of-grind receipt, gallery, and bounty market.+- [Tutorial · Ship an avatar manifest](https://three.ws/tutorials/ship-an-avatar-manifest): Turn a raw GLB into a signed-off, hash-anchored manifest: one document that names the avatar, records the exact bytes of its mesh, declares its skeleton, and fails your build if the model ever silently changes.+- [Tutorial · Write a repository guard](https://three.ws/tutorials/write-a-guard): This repo has no CI, so a guard is the only thing between a mistake and production. Build one that fails the build when an API handler forgets its error boundary, wire it into the gate, cover it with tests, and register it.## Blogdiff --git a/public/nav-data.js b/public/nav-data.jsindex 32e6a16f2..50061e927 100644--- a/public/nav-data.js+++ b/public/nav-data.js@@ -237,6 +237,12 @@ export const NAV_GROUPS = [tier: 'advanced',desc: 'Every coin is a 3D world — drop in & hang out',},+ {+ title: 'In-Game Economy',+ href: '/play/economy',+ tier: 'advanced',+ desc: 'Store prices, bank rules, the $THREE boutique & the full wheel paytable, read live from the game',+ },{title: 'Coin Clash',href: '/clash',diff --git a/public/sitemap/index.html b/public/sitemap/index.htmlindex 785dbd08b..ec0da3771 100644--- a/public/sitemap/index.html+++ b/public/sitemap/index.html@@ -79,7 +79,7 @@<main class="sm-wrap"><div class="sm-hero"><h1>Sitemap</h1>- <p>All 679 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>+ <p>All 722 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p><div class="sm-formats"><a href="/sitemap.xml"><code>sitemap.xml</code> · for search engines</a><a href="/llms.txt"><code>llms.txt</code> · for AI agents</a>@@ -91,7 +91,7 @@</div><div class="sm-filter"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>- <input id="sm-filter-input" type="search" placeholder="Filter 679 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />+ <input id="sm-filter-input" type="search" placeholder="Filter 722 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" /><kbd aria-hidden="true">/</kbd></div><p class="sm-filter-count" id="sm-filter-count" role="status" aria-live="polite"></p>@@ -115,6 +115,14 @@<span class="sm-desc">The control room for three.ws autonomous trading: live fleet vitals, the agent scoreboard, the entry-to-exit pipeline, and every trading surface and doc in one place.</span></a></li>+ <li>+ <a href="/docs/in-game-economy">+ <span class="sm-new-date">Jul 30, 2026</span>+ <span class="sm-title">Docs · The in-game economy</span>+ <span class="sm-path">/docs/in-game-economy</span>+ <span class="sm-desc">The complete reference for the /play open-world economy: gathering and selling materials, the cash purse and bank, tool upgrades, every vendor and gate, $THREE cosmetics that settle on Solana, and the catalog wire format for reading it from code.</span>+ </a>+ </li><li><a href="/docs/trading-hub"><span class="sm-new-date">Jul 30, 2026</span>@@ -131,6 +139,14 @@<span class="sm-desc">The full three.ws documentation as a walkable 3D world: every docs section is a glowing pavilion, and the live pages render inside the scene.</span></a></li>+ <li>+ <a href="/docs/economy-health-dashboard">+ <span class="sm-new-date">Jul 30, 2026</span>+ <span class="sm-title">Docs · Economy Health Dashboard</span>+ <span class="sm-path">/docs/economy-health-dashboard</span>+ <span class="sm-desc">The operator dashboard that answers whether the Money Pulse is quiet and which link in the funding chain broke, plus the ranked diagnosis rules behind its verdict.</span>+ </a>+ </li><li><a href="/examples"><span class="sm-new-date">Jul 30, 2026</span>@@ -155,22 +171,6 @@<span class="sm-desc">The local guards that protect this codebase in place of CI: what each one blocks, which stage runs it, and how to add a new one.</span></a></li>- <li>- <a href="/tutorials/agent-spending-envelope">- <span class="sm-new-date">Jul 30, 2026</span>- <span class="sm-title">Tutorial · Give an Agent a Spending Envelope</span>- <span class="sm-path">/tutorials/agent-spending-envelope</span>- <span class="sm-desc">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.</span>- </a>- </li>- <li>- <a href="/tutorials/render-avatar-images">- <span class="sm-new-date">Jul 30, 2026</span>- <span class="sm-title">Tutorial · Render Avatars as Images</span>- <span class="sm-path">/tutorials/render-avatar-images</span>- <span class="sm-desc">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.</span>- </a>- </li></ul></section><nav class="sm-toc" aria-label="Sections">@@ -2041,7 +2041,7 @@<section class="sm-section" id="learn"><header>- <h2>Learn<span class="sm-count" data-count>259</span></h2>+ <h2>Learn<span class="sm-count" data-count>302</span></h2><p class="sm-section-desc">Docs, tutorials, and reference.</p></header><ul class="sm-list">@@ -2052,6 +2052,13 @@<span class="sm-desc">Full documentation: SDKs, API reference, embedding, agent system, smart contracts.</span></a></li>+ <li>+ <a href="/docs/in-game-economy">+ <span class="sm-title">Docs · The in-game economy</span>+ <span class="sm-path">/docs/in-game-economy</span>+ <span class="sm-desc">The complete reference for the /play open-world economy: gathering and selling materials, the cash purse and bank, tool upgrades, every vendor and gate, $THREE cosmetics that settle on Solana, and the catalog wire format for reading it from code.</span>+ </a>+ </li><li><a href="/docs/trading-hub"><span class="sm-title">Docs · The trading hub</span>@@ -2521,6 +2528,13 @@<span class="sm-desc">The autonomous agent-to-agent activity loop — a pool of real platform agents tipping, paying, trading, and launching with one another.</span></a></li>+ <li>+ <a href="/docs/economy-health-dashboard">+ <span class="sm-title">Docs · Economy Health Dashboard</span>+ <span class="sm-path">/docs/economy-health-dashboard</span>+ <span class="sm-desc">The operator dashboard that answers whether the Money Pulse is quiet and which link in the funding chain broke, plus the ranked diagnosis rules behind its verdict.</span>+ </a>+ </li><li><a href="/docs/money-feed"><span class="sm-title">Docs · Money Feed</span>@@ -3858,6 +3872,293 @@<span class="sm-desc">The full risk policy behind the autonomous fleet: entry band, position sizing, taking initials at 2x, the moon-bag floor, trailing and hard stops, and how to read the decision journal.</span></a></li>+ <li>+ <a href="/tutorials/getting-started">+ <span class="sm-title">Tutorial · Getting started (hosted)</span>+ <span class="sm-path">/tutorials/getting-started</span>+ <span class="sm-desc">A five-minute, no-code tour: create an agent, pick a body, give it a personality, share the URL.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/explore-docs-world">+ <span class="sm-title">Tutorial · Explore the docs as a 3D world</span>+ <span class="sm-path">/tutorials/explore-docs-world</span>+ <span class="sm-desc">Walk an avatar through the documentation: fourteen sections as glowing pavilions, live pages read in-world, shareable deep links, and your own GLB as the body.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/embed-in-30-seconds">+ <span class="sm-title">Tutorial · Embed in 30 seconds</span>+ <span class="sm-path">/tutorials/embed-in-30-seconds</span>+ <span class="sm-desc">Drop one script tag into any HTML page. Your agent loads, auto-sizes, and starts animating.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/customize-appearance">+ <span class="sm-title">Tutorial · Customize size, position & background</span>+ <span class="sm-path">/tutorials/customize-appearance</span>+ <span class="sm-desc">Tune every visible knob — bubble size, corner placement, background, rotation speed — entirely through data-* attributes.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/swap-avatar-in-studio">+ <span class="sm-title">Tutorial · Pick & swap an avatar in Studio</span>+ <span class="sm-path">/tutorials/swap-avatar-in-studio</span>+ <span class="sm-desc">Visually browse the avatar gallery, switch bodies with one click, and have the change ripple to every embed without redeploying.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/greeting-and-first-speech">+ <span class="sm-title">Tutorial · Add a greeting & first speech line</span>+ <span class="sm-path">/tutorials/greeting-and-first-speech</span>+ <span class="sm-desc">Make your agent say hello the moment it loads — and have its mouth move with the words.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/share-your-agent">+ <span class="sm-title">Tutorial · Share your agent (link, QR, social preview)</span>+ <span class="sm-path">/tutorials/share-your-agent</span>+ <span class="sm-desc">Get a permanent link to your agent, generate a QR for print, and set the Open Graph preview so it looks good in tweets.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/selfie-to-avatar">+ <span class="sm-title">Tutorial · Turn a selfie into a 3D avatar</span>+ <span class="sm-path">/tutorials/selfie-to-avatar</span>+ <span class="sm-desc">Snap or upload a photo and get a rigged 3D avatar that can walk, wave, and talk — then put it on an agent.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/view-in-ar">+ <span class="sm-title">Tutorial · View your 3D model in AR</span>+ <span class="sm-path">/tutorials/view-in-ar</span>+ <span class="sm-desc">See any three.ws model in augmented reality and walk around it in your kitchen — straight from the browser, no app to install. iOS Quick Look and Android WebXR.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/import-avatar-url">+ <span class="sm-title">Tutorial · Import an avatar by URL</span>+ <span class="sm-path">/tutorials/import-avatar-url</span>+ <span class="sm-desc">Bring a Ready Player Me or any hosted glTF/GLB avatar into three.ws by link — auto-validated, auto-rigged, ready for an agent.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/walk-companion">+ <span class="sm-title">Tutorial · Add the Walk Companion to your site</span>+ <span class="sm-path">/tutorials/walk-companion</span>+ <span class="sm-desc">Drop a 3D avatar that strolls across any web page — corner mascot or full-page playground — with one script tag, the npm SDK, or a postMessage bridge.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/sperax-tour">+ <span class="sm-title">Tutorial · Load a ready-made 3D tour for a DeFi protocol (Sperax)</span>+ <span class="sm-path">/tutorials/sperax-tour</span>+ <span class="sm-desc">The Tour Builder's first template: an 8-stop guided tour of Sperax's USDs auto-yield stablecoin, ready to load, edit, and export as a one-tag snippet in minutes.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/first-agent">+ <span class="sm-title">Tutorial · Build your first agent (from scratch)</span>+ <span class="sm-path">/tutorials/first-agent</span>+ <span class="sm-desc">A complete walkthrough from a blank HTML file to a live, talking 3D character you wrote yourself — no framework, no build tools.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/embed-on-website">+ <span class="sm-title">Tutorial · Embed on a website (HTML, React, Next.js)</span>+ <span class="sm-path">/tutorials/embed-on-website</span>+ <span class="sm-desc">Five different ways to add an agent to your site — pick the one that matches how you build today.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/personal-ai-site">+ <span class="sm-title">Tutorial · Build a personal AI website</span>+ <span class="sm-path">/tutorials/personal-ai-site</span>+ <span class="sm-desc">A 3D version of you, on your domain, ready to answer any question about your work — with a portfolio, contact form, and resume.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/js-api-events">+ <span class="sm-title">Tutorial · Drive the agent with the JavaScript API</span>+ <span class="sm-path">/tutorials/js-api-events</span>+ <span class="sm-desc">Listen for the ready event, play animations on demand, make the agent speak from anywhere in your app code.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/web-component-end-to-end">+ <span class="sm-title">Tutorial · Use the <agent-3d> web component end-to-end</span>+ <span class="sm-path">/tutorials/web-component-end-to-end</span>+ <span class="sm-desc">Skip the script tag — drop a real custom element into your DOM, bind attributes, and use the full event lifecycle.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/build-a-site-concierge">+ <span class="sm-title">Tutorial · Build a site concierge from the building blocks</span>+ <span class="sm-path">/tutorials/build-a-site-concierge</span>+ <span class="sm-desc">How the Concierge widget is assembled: the talking avatar, the streaming chat, the tool calls, and how to point the same parts at your own backend over Server-Sent Events.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/trigger-from-page-events">+ <span class="sm-title">Tutorial · Trigger the agent from page events</span>+ <span class="sm-path">/tutorials/trigger-from-page-events</span>+ <span class="sm-desc">Make your agent react to clicks, scrolls, form submits, and route changes — turn it into a real co-pilot, not a chat widget.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/upload-custom-glb">+ <span class="sm-title">Tutorial · Upload a custom GLB avatar</span>+ <span class="sm-path">/tutorials/upload-custom-glb</span>+ <span class="sm-desc">Bring your own model — any glTF 2.0 .glb from Blender, three.ws Studio, or any other source. Get it validated, fixed, and live.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/connect-ai-brain">+ <span class="sm-title">Tutorial · Connect Anthropic or OpenAI as the brain</span>+ <span class="sm-path">/tutorials/connect-ai-brain</span>+ <span class="sm-desc">Plug your own model provider into the agent loop. Bring your API key, choose your model, control cost and latency.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/create-and-edit-memory">+ <span class="sm-title">Tutorial · Create, enhance & edit agent memory</span>+ <span class="sm-path">/tutorials/create-and-edit-memory</span>+ <span class="sm-desc">Teach an agent a fact that sticks between sessions — five ways: the dashboard, the agent itself, MCP tools, the REST API, and from a skill. Plus how to sharpen, edit, and forget.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/place-agent-irl">+ <span class="sm-title">Tutorial · Place your agent in the real world (IRL)</span>+ <span class="sm-path">/tutorials/place-agent-irl</span>+ <span class="sm-desc">Use camera passthrough, a joystick, and tap-to-place to drop your 3D agent into your physical space — and understand how location privacy works.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/voice-and-lipsync">+ <span class="sm-title">Tutorial · Give your agent a voice with lipsync</span>+ <span class="sm-path">/tutorials/voice-and-lipsync</span>+ <span class="sm-desc">Add real-time text-to-speech with synchronized mouth movement — pick or clone a voice, drive visemes from audio, and wire it into a live agent.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/pay-for-x402-service">+ <span class="sm-title">Tutorial · Discover and pay for an x402 service</span>+ <span class="sm-path">/tutorials/pay-for-x402-service</span>+ <span class="sm-desc">Browse the x402 Bazaar and call a paid API from your agent — the 402 challenge, the USDC payment, and the retry, end to end.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/emotion-from-data">+ <span class="sm-title">Tutorial · Animations from data: wire your agent's gestures to real APIs and AI</span>+ <span class="sm-path">/tutorials/emotion-from-data</span>+ <span class="sm-desc">Trigger real body animations — celebrate, dance, flinch — from a live data feed. A free lexicon lane to prove the wiring, then a real AI model classifying arbitrary text into a richer set of gestures, with cooldown/dedupe so a fast feed never spams the queue.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/custom-skill">+ <span class="sm-title">Tutorial · Build a custom skill</span>+ <span class="sm-path">/tutorials/custom-skill</span>+ <span class="sm-desc">A complete walkthrough of building a weather skill an agent can invoke — bundle format, LLM tool calling, context API.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/register-onchain">+ <span class="sm-title">Tutorial · Register your agent on-chain (ERC-8004)</span>+ <span class="sm-path">/tutorials/register-onchain</span>+ <span class="sm-desc">Give your agent a permanent, verifiable identity. Publish an ERC-8004 attestation anyone can read from any chain.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/mint-pumpfun-token">+ <span class="sm-title">Tutorial · Mint an agent token on Pump.fun</span>+ <span class="sm-path">/tutorials/mint-pumpfun-token</span>+ <span class="sm-desc">Launch a Solana token for your agent, bond it to its on-chain identity, and let people speculate on (or hold) a piece of it.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/paid-x402-endpoint">+ <span class="sm-title">Tutorial · Build a paid x402 endpoint your agent calls</span>+ <span class="sm-path">/tutorials/paid-x402-endpoint</span>+ <span class="sm-desc">Stand up an API that other agents pay USDC to call — using the x402 protocol on Base mainnet. Real money, real flow.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/monetize-mcp-server">+ <span class="sm-title">Tutorial · Monetize an MCP server: charge per tool call</span>+ <span class="sm-path">/tutorials/monetize-mcp-server</span>+ <span class="sm-desc">Build an MCP server whose tools charge other agents per call in USDC on Solana. One free orientation tool, one paid tool that does real work, and a test that proves the product never escapes unpaid.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/x402-server-sdk">+ <span class="sm-title">Tutorial · Meter any API with the x402-server SDK</span>+ <span class="sm-path">/tutorials/x402-server-sdk</span>+ <span class="sm-desc">Turn an ordinary HTTP handler into a paid one with @three-ws/x402-server. Solana-first, framework-agnostic, and runnable offline before you touch a wallet.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/self-host-agent-backend">+ <span class="sm-title">Tutorial · Self-host the agent backend</span>+ <span class="sm-path">/tutorials/self-host-agent-backend</span>+ <span class="sm-desc">Run the full three.ws backend on your own infrastructure — workers, function endpoints, model proxies. No three.ws dependency in production.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/multi-agent-coordination">+ <span class="sm-title">Tutorial · Multi-agent coordination</span>+ <span class="sm-path">/tutorials/multi-agent-coordination</span>+ <span class="sm-desc">Two or more agents on the same page that talk to each other — turn-taking, shared memory, delegating subtasks.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/mcp-server-for-your-agent">+ <span class="sm-title">Tutorial · Expose your agent as an MCP server</span>+ <span class="sm-path">/tutorials/mcp-server-for-your-agent</span>+ <span class="sm-desc">Wrap your agent in the Model Context Protocol so any MCP-compatible client (Claude Desktop, Cursor, etc.) can drive it.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/skill-with-database-auth">+ <span class="sm-title">Tutorial · Custom skill with database + auth</span>+ <span class="sm-path">/tutorials/skill-with-database-auth</span>+ <span class="sm-desc">A real production skill — Postgres-backed CRM lookup, signed requests, per-user permissions, rate limits. Not a toy weather demo.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/deploy-to-vercel-custom-domain">+ <span class="sm-title">Tutorial · Deploy to Vercel with a custom domain</span>+ <span class="sm-path">/tutorials/deploy-to-vercel-custom-domain</span>+ <span class="sm-desc">Take a forked three.ws and ship it as agent.yourcompany.com — CI, environment variables, custom domain, SSL, the lot.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/claim-threews-name">+ <span class="sm-title">Tutorial · Claim a .threews.sol name & get paid by name</span>+ <span class="sm-path">/tutorials/claim-threews-name</span>+ <span class="sm-desc">Mint a *.threews.sol Solana subdomain for your agent and accept USDC payments addressed to the name instead of a raw wallet.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/mine-vanity-address">+ <span class="sm-title">Tutorial · Mine a Solana vanity address</span>+ <span class="sm-path">/tutorials/mine-vanity-address</span>+ <span class="sm-desc">Grind a custom-prefix Solana address in the browser, then prove how it was made with the proof-of-grind receipt, gallery, and bounty market.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/ship-an-avatar-manifest">+ <span class="sm-title">Tutorial · Ship an avatar manifest</span>+ <span class="sm-path">/tutorials/ship-an-avatar-manifest</span>+ <span class="sm-desc">Turn a raw GLB into a signed-off, hash-anchored manifest: one document that names the avatar, records the exact bytes of its mesh, declares its skeleton, and fails your build if the model ever silently changes.</span>+ </a>+ </li>+ <li>+ <a href="/tutorials/write-a-guard">+ <span class="sm-title">Tutorial · Write a repository guard</span>+ <span class="sm-path">/tutorials/write-a-guard</span>+ <span class="sm-desc">This repo has no CI, so a guard is the only thing between a mistake and production. Build one that fails the build when an API handler forgets its error boundary, wire it into the gate, cover it with tests, and register it.</span>+ </a>+ </li></ul></section>diff --git a/scripts/.aa/shot.mjs b/scripts/.aa/shot.mjsnew file mode 100644index 000000000..8639b6727--- /dev/null+++ b/scripts/.aa/shot.mjs@@ -0,0 +1,12 @@+import { chromium } from 'playwright';+const url = process.argv[2] || 'http://localhost:3007/asl-alphabet?letter=W';+const out = process.argv[3] || '/tmp/claude-1000/-workspaces-three-ws/ac683624-d99b-4e76-bfbe-4e0283327d2c/scratchpad/aa4.png';+const sel = process.argv[4] || '.aa-stage-wrap';+const b = await chromium.launch();+const p = await b.newPage({ viewport: { width: 1180, height: 820 } });+await p.goto(url, { waitUntil: 'networkidle' });+await p.waitForTimeout(7000);+const el = await p.$(sel);+await (el || p).screenshot({ path: out });+console.log('shot ok');+await b.close();diff --git a/scripts/audit-docs.mjs b/scripts/audit-docs.mjsindex 10a48f971..dc109f4cf 100644--- a/scripts/audit-docs.mjs+++ b/scripts/audit-docs.mjs@@ -269,6 +269,7 @@ const UNPUBLISHED_DOCS = new Map([['coinmarketcap-article', 'internal: draft prepared for an external publisher'],['coinmarketcap-article-play', 'internal: draft prepared for an external publisher'],['demo-routes', 'internal: dated route inventory'],+ ['economy-health-dashboard', 'internal: admin-gated dashboard; names CRON_SECRET and the admin diagnosis endpoints'],['economy-heartbeat', 'internal: scheduled-job operations'],['economy-master', 'internal: funding-root wallet operations'],['financial-controls', 'internal: audit-grade money-flow register'],diff --git a/tests/examples-page.test.js b/tests/examples-page.test.jsnew file mode 100644index 000000000..2f57194be--- /dev/null+++ b/tests/examples-page.test.js@@ -0,0 +1,133 @@+import { describe, it, expect } from 'vitest';+import { readFileSync, existsSync } from 'node:fs';+import { execFileSync } from 'node:child_process';+import { resolve, dirname } from 'node:path';+import { fileURLToPath } from 'node:url';++// The /examples page renders two halves that fail in different ways:+//+// curated snippets hand-written runnable documents in public/examples.js+// generated index every example found by scanning the repo+//+// tests/examples-index.test.js guards how the generator writes. This file+// guards what reaches the browser, which is a separate failure surface.+//+// The specific bug it prevents: the generator writes data/examples.json, but+// only public/ is copied into dist/ and served, so an index that is generated+// and never mirrored leaves the page fetching a 404 and rendering its error+// state in production while looking perfect in review.+//+// The second property is that the page consumes the index rather than naming+// examples inline. A hand-listed section looks identical to a working one until+// an example is renamed, which is how the section this replaced ended up naming+// 5 of the 39 examples that actually ship.++const here = dirname(fileURLToPath(import.meta.url));+const root = resolve(here, '..');+const readJson = (rel) => JSON.parse(readFileSync(resolve(root, rel), 'utf8'));++describe('examples index: generated, mirrored, and served', () => {+ it('carries real entries', () => {+ const index = readJson('data/examples.json');+ expect(Array.isArray(index.examples)).toBe(true);+ expect(index.examples.length).toBeGreaterThan(10);+ });++ it('gives every entry the fields the gallery renders', () => {+ for (const example of readJson('data/examples.json').examples) {+ expect(example.id, `${example.path} needs an id`).toBeTruthy();+ expect(example.title, `${example.path} needs a title`).toBeTruthy();+ expect(example.path, 'every entry needs a path').toBeTruthy();+ expect(example.group, `${example.path} needs a group`).toBeTruthy();+ }+ });++ it('never names a path that is not on disk', () => {+ // The whole point of generating this index is that it cannot advertise a+ // file that is not there. If it can, the generator is reading stale state.+ const missing = readJson('data/examples.json')+ .examples.map((e) => e.path)+ .filter((p) => !existsSync(resolve(root, p)));+ expect(missing, `indexed paths that do not exist: ${missing.join(', ')}`).toEqual([]);+ });++ it('is mirrored into public/, the only directory that gets served', () => {+ expect(+ existsSync(resolve(root, 'public/examples.json')),+ 'public/examples.json is missing: run `npm run build:examples`',+ ).toBe(true);+ });++ it('keeps the served mirror equal to the generated source', () => {+ const source = readJson('data/examples.json');+ const served = readJson('public/examples.json');+ expect(served.examples.map((e) => e.id).sort()).toEqual(source.examples.map((e) => e.id).sort());+ });++ it('runs the mirror from `npm run build:examples`, not only the generator', () => {+ // Chaining is what keeps the two files in step. Without it the mirror is a+ // one-time copy that drifts the next time an example is added.+ const pkg = readJson('package.json');+ expect(pkg.scripts['build:examples']).toContain('build-examples-index.mjs');+ expect(pkg.scripts['build:examples']).toContain('mirror-examples-index.mjs');+ });++ it('refuses to publish an empty index', () => {+ // An empty index means the scan broke. Publishing it would swap the gallery+ // for its "no matches" state, which reads as a content problem, not a bug.+ const script = readFileSync(resolve(root, 'scripts/mirror-examples-index.mjs'), 'utf8');+ expect(script).toMatch(/length === 0/);+ expect(script).toMatch(/process\.exit\(1\)/);+ });++ it('mirrors idempotently, so a rebuild produces no phantom diff', () => {+ const before = readFileSync(resolve(root, 'public/examples.json'), 'utf8');+ execFileSync('node', ['scripts/mirror-examples-index.mjs'], { cwd: root, encoding: 'utf8' });+ expect(readFileSync(resolve(root, 'public/examples.json'), 'utf8')).toBe(before);+ });+});++describe('/examples page wiring', () => {+ const page = () => readFileSync(resolve(root, 'pages/examples.html'), 'utf8');++ it('is registered in data/pages.json, which feeds the sitemap and llms.txt', () => {+ const paths = readJson('data/pages.json')+ .sections.flatMap((s) => s.pages || [])+ .map((p) => p.path);+ expect(paths).toContain('/examples');+ });++ it('is routed, so /examples resolves to the built page', () => {+ const { routes } = readJson('vercel.json');+ expect(routes.some((r) => r.src === '/examples/?' && r.dest === '/examples.html')).toBe(true);+ });++ it('is a build entry, so the page is emitted into dist/', () => {+ expect(readFileSync(resolve(root, 'vite.config.js'), 'utf8')).toContain('pages/examples.html');+ });++ it('loads the script that renders the generated index', () => {+ expect(page()).toContain('/examples-index.js');+ });++ it('ships every hook that script renders into', () => {+ // A rename on either side silently degrades the section to "nothing+ // happens", with no error logged anywhere.+ for (const role of ['ex-browse', 'ex-grid', 'ex-search', 'ex-chips', 'ex-count', 'ex-error', 'ex-empty-search']) {+ expect(page(), `missing [data-role="${role}"]`).toContain(`data-role="${role}"`);+ }+ });++ it('renders the repo index from a fetch, never a hand-listed array', () => {+ const renderer = readFileSync(resolve(root, 'public/examples-index.js'), 'utf8');+ expect(renderer).toContain("fetch('/examples.json'");+ expect(renderer).not.toMatch(/const\s+EXAMPLES\s*=\s*\[/);+ });++ it('designs the loading, empty, and error states instead of failing blank', () => {+ const html = page();+ expect(html).toContain('data-role="ex-loading"');+ expect(html).toContain('data-role="ex-retry"');+ expect(html).toContain('data-role="ex-clear"');+ });+});diff --git a/tests/master-wallet-page.test.js b/tests/master-wallet-page.test.jsnew file mode 100644index 000000000..b5473084d--- /dev/null+++ b/tests/master-wallet-page.test.js@@ -0,0 +1,260 @@+// The master wallet page (/wallet) and its API client.+//+// These lock in the properties that make a spend surface safe to ship:+//+// 1. Reads carry no CSRF token; every write carries a fresh one. The four+// /api/user/wallet routes reject a token-less POST with 403, so a missing+// header is not a style issue, it is a broken button.+// 2. Reviewing a send NEVER signs. The review step must call the endpoint+// with `simulate: true`, which is what makes the confirmation numbers real+// instead of a browser guess, and what guarantees pressing "Review" cannot+// move money.+// 3. A wallet that has never been provisioned is a SUCCESS, not an error.+// `{"wallet": null}` has to render the create-wallet invitation. Treating+// it as a failure is how this feature stayed invisible in the first place.+// 4. The page markup is wired to the module that drives it, with the routing+// and page-index entries that make it reachable.+//+// The client is tested against a stubbed fetch rather than the network: these+// assert the request contract (method, path, headers, body), which is exactly+// the part that regressed historically. The endpoints themselves are exercised+// against real Solana state by docs/user-wallet.md's curl examples.++import { describe, it, expect, beforeEach, vi } from 'vitest';+import { readFileSync } from 'node:fs';+import { resolve, dirname } from 'node:path';+import { fileURLToPath } from 'node:url';++const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '..');+const read = (p) => readFileSync(resolve(ROOT, p), 'utf8');++const CSRF = 'tok_master_wallet';++/** Stub fetch, recording every call so the request contract can be asserted. */+function stubFetch(handler) {+ const calls = [];+ globalThis.fetch = vi.fn(async (path, init = {}) => {+ calls.push({ path: String(path), init });+ if (String(path).includes('/api/csrf-token')) {+ return new Response(JSON.stringify({ data: { token: CSRF } }), {+ status: 200,+ headers: { 'content-type': 'application/json' },+ });+ }+ return handler(String(path), init);+ });+ return calls;+}++function jsonResponse(body, status = 200) {+ return new Response(JSON.stringify(body), {+ status,+ headers: { 'content-type': 'application/json' },+ });+}++async function loadClient() {+ // Fresh module per test: src/api.js caches CSRF tokens in module scope.+ vi.resetModules();+ return import('../src/wallet-api.js');+}++describe('master wallet API client', () => {+ beforeEach(() => {+ vi.restoreAllMocks();+ });++ it('reads the wallet without a CSRF token', async () => {+ const calls = stubFetch(() => jsonResponse({ wallet: null }));+ const { fetchWallet } = await loadClient();+ const res = await fetchWallet();++ expect(res.ok).toBe(true);+ expect(res.data).toEqual({ wallet: null });+ const call = calls.find((c) => c.path.endsWith('/api/user/wallet'));+ expect(call).toBeTruthy();+ expect(call.init.method || 'GET').toBe('GET');+ expect(call.init.headers?.['x-csrf-token']).toBeUndefined();+ expect(calls.some((c) => c.path.includes('/api/csrf-token'))).toBe(false);+ });++ it('sends a CSRF token when creating the wallet', async () => {+ const calls = stubFetch(() => jsonResponse({ wallet: { created: true } }, 201));+ const { createWallet } = await loadClient();+ const res = await createWallet();++ expect(res.ok).toBe(true);+ expect(res.status).toBe(201);+ const call = calls.find((c) => c.path.endsWith('/api/user/wallet') && c.init.method === 'POST');+ expect(call.init.headers['x-csrf-token']).toBe(CSRF);+ });++ // The property that makes the confirm step trustworthy: reviewing a transfer+ // must be incapable of moving funds.+ it('previewSend asks the server to simulate, and never omits the flag', async () => {+ const calls = stubFetch(() =>+ jsonResponse({ simulation: { asset: 'SOL', destination: 'Dest111', human_amount: 0.5 } }),+ );+ const { previewSend } = await loadClient();+ const res = await previewSend({ destination: 'Dest111', asset: 'SOL', amount: '0.5' });++ expect(res.ok).toBe(true);+ const call = calls.find((c) => c.path.includes('/api/user/wallet/send'));+ const body = JSON.parse(call.init.body);+ expect(body.simulate).toBe(true);+ expect(body.destination).toBe('Dest111');+ expect(call.init.headers['x-csrf-token']).toBe(CSRF);+ });++ it('send omits the simulate flag so the server broadcasts', async () => {+ const calls = stubFetch(() => jsonResponse({ signature: 'sig123', human_amount: 0.5 }));+ const { send } = await loadClient();+ await send({ destination: 'Dest111', asset: 'SOL', amount: '0.5' });++ const call = calls.find((c) => c.path.includes('/api/user/wallet/send'));+ expect(JSON.parse(call.init.body).simulate).toBeUndefined();+ });++ it('fundAgent posts the agent id the endpoint expects', async () => {+ const calls = stubFetch(() => jsonResponse({ signature: 'sig456' }));+ const { fundAgent } = await loadClient();+ await fundAgent({ agentId: 'agt_1', asset: 'USDC', amount: '5' });++ const call = calls.find((c) => c.path.includes('/api/user/wallet/fund-agent'));+ const body = JSON.parse(call.init.body);+ expect(body.agent_id).toBe('agt_1');+ expect(body.asset).toBe('USDC');+ expect(call.init.headers['x-csrf-token']).toBe(CSRF);+ });++ it('clamps the history limit to what the endpoint accepts', async () => {+ const calls = stubFetch(() => jsonResponse({ history: [] }));+ const { fetchHistory } = await loadClient();+ await fetchHistory(500);+ await fetchHistory(0);++ const limits = calls+ .filter((c) => c.path.includes('/api/user/wallet/history'))+ .map((c) => Number(new URL(c.path, 'https://x').searchParams.get('limit')));+ expect(limits).toEqual([50, 20]);+ });++ // Every failure has to arrive as a value the page can render. A throw here+ // would surface as an unhandled rejection and a blank panel.+ it('turns an API error into a designed result instead of throwing', async () => {+ stubFetch(() =>+ jsonResponse({ error: 'insufficient_balance', error_description: 'too low' }, 400),+ );+ const { previewSend } = await loadClient();+ const res = await previewSend({ destination: 'D', asset: 'SOL', amount: '999' });++ expect(res.ok).toBe(false);+ expect(res.status).toBe(400);+ expect(res.code).toBe('insufficient_balance');+ });++ it('turns a network failure into a designed result instead of throwing', async () => {+ globalThis.fetch = vi.fn(async () => {+ throw new TypeError('Failed to fetch');+ });+ vi.resetModules();+ const { fetchWallet } = await import('../src/wallet-api.js');+ const res = await fetchWallet();++ expect(res.ok).toBe(false);+ expect(res.code).toBe('network_error');+ });+});++describe('master wallet page wiring', () => {+ const html = read('pages/wallet.html');+ const controller = read('src/master-wallet.js');++ it('mounts the controller on the root element it renders into', () => {+ expect(html).toContain('id="wlt-root"');+ expect(html).toContain('/src/master-wallet.js');+ expect(controller).toContain("getElementById('wlt-root')");+ });++ it('loads its own stylesheet and the shared shell', () => {+ expect(html).toContain('/master-wallet.css');+ expect(html).toContain('/style.css');+ expect(html).toContain('id="nav-container"');+ expect(html).toContain('id="footer-container"');+ });++ // A custodial wallet page must never be indexed or framed by a third party.+ it('is noindex', () => {+ expect(html).toMatch(/<meta name="robots" content="noindex"/);+ });++ it('renders a create invitation rather than an error when no wallet exists', () => {+ expect(controller).toContain("state.phase = 'empty'");+ expect(controller).toMatch(/do not have a master wallet yet/i);+ expect(controller).toContain("data-act=\"create\"");+ });++ it('designs every state, including signed out and failure', () => {+ for (const phase of ['loading', 'anon', 'empty', 'ready', 'error']) {+ expect(controller).toContain(`${phase}:`);+ }+ expect(controller).toContain('/login?next=');+ });++ // The confirm step is the spend gate. It must show what is being sent, to+ // whom, and on which network, before any broadcast call exists.+ it('requires an explicit confirmation that states amount, recipient and network', () => {+ expect(controller).toContain('Confirm this transfer');+ expect(controller).toContain('Nothing has been signed or sent yet');+ expect(controller).toContain('Solana mainnet');+ expect(controller).toContain("data-act=\"confirm\"");+ expect(controller).toContain("data-act=\"cancel\"");+ });++ it('escapes interpolated values so a chain-supplied string cannot inject markup', () => {+ expect(controller).toMatch(/function esc\(/);+ // Transaction summaries and addresses come from the chain, not from us.+ expect(controller).toContain('esc(t.summary');+ expect(controller).toContain('esc(t.explorer)');+ });++ it('keeps the external-wallet connector separate from the custodial page', () => {+ // src/wallet.js is the Phantom / Seed Vault connector. Importing it here+ // would put a browser wallet in front of a server-custodied one.+ expect(controller).not.toMatch(/from '\.\/wallet\.js'/);+ expect(read('src/wallet.js')).toContain('window.solana');+ });+});++describe('master wallet page is reachable', () => {+ it('is routed and built', () => {+ const vercel = JSON.parse(read('vercel.json'));+ const routed = vercel.routes.filter((r) => r.src === '/wallet' || r.src === '/wallet/');+ expect(routed).toHaveLength(2);+ for (const r of routed) expect(r.dest).toBe('/wallet.html');+ expect(read('vite.config.js')).toContain("wallet: resolve(__dirname, 'pages/wallet.html')");+ });++ it('is declared in the page index so the sitemap and changelog pick it up', () => {+ const pages = JSON.parse(read('data/pages.json'));+ const all = pages.sections.flatMap((s) => s.pages || []);+ const entry = all.find((p) => p.path === '/wallet');+ expect(entry).toBeTruthy();+ expect(entry.title).toBeTruthy();+ expect(entry.description.length).toBeGreaterThan(40);+ expect(entry.added).toBe('2026-07-30');+ });++ it('is linked from the dashboard sidebar so a signed-in user can find it', () => {+ const nav = read('src/dashboard-next/nav.js');+ expect(nav).toContain("path: '/wallet'");+ expect(nav).toMatch(/wallet:\s+'<svg/); // its icon exists+ });++ it('is documented', () => {+ const doc = read('docs/user-wallet.md');+ expect(doc).toContain('three.ws/wallet');+ expect(doc).toContain('src/master-wallet.js');+ expect(read('STRUCTURE.md')).toContain('pages/wallet.html');+ });+});diff --git a/vercel.json b/vercel.jsonindex 6ddafab17..373172c8c 100644--- a/vercel.json+++ b/vercel.json@@ -1166,6 +1166,10 @@"src": "/activity/?","dest": "/activity.html"},+ {+ "src": "/guards/?",+ "dest": "/guards.html"+ },{"src": "/pipeline/?","dest": "/pipeline.html"diff --git a/vite.config.js b/vite.config.jsindex 4f978c04e..34cd3f63a 100644--- a/vite.config.js+++ b/vite.config.js@@ -1163,6 +1163,8 @@ support: resolve(__dirname, 'pages/support.html'),'/ca2x402/': resolve(root, 'pages/ca2x402.html'),'/activity': resolve(root, 'pages/activity.html'),'/activity/': resolve(root, 'pages/activity.html'),+ '/guards': resolve(root, 'pages/guards.html'),+ '/guards/': resolve(root, 'pages/guards.html'),'/pipeline': resolve(root, 'pages/pipeline.html'),'/pipeline/': resolve(root, 'pages/pipeline.html'),'/trending': resolve(root, 'pages/trending.html'),