Skip to content

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.

feat(examples): generate the repo-wide example index from disk

nirholas1cdbedd90292
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 41ff4216d..f765e7ec3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,7 +6,11 @@ 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 · 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 trading hub** (`/docs/trading-hub`) — What /trading shows, where each number comes from, and how to read fleet vitals, the agent scoreboard, and the decision pipeline.
- **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 copy-paste embed code: the minimal 3D viewer, a talking agent, a floating support bubble, a custom chat UI over the JS API, and iframe widgets. Press Run and the exact snippet shown executes on the page against the production CDN bundle.
- **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 · 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.
@@ -41,6 +45,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Skill trials in the agent marketplace can finally turn into real purchases** — The marketplace had recorded thousands of free skill trials and not one completed sale, and the reason was a dead end in the funnel rather than a lack of interest. Agents were handed trial runs that nothing ever spent, so a trial sat at its full count forever, and the buying logic treated any trial at all as though the agent already owned the skill. That combination quietly retired every agent-and-skill pair from the paid path the moment it took a trial. Trials are now actually used up as agents work, and once a trial's runs are gone the agent becomes a real buyer again instead of being locked out. Marketplace volume on the pulse page can now reflect genuine sales. (`/pulse`) `[fix, improvement]`
- **Solana reads keep working when every paid RPC plan runs dry at once** — Everything on the platform that reads the Solana chain (wallet balances, coin prices, launch history, agent payments) goes through a chain of RPC providers, tried in order. All four of our paid providers hit their limits on the same day, so every read started by failing over to a free node before it could succeed. The primary now points at a healthy node directly. The health monitor was also counting whichever node we point at as paid capacity, which meant switching to a free node during an outage would have made the monitor report the paid tier as healthy at the exact moment all of it was down. It now judges a lane by the provider it belongs to, so an exhausted paid tier is always visible on the status page. `[infra, fix]`
- **The cosmetics economy has a public ledger: who owns the rarest fits, and who is getting paid** — Every cosmetic sale on three.ws settles in real USDC, and until now none of it was visible. The Fits page ranks the scarcest premium pieces by how few wallets own them, lists the top collectors wearing them, names the creators actually earning from their designs, and streams each sale as it lands. There is also a free earnings lookup: paste any Solana wallet and see what it has made as a creator, broken down per cosmetic and per coin world. No account needed to read any of it. (`/fits`) `[feature]`
+- **The docs tell you when something is missing instead of showing an empty column** — The documentation sidebar is now built from a shared list of pages that both the classic docs and the new 3D Docs World read, which means it arrives over the network and can occasionally fail. When it does, the contents column used to just sit there empty, which reads like the product has no documentation rather than like one request failed. It now says what happened, notes that the page you are reading is unaffected (it is), and offers a Retry button. Searching the sidebar for something with no matches also says so and offers to clear the search, instead of leaving you looking at a blank space. And opening a stale or mistyped /docs/world link no longer greets you with a load error over the 3D scene; it simply drops you into the world. (`/docs/world`) `[improvement, docs]`
- **The economy's self-refuel can no longer mistake an unreadable balance for an empty wallet** — When the autonomous economy runs short of SOL it converts a small, capped slice of its own USDC revenue to keep paying agents. That check treated a failed balance lookup exactly like a zero balance, so whenever a Solana data provider was rate-limited the platform concluded its revenue was spent and stopped refuelling, with the funds it needed sitting in its own wallet. The balance read now has a second, cheaper path, and a lookup that genuinely fails is reported as unknown rather than empty, so recovery no longer waits on a human. `[fix, infra]`
- **The GitHub README now shows the real product** — The project README on GitHub was rebuilt around live proof: fresh screenshots captured from the production site (Forge, the viewer, discovery, the Club, Coin Communities, the x402 bazaar, the Money Pulse, and more), every tutorial linked to its live page, npm links for all 22 published packages, block-explorer links for the on-chain registries, and stale links to retired pages cleaned up. `[docs]`
- **The pages that shipped without docs now have them** — Thirteen surfaces that launched with no guide are now fully documented: the Agent-Forged Gallery, Generation Watch, the KOL Tracker, the Character and Object Libraries, the Minted gallery, the Reasoning Ledger, the 3D history timeline, Daily Match, Agent Symphony, the notifications center, the creator portfolio, and the Token Screener. Each guide explains what the page shows, where every number comes from, and the public API behind it, and all of them are linked from the Start Here page. (`/docs/start-here`) `[docs]`
diff --git a/data/changelog.json b/data/changelog.json
index ffa59792c..95a9532d7 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": "The docs tell you when something is missing instead of showing an empty column",
+ "summary": "The documentation sidebar is now built from a shared list of pages that both the classic docs and the new 3D Docs World read, which means it arrives over the network and can occasionally fail. When it does, the contents column used to just sit there empty, which reads like the product has no documentation rather than like one request failed. It now says what happened, notes that the page you are reading is unaffected (it is), and offers a Retry button. Searching the sidebar for something with no matches also says so and offers to clear the search, instead of leaving you looking at a blank space. And opening a stale or mistyped /docs/world link no longer greets you with a load error over the 3D scene; it simply drops you into the world.",
+ "tags": [
+ "improvement",
+ "docs"
+ ],
+ "link": "/docs/world"
+ },
{
"date": "2026-07-30",
"title": "Documented the quality bar for models the platform adds to its own catalog",
diff --git a/data/examples.json b/data/examples.json
index 9eb3ed309..50c51e361 100644
--- a/data/examples.json
+++ b/data/examples.json
@@ -96,12 +96,12 @@
"kind": "project",
"group": "Example projects",
"title": "paid-mcp-server",
- "description": "A complete MCP server whose tools charge per call in USDC on Solana via x402: one free orientation tool and one paid glTF/GLB inspection tool.",
+ "description": "A complete, runnable MCP server whose tools charge per call in USDC on Solana over x402. It ships two tools on purpose:",
"path": "examples/paid-mcp-server",
"files": [],
"run": "cd examples/paid-mcp-server && npm install && npm run start",
"runKind": "command",
- "readme": null
+ "readme": "examples/paid-mcp-server/README.md"
},
{
"id": "project:pump-fun-agent",
@@ -282,7 +282,7 @@
"kind": "package",
"group": "Package examples",
"title": "@three-ws/sign-language",
- "description": "American Sign Language for 3D avatars. Compile text into one continuous signed animation clip: known words sign from a lexicon of anatomically described signs, everything else fingerspells, with contact solving and non-manual facial markers.",
+ "description": "American Sign Language for 3D avatars.",
"path": "packages/sign-language/example",
"files": [
"compile-utterance.mjs",
diff --git a/docs/docs-world.md b/docs/docs-world.md
index 901ff563d..6aaed9ab8 100644
--- a/docs/docs-world.md
+++ b/docs/docs-world.md
@@ -47,3 +47,34 @@ Any humanoid rig works; bone names are mapped automatically, exactly as describe
## For contributors
The section list lives in [`docs/nav.json`](https://github.com/nirholas/three.ws/blob/main/docs/nav.json). Add a page there and it appears in both the classic sidebar and the world's pavilions; no world-side change is ever needed. The world itself lives in `src/docs-world/` (scene, player, controls, overlays) with the page shell at `pages/docs-world.html`.
+
+### The manifest format
+
+One object with a `sections` array. Each section becomes a sidebar group in the classic docs and one pavilion in the world, in this order:
+
+```json
+{
+ "sections": [
+ {
+ "title": "Start here",
+ "links": [
+ { "label": "What is three.ws?", "path": "start-here" },
+ { "label": "Widget reference", "href": "/docs/widgets", "external": true }
+ ]
+ }
+ ]
+}
+```
+
+Every link carries a `label` plus exactly one of:
+
+- **`path`**: a docs page, relative to `docs/` and without the `.md` extension. `"forge"` resolves to `docs/forge.md` and reads at `/docs/forge`. Nested paths work (`"agent-abilities/chapters/01-the-body"`).
+- **`href`**: any other destination. Set `"external": true` so both surfaces render it as a link out rather than an in-world page.
+
+Three rules the test suite enforces in [`tests/docs-world.test.js`](https://github.com/nirholas/three.ws/blob/main/tests/docs-world.test.js), so a bad entry fails CI rather than shipping a dead link:
+
+1. Every `path` must resolve to a markdown file that actually exists.
+2. A link is a `path` **or** an `href`, never both and never neither.
+3. No `path` may point into `docs/internal/`, `docs/ops/`, or `docs/security/`. Those directories are written for operators and are deliberately excluded from the published site, so a nav entry into one would 404 in production.
+
+Adding a section is the same edit: append to `sections` and a new pavilion appears on the ring, coloured and positioned automatically. Nothing in `src/docs-world/` hardcodes a section name or count.
diff --git a/docs/examples.md b/docs/examples.md
index 56c12d78f..fd8544983 100644
--- a/docs/examples.md
+++ b/docs/examples.md
@@ -2,6 +2,8 @@
Copy-paste ready code for common three.ws use cases. Each example runs as-is — swap your own model URL and go.
+> **Want to run these without cloning anything?** [three.ws/examples](https://three.ws/examples) renders the same core snippets with a **Run** button on each one: the code executes in a sandboxed frame on the page, against the production CDN bundle. This document is the deeper written companion, and it also indexes every runnable file in [`examples/`](../examples/).
+
---
## 1. Minimal embed
@@ -724,3 +726,69 @@ genuinely invested in the user's progress.
| `skill:loaded` | A skill finishes installing |
| `memory:write` | Agent writes to memory |
| `voice:transcript` | Speech-to-text result |
+
+---
+
+<!-- BEGIN GENERATED EXAMPLES INDEX (npm run build:examples) -->
+
+<!-- Generated by scripts/build-examples-index.mjs. Do not edit inside these markers. -->
+
+## Every runnable example in the repo
+
+The repo ships 37 examples: 10 web component demos, 9 end-to-end projects, and 18 package example sets. This table is generated from what is on disk, so it cannot list one that was deleted or miss one that was added. The machine-readable version is [data/examples.json](../data/examples.json).
+
+### Example projects
+
+| Example | What it shows | Run it |
+|---|---|---|
+| [`examples/agenc-task-roundtrip`](../examples/agenc-task-roundtrip) | End-to-end demonstration of a three.ws agent participating in the AgenC coordination protocol on Solana devnet. A creator wallet posts a task; a worker wallet (the "three.ws agent") claims and completes it. | `node examples/agenc-task-roundtrip/run.mjs` |
+| [`examples/agent-native-3d`](../examples/agent-native-3d) | An agent given a goal ("get yourself a body") generates the 3D assets it needs and uses them - no browser, no mocks, no human in the loop. | `node examples/agent-native-3d/run.mjs` |
+| [`examples/coach-leo`](../examples/coach-leo) | A complete, minimal example of a three.ws agent defined entirely as files: a manifest pointing at a 3D body, a brain, a voice, a memory policy, and one installed skill. | Reference files, nothing to execute |
+| [`examples/skills`](../examples/skills) | Six installable skill bundles for the three.ws agent runtime. | Reference files, nothing to execute |
+| [`examples/metamask-agent-wallet`](../examples/metamask-agent-wallet) | A single-page demo that gives a three.ws agent a real server-side wallet through the MetaMask Agentic CLI (mm). | `node examples/metamask-agent-wallet/server.mjs` |
+| [`examples/monicas-apartment`](../examples/monicas-apartment) | A single, self-contained HTML file that rebuilds the iconic Monica Geller apartment set from Friends as a walkable first-person 3D scene: purple walls, the purple front door with the yellow peephole frame, teal kitchen cabinets, the mismatched dining chairs, | `npm run dev, then open /examples/monicas-apartment/index.html` |
+| [`examples/paid-mcp-server`](../examples/paid-mcp-server) | A complete, runnable MCP server whose tools charge per call in USDC on Solana over x402. It ships two tools on purpose: | `cd examples/paid-mcp-server && npm install && npm run start` |
+| [`examples/pump-fun-agent`](../examples/pump-fun-agent) | An example agent manifest that composes all four production pump.fun skills into one 3D trading agent: swap, coin creation, creator-fee collection, and token payments. | Reference files, nothing to execute |
+| [`examples/three-concierge`](../examples/three-concierge) | The reference agent for manifest spec agent-manifest/0.2. Trinity welcomes users to three.ws, explains the platform, and launches and trades $three on pump.fun through the real pump.fun skills in pump-fun-skills/. | Reference files, nothing to execute |
+
+### Package examples
+
+| Example | What it shows | Run it |
+|---|---|---|
+| [`assistant-sdk/examples`](../assistant-sdk/examples) | A 3D avatar assistant for any website, in one script tag. A floating launcher opens a real, animated 3D avatar in a panel, standing directly on your page (transparent), or against a color or gradient. It has two modes: | `npm run dev, then open /assistant-sdk/examples/index.html` |
+| [`avatar-sdk/examples`](../avatar-sdk/examples) | A self-contained page, no build step. It loads the SDK's @three-ws/avatar/agent entry from a CDN, awaits ensureAgent3D() to register the <agent-3d> element, and renders the real three.ws default avatar using the documented src and kiosk attributes. | `npm run dev, then open /avatar-sdk/examples/index.html` |
+| [`packages/avatar-schema/examples`](../packages/avatar-schema/examples) | JSON Schema and validator for three.ws on-chain avatar manifests - the canonical, hash-anchored format any cross-chain client can use to resolve an avatar. | Reference files, nothing to execute |
+| [`concierge-sdk/examples`](../concierge-sdk/examples) | Runnable examples for every way to use the concierge. The HTML files load the SDK from ../dist, build it first (npm run build in the package root), then serve this folder (npx serve .) and open each file. | `npm run dev, then open /concierge-sdk/examples/custom-avatar.html` |
+| [`packages/marketplace-mcp/examples`](../packages/marketplace-mcp/examples) | Two runnable examples. Both spawn this package's own MCP server over stdio (the same node src/index.js entry point the README documents), speak real MCP JSON-RPC to it, and read the live public marketplace. | `node packages/marketplace-mcp/examples/browse-marketplace.mjs` |
+| [`mcp-server/examples`](../mcp-server/examples) | Two zero-dependency walkthroughs of the MCP Streamable HTTP lifecycle against the live three.ws server at https://three.ws/api/mcp (MCP 2025-06-18, JSON-RPC 2.0). | `node mcp-server/examples/client.mjs` |
+| [`page-agent-sdk/examples`](../page-agent-sdk/examples) | Run these from the package root with any static server so the import map can resolve the unbundled source from ../src: | `npm run dev, then open /page-agent-sdk/examples/custom-avatar.html` |
+| [`packages/pumpfun-mcp/examples`](../packages/pumpfun-mcp/examples) | Two runnable examples. Both spawn this package's own MCP server over stdio (the same node src/index.js entry point the README documents), speak real MCP JSON-RPC to it, and read live Solana mainnet data through the canonical three.ws backend. | `node packages/pumpfun-mcp/examples/list-tools.mjs` |
+| [`sdk/example`](../sdk/example) | Ship a cross-chain 3D AI agent with EVM + Solana identity, a chat panel, and discoverable .well-known endpoints. | `npm run dev, then open /sdk/example/index.html` |
+| [`packages/sign-language/example`](../packages/sign-language/example) | American Sign Language for 3D avatars. | `node packages/sign-language/example/compile-utterance.mjs` |
+| [`tour-sdk/examples`](../tour-sdk/examples) | The guide walks from feature to feature across your real pages. | `npm run dev, then open /tour-sdk/examples/shopify-storefront.html` |
+| [`packages/vanity-mcp/examples`](../packages/vanity-mcp/examples) | Two runnable examples. Both spawn this package's own MCP server over stdio (the same node src/index.js entry point the README documents), speak real MCP JSON-RPC to it, and read the live grind-bounty market. | `node packages/vanity-mcp/examples/list-tools.mjs` |
+| [`packages/x402-fetch/examples`](../packages/x402-fetch/examples) | Two runnable scripts against the live three.ws x402 Market Data API. Node 20+ is the only requirement; the package has zero production dependencies. | `node packages/x402-fetch/examples/discover.mjs` |
+| [`packages/x402-mcp/examples`](../packages/x402-mcp/examples) | Two runnable examples. Both spawn this package's own MCP server over stdio (the same node src/index.js entry point the README documents), speak real MCP JSON-RPC to it, and hit live data. Neither one pays for anything. | `node packages/x402-mcp/examples/inspect-price.mjs` |
+| [`x402-modal-sdk/examples`](../x402-modal-sdk/examples) | A drop-in payment modal for any x402 paid endpoint. | `node x402-modal-sdk/examples/server.mjs` |
+| [`packages/x402-server/examples`](../packages/x402-server/examples) | Runnable examples for the seller half of x402. Each is a standalone .mjs file. | `node packages/x402-server/examples/express-metered-api.mjs` |
+| [`examples`](../examples) | Runnable demos for the three.ws SDKs and agent runtime. Two kinds live here: | `npm run dev, then open /examples/agent-presence.html` |
+| [`agent-payments-sdk/src/solana/examples`](../agent-payments-sdk/src/solana/examples) | See the directory for details. | Reference files, nothing to execute |
+
+### Web component demos
+
+| Example | What it shows | Run it |
+|---|---|---|
+| [`examples/agent-wallet-embed.html`](../examples/agent-wallet-embed.html) | Finding a public agent to show… | `http://localhost:3000/examples/agent-wallet-embed.html` |
+| [`examples/agent-presence.html`](../examples/agent-presence.html) | Standalone test for the global presence element - all three modes + live market reactions, on real data. | `http://localhost:3000/examples/agent-presence.html` |
+| [`examples/two-agents.html`](../examples/two-agents.html) | Both agents render in a single WebGL context. Each keeps its own brain, memory, and chat chrome. | `http://localhost:3000/examples/two-agents.html` |
+| [`examples/web-component.html`](../examples/web-component.html) | Minimal, auto-rotate, and poster/reveal variants of the Custom Element wrapper. | `http://localhost:3000/examples/web-component.html` |
+| [`examples/bare-avatar.html`](../examples/bare-avatar.html) | JUST the avatar - the default. No chat, no input, no debug GUI, no name-plate, transparent background. Add the `chat` attribute to opt into the conversational UI. | `http://localhost:3000/examples/bare-avatar.html` |
+| [`examples/minimal.html`](../examples/minimal.html) | This is a plain HTML page. The floating agent in the corner was added with a single <agent-3d> tag - no build step, no framework. | `http://localhost:3000/examples/minimal.html` |
+| [`examples/one-line-demo.html`](../examples/one-line-demo.html) | Everything below the heading is a single <agent-3d> tag. | `http://localhost:3000/examples/one-line-demo.html` |
+| [`examples/embed-test.html`](../examples/embed-test.html) | Testing the <agent-3d> web component embed. | `http://localhost:3000/examples/embed-test.html` |
+| [`examples/widget-rpc.html`](../examples/widget-rpc.html) | This page loads /widget in the iframe and drives it through the ThreeWidget SDK. Open the source - it's ~70 lines, no build step. | `http://localhost:3000/examples/widget-rpc.html` |
+| [`examples/three-concierge.html`](../examples/three-concierge.html) | Trinity, the three.ws concierge, mounted live from a JSON manifest: a glTF body, browser voice, skills, and scene tools - wired end to end. | `http://localhost:3000/examples/three-concierge.html` |
+
+Run any command from the repo root after `npm install`. The web component demos need `npm run dev` first, since they import from `src/` so edits hot-reload into them. Anything that can spend money is gated behind an environment variable and off by default.
+
+<!-- END GENERATED EXAMPLES INDEX -->
diff --git a/public/changelog.json b/public/changelog.json
index e1bdd4d34..6f1e2645b 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,11 +1,41 @@
{
- "generated_at": "2026-07-30T22:36:11.137Z",
+ "generated_at": "2026-07-30T22:39:05.756Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
"url": "https://three.ws"
},
"entries": [
+ {
+ "date": "2026-07-30",
+ "type": "launch",
+ "title": "Autonomous Trading",
+ "summary": "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.",
+ "link": "/trading",
+ "tags": [
+ "launch"
+ ]
+ },
+ {
+ "date": "2026-07-30",
+ "type": "launch",
+ "title": "Docs · The 10 SOL trading experiment",
+ "summary": "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.",
+ "link": "/docs/trading-experiment",
+ "tags": [
+ "launch"
+ ]
+ },
+ {
+ "date": "2026-07-30",
+ "type": "launch",
+ "title": "Docs · The trading hub",
+ "summary": "What /trading shows, where each number comes from, and how to read fleet vitals, the agent scoreboard, and the decision pipeline.",
+ "link": "/docs/trading-hub",
+ "tags": [
+ "launch"
+ ]
+ },
{
"date": "2026-07-30",
"type": "launch",
@@ -16,6 +46,16 @@
"launch"
]
},
+ {
+ "date": "2026-07-30",
+ "type": "launch",
+ "title": "Examples",
+ "summary": "Runnable copy-paste embed code: the minimal 3D viewer, a talking agent, a floating support bubble, a custom chat UI over the JS API, and iframe widgets. Press Run and the exact snippet shown executes on the page against the production CDN bundle.",
+ "link": "/examples",
+ "tags": [
+ "launch"
+ ]
+ },
{
"date": "2026-07-30",
"type": "launch",
@@ -370,6 +410,17 @@
"feature"
]
},
+ {
+ "date": "2026-07-30",
+ "type": "update",
+ "title": "The docs tell you when something is missing instead of showing an empty column",
+ "summary": "The documentation sidebar is now built from a shared list of pages that both the classic docs and the new 3D Docs World read, which means it arrives over the network and can occasionally fail. When it does, the contents column used to just sit there empty, which reads like the product has no documentation rather than like one request failed. It now says what happened, notes that the page you are reading is unaffected (it is), and offers a Retry button. Searching the sidebar for something with no matches also says so and offers to clear the search, instead of leaving you looking at a blank space. And opening a stale or mistyped /docs/world link no longer greets you with a load error over the 3D scene; it simply drops you into the world.",
+ "link": "/docs/world",
+ "tags": [
+ "improvement",
+ "docs"
+ ]
+ },
{
"date": "2026-07-30",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 15a2c6719..334edbb7c 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -6,6 +6,30 @@
<atom:link href="https://three.ws/changelog.xml" rel="self" type="application/rss+xml"/>
<description>What's new on three.ws — features, improvements, and releases, newest first.</description>
<language>en</language>
+ <item>
+ <title>Autonomous Trading</title>
+ <link>https://three.ws/trading</link>
+ <guid isPermaLink="false">2026-07-30:Autonomous Trading</guid>
+ <pubDate>Thu, 30 Jul 2026 12:00:00 GMT</pubDate>
+ <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 · The 10 SOL trading experiment</title>
+ <link>https://three.ws/docs/trading-experiment</link>
+ <guid isPermaLink="false">2026-07-30:Docs · The 10 SOL trading experiment</guid>
+ <pubDate>Thu, 30 Jul 2026 12:00:00 GMT</pubDate>
+ <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 trading hub</title>
+ <link>https://three.ws/docs/trading-hub</link>
+ <guid isPermaLink="false">2026-07-30:Docs · The trading hub</guid>
+ <pubDate>Thu, 30 Jul 2026 12:00:00 GMT</pubDate>
+ <category>launch</category>
+ <description>What /trading shows, where each number comes from, and how to read fleet vitals, the agent scoreboard, and the decision pipeline.</description>
+ </item>
<item>
<title>Docs World (immersive 3D docs)</title>
<link>https://three.ws/docs/world</link>
@@ -14,6 +38,14 @@
<category>launch</category>
<description>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.</description>
</item>
+ <item>
+ <title>Examples</title>
+ <link>https://three.ws/examples</link>
+ <guid isPermaLink="false">2026-07-30:Examples</guid>
+ <pubDate>Thu, 30 Jul 2026 12:00:00 GMT</pubDate>
+ <category>launch</category>
+ <description>Runnable copy-paste embed code: the minimal 3D viewer, a talking agent, a floating support bubble, a custom chat UI over the JS API, and iframe widgets. Press Run and the exact snippet shown executes on the page against the production CDN bundle.</description>
+ </item>
<item>
<title>three.ws on NVIDIA</title>
<link>https://three.ws/nvidia</link>
@@ -286,6 +318,14 @@
<category>feature</category>
<description>Every cosmetic sale on three.ws settles in real USDC, and until now none of it was visible. The Fits page ranks the scarcest premium pieces by how few wallets own them, lists the top collectors wearing them, names the creators actually earning from their designs, and streams each sale as it lands. There is also a free earnings lookup: paste any Solana wallet and see what it has made as a creator, broken down per cosmetic and per coin world. No account needed to read any of it.</description>
</item>
+ <item>
+ <title>The docs tell you when something is missing instead of showing an empty column</title>
+ <link>https://three.ws/docs/world</link>
+ <guid isPermaLink="false">2026-07-30:The docs tell you when something is missing instead of showing an empty column</guid>
+ <pubDate>Thu, 30 Jul 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>The documentation sidebar is now built from a shared list of pages that both the classic docs and the new 3D Docs World read, which means it arrives over the network and can occasionally fail. When it does, the contents column used to just sit there empty, which reads like the product has no documentation rather than like one request failed. It now says what happened, notes that the page you are reading is unaffected (it is), and offers a Retry button. Searching the sidebar for something with no matches also says so and offers to clear the search, instead of leaving you looking at a blank space. And opening a stale or mistyped /docs/world link no longer greets you with a load error over the 3D scene; it simply drops you into the world.</description>
+ </item>
<item>
<title>The economy's self-refuel can no longer mistake an unreadable balance for an empty wallet</title>
<link>https://three.ws/changelog</link>
diff --git a/public/features.json b/public/features.json
index 53d410f6c..e0b7a9ee3 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-30T22:36:11.128Z",
+ "generated_at": "2026-07-30T22:39:05.737Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
@@ -1356,6 +1356,16 @@
"tags": [],
"showcase": false
},
+ {
+ "path": "/admin/economy",
+ "title": "Economy Health (admin)",
+ "description": "Operator dashboard for the autonomous economy: a one-line verdict on why the Money Pulse is loud or quiet, the funding chain from the economy master through each engine to the agent pool with live balances against their floors, per-lane 24h settle rates that separate 'never ran' (a funding fault) from 'all failing' (not), and the capped USDC-to-SOL refuel lane with its recent swaps. Read-only: every source is a live read and the treasury sweep is called in plan-only mode, so opening the page can never move funds. Admin-authed, noindex.",
+ "added": null,
+ "auth": "admin",
+ "indexable": false,
+ "tags": [],
+ "showcase": false
+ },
{
"path": "/admin/ring",
"title": "Ring Dashboard (admin)",
@@ -2405,6 +2415,16 @@
"indexable": true,
"tags": [],
"showcase": false
+ },
+ {
+ "path": "/trading",
+ "title": "Autonomous Trading",
+ "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.",
+ "added": "2026-07-30",
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
}
]
},
@@ -3527,6 +3547,16 @@
"tags": [],
"showcase": false
},
+ {
+ "path": "/examples",
+ "title": "Examples",
+ "description": "Runnable copy-paste embed code: the minimal 3D viewer, a talking agent, a floating support bubble, a custom chat UI over the JS API, and iframe widgets. Press Run and the exact snippet shown executes on the page against the production CDN bundle.",
+ "added": "2026-07-30",
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
{
"path": "/tutorials/text-to-3d",
"title": "Tutorial · Text Prompt to 3D Model",
@@ -5146,6 +5176,26 @@
"indexable": true,
"tags": [],
"showcase": false
+ },
+ {
+ "path": "/docs/trading-experiment",
+ "title": "Docs · The 10 SOL trading experiment",
+ "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.",
+ "added": "2026-07-30",
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
+ {
+ "path": "/docs/trading-hub",
+ "title": "Docs · The trading hub",
+ "description": "What /trading shows, where each number comes from, and how to read fleet vitals, the agent scoreboard, and the decision pipeline.",
+ "added": "2026-07-30",
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
}
]
},
diff --git a/scripts/build-examples-index.mjs b/scripts/build-examples-index.mjs
index 24f8fd1ab..7e274e843 100644
--- a/scripts/build-examples-index.mjs
+++ b/scripts/build-examples-index.mjs
@@ -276,7 +276,85 @@ const payload = {
};
writeFileSync(OUT, `${JSON.stringify(payload, null, '\t')}\n`);
+
+// Mirror the same index into docs/examples.md between markers, so the doc's
+// inventory is regenerated rather than hand-kept. Everything outside the
+// markers is hand-written and left untouched.
+const DOC = join(root, 'docs/examples.md');
+const START = '<!-- BEGIN GENERATED EXAMPLES INDEX (npm run build:examples) -->';
+const END = '<!-- END GENERATED EXAMPLES INDEX -->';
+
+function mdEscape(text) {
+ return (text || '').replace(/\|/g, '\\|');
+}
+
+const byGroup = new Map();
+for (const entry of entries) {
+ if (!byGroup.has(entry.group)) byGroup.set(entry.group, []);
+ byGroup.get(entry.group).push(entry);
+}
+
+const lines = [
+ START,
+ '',
+ '<!-- Generated by scripts/build-examples-index.mjs. Do not edit inside these markers. -->',
+ '',
+ '## Every runnable example in the repo',
+ '',
+ `The repo ships ${payload.counts.total} examples: ${payload.counts.html_demos} web component demos, ` +
+ `${payload.counts.projects} end-to-end projects, and ${payload.counts.packages} package example sets. ` +
+ 'This table is generated from what is on disk, so it cannot list one that was deleted or miss one that was added. ' +
+ 'The machine-readable version is [data/examples.json](../data/examples.json).',
+ '',
+];
+
+for (const [group, items] of byGroup) {
+ lines.push(`### ${group}`, '');
+ lines.push('| Example | What it shows | Run it |', '|---|---|---|');
+ for (const item of items) {
+ const link = `[\`${item.path}\`](../${item.path})`;
+ const what = mdEscape(item.description) || 'See the directory for details.';
+ const run = item.run ? `\`${mdEscape(item.run)}\`` : 'Reference files, nothing to execute';
+ lines.push(`| ${link} | ${what} | ${run} |`);
+ }
+ lines.push('');
+}
+
+lines.push(
+ 'Run any command from the repo root after `npm install`. The web component demos need `npm run dev` first, since they import from `src/` so edits hot-reload into them. Anything that can spend money is gated behind an environment variable and off by default.',
+ '',
+ END,
+);
+
+const block = lines.join('\n');
+const doc = readFileSync(DOC, 'utf8');
+const startAt = doc.indexOf(START);
+const endAt = doc.indexOf(END);
+
+let next;
+if (startAt !== -1 && endAt !== -1 && endAt > startAt) {
+ next = `${doc.slice(0, startAt)}${block}${doc.slice(endAt + END.length)}`;
+} else if (startAt === -1 && endAt === -1) {
+ next = `${doc.trimEnd()}\n\n---\n\n${block}\n`;
+} else {
+ throw new Error(
+ `docs/examples.md has a malformed generated block (START at ${startAt}, END at ${endAt}). ` +
+ 'Fix or remove the markers by hand; refusing to rewrite the file.',
+ );
+}
+
+// A generator that can shrink a hand-written doc is a generator that will
+// eventually eat one. The prose outside the markers must survive every run.
+const handWritten = (text) => text.split(START)[0].trim().length;
+if (handWritten(next) < handWritten(doc)) {
+ throw new Error(
+ 'Refusing to write docs/examples.md: the hand-written section above the generated block ' +
+ `would shrink from ${handWritten(doc)} to ${handWritten(next)} characters.`,
+ );
+}
+writeFileSync(DOC, next.endsWith('\n') ? next : `${next}\n`);
+
console.log(
- `wrote data/examples.json: ${payload.counts.total} examples ` +
+ `wrote data/examples.json + docs/examples.md index: ${payload.counts.total} examples ` +
`(${payload.counts.html_demos} demos, ${payload.counts.projects} projects, ${payload.counts.packages} packages)`,
);
diff --git a/tests/examples-index.test.js b/tests/examples-index.test.js
new file mode 100644
index 000000000..a4a4c616c
--- /dev/null
+++ b/tests/examples-index.test.js
@@ -0,0 +1,75 @@
+// The examples index generator writes into docs/examples.md, a hand-written
+// doc. An early version of it replaced the whole file instead of the block
+// between its markers, destroying 722 lines of prose. These tests pin the
+// behaviour that prevents that: the generated block is replaced in place, the
+// hand-written prose above it survives, and a malformed marker pair refuses to
+// write at all rather than guessing.
+
+import { describe, it, expect, beforeEach, afterEach } from 'vitest';
+import { execFileSync } from 'node:child_process';
+import { readFileSync, writeFileSync, existsSync } from 'node:fs';
+import { join } from 'node:path';
+
+const root = process.cwd();
+const SCRIPT = join(root, 'scripts/build-examples-index.mjs');
+const DOC = join(root, 'docs/examples.md');
+const JSON_OUT = join(root, 'data/examples.json');
+const START = '<!-- BEGIN GENERATED EXAMPLES INDEX (npm run build:examples) -->';
+const END = '<!-- END GENERATED EXAMPLES INDEX -->';
+
+function run() {
+ return execFileSync('node', [SCRIPT], { cwd: root, encoding: 'utf8' });
+}
+
+function handWrittenPart(text) {
+ return text.split(START)[0];
+}
+
+describe('examples index generator', () => {
+ let original;
+
+ beforeEach(() => {
+ original = readFileSync(DOC, 'utf8');
+ });
+
+ afterEach(() => {
+ writeFileSync(DOC, original);
+ });
+
+ it('emits a machine-readable index whose entries all exist on disk', () => {
+ run();
+ const payload = JSON.parse(readFileSync(JSON_OUT, 'utf8'));
+ expect(payload.examples.length).toBeGreaterThan(0);
+ expect(payload.counts.total).toBe(payload.examples.length);
+ for (const entry of payload.examples) {
+ expect(existsSync(join(root, entry.path)), `${entry.path} should exist`).toBe(true);
+ expect(entry.title).toBeTruthy();
+ expect(entry.kind).toMatch(/^(html-demo|project|package)$/);
+ }
+ });
+
+ it('is idempotent: running it repeatedly does not grow or shrink the doc', () => {
+ run();
+ const afterFirst = readFileSync(DOC, 'utf8');
+ run();
+ run();
+ expect(readFileSync(DOC, 'utf8')).toBe(afterFirst);
+ });
+
+ it('preserves the hand-written prose above the generated block', () => {
+ const before = handWrittenPart(readFileSync(DOC, 'utf8'));
+ run();
+ run();
+ const after = handWrittenPart(readFileSync(DOC, 'utf8'));
+ expect(after.length).toBeGreaterThanOrEqual(before.length);
+ expect(after).toContain('# Examples Gallery');
+ });
+
+ it('refuses to write when the markers are malformed instead of rewriting the file', () => {
+ // An END with no START is the shape that would make a naive indexOf pair
+ // slice away real content.
+ writeFileSync(DOC, `# Examples Gallery\n\nHand written prose.\n\n${END}\n`);
+ expect(() => run()).toThrow();
+ expect(readFileSync(DOC, 'utf8')).toContain('Hand written prose.');
+ });
+});