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.

docs(x402): prompt 14 close-out — live proof captured, barrel convention recorded

fudjiae1c56a851d1d
diff --git a/STRUCTURE.md b/STRUCTURE.md
index 1243977e0..6c7ac96c9 100644
--- a/STRUCTURE.md
+++ b/STRUCTURE.md
@@ -26,8 +26,8 @@ bottom.
| Labs (hidden-gems hub) | [pages/labs.html](pages/labs.html) + [src/labs.js](src/labs.js) `→ /labs` | In-repo | Data-driven discovery hub: renders every `data/pages.json` entry flagged `showcase: true` as a live card (status check + iframe preview), filterable by category |
| OKX.AI marketplace services | [api/okx/3d/[service].js](api/okx/3d/%5Bservice%5D.js) `→ /api/okx/3d/*` | Live | 3D services sold to other agents on OKX.AI (agent #2632): Agent Identity Studio flagship + decomposed studio services. Catalog source of truth: [api/_lib/okx-catalog.js](api/_lib/okx-catalog.js); pipeline: [api/_okx3d/](api/_okx3d); showcase: [pages/agent-identities.html](pages/agent-identities.html) `→ /agent-identities`; docs: [docs/okx-marketplace.md](docs/okx-marketplace.md) |
| Crypto Data API docs / landing | [pages/crypto.html](pages/crypto.html) `→ /crypto` | In-repo · docs surface | Screenshot-worthy public docs + funnel-top for the free, keyless Crypto Data API (`/api/crypto/*` — token snapshot, security, holders, launches, bonding, whales, symbol, wallet, trending). Renders hero, endpoint table, tabbed quickstart (curl/JS/Python), per-endpoint request/response reference and a live "Try it" console. Probes production at runtime and marks each endpoint Live vs Coming soon (degrades gracefully while sibling endpoints roll out). CTAs funnel to paid uniques: [/launcher](pages/launcher.html), [/vanity-wallet](public/vanity-wallet.html), [/forge](pages/forge.html). Spec: [prompts/x402-overhaul/](prompts/x402-overhaul) |
-| Free Crypto Data API + discovery | [api/crypto/index.js](api/crypto/index.js) `→ /api/crypto`, [api/crypto/openapi.js](api/crypto/openapi.js) `→ /api/crypto/openapi.json`, docs [docs/crypto-api.md](docs/crypto-api.md) `→ /docs/crypto-api` | Live · docs surface | Front door + OpenAPI 3.1 for the free, keyless Crypto Data API. Catalog assembler [api/_lib/crypto-catalog/index.js](api/_lib/crypto-catalog/index.js) globs `api/_lib/crypto-catalog/*.js` self-describing descriptors (currently `bonding`, `symbol`, `trending`, `wallet`, `whales`), skips malformed/throwing entries, never throws, valid-empty when zero; OpenAPI built from the same catalog via [api/_lib/crypto-catalog/openapi.js](api/_lib/crypto-catalog/openapi.js). Index does HTML/JSON content negotiation. Serverless-safe: `includeFiles: api/_lib/crypto-catalog/**` in [vercel.json](vercel.json) traces every descriptor into the bundle so the runtime `readdir` finds them. Endpoint handlers live in `api/crypto/*.js`. Spec: [prompts/x402-overhaul/](prompts/x402-overhaul) |
-| Free 3D API + docs | [api/3d/index.js](api/3d/index.js) `→ /api/3d`, [api/3d/openapi.js](api/3d/openapi.js) `→ /api/3d/openapi.json`, docs [public/3d.html](public/3d.html) `→ /3d` (alias `/docs/3d-api`) | Live · docs surface | Front door + OpenAPI 3.1 for the free, keyless 3D API. Catalog assembler [api/_lib/3d-catalog/index.js](api/_lib/3d-catalog/index.js) globs `api/_lib/3d-catalog/*.js` descriptors (currently `generate`, `inspect`), skips malformed, never throws; OpenAPI built from the same catalog via [api/_lib/3d-catalog/openapi.js](api/_lib/3d-catalog/openapi.js). Index does HTML/JSON content negotiation and advertises the paid ladder (Forge Pro, Rigged Avatars). Docs page: hero, live endpoint table, runnable quickstart with a live "Run inspect" console, embedded `<model-viewer>` GLB preview, and the free→paid ladder. Free endpoints: [api/3d/generate.js](api/3d/generate.js) (prompt 12), [api/3d/inspect.js](api/3d/inspect.js) (prompt 13). Spec: [prompts/x402-overhaul/](prompts/x402-overhaul) |
+| Free Crypto Data API + discovery | [api/crypto/index.js](api/crypto/index.js) `→ /api/crypto`, [api/crypto/openapi.js](api/crypto/openapi.js) `→ /api/crypto/openapi.json`, docs [docs/crypto-api.md](docs/crypto-api.md) `→ /docs/crypto-api` | Live · docs surface | Front door + OpenAPI 3.1 for the free, keyless Crypto Data API. Catalog assembler [api/_lib/crypto-catalog/index.js](api/_lib/crypto-catalog/index.js) merges `api/_lib/crypto-catalog/*.js` self-describing descriptors (currently `bonding`, `launches`, `symbol`, `token`, `trending`, `wallet`, `whales`) via a static import barrel — the production source of truth, since Vercel's bundler only ships what static imports reach — plus an additive dev-time directory glob; skips malformed/throwing entries, never throws, valid-empty when zero. New descriptor = drop the file AND add its import line to the barrel. OpenAPI built from the same catalog via [api/_lib/crypto-catalog/openapi.js](api/_lib/crypto-catalog/openapi.js). Index does HTML/JSON content negotiation. Endpoint handlers live in `api/crypto/*.js`. Spec: [prompts/x402-overhaul/](prompts/x402-overhaul) |
+| Free 3D API + docs | [api/3d/index.js](api/3d/index.js) `→ /api/3d`, [api/3d/openapi.js](api/3d/openapi.js) `→ /api/3d/openapi.json`, docs [public/3d.html](public/3d.html) `→ /3d` (alias `/docs/3d-api`) | Live · docs surface | Front door + OpenAPI 3.1 for the free, keyless 3D API. Catalog assembler [api/_lib/3d-catalog/index.js](api/_lib/3d-catalog/index.js) merges `api/_lib/3d-catalog/*.js` descriptors (currently `generate`, `inspect`) via a static import barrel (production source of truth) plus an additive dev-time directory glob; new descriptor = drop the file AND add its barrel import line; skips malformed, never throws; OpenAPI built from the same catalog via [api/_lib/3d-catalog/openapi.js](api/_lib/3d-catalog/openapi.js). Index does HTML/JSON content negotiation and advertises the paid ladder (Forge Pro, Rigged Avatars). Docs page: hero, live endpoint table, runnable quickstart with a live "Run inspect" console, embedded `<model-viewer>` GLB preview, and the free→paid ladder. Free endpoints: [api/3d/generate.js](api/3d/generate.js) (prompt 12), [api/3d/inspect.js](api/3d/inspect.js) (prompt 13). Spec: [prompts/x402-overhaul/](prompts/x402-overhaul) |
| Sperax partnership + SperaxOS plugin | [pages/sperax.html](pages/sperax.html) `→ /sperax`, plugin [public/sperax/](public/sperax/README.md), manifest `→ /.well-known/sperax-plugin.json`, tools [api/chat-plugin/[tool].js](api/chat-plugin/%5Btool%5D.js) `→ /api/chat-plugin/*`, panel `→ /sperax/iframe/` | In-repo · Live | Partnership landing for the SperaxOS integration: three.ws ships as a standalone `plugin.delivery` plugin that gives a SperaxOS agent an embodied 3D avatar (speak/gesture/emote/render_agent), bound to an ERC-8004 identity, settling over Base x402. Launch offer: free AI credits for three.ws users on [chat.sperax.io](https://chat.sperax.io) — page explains what it is and how to claim. Blog: [/blog/three-ws-speraxusd-integration](blog/three-ws-speraxusd-integration.html) |
| Live Agents wall (mission control) | [pages/agents-live.html](pages/agents-live.html) + [src/agents-live.js](src/agents-live.js) `→ /agents-live` | In-repo · roster [api/agents/public.js](api/agents/public.js) (`sort=live`), per-agent SSE [api/agent-screen-stream.js](api/agent-screen-stream.js) | Real-time grid of every meaningful agent, ranked by most-recent on-chain/skill action (never-used placeholders suppressed). Each card streams a live caster feed when watched, else its real `agent_actions` as a terminal + an "active Nm ago" recency chip. Layers: showrunner spotlight ([src/showrunner.js](src/showrunner.js)), reputation arena ([src/agents-live-arena.js](src/agents-live-arena.js)), platform ticker ([src/theater-feed.js](src/theater-feed.js)) |
| X/Twitter automation toolkit | [nirholas/XActions](https://github.com/nirholas/XActions) (external repo, also on npm as `xactions`) | External | Formerly vendored in-repo; removed 2026-07-03 — install from npm or use the upstream repo |
diff --git a/prompts/x402-overhaul/PROGRESS.md b/prompts/x402-overhaul/PROGRESS.md
index 1258f6943..533d7e51e 100644
--- a/prompts/x402-overhaul/PROGRESS.md
+++ b/prompts/x402-overhaul/PROGRESS.md
@@ -1541,3 +1541,68 @@ build-x402-catalog.mjs` and `npx vitest` could not run in-tree. Worked around by
- There are TWO token-market modules (`api/_lib/token-market.js` and
`api/_lib/market/token-market.js`, different contracts). Worth a rename or a
doc-block cross-reference — easy to grab the wrong one.
+
+---
+
+## 2026-07-07 — Prompt 14 close-out: live proof captured + catalog enumeration hardened to a static barrel
+
+Prompt 14's build (index, OpenAPI, docs page, registrations) had already landed;
+this session closed its one open item — the post-deploy live capture — and in
+doing so hardened the enumeration mechanism both free-API catalogs rely on.
+
+### Live verification (all captured 2026-07-07 ~02:53 UTC, production three.ws)
+
+- **`GET /api/3d`** → 200, `count: 2` — full `generate` (POST, inputSchema/
+ outputSchema/example/poll/paidTiers) + `inspect` (GET,POST) entries, paid
+ ladder (Forge Pro, Rigged Avatar), `openapi`/`docs` links. HTML negotiation
+ verified live: `Accept: text/html` → styled `<!doctype html>` page, JSON
+ otherwise.
+- **`GET /api/3d/openapi.json`** → 200, OpenAPI **3.1.0**, `paths:
+ ['/api/3d/generate' (post), '/api/3d/inspect' (get, post)]`, zero validator
+ problems.
+- **`GET /api/3d/inspect?url=https://three.ws/avatars/cesium-man.glb`** → 200,
+ `valid: true`, real stats (3273 verts / 4672 tris / 19 joints, glb).
+- **Docs page**: `/3d` and `/docs/3d-api` both 200 with the correct title.
+- **`GET /api/crypto`** → 200, `count: 5` (`bonding,symbol,trending,wallet,whales`)
+ at capture time — the deploy queue was still draining; `launches` + `token`
+ (descriptors committed mid-session by sibling agents) ride the next deploy
+ via the barrel below.
+- Registrations audited in-repo: `data/pages.json` `/3d` entry, nav link
+ (`public/nav-data.js` "3D API" → `/3d`), STRUCTURE.md row, changelog entry
+ (`feature`,`docs`, link `/3d`) — all present.
+
+### The hardening: static import barrel (commit `4fdbdb5cf`)
+
+The empty-catalog production bug (root-caused in the entry above, fixed by the
+cwd fallback in `e9ea328ce` — that fix is what the 02:53 capture proves live)
+left enumeration still dependent on `includeFiles` + runtime `readdirSync` +
+dynamic `import()` inside the lambda. Prompt 14's own spec said to prefer a
+barrel/manifest over runtime fs-glob if the glob proved unreliable — it did, so
+now `api/_lib/3d-catalog/index.js` and `api/_lib/crypto-catalog/index.js` each
+carry a `STATIC_ENTRIES` barrel of plain static imports as the production
+source of truth (Vercel's bundler ships those unconditionally). The runtime
+glob remains as an ADDITIVE dev/test pickup, so the drop-a-file convention
+still works locally before a descriptor's import line lands, and fixture dirs
+in tests still assemble pure-glob. The crypto barrel already includes the new
+`launches` + `token` descriptors (7 entries total).
+
+**Convention change for future catalog endpoints:** drop your descriptor file
+AND add its import + `STATIC_ENTRIES` line in that catalog's `index.js`. The
+import line is what makes the entry exist in production. STRUCTURE.md rows for
+both catalogs updated to say so.
+
+- Tests: `npx vitest run tests/3d-catalog.test.js tests/crypto-catalog.test.js`
+ → 2 files, **24/24 passed** (fixture-dir behavior unchanged).
+- Local barrel proof: 3d → `generate,inspect`; crypto →
+ `bonding,launches,symbol,token,trending,wallet,whales`; OpenAPI rebuilt from
+ the barrel validates with zero problems.
+- Pushed to `threews` (`4fdbdb5cf`); `threeD` mirror still rejects pushes
+ ("Repository not found", known since 2026-07-05) — repos remain out of sync.
+
+**Adjacent gaps noticed:**
+- The vercel.json `includeFiles` pins for both catalogs are now redundant
+ (barrel ships everything statically) but harmless — removable by a cleanup
+ prompt once a post-barrel deploy is verified.
+- Prod deploy queue was ~6 deep with 15-min builds during this session;
+ sibling agents pushing rapidly serialize behind each other. Worth knowing
+ before promising "verified live" timestamps.