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.

chore: hard-rule dash fixes, generated-artifact skip list, and in-flight surface work

nirholas51bcfdbd1a48
diff --git a/.gitignore b/.gitignore
index 87ebaf617..8f8205467 100644
--- a/.gitignore
+++ b/.gitignore
@@ -129,6 +129,15 @@ threews-launch-week-case-study.html
.tmp-*
scripts/tmp-*
scripts/scratch-*
+# Dot-prefixed harnesses under scripts/ are the same thing wearing a hidden
+# name, and the hidden name is why they slipped the net: nine of them
+# (.dw-*, .a11y-*, .verify-chat-tmp) had accumulated in the tree by
+# 2026-07-30, none referenced by anything. Each hardcodes an ephemeral dev
+# port and a per-session scratchpad path, so it is dead on arrival for anyone
+# else. No committed script in scripts/ starts with a dot.
+scripts/.*.mjs
+# Any *.tmp.mjs, anywhere (matches the scratch/walk-*.tmp.mjs convention).
+*.tmp.mjs
# Backup files (never commit backups)
*.bak
diff --git a/STRUCTURE.md b/STRUCTURE.md
index 10d323cfd..3622d1916 100644
--- a/STRUCTURE.md
+++ b/STRUCTURE.md
@@ -62,7 +62,7 @@ bottom.
| IRL (agents in the real world) | [pages/irl.html](pages/irl.html) `→ /irl` + [src/irl.js](src/irl.js), WebXR placement [src/ar/webxr.js](src/ar/webxr.js) + pinch [src/ar/pinch-scale.js](src/ar/pinch-scale.js), animated Quick Look bake [src/usdz-animated.js](src/usdz-animated.js) (static fallback [src/usdz-pipeline.js](src/usdz-pipeline.js)), backend [api/irl/](api/irl) | Live | Pin an agent at a real GPS spot; discovery is presence-proof-gated ([docs/irl/THREAT-MODEL.md](docs/irl/THREAT-MODEL.md)). **Place in AR** leads the dock on AR-capable devices: WebXR hit-test anchoring on Android with two-finger pinch resize (25%..400%) persisted to the pin (`anchor_scale`; the pinch lands as a follow-up `PATCH /api/irl/pins {id, scale}` after the placement tap), and ARKit Quick Look on iOS with the idle clip baked into the USDZ so the agent moves instead of standing in a T-pose. Discovered pins are equally alive in the in-page camera view: every mounted humanoid GLB plays the retargeted idle clip via a per-pin mixer ([src/irl/pin-idle.js](src/irl/pin-idle.js), phase-randomized, LOD-bounded), camera-aware gaze composes on top of the running animation, and the scene renders with ACES tone mapping + IBL + soft shadows (e2e: [tests/e2e/irl-pin-idle.spec.js](tests/e2e/irl-pin-idle.spec.js)). Inbound `/irl?avatar=<glb>` is the living-agent handoff from `GET /api/ar?…&kind=avatar` (explicit `?avatar=` wins over a saved session). Money Drops and World Lines: [docs/irl.md](docs/irl.md). SDK: [packages/irl/](packages/irl). **Share** ([src/irl/share-frame.js](src/irl/share-frame.js), [api/irl/share.js](api/irl/share.js), [api/irl/share/[token].js](api/irl/share/%5Btoken%5D.js)) mints a permanent, unfurlable `/irl/s/:token` link from the captured AR photo for the pin you just placed — never a coordinate, owner-gated, falls back to the plain native share sheet with no active pin. **Analytics** ([api/_lib/irl-analytics.js](api/_lib/irl-analytics.js), [api/irl/analytics.js](api/irl/analytics.js)) is the first site-wide usage rollup for the feature — pins placed, nearby reads, placement method, shares, drop claims — rendered at [/admin/irl-analytics](pages/admin/irl-analytics.html), aged out by the existing hourly reaper. |
| Verifiable 3D provenance (content credentials) | Spec [specs/PROVENANCE_3D.md](specs/PROVENANCE_3D.md), pure core [api/_lib/provenance-3d.js](api/_lib/provenance-3d.js), Solana anchor [api/_lib/provenance-anchor.js](api/_lib/provenance-anchor.js), MCP tools [api/_mcp3d/tools/provenance.js](api/_mcp3d/tools/provenance.js) (`verify_provenance` free, `anchor_provenance` paid $0.05), free REST verify [api/provenance.js](api/provenance.js) `→ /api/provenance`, viewer badge [public/viewer.html](public/viewer.html), docs [docs/provenance.md](docs/provenance.md). | Live (verify) · anchor gated on issuer key + devnet funds | C2PA-style signed content credentials for AI 3D: creator, prompt, model/provider, lineage, timestamp, and the GLB's sha256, ed25519-signed by the three.ws issuer with the credential hash anchored on Solana. Free public `verify_provenance` / `GET /api/provenance?src=…` recompute the hash and return `verified | tampered | unknown` (a single changed byte → tampered); the verify path and response are coin-clean (both stores). `anchor_provenance` signs + writes the SPL Memo anchor + stores the credential in R2. Tests: [tests/provenance-3d.test.js](tests/provenance-3d.test.js). Evidence: [prompts/store-submissions/_generated/provenance/](prompts/store-submissions/_generated/provenance/). Store-submission prompt 19. |
| OpenAI Select Partner (partner surface + announcement pack) | [pages/openai/index.html](pages/openai/index.html) `→ /openai`, badge assets [public/partners/openai/](public/partners/openai), announcement [blog/three-ws-openai-select-partner.html](blog/three-ws-openai-select-partner.html) `→ /blog/three-ws-openai-select-partner`, directory card in [pages/partners.html](pages/partners.html) `→ /partners`, press/social pack [marketing/openai-select-partner/](marketing/openai-select-partner/README.md), original OpenAI-supplied badge files + press-release template [OAI Select Tier Assets/](OAI%20Select%20Tier%20Assets/README.md) | Live | three.ws's OpenAI Partner Network Select-tier surface. `/openai` is the partner landing: the supplied badge (used unmodified, on a white plate), the four live OpenAI surfaces (the free keyless [3D Studio MCP connector](docs/mcp-studio.md) `→ /api/mcp-studio`, the custom-GPT Actions twin `→ /api/3d/studio`, [Spatial MCP](specs/SPATIAL_MCP.md), and [AR in ChatGPT](docs/chatgpt-ar.md)), the connect table, and the nine-tool list. The marketing pack holds badge-usage rules and the press-release draft, which is gated on OpenAI's written approval before publishing (see its README). |
-| NVIDIA Inception (membership surface + GPU docs cluster) | Membership doc [docs/nvidia-inception.md](docs/nvidia-inception.md) `→ /docs/nvidia-inception` + overview deck [docs/nvidia-inception/index.html](docs/nvidia-inception/index.html) `→ /docs/nvidia-inception/index.html`, free hosted-model map [docs/nvidia-models.md](docs/nvidia-models.md) `→ /docs/nvidia-models`, forum write-up [docs/nvidia-nemotron-spotlight.md](docs/nvidia-nemotron-spotlight.md) `→ /docs/nvidia-nemotron-spotlight`, engineering post [blog/image-to-3d-on-nvidia-l4-and-blackwell.html](blog/image-to-3d-on-nvidia-l4-and-blackwell.html) `→ /blog/image-to-3d-on-nvidia-l4-and-blackwell`, member badge [public/marks/nvidia-inception-badge.svg](public/marks/nvidia-inception-badge.svg) in [public/footer.html](public/footer.html), directory card in [pages/partners.html](pages/partners.html) `→ /partners` | Live | Everything NVIDIA on the platform, in two layers. **Free hosted lane:** one `NVIDIA_API_KEY` behind TRELLIS text-to-3D, FLUX.1-schnell, the Llama/Nemotron chat lineup, Nemotron vision, nv-embedqa, the reranker, NemoGuard, and Magpie speech (`nvidia-models`). **Self-hosted GPU fleet:** 12 Cloud Run GPU services, 11 on `nvidia-l4` and one on `nvidia-rtx-pro-6000` (Blackwell), covering text/image-to-3D, texture, remesh, rigging, and motion (see each `workers/model-*/README.md`). Membership was accepted July 2026 and is a startup program, not a partnership or an investment; the badge links to NVIDIA's startup program and must not imply endorsement. |
+| NVIDIA Inception (membership surface + GPU docs cluster) | Landing page [pages/nvidia/index.html](pages/nvidia/index.html) `→ /nvidia` (vercel route + vite input + dev middleware, same wiring as `/openai`), membership doc [docs/nvidia-inception.md](docs/nvidia-inception.md) `→ /docs/nvidia-inception` + overview deck [docs/nvidia-inception/index.html](docs/nvidia-inception/index.html) `→ /docs/nvidia-inception/index.html`, free hosted-model map [docs/nvidia-models.md](docs/nvidia-models.md) `→ /docs/nvidia-models`, forum write-up [docs/nvidia-nemotron-spotlight.md](docs/nvidia-nemotron-spotlight.md) `→ /docs/nvidia-nemotron-spotlight`, tutorials [docs/tutorials/nvidia-3d-free.md](docs/tutorials/nvidia-3d-free.md) `→ /tutorials/nvidia-3d-free` and [docs/tutorials/nvidia-nim-self-host.md](docs/tutorials/nvidia-nim-self-host.md) `→ /tutorials/nvidia-nim-self-host`, engineering post [blog/image-to-3d-on-nvidia-l4-and-blackwell.html](blog/image-to-3d-on-nvidia-l4-and-blackwell.html) `→ /blog/image-to-3d-on-nvidia-l4-and-blackwell`, member badge [public/marks/nvidia-inception-badge.svg](public/marks/nvidia-inception-badge.svg) in [public/footer.html](public/footer.html), directory card in [pages/partners.html](pages/partners.html) `→ /partners` | Live | Everything NVIDIA on the platform, in two layers. **Free hosted lane:** one `NVIDIA_API_KEY` behind TRELLIS text-to-3D, FLUX.1-schnell, the Llama/Nemotron chat lineup, Nemotron vision, nv-embedqa, the reranker, NemoGuard, and Magpie speech (`nvidia-models`). **Self-hosted GPU fleet:** 12 Cloud Run GPU services, 11 on `nvidia-l4` and one on `nvidia-rtx-pro-6000` (Blackwell), covering text/image-to-3D, texture, remesh, rigging, and motion (see each `workers/model-*/README.md`). Membership was accepted July 2026 and is a startup program, not a partnership or an investment; the badge links to NVIDIA's startup program and must not imply endorsement. |
| Press kit (brand marks + media assets) | [pages/press/index.html](pages/press/index.html) `→ /press`, marks [public/brand/](public/brand), layout source [marketing/brand/](marketing/brand/README.md), renderer [scripts/render-brand-assets.mjs](scripts/render-brand-assets.mjs) `npm run build:brand-assets` | Live | The self-serve press surface: transparent-PNG marks (cube, horizontal and stacked lockups for dark and light grounds), the OpenAI announcement graphics, boilerplate at three lengths with copy buttons, fast facts, and the mark-usage rules. Everything is rendered from source rather than hand-exported, so a copy change re-renders the whole set; the renderer also builds `/brand/three-ws-press-kit.zip` with a README carrying the usage rules so the files cannot travel without them. Announcement cards come from [marketing/openai-select-partner/cards/social-card.html](marketing/openai-select-partner/cards/social-card.html) via `npm run build:openai-cards`. |
| 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/`, bundled SDK component [chat-plugin/](chat-plugin) (`@three-ws/chat-plugin`, for hosts that mount plugins as React components instead of framing the manifest) | 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)) |
diff --git a/api/_lib/http.js b/api/_lib/http.js
index 9f3794775..5efba94ad 100644
--- a/api/_lib/http.js
+++ b/api/_lib/http.js
@@ -559,8 +559,16 @@ export function wrap(handler) {
ref,
}, { 'cache-control': 'no-store' });
} else {
+ // `err.code` is NOT safe to echo here, for the same reason the
+ // message above is redacted: on a 5xx it carries internal
+ // implementation detail the caller has no business seeing. A
+ // Postgres failure puts the raw SQLSTATE in it (a missing table
+ // answered `42P01`, naming the storage engine and the fault), and
+ // a Node socket failure puts ECONNREFUSED / ENOTFOUND there,
+ // mapping our internal topology. 4xx keeps its code below, where
+ // it is a deliberate, documented part of each endpoint's contract.
json(res, status, {
- error: dbDegraded ? 'service_unavailable' : (err.code || 'internal_error'),
+ error: dbDegraded ? 'service_unavailable' : 'internal_error',
error_description: dbDegraded
? 'database temporarily unavailable — retry shortly'
: `internal error — quote ref ${ref} to support`,
diff --git a/api/_lib/solana/connection.js b/api/_lib/solana/connection.js
index 619858d3b..b9a25d2fb 100644
--- a/api/_lib/solana/connection.js
+++ b/api/_lib/solana/connection.js
@@ -826,7 +826,7 @@ export function makeRotatingFetch(endpoints) {
// INFO, not WARN: the request continues to the next provider and
// still succeeds. This is the redundancy working, not a fault.
console.log(
- `[solana-rpc] ${maskUrl(url)} ${resp.status} — cooling ${formatCooldown(ms)}, failing over`,
+ `[solana-rpc] ${maskUrl(url)} ${resp.status}, cooling ${formatCooldown(ms)}, failing over`,
);
}
return { error: new Error(`solana rpc ${resp.status} @ ${maskUrl(url)}`) };
@@ -838,7 +838,7 @@ export function makeRotatingFetch(endpoints) {
const ms = markEndpointCooldown(url, bad.status, bad.bodyText || '');
if (!alreadyCooling) {
console.log(
- `[solana-rpc] ${maskUrl(url)} ${bad.log} — cooling ${formatCooldown(ms)}, failing over`,
+ `[solana-rpc] ${maskUrl(url)} ${bad.log}, cooling ${formatCooldown(ms)}, failing over`,
);
}
return { error: new Error(`solana rpc ${bad.reason} @ ${maskUrl(url)}`) };
diff --git a/api/avatar/optimize.js b/api/avatar/optimize.js
index 8fe027972..9aec0801b 100644
--- a/api/avatar/optimize.js
+++ b/api/avatar/optimize.js
@@ -27,8 +27,13 @@
// 400 invalid_request missing / malformed params
// 400 untrusted_source src is not on a three.ws-controlled origin
// 404 source_not_found upstream returned non-200
-// 413 too_large source > 50 MB (hard cap to protect runtime)
+// 413 too_large source > 50 MB (hard cap to protect runtime;
+// enforced while streaming, so a chunked response
+// with no content-length is refused mid-download
+// rather than buffered in full)
// 500 transcode_failed pipeline threw
+// 502 upstream_unreachable source fetch/read failed
+// 504 source_timeout source did not respond or stalled mid-download
import { readFile } from 'node:fs/promises';
import path from 'node:path';
@@ -42,6 +47,42 @@ import { dedup, prune, textureCompress, weld } from '@gltf-transform/functions';
import { ARKIT_52, ARKIT_VISEMES, MORPH_ALIASES } from '../../src/runtime/arkit52.js';
const SOURCE_BYTE_CAP = 50 * 1024 * 1024;
+// An unresponsive or endlessly-slow source must not hold a request open forever.
+const SOURCE_FETCH_TIMEOUT_MS = 30_000;
+
+/**
+ * Read an upstream body, refusing to buffer more than `cap` bytes.
+ *
+ * The size guard used to be `Buffer.from(await upstream.arrayBuffer())` followed
+ * by a length check, which only works when the server declares content-length.
+ * A chunked response carries no such header, so an oversized source was fully
+ * downloaded before anyone measured it: the request appeared to stall rather
+ * than returning the 413 the endpoint documents. Counting as chunks arrive stops
+ * at the cap and aborts the transfer instead of paying for the whole body.
+ *
+ * @throws {Error & { code: 'too_large' }} once the cap is exceeded
+ */
+async function readCapped(upstream, cap, abort) {
+ if (!upstream.body) {
+ // No stream available (a mocked or already-buffered response): fall back to
+ // buffering, then apply the same cap so the limit still holds.
+ const buf = Buffer.from(await upstream.arrayBuffer());
+ if (buf.byteLength > cap) throw Object.assign(new Error('too_large'), { code: 'too_large' });
+ return buf;
+ }
+ const chunks = [];
+ let total = 0;
+ for await (const chunk of upstream.body) {
+ const buf = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
+ total += buf.byteLength;
+ if (total > cap) {
+ abort?.abort();
+ throw Object.assign(new Error('too_large'), { code: 'too_large' });
+ }
+ chunks.push(buf);
+ }
+ return Buffer.concat(chunks, total);
+}
const VALID_TEXTURE_SIZES = new Set([128, 256, 512, 1024, 2048]);
const VALID_LODS = new Set([0, 1, 2]);
@@ -230,22 +271,43 @@ export default wrap(async (req, res) => {
return error(res, err.status || 400, err.code || 'invalid_request', err.message);
}
+ const abort = new AbortController();
+ const fetchTimer = setTimeout(() => abort.abort(), SOURCE_FETCH_TIMEOUT_MS);
let upstream;
try {
- upstream = await fetch(sourceUrl);
+ upstream = await fetch(sourceUrl, { signal: abort.signal });
} catch (err) {
+ clearTimeout(fetchTimer);
+ if (err?.name === 'AbortError') {
+ return error(res, 504, 'source_timeout', `source did not respond within ${SOURCE_FETCH_TIMEOUT_MS} ms`);
+ }
return error(res, 502, 'upstream_unreachable', err?.message || 'source fetch failed');
}
- if (!upstream.ok) return error(res, 404, 'source_not_found', `upstream returned ${upstream.status}`);
+ if (!upstream.ok) {
+ clearTimeout(fetchTimer);
+ return error(res, 404, 'source_not_found', `upstream returned ${upstream.status}`);
+ }
const sizeHeader = upstream.headers.get('content-length');
if (sizeHeader && Number(sizeHeader) > SOURCE_BYTE_CAP) {
+ clearTimeout(fetchTimer);
+ abort.abort();
return error(res, 413, 'too_large', `source exceeds ${SOURCE_BYTE_CAP} bytes`);
}
- const sourceBytes = Buffer.from(await upstream.arrayBuffer());
- if (sourceBytes.byteLength > SOURCE_BYTE_CAP) {
- return error(res, 413, 'too_large', `source exceeds ${SOURCE_BYTE_CAP} bytes`);
+ let sourceBytes;
+ try {
+ sourceBytes = await readCapped(upstream, SOURCE_BYTE_CAP, abort);
+ } catch (err) {
+ if (err?.code === 'too_large') {
+ return error(res, 413, 'too_large', `source exceeds ${SOURCE_BYTE_CAP} bytes`);
+ }
+ if (err?.name === 'AbortError') {
+ return error(res, 504, 'source_timeout', `source stalled mid-download after ${SOURCE_FETCH_TIMEOUT_MS} ms`);
+ }
+ return error(res, 502, 'upstream_unreachable', err?.message || 'source read failed');
+ } finally {
+ clearTimeout(fetchTimer);
}
let outBytes;
diff --git a/api/marketplace/analytics.js b/api/marketplace/analytics.js
index 9028957df..326eba2f2 100644
--- a/api/marketplace/analytics.js
+++ b/api/marketplace/analytics.js
@@ -23,21 +23,27 @@ export default wrap(async (req, res) => {
const bearer = session ? null : await authenticateBearer(extractBearer(req));
const userId = session?.id ?? bearer?.userId ?? null;
- // ── Top-selling skills (by confirmed purchase count) ─────────────────────
+ // ── Top skills ────────────────────────────────────────────────────────────
+ // A `trial` row is a free grant: nothing was paid and `amount` is only the
+ // list price it WOULD have cost. Counting trials as sales (and summing their
+ // amount as revenue) reported 10,454 sales and 6.2M $THREE of volume on a
+ // marketplace with zero completed purchases. Paid and free are now counted
+ // separately here and everywhere below; only `status = 'confirmed'` is money.
const topSkills = await sql`
SELECT
sp.skill,
sp.agent_id,
ai.name AS agent_name,
ai.profile_image_url AS agent_image,
- COUNT(sp.id) AS total_sales,
- SUM(sp.amount) AS total_revenue_atomic,
+ COUNT(*) FILTER (WHERE sp.status = 'confirmed') AS total_sales,
+ COUNT(*) FILTER (WHERE sp.status = 'trial') AS total_trials,
+ COALESCE(SUM(sp.amount) FILTER (WHERE sp.status = 'confirmed'), 0) AS total_revenue_atomic,
sp.currency_mint
FROM skill_purchases sp
JOIN agent_identities ai ON ai.id = sp.agent_id
WHERE sp.status IN ('confirmed', 'trial')
GROUP BY sp.skill, sp.agent_id, ai.name, ai.profile_image_url, sp.currency_mint
- ORDER BY total_sales DESC
+ ORDER BY total_sales DESC, total_trials DESC
LIMIT 10
`;
@@ -65,23 +71,47 @@ export default wrap(async (req, res) => {
SUM(amount) AS volume_atomic,
currency_mint
FROM skill_purchases
- WHERE status IN ('confirmed', 'trial')
+ WHERE status = 'confirmed'
AND confirmed_at >= NOW() - INTERVAL '30 days'
GROUP BY day, currency_mint
ORDER BY day ASC
`;
// ── Platform-wide summary stats ───────────────────────────────────────────
+ // `unique_buyers` counts people who PAID. Trial-takers are counted on their
+ // own line so an empty marketplace reads as empty instead of as busy.
const [summary] = await sql`
SELECT
- COUNT(DISTINCT user_id) AS unique_buyers,
- COUNT(DISTINCT agent_id) AS unique_sellers,
- COUNT(*) AS total_sales,
- SUM(amount) AS total_volume_atomic
+ COUNT(DISTINCT user_id) FILTER (WHERE status = 'confirmed') AS unique_buyers,
+ COUNT(DISTINCT agent_id) AS unique_sellers,
+ COUNT(*) FILTER (WHERE status = 'confirmed') AS total_sales,
+ COALESCE(SUM(amount) FILTER (WHERE status = 'confirmed'), 0) AS total_volume_atomic
FROM skill_purchases
WHERE status IN ('confirmed', 'trial')
`;
+ // ── Trial funnel ──────────────────────────────────────────────────────────
+ // The honest read on a marketplace that offers free trials: how many were
+ // granted, how many were actually used, how many ran out (the highest-intent
+ // state there is), and how many of those turned into a purchase. A large
+ // `exhausted` with a zero `converted` is a broken paywall, not weak demand;
+ // `granted` high with `used` at zero means nobody is metering trial runs at
+ // all. See docs/marketplace.md "Trials are metered".
+ const [funnel] = await sql`
+ SELECT
+ COUNT(*) FILTER (WHERE sp.status = 'trial') AS granted,
+ COUNT(*) FILTER (WHERE sp.status = 'trial'
+ AND asp.trial_uses IS NOT NULL
+ AND sp.trial_remaining < asp.trial_uses) AS used,
+ COUNT(*) FILTER (WHERE sp.status = 'trial'
+ AND COALESCE(sp.trial_remaining, 0) <= 0) AS exhausted,
+ COUNT(*) FILTER (WHERE sp.status = 'confirmed') AS converted
+ FROM skill_purchases sp
+ LEFT JOIN agent_skill_prices asp
+ ON asp.agent_id = sp.agent_id AND asp.skill = sp.skill
+ WHERE sp.status IN ('confirmed', 'trial')
+ `;
+
// ── NFT mints count ────────────────────────────────────────────────────────
const [nftStats] = await sql`
SELECT COUNT(*) AS total_nfts
@@ -119,6 +149,14 @@ export default wrap(async (req, res) => {
totalSales: Number(summary?.total_sales ?? 0),
totalVolumeAtomic: String(summary?.total_volume_atomic ?? 0),
totalNfts: Number(nftStats?.total_nfts ?? 0),
+ // Free grants, reported separately so they can never be read as revenue.
+ totalTrials: Number(funnel?.granted ?? 0),
+ },
+ trialFunnel: {
+ granted: Number(funnel?.granted ?? 0),
+ used: Number(funnel?.used ?? 0),
+ exhausted: Number(funnel?.exhausted ?? 0),
+ converted: Number(funnel?.converted ?? 0),
},
topSkills: topSkills.map(r => ({
skill: r.skill,
@@ -126,6 +164,7 @@ export default wrap(async (req, res) => {
agentName: r.agent_name,
agentImage: r.agent_image,
totalSales: Number(r.total_sales),
+ totalTrials: Number(r.total_trials ?? 0),
totalRevenue: String(r.total_revenue_atomic ?? 0),
currencyMint: r.currency_mint,
})),
diff --git a/api/pay/session.js b/api/pay/session.js
index 6d583d969..2c0c1b387 100644
--- a/api/pay/session.js
+++ b/api/pay/session.js
@@ -87,7 +87,7 @@ export default wrap(async (req, res) => {
return json(res, 201, {
session: result.session,
token: result.token,
- note: 'Store this token securely — it is shown once and cannot be recovered.',
+ note: 'Store this token securely. It is shown once and cannot be recovered.',
});
}
diff --git a/api/pulse.js b/api/pulse.js
index dc375d2e1..144e1057f 100644
--- a/api/pulse.js
+++ b/api/pulse.js
@@ -431,13 +431,16 @@ async function handleStats(network) {
// honest viability signal: value is delivered AND the platform earns a take-rate,
// unlike the x402 counter which only measures agent-to-agent settlement plumbing.
// Sourced from skill_purchases (the same table /marketplace confirms against).
+ // Same "real sale" predicate as handleMarketplace(): money and party counts must
+ // agree on which rows are sales, or a non-paid confirmed row inflates one side.
+ const paidRow24 = sql`sp.status = 'confirmed' AND sp.kind = ANY(${MARKET_PAID_KINDS})`;
const [mkt24] = await sql`
SELECT
- COUNT(*) FILTER (WHERE sp.status = 'confirmed' AND sp.kind = ANY(${MARKET_PAID_KINDS}))::int AS purchases,
- COUNT(*) FILTER (WHERE sp.kind = 'trial')::int AS trials,
- COALESCE(SUM(sp.amount) FILTER (WHERE sp.status = 'confirmed'), 0)::text AS gmv_atomic,
- COUNT(DISTINCT sp.user_id) FILTER (WHERE sp.status = 'confirmed')::int AS buyers,
- COUNT(DISTINCT sp.agent_id) FILTER (WHERE sp.status = 'confirmed')::int AS sellers
+ COUNT(*) FILTER (WHERE ${paidRow24})::int AS purchases,
+ COUNT(*) FILTER (WHERE sp.kind = 'trial')::int AS trials,
+ COALESCE(SUM(sp.amount) FILTER (WHERE ${paidRow24}), 0)::text AS gmv_atomic,
+ COUNT(DISTINCT sp.user_id) FILTER (WHERE ${paidRow24})::int AS buyers,
+ COUNT(DISTINCT sp.agent_id) FILTER (WHERE ${paidRow24})::int AS sellers
FROM skill_purchases sp
JOIN agent_identities ai ON ai.id = sp.agent_id AND ${pubAgent}
WHERE sp.currency_mint = ${THREE_MINT} AND sp.chain = 'solana'
@@ -644,17 +647,29 @@ async function handleMarketplace(network) {
AND COALESCE((ai.meta->>'pulse_opt_out')::boolean, false) = false`;
const feeBps = marketplaceFeeBps();
+ // One definition of "a real marketplace sale", shared by EVERY money and party
+ // aggregate below. It has to be shared: filtering the counts on status+kind but
+ // the money on status alone is what let non-sale rows (a trial, or a bundle
+ // access record, both of which are 'confirmed' but not a paid kind) land in
+ // gmv/fees/buyers/sellers while being excluded from the purchase count. That
+ // also skewed avg_ticket, which divides a GMV by a count that excluded part of
+ // what produced it. These are published on a transparency page, so they are
+ // derived from one predicate rather than kept in sync by hand.
+ const paidRow = sql`sp.status = 'confirmed' AND sp.kind = ANY(${MARKET_PAID_KINDS})`;
+
// One windowed aggregate, reused for 24h and 7d so both cards read identically.
const windowAgg = async (interval) => {
const [r] = await sql`
SELECT
- COUNT(*) FILTER (WHERE sp.status = 'confirmed' AND sp.kind = ANY(${MARKET_PAID_KINDS}))::int AS purchases,
- COUNT(*) FILTER (WHERE sp.kind = 'trial')::int AS trials,
- COALESCE(SUM(sp.amount) FILTER (WHERE sp.status = 'confirmed'), 0)::text AS gmv_atomic,
- COUNT(DISTINCT sp.user_id) FILTER (WHERE sp.status = 'confirmed')::int AS buyers,
- COUNT(DISTINCT sp.agent_id) FILTER (WHERE sp.status = 'confirmed')::int AS sellers,
- COUNT(DISTINCT (sp.user_id, sp.agent_id)) FILTER (WHERE sp.status = 'confirmed')::int AS pairs,
- COALESCE(SUM(sp.platform_fee_amount) FILTER (WHERE sp.status = 'confirmed'), 0)::text AS fee_atomic
+ COUNT(*) FILTER (WHERE ${paidRow})::int AS purchases,
+ -- Deliberately status-free: this counts trials STARTED in the window, so a
+ -- trial that has since lapsed still counts. It is a demand signal, not money.
+ COUNT(*) FILTER (WHERE sp.kind = 'trial')::int AS trials,
+ COALESCE(SUM(sp.amount) FILTER (WHERE ${paidRow}), 0)::text AS gmv_atomic,
+ COUNT(DISTINCT sp.user_id) FILTER (WHERE ${paidRow})::int AS buyers,
+ COUNT(DISTINCT sp.agent_id) FILTER (WHERE ${paidRow})::int AS sellers,
+ COUNT(DISTINCT (sp.user_id, sp.agent_id)) FILTER (WHERE ${paidRow})::int AS pairs,
+ COALESCE(SUM(sp.platform_fee_amount) FILTER (WHERE ${paidRow}), 0)::text AS fee_atomic
FROM skill_purchases sp
JOIN agent_identities ai ON ai.id = sp.agent_id AND ${pubAgent}
WHERE sp.currency_mint = ${THREE_MINT} AND sp.chain = 'solana'
@@ -736,8 +751,8 @@ async function handleMarketplace(network) {
),
ev AS (
SELECT date_trunc('day', sp.created_at) AS day,
- COUNT(*) FILTER (WHERE sp.status = 'confirmed' AND sp.kind = ANY(${MARKET_PAID_KINDS}))::int AS purchases,
- COALESCE(SUM(sp.amount) FILTER (WHERE sp.status = 'confirmed'), 0)::text AS gmv_atomic
+ COUNT(*) FILTER (WHERE ${paidRow})::int AS purchases,
+ COALESCE(SUM(sp.amount) FILTER (WHERE ${paidRow}), 0)::text AS gmv_atomic
FROM skill_purchases sp
JOIN agent_identities ai ON ai.id = sp.agent_id AND ${pubAgent}
WHERE sp.currency_mint = ${THREE_MINT} AND sp.chain = 'solana'
diff --git a/data/guards.json b/data/guards.json
index 9de578cb3..f61416ebd 100644
--- a/data/guards.json
+++ b/data/guards.json
@@ -305,6 +305,16 @@
"stages": ["manual"],
"needs": "credentials"
},
+ {
+ "id": "audit-guards",
+ "script": "scripts/audit-guards.mjs",
+ "npm": "audit:guards",
+ "title": "The guard registry itself",
+ "protects": "Every entry in this file names a real script and a real npm script, every guard on disk is registered, and every stage claim matches the npm chain that would actually run it.",
+ "why": "This registry is rendered by docs/guards.md and by /guards, so a stale stage column does not read as stale, it reads as coverage a reader then stops looking for. Listing itself is not circular: it verifies its own script, npm binding, and gate membership exactly like every other entry.",
+ "stages": ["gate"],
+ "needs": "none"
+ },
{
"id": "check-erc7710-addresses",
"script": "scripts/check-erc7710-addresses.js",
@@ -320,10 +330,6 @@
{
"pattern": "scripts/verify-*.mjs",
"reason": "One-off integration verifiers for a specific vendor surface or world build, not repository guards. They prove an external service works, so they belong with that feature rather than in a guard stage."
- },
- {
- "pattern": "scripts/audit-guards.mjs",
- "reason": "The guard that verifies this registry. Registering it in its own registry would be circular."
}
]
}
diff --git a/data/pages.json b/data/pages.json
index 420521c3f..2ffa48d58 100644
--- a/data/pages.json
+++ b/data/pages.json
@@ -3306,6 +3306,14 @@
"priority": 0.7,
"changefreq": "monthly"
},
+ {
+ "path": "/docs/guards",
+ "title": "Repository guards",
+ "description": "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.",
+ "priority": 0.5,
+ "changefreq": "monthly",
+ "added": "2026-07-30"
+ },
{
"path": "/tutorials/agent-spending-envelope",
"title": "Tutorial · Give an Agent a Spending Envelope",
diff --git a/docs/api-reference.md b/docs/api-reference.md
index d90bf3a5f..38f31e9fd 100644
--- a/docs/api-reference.md
+++ b/docs/api-reference.md
@@ -2946,6 +2946,203 @@ The full seller-side wire contract — challenge fields, verify→work→settle
---
+## Agent Payment Sessions API
+
+```
+POST /api/pay/session Create a funded spend envelope
+GET /api/pay/session List your sessions + aggregate stats
+GET /api/pay/session/:id Inspect one session
+PATCH /api/pay/session/:id Tighten policy on an active session
+DELETE /api/pay/session/:id Cancel and refund the unspent budget
+GET /api/pay/session/:id/executions The payment ledger for one session
+POST /api/pay/execute Pay an x402 endpoint with a session token
+```
+
+The buyer-side counterpart to the x402 endpoints above. Everything so far assumed the caller holds a wallet key; a **Payment Session** is how you let an autonomous agent pay for things without ever giving it one.
+
+> The agent does not hold a wallet. It proposes spend. Governance enforces policy.
+
+You fund a budget from your [credits](payment-sessions.md#prepaid-credits), set the policy, and receive a bearer token. The agent presents that token to `/api/pay/execute`; the platform's own wallet signs the on-chain transfer. A stolen token buys at most the remaining budget, only at hosts you approved, only until the session expires.
+
+Conceptual guide: [Payment sessions](payment-sessions.md). Step-by-step walkthrough: [Give an agent a spending envelope](tutorials/agent-spending-envelope.md). Enforcement source: [`api/_lib/pay/spend-governor.js`](https://github.com/nirholas/three.ws/blob/main/api/_lib/pay/spend-governor.js).
+
+### Authentication
+
+The **management** endpoints (`/api/pay/session*`) authenticate as *you*: a browser session cookie or an API key bearer token. They are how a human or a deploy script provisions budgets.
+
+The **spend** endpoint (`/api/pay/execute`) authenticates as the *session*: the `session_token` travels in the JSON body, not an `Authorization` header. That split is deliberate. An agent holding a session token can spend its budget and can do nothing else: it cannot create another session, read your other sessions, or raise its own ceiling.
+
+### POST /api/pay/session
+
+Creates a session and debits `budget_usd` from your credit balance immediately.
+
+| Field | Type | Default | Notes |
+| ---------------- | ---------- | ---------- | --------------------------------------------------------------------- |
+| `budget_usd` | number | required | $0.001 to $1000. Debited from credits at creation. |
+| `label` | string | `""` | Up to 120 chars. Shown in listings and on `/payments`. |
+| `expiry_seconds` | number | `3600` | 60 seconds to 90 days. Unspent budget is refunded at expiry. |
+| `max_per_tx_usd` | number | `null` | Per-payment ceiling. `null` means only the total budget bounds a call. |
+| `allowed_hosts` | string[] | `[]` | Up to 50 entries. Empty means any host. Normalized to bare hostnames. |
+| `network` | string | `"solana"` | `solana` or `base`. |
+| `agent_id` | string | `null` | Optional: the agent this session is provisioned for. |
+| `metadata` | object | `{}` | Arbitrary JSON for your own bookkeeping. |
+
+```bash
+curl -X POST https://three.ws/api/pay/session \
+ -H "Authorization: Bearer $THREE_WS_API_KEY" \
+ -H "Content-Type: application/json" \
+ -d '{
+ "budget_usd": 10.00,
+ "label": "Research agent, June sprint",
+ "expiry_seconds": 86400,
+ "max_per_tx_usd": 0.50,
+ "allowed_hosts": ["api.example.com", "data.provider.io"],
+ "network": "solana"
+ }'
+```
+
+**201 Created**
+
+```json
+{
+ "session": {
+ "id": "5f2c…",
+ "label": "Research agent, June sprint",
+ "budget_usd": 10,
+ "spent_usd": 0,
+ "remaining_usd": 10,
+ "max_per_tx_usd": 0.5,
+ "allowed_hosts": ["api.example.com", "data.provider.io"],
+ "network": "solana",
+ "status": "active",
+ "expires_at": "2026-07-31T09:00:00.000Z",
+ "created_at": "2026-07-30T09:00:00.000Z"
+ },
+ "token": "pss_5f2c…_9a3f…",
+ "note": "Store this token securely. It is shown once and cannot be recovered."
+}
+```
+
+The `token` is returned exactly once. Only its HMAC is stored, so a lost token cannot be recovered: cancel the session (which refunds the remainder) and create another.
+
+**402 `insufficient_credits`** if your balance will not cover `budget_usd`. Top up at [/credits](https://three.ws/credits).
+
+### GET /api/pay/session
+
+Lists your sessions newest-first, plus portfolio-wide counters.
+
+Query: `status` (`active` | `exhausted` | `expired` | `cancelled`), `limit` (default 20), `cursor`.
+
+```json
+{
+ "sessions": [{ "id": "5f2c…", "status": "active", "remaining_usd": 8.65 }],
+ "next_cursor": null,
+ "stats": {
+ "sessions": { "active": 1, "exhausted": 3, "cancelled": 0, "expired": 2,
+ "total_budget_usd": 60, "total_spent_usd": 41.35 },
+ "executions": { "settled": 812, "failed": 4, "settled_usd": 41.35, "unique_endpoints": 6 }
+ }
+}
+```
+
+### GET /api/pay/session/:id
+
+Returns `{ session }` in the shape above, or **404** if the session does not exist *or* is not yours. Ownership failures are indistinguishable from missing rows on purpose.
+
+### PATCH /api/pay/session/:id
+
+Tightens an active session without restarting the agent holding its token. Accepts any of `label`, `allowed_hosts`, `max_per_tx_usd`; at least one is required (**400 `nothing_to_update`** otherwise). The budget and expiry are immutable: raising either would let a session outgrow the amount you authorized when you funded it.
+
+### DELETE /api/pay/session/:id
+
+Cancels the session and refunds the unspent budget to your credits in the same call.
+
+```json
+{ "cancelled": true, "session_id": "5f2c…", "refunded_usd": 8.65 }
+```
+
+### GET /api/pay/session/:id/executions
+
+The immutable payment ledger: one row per attempt, settled or not, with endpoint, host, amount, network, transaction hash, duration, and error code. This is the audit trail for what your agent actually bought.
+
+### POST /api/pay/execute
+
+The agent-facing endpoint. Give it a URL; it probes for the `402`, enforces policy, signs, pays, and returns the resource.
+
+| Field | Type | Notes |
+| ----------------- | ------ | ------------------------------------------------------------------ |
+| `session_token` | string | required |
+| `url` | string | required. Public HTTPS only; validated against SSRF before payment. |
+| `method` | string | `GET` (default) or `POST`. |
+| `body` | object | JSON body, `POST` only. |
+| `idempotency_key` | string | Strongly recommended. Unique-constrained, so a retry cannot double-bill. |
+
+```bash
+curl -X POST https://three.ws/api/pay/execute \
+ -H "Content-Type: application/json" \
+ -d '{
+ "url": "https://api.example.com/data",
+ "session_token": "pss_5f2c…_9a3f…",
+ "idempotency_key": "run-42-fetch-data"
+ }'
+```
+
+**200 OK** carries the resource *and* the receipt:
+
+```json
+{
+ "ok": true,
+ "paid": true,
+ "result": { "...": "the endpoint's own response" },
+ "payment": {
+ "session_id": "5f2c…",
+ "amount_usd": 0.05,
+ "network": "solana",
+ "payer": "…",
+ "pay_to": "…",
+ "tx_hash": "…",
+ "explorer": "https://solscan.io/tx/…"
+ },
+ "session": { "spent_usd": 1.35, "remaining_usd": 8.65 },
+ "duration_ms": 1840
+}
+```
+
+If the endpoint answers without a `402`, it was free. You get `paid: false` and the session is never touched.
+
+### Governance errors
+
+Policy runs in order (token, status, expiry, allowlist, per-transaction cap, budget) and each failure has its own code. None of these charge the session.
+
+| Status | Code | Meaning |
+| ------ | ---------------------- | ---------------------------------------------------------------- |
+| 401 | `invalid_token` | Malformed token, or it does not hash to a stored session. |
+| 403 | `session_inactive` | Session is exhausted, cancelled, or expired. |
+| 403 | `session_expired` | Past `expires_at`. The row is marked expired on the spot. |
+| 403 | `allowlist_blocked` | Target host is not on the allowlist. Detail carries the allowlist. |
+| 402 | `per_tx_exceeded` | Price is over `max_per_tx_usd`. Detail carries both numbers. |
+| 402 | `insufficient_budget` | Remaining budget is too small. Detail carries need and remaining. |
+
+An `allowlist_blocked` match is exact-host or true-subdomain. An entry of `example.com` covers `api.example.com` and does **not** cover `evil-example.com`.
+
+### Settlement outcomes
+
+Three, not two, and the third is the one to design for.
+
+| Result | HTTP | Budget | What to do |
+| ------ | ---- | ------ | ---------- |
+| Settled | 200 | Debited | Use the result. `tx_hash` is your receipt. |
+| Rejected pre-settlement | 402 `payment_rejected` | **Restored** | Nothing moved on-chain. Safe to retry. |
+| Submitted, unconfirmed | 502 `settle_uncertain` | **Held** | The transfer may have landed. Do not retry blindly: read `/api/pay/session/:id/executions` or the explorer first. |
+
+The budget is deliberately *not* restored on `settle_uncertain`. Releasing it would let the next call spend money that may already be gone, so the accounting stays conservative and the uncertainty stays visible in the ledger.
+
+### Expiry and refunds
+
+`/api/cron/payment-session-sweep` runs every five minutes, marks sessions past `expires_at` as expired, and credits the unspent remainder back, keyed by session id so overlapping ticks cannot double-refund. Short sessions are the recommended posture precisely because letting one lapse costs nothing.
+
+---
+
## Coin Market Data API
Public, unauthenticated, CORS-open proxies over CoinGecko (plus a news
@@ -3947,4 +4144,5 @@ const { agents } = await res.json();
- [SDK & Library](/docs/sdk): the npm packages and the web component bundle
- [MCP documentation](/docs/mcp): the same platform surface as MCP tools
- [x402](/docs/x402): how the paid `/api/x402/*` endpoints settle in USDC
+- [Payment sessions](/docs/payment-sessions): the buyer side, letting an agent spend a budget without holding a key
- [Authentication](/docs/authentication): SIWE, sessions, API keys, and scopes
diff --git a/docs/avatar-cli.md b/docs/avatar-cli.md
new file mode 100644
index 000000000..aac57762d
--- /dev/null
+++ b/docs/avatar-cli.md
@@ -0,0 +1,303 @@
+# Avatar CLI
+
+`@three-ws/avatar-cli` is terminal-native tooling for on-chain avatars. It scaffolds an avatar manifest from a wallet and a mesh file, validates that manifest against the published schema, hashes mesh bytes, and prints an embed snippet you can paste into a page.
+
+It is the piece that lets avatars live in a build pipeline instead of a browser tab. Everything it does is offline and deterministic: no account, no API key, no network call. That is what makes it safe to put in a release script.
+
+**On this page:** [Install](#install) · [Quick start](#quick-start) · [Commands](#commands) · [The manifest](#the-manifest) · [Exit codes](#exit-codes-and-scripting) · [Release gate](#gate-a-release-on-the-manifest)
+
+Related: [`@three-ws/avatar-schema`](../packages/avatar-schema/README.md) is the wire format this validates against. The [web component reference](./web-component.md) covers the `<agent-3d>` element the CLI emits.
+
+---
+
+## Install
+
+Global, if you use it often:
+
+```bash
+npm install -g @three-ws/avatar-cli
+three-ws-avatar --version
+```
+
+```
+0.2.0
+```
+
+Or run it without installing. The package has exactly one binary, so `npx` resolves it directly:
+
+```bash
+npx @three-ws/avatar-cli --version
+```
+
+Pin the version in anything automated so a future release cannot change your build's behavior:
+
+```bash
+npx @three-ws/[email protected] validate manifest.json
+```
+
+Node 18 or newer. The CLI has one runtime dependency, `@three-ws/avatar-schema`, which carries the JSON Schema it validates against.
+
+---
+
+## Quick start
+
+Four commands take you from a `.glb` file to a snippet you can paste into a page. Every command below runs as written.
+
+```bash
+# 1. Grab a real rigged avatar to work with (or point --mesh at your own GLB)
+curl -sLO https://three.ws/avatars/michelle.glb
+
+# 2. Scaffold a manifest. sha256 and size are computed for you.
+three-ws-avatar init \
+ --owner eip155:1:0x742d35Cc6634C0532925a3b844Bc454e4438f44e \
+ --name "Nicholas" \
+ --mesh ./michelle.glb \
+ --skeleton mixamo \
+ --mesh-uri https://three.ws/avatars/michelle.glb \
+ --out manifest.json
+
+# 3. Validate it
+three-ws-avatar validate manifest.json
+
+# 4. Print embed snippets
+three-ws-avatar preview manifest.json
+```
+
+Step 2 prints its summary to stderr, so it stays out of anything you pipe:
+
+```
+✔ wrote /home/you/manifest.json
+ • id eip155:1:0x742d35Cc6634C0532925a3b844Bc454e4438f44e
+ • skeleton mixamo
+ • mesh glb · 830 kB · sha256:28d788538f7b…
+ › next: three-ws-avatar preview manifest.json
+```
+
+> **Pass `--mesh-uri`.** Without it the manifest's `mesh.uri` points at the local `file://` path, which no browser can load. `preview` warns when that happens, but it is easier to set up front.
+
+---
+
+## Commands
+
+### `init` - scaffold a manifest
+
+Builds a schema-valid manifest from flags. The mesh is read once to compute its SHA-256 and size. Output goes to stdout unless you pass `--out`.
+
+```bash
+three-ws-avatar init --owner <id> --name <name> --mesh <path> [options]
+```
+
+| Flag | Required | Description |
+|---|---|---|
+| `--owner <caip10\|0x…>` | yes | Owner identity. Full CAIP-10 (`eip155:1:0xabc…`) or a bare `0x…` address, which is assumed to be `eip155:1`. |
+| `--name <string>` | yes | Display name. If it looks like a name service handle (`nick.eth`, `nick.ws`, `nick.sol`) it also becomes the manifest `id`. |
+| `--mesh <path>` | yes | Path to a `.glb`, `.gltf`, or `.vrm` file. Must exist; the extension decides `mesh.format`. |
+| `--skeleton <name>` | no | One of `avaturn`, `mixamo`, `rpm`, `vrm-humanoid`, `custom`. Default `avaturn`. |
+| `--mesh-uri <url>` | no | Public URL for the mesh. Defaults to the local `file://` path, which is fine for a hash-only workflow and wrong for anything embedded. |
+| `--id <string>` | no | Override the derived id. |
+| `--out <path>` | no | Write to a file instead of stdout. |
+
+Without `--out` the manifest goes to stdout and the summary to stderr, so redirecting captures clean JSON:
+
+```bash
+three-ws-avatar init --owner 0x742d35Cc6634C0532925a3b844Bc454e4438f44e \
+ --name "nick.eth" --mesh ./michelle.glb > manifest.json
+```
+
+```json
+{
+ "schemaVersion": 1,
+ "id": "nick.eth",
+ "name": "nick.eth",
+ "mesh": {
+ "uri": "file:///home/you/michelle.glb",
+ "sha256": "28d788538f7b22b8e00c1d715fffc380bb06a304613d522c20523d3d6ff79bc2",
+ "format": "glb",
+ "kBytes": 830
+ },
+ "skeleton": "avaturn",
+ "owner": {
+ "chain": "eip155:1",
+ "address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
+ },
+ "createdAt": "2026-07-30T19:23:34.595Z"
+}
+```
+
+The scaffolded manifest is validated before it is written, so `init` cannot produce an invalid file.
+
+### `validate` - check a manifest against the schema
+
+```bash
+three-ws-avatar validate <path> [--json]
+```
+
+Exits `0` when valid, `1` otherwise. Every schema error is printed at the instance path where it occurred:
+
+```bash
+three-ws-avatar validate broken.json
+```
+
+```
+✖ broken.json is invalid (7 errors)
+ • / must have required property 'mesh'
+ • / must have required property 'skeleton'
+ • / must have required property 'owner'
+ • / must have required property 'createdAt'
+ • /id must match pattern "^[a-z0-9-]{3,8}:[a-zA-Z0-9_-]{1,32}:[a-zA-Z0-9]{1,64}$"
+ • /id must match pattern "^[a-z0-9][a-z0-9-]{0,62}\.(eth|ws|sol)$"
+ • /id must match a schema in anyOf
+```
+
+The last three lines are one failure, not three: `id` accepts either a CAIP-10 account or a name service handle, so a bad id reports both branches plus the `anyOf` that rejected it.
+
+`--json` emits `{ "valid", "path" }` on success and adds a raw `errors` array on failure, suitable for annotating a build.
+
+### `hash` - SHA-256 a file
+
+```bash
+three-ws-avatar hash <path> [--json]
+```
+
+Prints lowercase hex on stdout and nothing else, so it composes:
+
+```bash
+sha=$(three-ws-avatar hash ./michelle.glb)
+echo "$sha"
+```
+
+```
+28d788538f7b22b8e00c1d715fffc380bb06a304613d522c20523d3d6ff79bc2
+```
+
+`--json` emits `{ "path", "sha256", "bytes" }` instead of the bare line.
+
+This is the same digest `init` writes into `mesh.sha256`, which is what makes the [release gate](#gate-a-release-on-the-manifest) below a one-line comparison.
+
+### `preview` - print an embed snippet
+
+```bash
+three-ws-avatar preview <path> [--viewer <origin>] [--json]
+```
+
+Validates the manifest, then prints three ways to put the avatar on a page:
+
+```bash
+three-ws-avatar preview manifest.json
+```
+
+```
+Nicholas (eip155:1:0x742d35Cc6634C0532925a3b844Bc454e4438f44e)
+
+› resolver url
+https://three.ws/a/eip155%3A1%3A0x742d35Cc6634C0532925a3b844Bc454e4438f44e
+
+› web component (loader registers <agent-3d>)
+<script type="module" src="https://three.ws/agent-3d/latest/agent-3d.js"></script>
+<agent-3d src="https://three.ws/avatars/michelle.glb" style="width:400px;height:600px"></agent-3d>
+
+› iframe (zero-install)
+<iframe src="https://three.ws/a/eip155%3A1%3A0x742d35Cc6634C0532925a3b844Bc454e4438f44e" width="480" height="640" frameborder="0" allow="camera; microphone; xr-spatial-tracking"></iframe>
+```
+
+The web-component block is emitted with its loader on purpose. `<agent-3d>` is an ordinary unknown element until that script registers it, so the snippet is only complete with both lines. See the [web component reference](./web-component.md) for the full attribute surface.
+
+When `mesh.uri` is still a local path, `preview` says so rather than handing you a snippet that renders nothing:
+
+```
+⚠ mesh.uri is a local path, so the snippet above will not load in a browser.
+ re-run init with --mesh-uri https://your-host/avatar.glb, or edit mesh.uri to a public URL
+```
+
+`--viewer <origin>` swaps the host in the resolver URL, the loader, and the iframe, for a staging environment or a self-hosted deployment:
+
+```bash
+three-ws-avatar preview manifest.json --viewer https://staging.example.com
+```
+
+`--json` returns the pieces separately (`resolverUrl`, `loader`, `element`, `iframe`, `meshUri`, `meshIsLocal`, `schemaVersion`) so a site generator can place them itself.
+
+---
+
+## The manifest
+
+Seven fields are required: `schemaVersion`, `id`, `name`, `mesh`, `skeleton`, `owner`, `createdAt`. `init` writes all seven.
+
+| Field | Notes |
+|---|---|
+| `schemaVersion` | Always `1` for documents validated against the v1 schema. |
+| `id` | Either a CAIP-10 account id or a name service handle ending in `.eth`, `.ws`, or `.sol`. |
+| `name` | Human-readable display name. |
+| `mesh` | Requires `uri`, `sha256`, `format`. `init` also writes `kBytes`. |
+| `skeleton` | `avaturn`, `mixamo`, `rpm`, `vrm-humanoid`, or `custom`. Picks the animation library that retargets onto the rig. |
+| `owner` | Requires `chain` and `address`. |
+| `createdAt` | ISO 8601 UTC. |
+
+Five optional fields the schema accepts and `init` leaves out, for you to add by hand: `animations` (a clip manifest pointer), `accessories` (slot bindings for hats, glasses, and the like), `traits` (free-form NFT-style key/values), `creator` (when it differs from `owner`), and `signature` (over the canonical JSON serialization).
+
+Add any of them and re-run `validate` to confirm the result still conforms.
+
+---
+
+## Exit codes and scripting
+
+| Code | Meaning |
+|---|---|
+| `0` | Success. |
+| `1` | Validation failed, a required flag or argument was missing, a file was missing or unreadable, or the command was unknown. |
+
+Three conventions make the output safe to pipe:
+
+- **stdout carries payloads only.** The hash hex, scaffolded JSON, `--json` output, and embed snippets go to stdout undecorated. Status lines, warnings, and hints go to stderr.
+- **Color is suppressed automatically** when stdout is not a TTY. `--no-color` and the [`NO_COLOR`](https://no-color.org) environment variable both disable it; `FORCE_COLOR=1` forces it back on for a CI log that renders ANSI.
+- **Glyphs degrade to ASCII** off a TTY, so log files stay readable.
+
+A mistyped command suggests the closest match rather than dumping the whole help text:
+
+```bash
+three-ws-avatar previw manifest.json
+```
+
+```
+✖ unknown command: previw
+ did you mean "preview"?
+ run "three-ws-avatar --help" to see all commands
+```
+
+---
+
+## Gate a release on the manifest
+
+Avatars are content, and content drifts. Two checks catch the drift that actually bites, and neither needs network access.
+
+**Has the mesh changed since the manifest attested to it?**
+
+```bash
+expected=$(node -p "require('./manifest.json').mesh.sha256")
+actual=$(three-ws-avatar hash ./michelle.glb)
+[ "$expected" = "$actual" ] || { echo "mesh hash mismatch"; exit 1; }
+```
+
+**Is every manifest in the repo still schema-valid?**
+
+```bash
+find . -name '*.avatar.json' -not -path './node_modules/*' -print0 \
+ | xargs -0 -n1 three-ws-avatar validate
+```
+
+`xargs` propagates a non-zero exit, so one bad manifest fails the whole step. Add both to whatever runs your release (a `package.json` script, a Makefile target, your deploy script) and a broken avatar stops being something you discover in production.
+
+For machine-readable output, swap in `--json` and test the result:
+
+```bash
+three-ws-avatar validate manifest.json --json | jq -e '.valid'
+```
+
+---
+
+## Where to go next
+
+- **[Ship an avatar manifest](./tutorials/ship-an-avatar-manifest.md)** walks the whole path end to end, from a raw GLB to a live embed, and explains the decision at each step.
+- **[Web component reference](./web-component.md)** documents every attribute on the `<agent-3d>` element `preview` emits.
+- **[`@three-ws/avatar-schema`](../packages/avatar-schema/README.md)** is the normative format if you are writing your own tooling.
+- The package source lives in [`packages/avatar-cli`](https://github.com/nirholas/three.ws/tree/main/packages/avatar-cli).
diff --git a/docs/guards.md b/docs/guards.md
new file mode 100644
index 000000000..d56fb8da8
--- /dev/null
+++ b/docs/guards.md
@@ -0,0 +1,180 @@
+# Repository guards
+
+This repository has no CI. GitHub Actions is unavailable on this account, so nothing runs your code when you open a pull request, and nothing blocks a bad merge. What protects the codebase instead is a set of small, fast, local guards wired into paths you cannot skip: the prebuild, the gate, the deploy build, and the git pre-push hook.
+
+This page explains what each guard protects, when it runs, and how to add one. Everything here is generated from [`data/guards.json`](https://github.com/nirholas/three.ws/blob/main/data/guards.json), which [`scripts/audit-guards.mjs`](https://github.com/nirholas/three.ws/blob/main/scripts/audit-guards.mjs) verifies on every gate run, so the stage column below cannot quietly go stale.
+
+Browse the same data as an interactive page at [/guards](/guards).
+
+---
+
+## The one rule
+
+**A guard that is not wired into an unavoidable path protects nothing.**
+
+Every failure this system exists to prevent had a checker that could have caught it. In several cases the checker already existed and simply was not run: eight working audit scripts sat in `scripts/` with no npm script at all, discoverable only by reading the directory. One of them stated in its own header that it was "wired as `npm run audit:console`" when no such script existed.
+
+So the rule for adding a guard is not "write a checker." It is: **write the checker, then give it a home in a stage that runs whether or not anyone remembers it.**
+
+---
+
+## The stages
+
+Guards are grouped by when they run, cheapest first.
+
+### Prebuild
+
+Runs on every `npm run build`, automatically.
+
+These regenerate the page index and then immediately re-audit it, so a page cannot be advertised in `data/pages.json` and unreachable in the same build. Nothing to invoke by hand.
+
+### Gate
+
+```bash
+npm run gate
+```
+
+The composite correctness sweep, and the one command to run before you call a feature done. It chains the CLAUDE.md truth check, the critical-path tests, and every offline audit.
+
+Order is deliberate: the merge-conflict scan runs first because it costs seconds while the test stage costs minutes, and a conflict marker is a syntax error that neither eslint nor vitest will catch.
+
+Do not pipe the gate through `head` or `tail`. Doing so closes the pipe early and npm exits with a broken-pipe error that looks exactly like a real failure. Redirect to a file instead:
+
+```bash
+npm run gate > /tmp/gate.log 2>&1; echo "exit=$?"
+```
+
+### Deploy build
+
+```bash
+npm run build:gcp
+```
+
+Guards that can only judge a finished artifact: whether a Node-only module leaked into the browser bundle, whether `dist/` holds every file the image needs, and whether every declared page resolves against the real route table.
+
+The order inside this chain is load-bearing. The frontend build empties `dist/`, so everything that writes into it must come after. `build:gcp` already encodes the correct order, and `npm run check:claude` verifies that the runbook in `CLAUDE.md` still describes it accurately.
+
+### Pre-push
+
+Runs automatically on `git push`. Installed into `.git/hooks` by [`scripts/setup-git-hooks.mjs`](https://github.com/nirholas/three.ws/blob/main/scripts/setup-git-hooks.mjs), which `postinstall` runs on every `npm install`, so a fresh clone is covered without a setup step.
+
+The hook checks the CLAUDE.md hard rules against **exactly the commits being pushed**, using the remote and local shas git hands it on stdin:
+
+```
+node scripts/check-rules.mjs --base <remote sha> --head <local sha>
+```
+
+That scoping is the whole design. Several agents share this working tree, so a check against the worktree would block your push over somebody else's half-finished file. Diffing two commits sees only your work. It also means a violation introduced and fixed within the same push range does not block, because the two-endpoint diff shows the net result.
+
+For the same reason the hook deliberately runs **only** this check, never `npm run gate`: the gate audits worktree state, and a requested push must not fail because of another agent's in-flight work.
+
+Emergency bypass:
+
+```bash
+SKIP_PUSH_CHECKS=1 git push
+```
+
+### On demand
+
+Guards that need a browser, live credentials, or a network round trip. They cannot sit on an automatic path without making it flaky, so each one has an npm script and you run it when you touch the area it covers.
+
+---
+
+## The guards
+
+Run `npm run audit:guards` to print the current count and per-stage breakdown. The full table below is the same data as [`data/guards.json`](https://github.com/nirholas/three.ws/blob/main/data/guards.json).
+
+### Correctness of the repo itself
+
+| Guard | Command | Protects |
+|---|---|---|
+| Merge-conflict markers | `npm run check:conflicts` | No unresolved conflict marker can be built or deployed. |
+| CLAUDE.md truth check | `npm run check:claude` | Every script, path, count, and runbook step named in CLAUDE.md matches the repo. |
+| Hard rules, diff scoped | `npm run check:rules` | The CLAUDE.md hard rules on the lines you changed. |
+| The guard registry | `npm run audit:guards` | Every guard is registered and every stage claim is true. |
+| Design-token ratchet | `npm run audit:tokens` | Hardcoded colour hexes cannot creep back past a committed baseline. |
+
+### Routing and pages
+
+| Guard | Command | Protects |
+|---|---|---|
+| Route documentation | `npm run audit:pages` | Every human-facing route is documented in `data/pages.json`. |
+| Declared pages resolve | `npm run check:pages` | Every page declared in `data/pages.json` is actually reachable. |
+| Routing and 404 model | `npm run audit:routes` | Catalog pages reachable, unknown paths reach the designed 404, no shadowed routes. |
+| API handlers export a body | `npm run audit:handlers` | No API handler ships empty or without an export. |
+| The `[hidden]` guard | `npm run audit:hidden-guard` | Every page resolves the CSS that makes `hidden` actually hide. |
+| Site link integrity | `npm run audit:links` | Every navigable target resolves to a real route or file. |
+
+### Docs and contracts
+
+| Guard | Command | Protects |
+|---|---|---|
+| Documentation integrity | `npm run audit:docs` | No dead relative link, no command naming a missing script, no package without a README. |
+| x402 endpoint catalog | `npm run audit:x402-catalog` | Every paid endpoint is documented, so a buyer can find it. |
+| MCP manifests | `npm run audit:mcp` | Every MCP manifest satisfies the official registry's rules, offline. |
+| MCP golden contracts | `npm run audit:mcp-golden` | Tool names, descriptions, and schemas against a committed snapshot. |
+| MCP safety annotations | `npm run audit:mcp-safety` | Declared `readOnlyHint` and `destructiveHint` match what handlers do. |
+| Cron schedule drift | `npm run check:cron-syntax`, `npm run check:cron-drift` | Valid expressions, and agreement with the running Cloud Scheduler jobs. |
+
+### Build and deploy
+
+| Guard | Command | Protects |
+|---|---|---|
+| Browser bundle purity | `npm run check:browser-graph` | No Node-only module leaks into the browser bundle. |
+| Build output shape | `npm run check:dist` | `dist/` contains every artifact the deploy expects. |
+| Deploy artifact preflight | `npm run audit:deploy` | The artifact failure classes that have taken production down. |
+| Cloud Build upload | `npm run check:gcloudignore` | What `gcloud builds submit` would actually upload. |
+
+### Runtime, assets, and money
+
+| Guard | Command | Protects |
+|---|---|---|
+| Console sweep | `npm run audit:console` | A clean browser console on every route, desktop and mobile. |
+| Image loading attributes | `npm run check:images` | Every JS-rendered image sets `loading` and `decoding`. |
+| Wardrobe catalog integrity | `npm run audit:garments` | Every garment validates and its GLB hash matches its manifest. |
+| Rig coverage | `npm run audit:rig-coverage` | How well the canonicalizer maps skeletons actually stored in production. |
+| Service wallet configuration | `npm run audit:service-wallets` | Balances, floors, and whether the advertised x402 fee payer matches the real secret. |
+| Fleet wallet flows | `npm run audit:wallet-flows` | Where the platform's SOL is, where it went, and whether any is leaking. |
+| Relayer balances | `npm run check:relayer-balances` | Every configured Solana signer is above its documented minimum. |
+| Delegation contract addresses | `npm run check:erc7710` | Every delegation-manager address is a deployed contract. |
+
+---
+
+## Design principles
+
+These are the rules the existing guards follow. A new guard that breaks one of them tends to get switched off, which leaves you worse off than having no guard at all.
+
+**1. Be diff scoped when the rule is new.** Thousands of tracked files predate the typography rules. A repo-wide sweep would produce a diff that buries every real change for a month, so `check-rules` reads added lines only. Your change is held to the bar; the legacy around it waits until someone touches it deliberately.
+
+**2. Never report a false positive.** A checker that cries wolf gets deleted by the first person it blocks. Several guards are deliberately conservative and say so in their headers: `check-merge-conflicts` only matches markers at column zero, because git only ever writes them there, and an unanchored search flags any file that merely *describes* a conflict.
+
+**3. Ratchet instead of demanding perfection.** For long-tail debt, count violations against a committed baseline and fail only when the count rises. `audit-token-drift` works this way, and it makes the debt strictly decreasing without ever requiring a big-bang cleanup.
+
+**4. Say what to do, not just what is wrong.** Every failure message names the file, the rule, and the fix. Compare "invalid stage" with the message `audit-guards` actually prints: *"claims it runs in `gate` but it is not in the gate chain. Wire it there, or correct the stage in data/guards.json."*
+
+**5. Record the incident in the header.** Every guard here opens with a dated note explaining the failure that created it. That is what stops a future maintainer from deleting a check that looks pointless, and it is why the `why` field is required in the registry.
+
+**6. Test the guard.** A checker with no test rots into a no-op silently, and you find out when something it was supposed to catch ships anyway. See [`tests/audit-guards.test.js`](https://github.com/nirholas/three.ws/blob/main/tests/audit-guards.test.js) and [`tests/check-merge-conflicts.test.js`](https://github.com/nirholas/three.ws/blob/main/tests/check-merge-conflicts.test.js) for the pattern: build a miniature repo in a temp directory, run the real script against it, and assert on both the pass and the fail.
+
+---
+
+## Adding a guard
+
+The full walkthrough, with a complete worked example you can run, is in the tutorial: [Write a repository guard](/docs/tutorials/write-a-guard).
+
+The short version:
+
+1. Write `scripts/check-<thing>.mjs`. Exit non-zero with an actionable message.
+2. Add an npm script for it in `package.json`.
+3. Add it to `data/guards.json` with the stage it runs in and the incident that motivated it.
+4. Wire it into that stage's chain.
+5. Write `tests/check-<thing>.test.js` covering the pass case and the fail case.
+6. Run `npm run audit:guards`. It will tell you if step 3 and step 4 disagree.
+
+---
+
+## Related
+
+- [Write a repository guard](/docs/tutorials/write-a-guard): the step-by-step tutorial.
+- [/guards](/guards): the same registry as a browsable page.
+- [Start here](/docs/start-here): what three.ws is, if you landed here first.
diff --git a/docs/nav.json b/docs/nav.json
index a511ecf2a..61636f52f 100644
--- a/docs/nav.json
+++ b/docs/nav.json
@@ -95,6 +95,22 @@
{
"label": "Everything on one page",
"path": "agent-abilities/FULL-ARTICLE"
+ },
+ {
+ "label": "Screen control (drive a computer)",
+ "path": "agent-screen-control"
+ },
+ {
+ "label": "The agent shell",
+ "path": "agent-shell"
+ },
+ {
+ "label": "Persona Hub",
+ "path": "persona-hub"
+ },
+ {
+ "label": "Agent labor market",
+ "path": "labor-market"
}
]
},
@@ -196,6 +212,38 @@
{
"label": "Object Library (CC0 props)",
"path": "object-library"
+ },
+ {
+ "label": "Avatar Studio",
+ "path": "character-studio"
+ },
+ {
+ "label": "Additive wardrobe",
+ "path": "avatar-wardrobe"
+ },
+ {
+ "label": "Selfie to avatar reconstruction",
+ "path": "avatar-reconstruction"
+ },
+ {
+ "label": "Motion Swap (swap yourself in video)",
+ "path": "motion-swap"
+ },
+ {
+ "label": "Procedural animation",
+ "path": "procedural-animation"
+ },
+ {
+ "label": "Background generation & notifications",
+ "path": "forge-background-generation"
+ },
+ {
+ "label": "Forge-Off (community voting)",
+ "path": "forge-off"
+ },
+ {
+ "label": "Avatar thumbnails",
+ "path": "avatar-thumbnails"
}
]
},
@@ -248,6 +296,14 @@
{
"title": "Trading & markets",
"links": [
+ {
+ "label": "Trading hub (start here)",
+ "path": "trading-hub"
+ },
+ {
+ "label": "Risk acknowledgment",
+ "path": "risk-acknowledgment"
+ },
{
"label": "Coin Autopilot",
"path": "autopilot"
@@ -327,6 +383,46 @@
{
"label": "Coin & market pages",
"path": "coin-pages"
+ },
+ {
+ "label": "Agent Sniper",
+ "path": "agent-sniper"
+ },
+ {
+ "label": "Trading surfaces (Radar, Mission Control)",
+ "path": "trading-surfaces"
+ },
+ {
+ "label": "Arenas, Theater & Vaults",
+ "path": "trading-arenas"
+ },
+ {
+ "label": "Oracle (the conviction engine)",
+ "path": "oracle"
+ },
+ {
+ "label": "Meta-Allocator",
+ "path": "meta-allocator"
+ },
+ {
+ "label": "The three.ws launchpad",
+ "path": "native-launchpad"
+ },
+ {
+ "label": "Memetic Launcher",
+ "path": "memetic-launcher"
+ },
+ {
+ "label": "Repo to coin launcher",
+ "path": "pump-launch-repos"
+ },
+ {
+ "label": "Robinhood Chain markets",
+ "path": "robinhood-chain-markets"
+ },
+ {
+ "label": "The 10 SOL trading experiment",
+ "path": "trading-experiment"
}
]
},
@@ -405,6 +501,22 @@
{
"label": "Layers",
"path": "layers"
+ },
+ {
+ "label": "The social layer",
+ "path": "social-layer"
+ },
+ {
+ "label": "Agora (agent + human economy)",
+ "path": "agora"
+ },
+ {
+ "label": "Trust primitives",
+ "path": "trust-primitives"
+ },
+ {
+ "label": "Onboarding tiers (Simple / Everything)",
+ "path": "onboarding-tier"
}
]
},
@@ -526,6 +638,66 @@
{
"label": "AgenC",
"path": "agenc"
+ },
+ {
+ "label": "The autonomous economy",
+ "path": "autonomous-economy"
+ },
+ {
+ "label": "Money map",
+ "path": "money-map"
+ },
+ {
+ "label": "Economy heartbeat",
+ "path": "economy-heartbeat"
+ },
+ {
+ "label": "The master wallet",
+ "path": "economy-master"
+ },
+ {
+ "label": "Closed-loop x402 ring economy",
+ "path": "x402-ring-economy"
+ },
+ {
+ "label": "x402 distribution & listings",
+ "path": "x402-distribution"
+ },
+ {
+ "label": "Paid plans (USDC, SOL, $THREE)",
+ "path": "plan-checkout"
+ },
+ {
+ "label": "Paid API provider listing",
+ "path": "pay-skills-listing"
+ },
+ {
+ "label": "Vanity addresses",
+ "path": "vanity"
+ },
+ {
+ "label": "Hold-to-access",
+ "path": "hold-to-access"
+ },
+ {
+ "label": "$THREE micro-buy loop",
+ "path": "three-microbuy"
+ },
+ {
+ "label": "Token-gated 3D embeds",
+ "path": "token-gated-3d-embeds"
+ },
+ {
+ "label": "Financial controls & audit",
+ "path": "financial-controls"
+ },
+ {
+ "label": "Real-funds risk acknowledgment",
+ "path": "risk-acknowledgment"
+ },
+ {
+ "label": "3D pipeline (pay-per-stage x402)",
+ "path": "3d-pipeline"
}
]
},
@@ -717,6 +889,18 @@
"label": "Widget reference",
"href": "/docs/widgets",
"external": true
+ },
+ {
+ "label": "ui-juice (game-feel library)",
+ "path": "ui-juice"
+ },
+ {
+ "label": "Shared utilities",
+ "path": "shared-utilities"
+ },
+ {
+ "label": "Avatar CLI",
+ "path": "avatar-cli"
}
]
},
@@ -742,6 +926,50 @@
{
"label": "BNB vault",
"path": "bnb-vault"
+ },
+ {
+ "label": "MCP: agent wallet server",
+ "path": "mcp-agent"
+ },
+ {
+ "label": "MCP: 3D Studio server",
+ "path": "mcp-3d-studio"
+ },
+ {
+ "label": "MCP: x402 Bazaar server",
+ "path": "mcp-x402-bazaar"
+ },
+ {
+ "label": "MCP on the Cloudflare edge",
+ "path": "pump-fun-mcp-edge"
+ },
+ {
+ "label": "AR in ChatGPT",
+ "path": "chatgpt-ar"
+ },
+ {
+ "label": "The 3D Studio custom GPT",
+ "path": "chatgpt-3d-studio-gpt"
+ },
+ {
+ "label": "OKX.AI marketplace",
+ "path": "okx-marketplace"
+ },
+ {
+ "label": "BNB Chain world",
+ "path": "bnb-world"
+ },
+ {
+ "label": "Sketchfab showcase",
+ "path": "sketchfab"
+ },
+ {
+ "label": "News-feed syndication",
+ "path": "syndication"
+ },
+ {
+ "label": "NVIDIA Inception",
+ "path": "nvidia-inception"
}
]
},
@@ -868,6 +1096,38 @@
{
"label": "Changelog",
"path": "changelog"
+ },
+ {
+ "label": "Internationalization (i18n)",
+ "path": "i18n"
+ },
+ {
+ "label": "Asset pipeline (FBX, GLB, JSON)",
+ "path": "3d-asset-pipeline"
+ },
+ {
+ "label": "Design tokens",
+ "path": "DESIGN-TOKENS"
+ },
+ {
+ "label": "Vanity protocol spec",
+ "path": "PROTOCOL-vanity"
+ },
+ {
+ "label": "Catalog quality gate",
+ "path": "seed-quality"
+ },
+ {
+ "label": "Publisher rights (news reader)",
+ "path": "news-rights"
+ },
+ {
+ "label": "Pump.fun platform fee",
+ "path": "pump-platform-fee"
+ },
+ {
+ "label": "Demo routes",
+ "path": "demo-routes"
}
]
}
diff --git a/docs/seed-quality.md b/docs/seed-quality.md
index 914b271a3..df09b9d17 100644
--- a/docs/seed-quality.md
+++ b/docs/seed-quality.md
@@ -165,7 +165,7 @@ import { evaluateSeedAsset, inProcessTransport } from './api/_lib/seed-quality.j
const verdict = await evaluateSeedAsset({
glbBuffer, // the bytes, for stage 1
- glbUrl: 'https://cdn.three.ws/forge/abc.glb', // a public URL, for the renderer
+ glbUrl: 'https://three.ws/cdn/forge/abc.glb', // a public URL, for the renderer
prompt: 'a knight in weathered plate armour',
category: 'avatar',
transport: inProcessTransport(), // omit for a mesh-only run
diff --git a/docs/trading-hub.md b/docs/trading-hub.md
new file mode 100644
index 000000000..ec7f0c495
--- /dev/null
+++ b/docs/trading-hub.md
@@ -0,0 +1,110 @@
+# The trading hub
+
+The autonomous trading system on three.ws grew to roughly twenty pages. Each one
+was good on its own and none of them was a front door: you could only reach the
+arena, the experiments board, or the smart-money radar if you already knew the
+URL. The trading hub is that front door.
+
+Page: [/trading](https://three.ws/trading)
+
+It answers three questions in order, which is the order people actually ask them:
+
+1. **Is the fleet working right now?** Live vitals, read straight off the running
+ worker.
+2. **Is it any good?** The agent scoreboard, realized profit and loss only.
+3. **Where do I go next?** Every trading surface and every doc, in one map.
+
+## What the page shows
+
+### Fleet vitals
+
+Six tiles, all from `GET /api/sniper/status`, refreshed every 30 seconds:
+
+| Tile | Meaning |
+|---|---|
+| **Mode** | `Live` means real funds and real broadcasts. `Simulate` means real quotes with no broadcast and zero spend. |
+| **Strategies armed** | How many independent agents are armed. Each has its own wallet, rules, and budget. |
+| **Open positions** | Held right now. These are not counted as profit anywhere on the page. |
+| **Launch feed** | Whether the worker is receiving launches, and when the last one arrived. |
+| **Funded to date** | Total SOL moved from the funding wallet into agent wallets, plus when the last top-up happened. |
+| **Uptime** | How long the current worker process has been running. |
+
+**Why the feed is reported separately from the process.** A worker can be
+beating steadily while its launch feed has gone quiet. On a naive check that
+looks identical to healthy, and it means the fleet is seeing nothing and will
+therefore trade nothing. The hub calls a silent feed out as its own state rather
+than folding it into one green light. The same reasoning applies to uptime: a
+process that has been running for many days is running whatever code it booted
+with, which is not necessarily the code in the repository.
+
+### Agent scoreboard
+
+From `GET /api/sniper/leaderboard`. One row per agent that has closed at least
+one trade, showing realized SOL, return on investment, win rate, and a sparkline
+of its cumulative result.
+
+The rule that matters: **only closed trades count.** An open position is never
+shown as profit, no matter how far up it is. An agent that is armed but has not
+finished a round trip shows nothing rather than a flattering unrealized number.
+When no agent has closed a trade in the window, the section says so and links to
+the experiments board so you can see what each strategy is waiting for.
+
+### How a trade happens
+
+A static explainer of the five gates every entry passes through: signal, score,
+firewall, sizing, and the laddered exit. This mirrors the real order enforced in
+the worker. The important property is that a gate which cannot prove a coin is
+safe blocks the trade rather than guessing: the firewall simulates a real buy and
+sell round trip on-chain before anything is broadcast, and a sell that reverts
+means the coin cannot be exited, so the trade never happens.
+
+### Every trading surface, and Learn the system
+
+Two directories covering the product surfaces (arena, experiments, leaderboard,
+trade feed, smart money, radar, copy trading, strategy lab, autopilot, vaults,
+coin intelligence, trader card) and the documentation (agent sniper, the arming
+tutorial, the risk policy, the risk acknowledgment, custody, earned autonomy,
+the market-making copilot, and strategy objects).
+
+These live as data in [`src/trading-hub-data.js`](../src/trading-hub-data.js)
+rather than as inline markup, so the set is enumerable and a test can assert
+every link resolves. A renamed page fails the test instead of quietly becoming a
+dead card.
+
+## Where the numbers come from
+
+```bash
+# Fleet vitals
+curl -s https://three.ws/api/sniper/status | jq '{mode, strategies, openPositions, feedLive, bootAt}'
+
+# The scoreboard, all time, ranked by score
+curl -s 'https://three.ws/api/sniper/leaderboard?window=all&sort=score' \
+ | jq '.leaderboard[] | {rank, agent_name, closed, wins, realized_pnl_sol, roi_pct}'
+```
+
+Both endpoints are public and read-only. The page calls nothing else, holds no
+credentials, and writes nothing.
+
+## Design notes
+
+- **No seeded or sample data.** Every number is fetched. When an endpoint fails,
+ the page renders an error state that says the data is unavailable and keeps
+ retrying, rather than showing a stale or invented figure. A dash is used for a
+ value that is genuinely unknown, never a zero.
+- **Polling pauses when the tab is hidden** and resumes on focus, so a
+ backgrounded tab does not keep hitting the API for numbers nobody is reading.
+- **The sparkline refuses to lie.** With fewer than two data points it renders
+ nothing at all instead of a flat line that would imply a result the data does
+ not contain.
+- **Reduced motion is honored.** The pulsing status dot, the loading shimmer, and
+ the card lift are all disabled under `prefers-reduced-motion`.
+
+## Related
+
+- [Agent Sniper](./agent-sniper.md), what the autonomous trader is and how it is wired
+- [The 10 SOL experiment](./trading-experiment.md), the full risk policy
+- [Risk acknowledgment](./risk-acknowledgment.md), read before arming real funds
+- [Custody model](./custody.md), how an agent holds its own keys
+- [Earned autonomy](./sniper-autonomy.md), how an agent earns more freedom
+- [Trading Copilot](./trading-copilot.md), the fair-launch market maker
+- Tutorial: [Arm an autonomous sniper](./tutorials/arm-an-agent-sniper.md)
diff --git a/docs/tutorials/agent-spending-envelope.md b/docs/tutorials/agent-spending-envelope.md
index b7dbe535e..c6af158f8 100644
--- a/docs/tutorials/agent-spending-envelope.md
+++ b/docs/tutorials/agent-spending-envelope.md
@@ -198,7 +198,7 @@ The response is `201` and contains the token once:
"created_at": "2026-07-30T04:00:00.000Z"
},
"token": "pss_0b2f..._4f8a...",
- "note": "Store this token securely - it is shown once and cannot be recovered."
+ "note": "Store this token securely. It is shown once and cannot be recovered."
}
```
diff --git a/docs/tutorials/monetize-mcp-server.md b/docs/tutorials/monetize-mcp-server.md
new file mode 100644
index 000000000..b785028ca
--- /dev/null
+++ b/docs/tutorials/monetize-mcp-server.md
@@ -0,0 +1,309 @@
+# Monetize an MCP Server: Charge per Tool Call with x402
+
+By the end of this tutorial you will have an MCP server that **charges other people's AI agents** for its tools. A caller invokes a tool, the server answers with a machine-readable price, the caller pays in USDC on Solana, and only then does the work run. No API keys, no signup page, no billing relationship to maintain.
+
+The finished code is in [`examples/paid-mcp-server`](https://github.com/nirholas/three.ws/tree/main/examples/paid-mcp-server), and every snippet below is taken from it. The wider argument for pricing tools this way is in the post [How to monetize an MCP server](/blog/monetize-mcp-server-x402-paid-tools).
+
+**What you'll build:**
+
+- An MCP server over stdio with two tools: one free, one paid
+- A real paid capability (fetch a glTF/GLB model and return a structural report with optimization findings)
+- The x402 payment loop inside `tools/call`, using the same wiring three.ws runs in production
+- Discovery metadata so agents shopping for paid services can find your tool
+- A test suite that proves the tool never returns its product without payment
+
+**Prerequisites:**
+
+- Node.js 20+
+- A Solana address to receive USDC. You do not need SOL in it: settlement is facilitator-broadcast and the transaction fee is paid by a sponsor.
+- An MCP client to test with (Claude Code, Claude Desktop, Cursor, or the MCP Inspector)
+
+**Time:** about 40 minutes.
+
+---
+
+## 1. Decide what is worth charging for
+
+A paid tool that wraps a free public API is a toll booth on an open road, and agents route around it as soon as one of them reads the docs. Put your idea through three tests:
+
+1. **Can the caller do it locally?** If the model can answer from context, it will, and it should. Charge for what needs your data, your credentials, your hardware, or your index.
+2. **Does each call cost you something?** Marginal cost is what makes per-call pricing defensible rather than extractive.
+3. **Is the output structured?** Your buyer is a language model. JSON it can reason over beats prose it has to parse.
+
+This tutorial charges for **model inspection**: fetch a glTF or GLB by URL, parse the container, and report scene structure, geometry totals, declared extensions, and a prioritized list of optimization findings. It passes all three tests. The caller cannot fetch and parse a 400 KB binary in-context, the work costs bandwidth and CPU, and the result is a JSON report.
+
+## 2. Scaffold
+
+```bash
+mkdir paid-mcp-server && cd paid-mcp-server
+npm init -y && npm pkg set type=module
+npm install @modelcontextprotocol/sdk @x402/core @x402/mcp @x402/svm @x402/extensions zod
+```
+
+Five packages, all real: the MCP SDK for the protocol, and the `@x402/*` family for payment. Nothing here is a three.ws-specific dependency, so the pattern transfers to any MCP server you already run.
+
+## 3. Understand the payment convention before you write it
+
+On plain HTTP, x402 uses the `402` status and an `X-PAYMENT` header. MCP has no status codes, so the transport spec puts the same handshake inside the message:
+
+| Step | Where it lives |
+| --- | --- |
+| Unpaid call | An ordinary `tools/call` with no payment metadata |
+| Challenge | The tool result carries a `PaymentRequired` envelope quoting `accepts[]` |
+| Payment | The client retries the same call with the signed payload in `_meta["x402/payment"]` |
+| Receipt | The settlement record returns in `_meta["x402/payment-response"]` |
+
+x402-capable clients run that loop with no user interaction. Clients that cannot pay simply see the challenge, which is why the free orientation tool in step 6 matters.
+
+## 4. Wire the payment layer
+
+Create `src/payments.js`. One resource server per process verifies and settles; each paid tool gets a wrapper around its handler.
+
+```js
+import { HTTPFacilitatorClient, x402ResourceServer } from '@x402/core/server';
+import { declareDiscoveryExtension } from '@x402/extensions/bazaar';
+import { createPaymentWrapper, createToolResourceUrl } from '@x402/mcp';
+import { registerExactSvmScheme } from '@x402/svm/exact/server';
+
+const NETWORK_SOLANA_MAINNET = 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp';
+const DEFAULT_FACILITATOR = 'https://facilitator.payai.network';
+
+let resourceServerPromise = null;
+
+export function getResourceServer() {
+ if (resourceServerPromise) return resourceServerPromise;
+ resourceServerPromise = (async () => {
+ const facilitator = new HTTPFacilitatorClient({
+ url: process.env.X402_FACILITATOR_URL || DEFAULT_FACILITATOR,
+ });
+ const server = new x402ResourceServer([facilitator]);
+ registerExactSvmScheme(server, {});
+ await server.initialize();
+ return server;
+ })();
+ return resourceServerPromise;
+}
+```
+
+Then the wrapper each paid tool uses:
+
+```js
+export function paid(config, handler) {
+ const { toolName, description, priceUsd, inputSchema, example } = config;
+ let wrapperPromise = null;
+
+ async function getWrapper() {
+ if (wrapperPromise) return wrapperPromise;
+ wrapperPromise = (async () => {
+ const resourceServer = await getResourceServer();
+ const resourceUrl = createToolResourceUrl(toolName);
+ const accepts = await resourceServer.buildPaymentRequirementsFromOptions(
+ [
+ {
+ scheme: 'exact',
+ network: NETWORK_SOLANA_MAINNET,
+ payTo: process.env.X402_PAY_TO_SOLANA,
+ price: priceUsd,
+ maxTimeoutSeconds: 60,
+ extra: { name: 'USDC', decimals: 6 },
+ },
+ ],
+ { resourceUrl },
+ );
+ const discovery = declareDiscoveryExtension({ toolName, description, transport: 'stdio', inputSchema, example });
+ const wrap = createPaymentWrapper(resourceServer, {
+ accepts,
+ resource: { url: resourceUrl, description, mimeType: 'application/json' },
+ extensions: discovery,
+ });
+ return wrap(async (args) => {
+ const result = await handler(args);
+ return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
+ });
+ })();
+ return wrapperPromise;
+ }
+
+ return async (args, context) => (await getWrapper())(args, context);
+}
+```
+
+Two decisions in there are worth stealing:
+
+- **The wiring is lazy.** Registration touches no secrets, so `tools/list` works with no environment set and your tests do not need a wallet.
+- **Discovery metadata rides along.** `declareDiscoveryExtension` is what puts your tool in front of agents shopping for paid capabilities. A tool whose description says "paid endpoint" is a tool nobody picks.
+
+## 5. Write the work
+
+The paid tool has to be genuinely worth its price. The full implementation lives in [`src/gltf.js`](https://github.com/nirholas/three.ws/blob/main/examples/paid-mcp-server/src/gltf.js); the important parts are the guard and the report.
+
+**Guard the fetch before any byte moves.** A paid endpoint that fetches user-supplied URLs is an internal-network probe unless it refuses private space:
+
+```js
+export async function assertPublicHttpsUrl(rawUrl) {
+ const url = new URL(rawUrl);
+ if (url.protocol !== 'https:') throw new ModelError('insecure_url', 'Only https:// model URLs are accepted.');
+ const records = await lookup(url.hostname, { all: true, verbatim: true });
+ for (const record of records) {
+ if (isPrivateAddress(record.address, record.family)) {
+ throw new ModelError('blocked_host', `${url.hostname} resolves to a private address.`);
+ }
+ }
+ return url;
+}
+```
+
+Loopback, RFC 1918, link-local (including the cloud metadata address `169.254.169.254`), and carrier-grade NAT are all rejected. Redirects are refused outright, the response is capped at 32 MB checked twice, and the fetch has a 20 second timeout.
+
+**Report counts, do not estimate them.** Vertices and triangles come from accessor counts, so an indexed mesh reports its real triangle total:
+
+```js
+for (const primitive of mesh.primitives || []) {
+ const position = primitive.attributes?.POSITION;
+ if (position !== undefined) vertices += accessors[position].count || 0;
+ if (primitive.indices !== undefined) triangles += Math.floor(accessors[primitive.indices].count / 3);
+}
+```
+
+**Turn counts into findings.** Numbers alone are a data dump. Each finding names the problem, the evidence, and the fix, which is the part a caller is actually buying:
+
+```json
+{
+ "severity": "low",
+ "issue": "No geometry compression",
+ "detail": "The model declares neither KHR_draco_mesh_compression nor EXT_meshopt_compression.",
+ "fix": "Run gltf-transform with meshopt compression. Typical saving is 40 to 70 percent of the geometry payload."
+}
+```
+
+## 6. Register one free tool and one paid tool
+
+```js
+import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
+import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
+
+const server = new McpServer(
+ { name: 'paid-mcp-server', version: '0.1.0' },
+ { capabilities: { tools: { listChanged: false } }, instructions: SERVER_INSTRUCTIONS },
+);
+
+server.registerTool('getting_started', {
+ title: 'Getting started (free)',
+ description: 'FREE. Prices, the payment flow, and how to call the paid tool.',
+ inputSchema: {},
+ annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: false },
+}, gettingStartedHandler);
+
+server.registerTool('inspect_model', {
+ title: 'Inspect a 3D model ($0.002)',
+ description: PAID_TOOL_DESCRIPTION,
+ inputSchema: { url: z.string().url().describe('Public https:// URL of a .glb or .gltf file.') },
+ annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: true },
+}, paid({ toolName: 'inspect_model', priceUsd: '$0.002', description: PAID_TOOL_DESCRIPTION, inputSchema }, doTheWork));
+
+await server.connect(new StdioServerTransport());
+```
+
+**Ship the free tool.** It costs nothing to run and it is consistently the first tool a new caller invokes. It answers three questions a client cannot otherwise resolve without spending money: what does this server do, what does each tool cost, and how do I pay.
+
+**Put the price in the description.** The tool description is what a model reads when deciding whether to call. `$0.002` in plain text there prevents a surprised caller.
+
+**Annotate honestly.** `readOnlyHint` and `destructiveHint` are what annotation-aware clients use to decide whether to prompt before running a tool.
+
+## 7. Get the ordering right
+
+This is the part that separates a working paid server from an embarrassing one:
+
+1. **Verify** the payment. Nothing has moved yet.
+2. **Run the work.** Only now.
+3. **Settle**, and return the receipt with the result.
+
+The wrapper enforces the ordering, but you have to hold up your end inside the handler. In this example **every failure path throws**:
+
+```js
+async ({ url }) => {
+ // Every failure throws, which skips settlement. A bad URL, an unreachable host,
+ // or a corrupt file costs the caller nothing and can be retried with the same
+ // signed payment.
+ const buffer = await fetchModel(url);
+ return inspectModel(buffer, { sourceUrl: url });
+}
+```
+
+Swallowing an error into a `{ ok: false }` response would settle the payment and charge for nothing. Charge only when you produced the thing you sold.
+
+## 8. Run it
+
+```bash
+X402_PAY_TO_SOLANA=<your-solana-address> node src/index.js
+```
+
+Then point a client at it:
+
+```bash
+claude mcp add model-inspect \
+ --env X402_PAY_TO_SOLANA=<your-solana-address> \
+ -- node /absolute/path/to/src/index.js
+```
+
+Ask the assistant to call `getting_started` and it answers for free. Ask it to inspect a model and, if it has no wallet, it gets the challenge instead of the report. This is the real envelope the example returns:
+
+```json
+{
+ "x402Version": 2,
+ "error": "Payment required to access this tool",
+ "resource": { "url": "mcp://tool/inspect_model", "mimeType": "application/json" },
+ "accepts": [
+ {
+ "scheme": "exact",
+ "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
+ "amount": "2000",
+ "payTo": "<your-solana-address>",
+ "maxTimeoutSeconds": 60,
+ "extra": { "name": "USDC", "decimals": 6, "feePayer": "..." }
+ }
+ ],
+ "extensions": { "bazaar": { "info": { "input": { "type": "mcp", "toolName": "inspect_model" } } } }
+}
+```
+
+`amount` is in atomic units of 6-decimal USDC, so `"2000"` is $0.002.
+
+## 9. Test the guarantee, not just the happy path
+
+The property that matters is that the product never escapes without payment. Assert exactly that, with a real MCP client over an in-memory transport:
+
+```js
+const result = await client.callTool({
+ name: 'inspect_model',
+ arguments: { url: 'https://three.ws/avatars/cesium-man.glb' },
+});
+const serialized = JSON.stringify(result);
+assert.ok(!serialized.includes('"triangles"'), 'an unpaid call must not leak the paid report');
+assert.match(serialized, /payment|402|accepts/i, 'an unpaid call should quote what it wants');
+```
+
+The example ships 15 tests covering the parser, the geometry math, the findings engine, the SSRF guard, the tool list, the free tool payload, and the guarantee above:
+
+```bash
+npm test
+```
+
+## 10. Buy from it
+
+The last mile is proving an assistant can find, price, and pay for your tool with no human in the loop. Give a client a self-custodial wallet:
+
+```bash
+claude mcp add x402 --env SOLANA_SECRET_KEY=<base58> -- npx -y @three-ws/x402-mcp
+```
+
+That connector can search the bazaar, read your challenge without paying (`inspect_endpoint`), and settle (`pay_and_call`) under a `MAX_PAY_USD` ceiling with a confirmation step. Watch it read your price before it commits: that is exactly how a real buyer will behave.
+
+## Where to go next
+
+- [Meter any API with the x402-server SDK](/tutorials/x402-server-sdk): the same idea for plain HTTP handlers.
+- [Build a paid x402 endpoint your agent calls](/tutorials/paid-x402-endpoint): the long-form HTTP walkthrough with production deployment.
+- [Pay for an x402 service](/tutorials/pay-for-x402-service): the buyer side, end to end.
+- [Build an MCP server for your agent](/tutorials/mcp-server-for-your-agent): the unpaid MCP basics, if you are new to the protocol.
+- [The x402 bazaar MCP server](/docs/mcp-x402-bazaar): how discovery works and what it indexes.
+- [How to monetize an MCP server](/blog/monetize-mcp-server-x402-paid-tools): the design argument and the pricing calibration table.
diff --git a/docs/tutorials/ship-an-avatar-manifest.md b/docs/tutorials/ship-an-avatar-manifest.md
new file mode 100644
index 000000000..32af840c8
--- /dev/null
+++ b/docs/tutorials/ship-an-avatar-manifest.md
@@ -0,0 +1,308 @@
+# Ship an Avatar Manifest
+
+By the end of this tutorial you will have taken a raw `.glb` file and turned it into a signed-off, hash-anchored avatar manifest, embedded that avatar on a real page, and added a check to your release process that fails the build if the model ever silently changes underneath you.
+
+The thing you are building is small: a JSON file. What matters is what it buys you. A manifest turns "some GLB on a CDN" into a portable, verifiable identity: one document that names the avatar, points at its mesh, records the exact bytes of that mesh, declares which skeleton it rigs to, and says who owns it. Any tool that reads the schema can render it, verify it, or refuse it. That is the difference between an asset and an artifact.
+
+**What you'll build:**
+
+- A schema-valid avatar manifest scaffolded from a wallet address and a mesh file
+- A working embed of that avatar on a plain HTML page, no build step
+- A release gate that detects a tampered or re-exported mesh before it ships
+- An understanding of every field in the manifest, and which optional ones are worth adding
+
+**Prerequisites:**
+
+- Node 18 or newer, and `curl`. That is the whole toolchain.
+- No account, no API key, no wallet signature. Every command here runs offline against local files.
+- Optional: the [Avatar CLI reference](../avatar-cli.md) is the exhaustive flag-by-flag contract. This tutorial is the guided path through it.
+
+Every command below is real and runs as written.
+
+---
+
+## Step 1 - Get a mesh
+
+You need a humanoid `.glb`. Use one of ours to follow along exactly:
+
+```bash
+curl -sLO https://three.ws/avatars/michelle.glb
+ls -lh michelle.glb
+```
+
+```
+-rw-r--r-- 1 you you 830K michelle.glb
+```
+
+If you have your own model, point at that instead. The CLI accepts `.glb`, `.gltf`, and `.vrm`, and the extension decides the `format` recorded in the manifest.
+
+The one property your mesh needs is a humanoid skeleton. three.ws retargets its animation library onto any rig whose bone names it recognizes (Mixamo, Avaturn, Ready Player Me, VRM, Daz, MakeHuman, and more), so a rigged character from almost any pipeline will walk and gesture without extra work.
+
+---
+
+## Step 2 - Decide where the mesh will live
+
+This is the step people skip, and it is the one that breaks the embed.
+
+A manifest points at its mesh by URI. If that URI is a path on your laptop, the manifest is still valid, still hashes correctly, and is completely useless to a browser, which cannot read `file:///home/you/michelle.glb` from a web page.
+
+So decide now: what public URL will serve these bytes? Any static host works, because a GLB is just a file. Object storage, your own CDN, a `public/` directory in your app, or three.ws itself. For this walkthrough we use the copy already served at:
+
+```
+https://three.ws/avatars/michelle.glb
+```
+
+Confirm whatever URL you pick actually serves the file, before it goes in a manifest:
+
+```bash
+curl -s -o /dev/null -w '%{http_code} %{content_type} %{size_download}\n' \
+ https://three.ws/avatars/michelle.glb
+```
+
+```
+200 model/gltf-binary 849756
+```
+
+Two things to check in that output: the status is `200`, and the size matches the file you hashed. A CDN that silently serves an HTML error page returns `200` too, which is exactly the failure the hash gate in Step 6 is designed to catch.
+
+---
+
+## Step 3 - Scaffold the manifest
+
+Install the CLI and scaffold:
+
+```bash
+npm install -g @three-ws/avatar-cli
+
+three-ws-avatar init \
+ --owner eip155:1:0x742d35Cc6634C0532925a3b844Bc454e4438f44e \
+ --name "Nicholas" \
+ --mesh ./michelle.glb \
+ --skeleton mixamo \
+ --mesh-uri https://three.ws/avatars/michelle.glb \
+ --out manifest.json
+```
+
+```
+✔ wrote /home/you/manifest.json
+ • id eip155:1:0x742d35Cc6634C0532925a3b844Bc454e4438f44e
+ • skeleton mixamo
+ • mesh glb · 830 kB · sha256:28d788538f7b…
+ › next: three-ws-avatar preview manifest.json
+```
+
+Three flags carry real decisions:
+
+**`--owner`** takes a [CAIP-10](https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-10.md) account id, which is `chain:reference:address`. A bare `0x…` address is accepted as shorthand and expands to `eip155:1` (Ethereum mainnet). Spell out the chain when the avatar belongs anywhere else, so the manifest is unambiguous on its own.
+
+**`--skeleton`** declares the rig convention, and it is the field that decides whether animation works. `mixamo` is correct for `michelle.glb`. The valid values are `avaturn`, `mixamo`, `rpm`, `vrm-humanoid`, and `custom`. Guessing here produces a manifest that validates and an avatar that moves wrong, which is worse than an error. If you did not rig the model yourself, check where it came from before choosing.
+
+**`--mesh-uri`** is the public URL from Step 2. Leave it out and the URI falls back to your local path.
+
+Note what you did *not* pass: the hash. `init` reads the mesh and computes SHA-256 itself, so the manifest cannot disagree with the file it was built from at the moment it was built.
+
+---
+
+## Step 4 - Read what it wrote
+
+```bash
+cat manifest.json
+```
+
+```json
+{
+ "schemaVersion": 1,
+ "id": "eip155:1:0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
+ "name": "Nicholas",
+ "mesh": {
+ "uri": "https://three.ws/avatars/michelle.glb",
+ "sha256": "28d788538f7b22b8e00c1d715fffc380bb06a304613d522c20523d3d6ff79bc2",
+ "format": "glb",
+ "kBytes": 830
+ },
+ "skeleton": "mixamo",
+ "owner": {
+ "chain": "eip155:1",
+ "address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
+ },
+ "createdAt": "2026-07-30T19:23:34.595Z"
+}
+```
+
+The `sha256` is the load-bearing field. `uri` says where the mesh is; `sha256` says what it must be. Those are different promises, and only the second one survives someone re-uploading a different model to the same path.
+
+The `id` was derived from the owner account. Had you passed `--name "nick.eth"`, the CLI would have recognized the name service handle and used that as the id instead, because the schema accepts either form. An explicit `--id` overrides both.
+
+---
+
+## Step 5 - Validate, and see what failure looks like
+
+```bash
+three-ws-avatar validate manifest.json
+```
+
+```
+✔ manifest.json is valid
+```
+
+That is unsurprising, since `init` validates before writing. The command earns its keep on manifests that were hand-edited, generated by something else, or committed six months ago. Break one deliberately to see the output you will eventually get for real:
+
+```bash
+printf '{"schemaVersion":1,"id":"broken","name":"Broken"}' > broken.json
+three-ws-avatar validate broken.json
+echo "exit: $?"
+```
+
+```
+✖ broken.json is invalid (7 errors)
+ • / must have required property 'mesh'
+ • / must have required property 'skeleton'
+ • / must have required property 'owner'
+ • / must have required property 'createdAt'
+ • /id must match pattern "^[a-z0-9-]{3,8}:[a-zA-Z0-9_-]{1,32}:[a-zA-Z0-9]{1,64}$"
+ • /id must match pattern "^[a-z0-9][a-z0-9-]{0,62}\.(eth|ws|sol)$"
+ • /id must match a schema in anyOf
+```
+
+```
+exit: 1
+```
+
+Read the `id` errors as one finding, not three. The schema allows a CAIP-10 account *or* a name service handle, so an invalid id fails both branches and then fails the `anyOf` that combined them. `"broken"` is neither.
+
+The non-zero exit is what makes this usable in a script, which is Step 6.
+
+---
+
+## Step 6 - Put it on a page
+
+```bash
+three-ws-avatar preview manifest.json
+```
+
+```
+Nicholas (eip155:1:0x742d35Cc6634C0532925a3b844Bc454e4438f44e)
+
+› resolver url
+https://three.ws/a/eip155%3A1%3A0x742d35Cc6634C0532925a3b844Bc454e4438f44e
+
+› web component (loader registers <agent-3d>)
+<script type="module" src="https://three.ws/agent-3d/latest/agent-3d.js"></script>
+<agent-3d src="https://three.ws/avatars/michelle.glb" style="width:400px;height:600px"></agent-3d>
+
+› iframe (zero-install)
+<iframe src="https://three.ws/a/eip155%3A1%3A0x742d35Cc6634C0532925a3b844Bc454e4438f44e" width="480" height="640" frameborder="0" allow="camera; microphone; xr-spatial-tracking"></iframe>
+```
+
+Take the web-component block and save it as `index.html`:
+
+```html
+<!doctype html>
+<meta charset="utf-8">
+<title>My avatar</title>
+<body style="margin:0;background:#111">
+ <script type="module" src="https://three.ws/agent-3d/latest/agent-3d.js"></script>
+ <agent-3d src="https://three.ws/avatars/michelle.glb" style="width:400px;height:600px"></agent-3d>
+</body>
+```
+
+Serve it and open it:
+
+```bash
+npx serve .
+```
+
+You get a lit, orbitable 3D character that idles on its own. No build step, no bundler, no three.js in your dependencies.
+
+Both lines matter. `<agent-3d>` is an unknown element that renders nothing until the loader script registers it, which is why `preview` prints them together. If you paste only the element you get an empty box, and the browser will not warn you.
+
+The iframe is the other option and needs no script at all, at the cost of a cross-origin boundary. Use the element when the avatar is part of your page, and the iframe when you want it sandboxed.
+
+> Had you skipped `--mesh-uri` in Step 3, `preview` would stop here and tell you the mesh is a local path that no browser can load, instead of printing a snippet that silently renders nothing.
+
+---
+
+## Step 7 - Gate your release on it
+
+A manifest that is only correct on the day you wrote it is a document, not a guarantee. Two checks turn it into one.
+
+**Check that the mesh still matches its hash:**
+
+```bash
+expected=$(node -p "require('./manifest.json').mesh.sha256")
+actual=$(three-ws-avatar hash ./michelle.glb)
+[ "$expected" = "$actual" ] || { echo "mesh hash mismatch"; exit 1; }
+```
+
+Silence means it passed. Prove it fires by changing one byte:
+
+```bash
+printf 'x' >> michelle.glb
+actual=$(three-ws-avatar hash ./michelle.glb)
+[ "$expected" = "$actual" ] || echo "mesh hash mismatch"
+```
+
+```
+mesh hash mismatch
+```
+
+This is the check that catches the re-export nobody mentioned, the lossy optimization pass, the CDN that started serving an error page with a `200`, and the teammate who replaced the model and kept the filename.
+
+**Check that every manifest in the repo is still valid:**
+
+```bash
+find . -name '*.avatar.json' -not -path './node_modules/*' -print0 \
+ | xargs -0 -n1 three-ws-avatar validate
+```
+
+`xargs` exits non-zero if any single invocation failed, so one bad manifest fails the whole step.
+
+Wire both into whatever already runs on release. A `package.json` script is usually enough:
+
+```json
+{
+ "scripts": {
+ "check:avatars": "three-ws-avatar validate manifest.json && node scripts/check-mesh-hash.mjs"
+ }
+}
+```
+
+Then call `npm run check:avatars` from your existing build or deploy command. There is nothing special about where it runs; it just has to run somewhere that can fail.
+
+For output a machine can read, add `--json`:
+
+```bash
+three-ws-avatar validate manifest.json --json | jq -e '.valid'
+```
+
+```
+true
+```
+
+---
+
+## Step 8 - Grow the manifest
+
+You now have the seven required fields. The schema accepts five more, and they are where a manifest stops being a pointer and starts being a record. Add them by hand and re-run `validate`:
+
+| Field | What it is for |
+|---|---|
+| `animations` | A pointer (`uri` + `sha256`) to a clip manifest, so custom motion travels with the avatar instead of being wired up per site. |
+| `accessories` | Slot bindings for equipped items: hats, glasses, held props. Each entry names its slot and its own mesh. |
+| `traits` | Free-form key/value pairs, NFT-style. String, number, and boolean values only. |
+| `creator` | The original creator, when that differs from the current `owner`. Omit when they are the same. |
+| `signature` | An `algorithm`/`value`/`signer` triple over the canonical JSON serialization, which turns the whole document into something a third party can verify. |
+
+`signature` is the one that changes the security model. Everything else in the manifest is a claim you are making; a signature is a claim someone else can check without trusting your server.
+
+---
+
+## What you built
+
+A JSON file that names an avatar, pins its mesh by content rather than by location, declares the rig so animation retargets correctly, records ownership as a chain-scoped account, and fails your build the moment any of that stops being true.
+
+**Next:**
+
+- The [Avatar CLI reference](../avatar-cli.md) documents every flag, exit code, and `--json` shape.
+- The [web component reference](../web-component.md) covers everything `<agent-3d>` can do beyond rendering a body: voice, an LLM brain, memory, and skills.
+- [`@three-ws/avatar-schema`](../../packages/avatar-schema/README.md) is the schema itself, for writing your own tooling against the format.
diff --git a/examples/paid-mcp-server/README.md b/examples/paid-mcp-server/README.md
new file mode 100644
index 000000000..8a3300aaa
--- /dev/null
+++ b/examples/paid-mcp-server/README.md
@@ -0,0 +1,174 @@
+# paid-mcp-server
+
+A complete, runnable MCP server whose tools **charge per call** in USDC on Solana over [x402](https://x402.org). It ships two tools on purpose:
+
+| Tool | Price | What it does |
+| --- | --- | --- |
+| `getting_started` | free | Explains the server, both prices, and the payment flow. No payment, no wallet, no account. |
+| `inspect_model` | $0.002 | Fetches a public glTF/GLB by URL and returns a structural report plus prioritized optimization findings. |
+
+The paid tool does real work: it fetches the model, parses the container, counts geometry from accessors rather than estimating, and returns findings with fixes. There is no mock path anywhere in this example.
+
+The narrative walkthrough of this code is the tutorial [Monetize an MCP server: paid tools with x402](https://three.ws/tutorials/monetize-mcp-server), and the design argument behind it is the post [How to monetize an MCP server](https://three.ws/blog/monetize-mcp-server-x402-paid-tools).
+
+## Run it
+
+```bash
+cd examples/paid-mcp-server
+npm install
+X402_PAY_TO_SOLANA=<your-solana-address> npm start
+```
+
+The server speaks MCP over stdio and prints one line to stderr when it is ready. It refuses to start without a pay-to address, because a paid server that cannot receive money is a bug, not a default.
+
+Explore it with the official inspector:
+
+```bash
+X402_PAY_TO_SOLANA=<your-solana-address> npm run inspect
+```
+
+## Wire it into a client
+
+**Claude Code**, one line:
+
+```bash
+claude mcp add model-inspect \
+ --env X402_PAY_TO_SOLANA=<your-solana-address> \
+ -- node /absolute/path/to/examples/paid-mcp-server/src/index.js
+```
+
+**Claude Desktop / Cursor** (`claude_desktop_config.json` or `mcp.json`):
+
+```json
+{
+ "mcpServers": {
+ "model-inspect": {
+ "command": "node",
+ "args": ["/absolute/path/to/examples/paid-mcp-server/src/index.js"],
+ "env": { "X402_PAY_TO_SOLANA": "<your-solana-address>" }
+ }
+ }
+}
+```
+
+To *pay* this server from another assistant, give that assistant a wallet with [`@three-ws/x402-mcp`](https://www.npmjs.com/package/@three-ws/x402-mcp).
+
+## What an unpaid call returns
+
+Calling `inspect_model` with no payment returns the challenge, not the report. This is the real response from this code:
+
+```json
+{
+ "x402Version": 2,
+ "error": "Payment required to access this tool",
+ "resource": {
+ "url": "mcp://tool/inspect_model",
+ "description": "Fetch a public glTF or GLB model by URL and return its structural report ...",
+ "mimeType": "application/json"
+ },
+ "accepts": [
+ {
+ "scheme": "exact",
+ "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
+ "amount": "2000",
+ "payTo": "<your-solana-address>",
+ "maxTimeoutSeconds": 60,
+ "extra": { "name": "USDC", "decimals": 6, "feePayer": "..." }
+ }
+ ],
+ "extensions": { "bazaar": { "info": { "input": { "type": "mcp", "toolName": "inspect_model" } } } }
+}
+```
+
+`amount` is atomic units of 6-decimal USDC, so `"2000"` is $0.002. The `bazaar` extension is what makes the tool discoverable to agents shopping for paid capabilities.
+
+An x402-capable client signs, retries the same call with the payload in `_meta["x402/payment"]`, and receives the report with the settlement receipt in `_meta["x402/payment-response"]`.
+
+## What a paid call returns
+
+Verbatim output for `https://three.ws/avatars/cesium-man.glb`:
+
+```json
+{
+ "source": "https://three.ws/avatars/cesium-man.glb",
+ "container": "glb",
+ "sizeBytes": 438044,
+ "binaryChunkBytes": 409680,
+ "generator": "COLLADA2GLTF",
+ "gltfVersion": "2.0",
+ "scenes": 1, "nodes": 22, "meshes": 1, "materials": 1, "textures": 1,
+ "animations": 1, "skins": 1, "cameras": 0, "morphTargets": 0,
+ "images": { "embedded": 1, "external": 0, "dataUri": 0 },
+ "primitives": { "primitives": 1, "indexed": 1, "modes": [4] },
+ "geometry": { "vertices": 3273, "triangles": 4672 },
+ "extensionsUsed": [],
+ "findings": [
+ {
+ "severity": "low",
+ "issue": "No geometry compression",
+ "detail": "The model declares neither KHR_draco_mesh_compression nor EXT_meshopt_compression.",
+ "fix": "Run gltf-transform with meshopt compression. Typical saving is 40 to 70 percent of the geometry payload."
+ }
+ ]
+}
+```
+
+## How the payment works
+
+Three steps, and the order is the whole design:
+
+1. **Verify.** The wrapper checks the buyer's payload against what the tool advertised, using a facilitator. Nothing has moved yet.
+2. **Work.** The handler runs. Only now.
+3. **Settle.** The payment lands on Solana and the receipt returns with the result.
+
+Because settlement is last, **every failure path in this example throws**, so a bad URL, an unreachable host, a file that is too large, or a corrupt container costs the caller nothing and can be retried with the same signed payment. A caller is charged only when a report was actually produced.
+
+## Environment
+
+| Variable | Required | Default | Notes |
+| --- | --- | --- | --- |
+| `X402_PAY_TO_SOLANA` | yes | none | Solana address that receives USDC. `X402_PAY_TO` is accepted as an alias. |
+| `X402_FACILITATOR_URL` | no | `https://facilitator.payai.network` | Facilitator used for `/verify` and `/settle`. |
+| `X402_FACILITATOR_TOKEN` | no | none | Bearer token, if your facilitator requires one. |
+| `X402_FEE_PAYER_SOLANA` | no | platform fee payer | Sponsor that pays the Solana transaction fee. |
+| `X402_ASSET_MINT_SOLANA` | no | canonical USDC mint | Override the settlement asset. |
+
+Copy [.env.example](./.env.example) to `.env` and export it, or pass the variables inline as shown above.
+
+## Safety properties worth copying
+
+- **The fetch is SSRF-guarded.** Only `https://`, redirects refused, DNS resolved and checked against private, loopback, link-local, and carrier-grade NAT ranges before any byte moves. A paid endpoint that fetches user-supplied URLs is an internal-network probe unless it does this.
+- **Bounded input.** 32 MB ceiling checked twice (declared `content-length` and actual bytes) and a 20 second timeout.
+- **Tool annotations are honest.** Both tools declare `readOnlyHint: true` and `destructiveHint: false`, which is what annotation-aware clients use to decide whether to prompt.
+- **Registration touches no secrets.** Payment wiring is built lazily on first call, so `tools/list` and the test suite work with no environment at all.
+
+## Files
+
+| Path | What it is |
+| --- | --- |
+| [src/index.js](./src/index.js) | Server entry: registers both tools, connects stdio, fails fast on missing config. |
+| [src/tools.js](./src/tools.js) | The free orientation tool and the paid inspection tool. |
+| [src/payments.js](./src/payments.js) | The x402 wiring: facilitator client, accepts, and the `paid()` wrapper. |
+| [src/gltf.js](./src/gltf.js) | Guarded fetch, GLB/glTF parsing, structural stats, and the findings engine. |
+| [test/gltf.test.mjs](./test/gltf.test.mjs) | Parser, geometry math, findings, and SSRF guard, all offline and deterministic. |
+| [test/server.test.mjs](./test/server.test.mjs) | A real MCP client over an in-memory transport: tool list, the free tool, and the no-report-without-payment guarantee. |
+
+```bash
+npm test # 15 tests, no network required for the deterministic ones
+```
+
+## Taking it to production
+
+1. **Point `X402_PAY_TO_SOLANA` at a wallet you control.** Test with a small balance first.
+2. **Choose a facilitator.** PayAI is free and community run. Coinbase CDP settlements are additionally indexed by catalogs agents query.
+3. **Fill in discovery metadata.** The `description`, `inputSchema`, and `example` in `src/tools.js` are what a buyer sees in a catalog before deciding to call you.
+4. **Rate limit by payer.** Payment is not authorization. A funded wallet can still hammer you.
+5. **Record every settlement.** The receipt carries network, payer, and transaction: that is your ledger.
+
+## Related
+
+- [docs/tutorials/monetize-mcp-server.md](../../docs/tutorials/monetize-mcp-server.md): the step-by-step build of this server.
+- [docs/mcp-x402-bazaar.md](../../docs/mcp-x402-bazaar.md): where paid services get discovered.
+- [packages/x402-server](../../packages/x402-server/): the same idea for plain HTTP endpoints.
+- [packages/x402-mcp](../../packages/x402-mcp/): the buyer side, for testing this server from an assistant.
+- [packages/ibm-x402-mcp](../../packages/ibm-x402-mcp/): a production connector built on this exact pattern.
diff --git a/packages/agentcore-payments-mcp/src/tools/create-session.js b/packages/agentcore-payments-mcp/src/tools/create-session.js
index ac62d47e0..9a3905d84 100644
--- a/packages/agentcore-payments-mcp/src/tools/create-session.js
+++ b/packages/agentcore-payments-mcp/src/tools/create-session.js
@@ -58,7 +58,7 @@ export const def = {
ok: true,
session: data.session,
token: data.token,
- note: data.note ?? 'Store this token securely — it is shown once and cannot be recovered. Set PAYMENT_SESSION_TOKEN to use it as the default.',
+ note: data.note ?? 'Store this token securely. It is shown once and cannot be recovered. Set PAYMENT_SESSION_TOKEN to use it as the default.',
};
},
};
diff --git a/pages/admin/economy.html b/pages/admin/economy.html
new file mode 100644
index 000000000..6dab7da83
--- /dev/null
+++ b/pages/admin/economy.html
@@ -0,0 +1,174 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <script>
+ /* three.ws theme boot — no-flash */ (function () {
+ document.documentElement.classList.add('js');
+ try {
+ var m = localStorage.getItem('twx_theme');
+ var l =
+ m === 'auto'
+ ? window.matchMedia &&
+ window.matchMedia('(prefers-color-scheme: light)').matches
+ : m === 'light';
+ document.documentElement.setAttribute('data-theme', l ? 'light' : 'dark');
+ } catch (e) {
+ document.documentElement.setAttribute('data-theme', 'dark');
+ }
+ })();
+ </script>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <meta name="robots" content="noindex, nofollow" />
+ <title>Economy Health · Control · three.ws</title>
+ <meta
+ name="description"
+ content="Operator dashboard for the autonomous economy: one-line verdict on why the Money Pulse is quiet, the funding chain from master to agents, per-lane settle rates, and the USDC refuel lane."
+ />
+ <link rel="stylesheet" href="/nav.css" />
+ <link rel="stylesheet" href="/src/admin-economy.css" />
+ </head>
+ <body>
+ <header><div id="nav-container"></div></header>
+ <script src="/nav.js"></script>
+
+ <main class="ec-wrap" id="ec-root" aria-busy="true">
+ <!-- Auth gate -->
+ <section class="ec-gate" id="ec-gate" hidden>
+ <div class="ec-gate-mark" aria-hidden="true">◈</div>
+ <h1>Economy Health</h1>
+ <p>Operator control. Enter the secret to read the funding chain.</p>
+ <form id="ec-gate-form" autocomplete="off">
+ <input
+ type="password"
+ id="ec-secret"
+ class="ec-input"
+ placeholder="CRON_SECRET"
+ aria-label="Operator secret"
+ autocomplete="current-password"
+ />
+ <button type="submit" class="ec-btn ec-btn-primary">Unlock</button>
+ <p class="ec-gate-err" id="ec-gate-err" role="alert" aria-live="assertive"></p>
+ </form>
+ </section>
+
+ <!-- Dashboard -->
+ <div id="ec-panel" hidden>
+ <div class="ec-head">
+ <div>
+ <h1>Economy Health</h1>
+ <p>
+ Why the Money Pulse is loud or quiet, read from the same endpoints the
+ crons use. Every number is a live read; nothing here can move funds.
+ </p>
+ </div>
+ <div class="ec-head-actions">
+ <span class="ec-stamp" id="ec-stamp" aria-live="polite"></span>
+ <button type="button" class="ec-btn" id="ec-refresh">Refresh</button>
+ <button type="button" class="ec-btn" id="ec-pause" aria-pressed="false">Pause</button>
+ </div>
+ </div>
+
+ <section class="ec-verdict" id="ec-verdict" data-level="warn" role="status" aria-live="polite" hidden>
+ <span class="ec-verdict-dot" aria-hidden="true"></span>
+ <div>
+ <h2 id="ec-verdict-title">Reading the economy…</h2>
+ <p id="ec-verdict-detail"></p>
+ </div>
+ </section>
+
+ <section class="ec-section">
+ <h2>Money Pulse · last 24h</h2>
+ <p class="ec-sub">
+ Real settled movement from <code>/api/pulse</code>. Free actions such as
+ reviews and trials are deliberately excluded: they stay healthy through
+ exactly the outage this page exists to catch.
+ </p>
+ <div class="ec-grid" id="ec-pulse"></div>
+ </section>
+
+ <section class="ec-section">
+ <h2>Funding chain</h2>
+ <p class="ec-sub" id="ec-chain-summary"></p>
+ <div class="ec-chain" id="ec-chain"></div>
+ </section>
+
+ <section class="ec-section">
+ <h2>Circulation engine</h2>
+ <p class="ec-sub">
+ The agent pool and its tick cadence. A healthy action count with zero paid
+ lanes below is the signature of a treasury under its reserve.
+ </p>
+ <div class="ec-grid" id="ec-engine"></div>
+ </section>
+
+ <section class="ec-section">
+ <h2>Action lanes · last 24h</h2>
+ <p class="ec-sub">
+ Per-kind settle rate. <b>Never ran</b> means the budget governor never
+ planned it, which is a funding problem. <b>All failing</b> means it was
+ planned and rejected, which is not.
+ </p>
+ <div id="ec-lanes"></div>
+ </section>
+
+ <section class="ec-section">
+ <h2>USDC refuel lane</h2>
+ <p class="ec-sub">
+ When the chain runs short the master converts a bounded slice of its own
+ USDC revenue into SOL, so recovery does not wait on a human.
+ </p>
+ <div class="ec-grid" id="ec-fuel"></div>
+ <div id="ec-fuel-recent" style="margin-top: 14px"></div>
+ </section>
+
+ <section class="ec-section">
+ <h2>If the pulse is quiet</h2>
+ <p class="ec-sub">
+ The order matters. Each step rules out a cause that would make every later
+ reading meaningless.
+ </p>
+ <ol class="ec-runbook">
+ <li>
+ <b>Check the verdict above first.</b> It already applies these rules to
+ live data and names the single most actionable cause.
+ </li>
+ <li>
+ <b>Is money moving at all?</b> Volume and trades near zero while the
+ activity feed looks busy means the free lanes are carrying the feed and
+ the paid lanes are dead.
+ </li>
+ <li>
+ <b>Did the paid lanes ever run?</b> Zero <i>attempts</i> (not zero
+ successes) means the governor cut the paid budget because the
+ circulation treasury sat under its reserve.
+ </li>
+ <li>
+ <b>Read the funding chain.</b> Several roles can share one wallet, so a
+ link can be starved while another role's lower floor reports it healthy.
+ Always compare against the strictest floor.
+ </li>
+ <li>
+ <b>Separate "dry" from "unreadable".</b>
+ <code>no_spare_usdc</code> genuinely needs funding.
+ <code>usdc_read_failed</code> means an RPC lane broke and the balance is
+ unknown, so sending funds would be treating the wrong problem.
+ </li>
+ </ol>
+ </section>
+
+ <div class="ec-foot">
+ <span>Reads: <code>/api/pulse</code>, <code>/api/admin/circulation-health</code>, <code>/api/cron/treasury-topup?dry=1</code></span>
+ <a href="/admin/ring">Ring dashboard →</a>
+ <a href="/pulse">Public Money Pulse →</a>
+ </div>
+ </div>
+ </main>
+
+ <div class="ec-hint" id="ec-hint" hidden>
+ <kbd>r</kbd> refresh · <kbd>p</kbd> pause
+ </div>
+
+ <script type="module" src="/src/admin-economy.js"></script>
+ </body>
+</html>
diff --git a/pages/asl-alphabet.html b/pages/asl-alphabet.html
new file mode 100644
index 000000000..aefbd4449
--- /dev/null
+++ b/pages/asl-alphabet.html
@@ -0,0 +1,316 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <script>/* three.ws theme boot - no-flash */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+ <title>ASL Alphabet: every letter on a live 3D hand · three.ws</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
+ <meta
+ name="description"
+ content="The American manual alphabet on a live 3D avatar. Click or type any letter to see the handshape, read what to look for, learn the look-alikes, spell any word, and drill yourself until you can read fingerspelling."
+ />
+ <meta name="theme-color" content="#000000" />
+ <link rel="canonical" href="https://three.ws/asl-alphabet" />
+
+ <meta property="og:type" content="website" />
+ <meta property="og:title" content="ASL Alphabet: every letter on a live 3D hand · three.ws" />
+ <meta property="og:description" content="Click or type any letter to watch a 3D avatar sign it, read the handshape, learn the look-alikes, and practise reading fingerspelling." />
+ <meta property="og:url" content="https://three.ws/asl-alphabet" />
+ <meta property="og:site_name" content="three.ws" />
+ <meta property="og:image" content="https://three.ws/api/page-og?s=main&amp;t=The+ASL+Alphabet&amp;d=Every+letter+and+number+of+the+American+manual+alphabet%2C+signed+by+a+live+3D+avatar%3A+what+to+look+for%2C+what+it+is+confused+with%2C+and+a+drill+to+practise&amp;p=%2Fasl-alphabet" />
+ <meta name="twitter:card" content="summary_large_image" />
+ <meta name="twitter:title" content="ASL Alphabet: every letter on a live 3D hand · three.ws" />
+ <meta name="twitter:description" content="Click or type any letter to watch a 3D avatar sign it, read the handshape, learn the look-alikes, and practise reading fingerspelling." />
+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=main&amp;t=The+ASL+Alphabet&amp;d=Every+letter+and+number+of+the+American+manual+alphabet%2C+signed+by+a+live+3D+avatar&amp;p=%2Fasl-alphabet" />
+ <meta name="twitter:site" content="@trythreews" />
+ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1" />
+ <meta property="og:locale" content="en_US" />
+
+ <link rel="shortcut icon" href="/favicon.ico" />
+ <link rel="stylesheet" href="/style.css" />
+ <link rel="stylesheet" href="/nav.css" />
+ <link rel="stylesheet" href="/footer.css" />
+ <link rel="stylesheet" href="/fonts/fonts.css" />
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"LearningResource","name":"The ASL alphabet on a live 3D avatar","description":"Every letter and number of the American manual alphabet, signed by a 3D avatar, with the handshape described, the look-alike letters named, and a practice drill.","learningResourceType":"Interactive reference","educationalLevel":"Beginner","teaches":"American Sign Language fingerspelling","url":"https://three.ws/asl-alphabet","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
+
+ <style>
+ .aa-main { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 96px; }
+
+ /* Hero: the avatar signing, the letter, and what to look for */
+ .aa-hero {
+ display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 56px);
+ align-items: center; padding: clamp(24px, 4vw, 56px) 0 clamp(16px, 2vw, 32px);
+ }
+ .aa-chip {
+ display: inline-flex; align-items: center; gap: 8px;
+ padding: 5px 12px; border: 1px solid var(--stroke); border-radius: 999px;
+ background: var(--surface-1); font-size: 12px; letter-spacing: .04em;
+ text-transform: uppercase; color: var(--ink-dim); font-family: var(--font-mono);
+ }
+ .aa-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,.18); }
+ .aa-hero h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.04; margin: 16px 0 12px; letter-spacing: -.02em; }
+ .aa-lede { max-width: 56ch; color: var(--ink-dim); font-size: clamp(15px, 1.35vw, 17px); line-height: 1.6; margin: 0; }
+
+ .aa-stage-wrap {
+ position: relative; border: 1px solid var(--stroke); border-radius: 20px; overflow: hidden;
+ background: radial-gradient(120% 120% at 50% 0%, rgba(56,189,248,.10), transparent 60%), var(--surface-1);
+ aspect-ratio: 4 / 5; min-height: 360px;
+ }
+ #aa-stage { position: absolute; inset: 0; width: 100%; height: 100%; }
+ .aa-status {
+ position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px;
+ font-family: var(--font-mono); font-size: 13px; color: #fff;
+ background: linear-gradient(to top, rgba(0,0,0,.6), transparent); pointer-events: none; min-height: 20px;
+ }
+
+ /* The letter card */
+ .aa-card { border: 1px solid var(--stroke); border-radius: 18px; background: var(--surface-1); padding: 20px 22px; margin-top: 22px; }
+ .aa-card-top { display: flex; align-items: center; gap: 18px; }
+ .aa-big {
+ font-size: 56px; line-height: 1; font-weight: 600; letter-spacing: -.03em;
+ width: 76px; height: 76px; display: grid; place-items: center; flex: 0 0 auto;
+ border-radius: 16px; background: rgba(56,189,248,.14); border: 1px solid rgba(56,189,248,.35);
+ }
+ .aa-card-body p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
+ .aa-look { margin-top: 8px !important; color: var(--ink-dim) !important; font-size: 14px !important; }
+ .aa-motion {
+ display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
+ font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
+ color: #38bdf8; border: 1px solid rgba(56,189,248,.4); border-radius: 999px; padding: 4px 10px;
+ }
+
+ /* Settings */
+ .aa-settings { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
+ .aa-setting { display: flex; align-items: center; gap: 9px; }
+ .aa-setting-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); }
+ .aa-opts { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--stroke); border-radius: 999px; background: var(--surface-2); }
+ .aa-opt {
+ appearance: none; border: 0; background: transparent; color: var(--ink-dim);
+ font: inherit; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
+ cursor: pointer; transition: color .14s ease, background .14s ease;
+ }
+ .aa-opt:hover { color: var(--ink); }
+ .aa-opt:focus-visible { outline: 2px solid rgba(56,189,248,.9); outline-offset: 1px; }
+ .aa-opt:active { transform: scale(.96); }
+ .aa-opt[aria-pressed='true'] { color: var(--ink); background: rgba(56,189,248,.2); }
+
+ /* The keyboard */
+ .aa-keys-section { margin-top: clamp(36px, 5vw, 64px); }
+ .aa-keys-section h2 { font-size: clamp(20px, 2.2vw, 27px); letter-spacing: -.02em; margin: 0 0 8px; }
+ .aa-keys-section > p { color: var(--ink-dim); font-size: 15px; line-height: 1.6; max-width: 68ch; margin: 0 0 18px; }
+ .aa-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
+ .aa-keys.aa-keys-digits { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); margin-top: 14px; max-width: 640px; }
+ .aa-key {
+ appearance: none; cursor: pointer; font: inherit; font-weight: 600; font-size: 20px;
+ aspect-ratio: 1 / 1; border-radius: 14px; color: var(--ink-dim);
+ border: 1px solid var(--stroke); background: var(--surface-2);
+ transition: color .14s ease, border-color .14s ease, background .14s ease, transform .14s ease;
+ }
+ .aa-key:hover { color: var(--ink); border-color: rgba(56,189,248,.6); transform: translateY(-2px); }
+ .aa-key:active { transform: translateY(0) scale(.97); }
+ .aa-key:focus-visible { outline: 2px solid rgba(56,189,248,.9); outline-offset: 2px; }
+ .aa-key[aria-pressed='true'] { color: var(--ink); background: rgba(56,189,248,.16); border-color: rgba(56,189,248,.7); }
+ .aa-key[data-live='true'] {
+ color: #04121c; background: #38bdf8; border-color: #38bdf8;
+ box-shadow: 0 0 0 4px rgba(56,189,248,.22);
+ }
+ .aa-keys-hint { margin-top: 14px; font-size: 13px; color: var(--ink-dim); }
+ .aa-keys-hint kbd {
+ font-family: var(--font-mono); font-size: 12px; padding: 2px 6px; border-radius: 6px;
+ border: 1px solid var(--stroke); background: var(--surface-2);
+ }
+
+ /* Spell + practice */
+ .aa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(36px, 5vw, 60px); }
+ .aa-panel { border: 1px solid var(--stroke); border-radius: 18px; background: var(--surface-1); padding: clamp(20px, 3vw, 28px); }
+ .aa-panel h2 { font-size: clamp(19px, 2vw, 24px); margin: 0 0 8px; letter-spacing: -.02em; }
+ .aa-panel p { color: var(--ink-dim); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
+ .aa-row { display: flex; gap: 8px; }
+ .aa-input {
+ flex: 1 1 auto; min-width: 0; box-sizing: border-box;
+ background: rgba(56,189,248,.06); border: 1px solid rgba(56,189,248,.4);
+ color: var(--ink); font: inherit; font-size: 15px; padding: 11px 14px; border-radius: 12px;
+ }
+ .aa-input::placeholder { color: var(--ink-dim); }
+ .aa-input:focus { outline: none; border-color: rgba(56,189,248,.85); box-shadow: 0 0 0 3px rgba(56,189,248,.2); }
+ .aa-btn {
+ flex: 0 0 auto; appearance: none; border: 1px solid rgba(56,189,248,.5);
+ background: rgba(56,189,248,.16); color: var(--ink); font: inherit; font-weight: 600;
+ font-size: 15px; padding: 11px 18px; border-radius: 12px; cursor: pointer;
+ transition: background .12s ease, border-color .12s ease;
+ }
+ .aa-btn:hover:not(:disabled) { background: rgba(56,189,248,.3); border-color: rgba(56,189,248,.8); }
+ .aa-btn:active:not(:disabled) { transform: scale(.98); }
+ .aa-btn:focus-visible { outline: 2px solid rgba(56,189,248,.9); outline-offset: 1px; }
+ .aa-btn.aa-btn-quiet { background: transparent; border-color: var(--stroke); color: var(--ink-dim); font-weight: 500; }
+ .aa-btn.aa-btn-quiet:hover { color: var(--ink); border-color: rgba(56,189,248,.6); background: transparent; }
+ .aa-share { margin-top: 12px; font-size: 13px; padding: 7px 12px; }
+
+ .aa-modes { display: flex; gap: 16px; margin-bottom: 14px; font-size: 14px; color: var(--ink-dim); }
+ .aa-modes label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
+ .aa-modes input { accent-color: #38bdf8; }
+ .aa-score { display: flex; gap: 20px; margin: 14px 0 0; font-size: 13px; color: var(--ink-dim); }
+ .aa-score strong { color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; }
+ .aa-feedback {
+ margin-top: 14px; min-height: 44px; border: 1px dashed var(--stroke); border-radius: 12px;
+ padding: 12px 14px; font-size: 14px; color: var(--ink-dim); line-height: 1.5;
+ }
+ .aa-feedback[data-state='right'] { border-color: rgba(56,211,159,.6); color: var(--ink); }
+ .aa-feedback[data-state='wrong'] { border-color: rgba(239,68,68,.55); color: var(--ink); }
+ .aa-feedback[data-state='asking'], .aa-feedback[data-state='shown'] { border-color: rgba(56,189,248,.5); }
+ .aa-practice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
+ .aa-panel[data-disabled='true'] { opacity: .55; }
+
+ .aa-note { margin-top: clamp(32px, 4vw, 52px); border-left: 2px solid rgba(56,189,248,.5); padding: 4px 0 4px 18px; color: var(--ink-dim); font-size: 14px; line-height: 1.65; max-width: 74ch; }
+ .aa-note a { color: var(--ink); }
+
+ @media (prefers-reduced-motion: reduce) {
+ .aa-key:hover, .aa-key:active, .aa-opt:active, .aa-btn:active:not(:disabled) { transform: none; }
+ }
+ @media (max-width: 900px) {
+ .aa-hero { grid-template-columns: 1fr; }
+ .aa-grid { grid-template-columns: 1fr; }
+ }
+ </style>
+ </head>
+ <body>
+ <header>
+ <div id="nav-container"></div>
+ </header>
+ <script src="/nav.js"></script>
+
+ <main class="aa-main">
+ <section class="aa-hero">
+ <div class="aa-stage-wrap">
+ <div id="aa-stage" role="img" aria-label="A 3D avatar forming the selected letter of the American manual alphabet"></div>
+ <div class="aa-status" id="aa-status" aria-live="polite"></div>
+ </div>
+
+ <div>
+ <span class="aa-chip"><span class="aa-chip-dot"></span> The manual alphabet · live in 3D</span>
+ <h1>Every ASL letter, on a hand you can turn around.</h1>
+ <p class="aa-lede">
+ A picture of a handshape shows you one angle. This is the real thing: a rigged
+ avatar forming each letter of the American manual alphabet, at the speed you
+ choose, on either hand. Click a key, or just press it on your keyboard.
+ </p>
+
+ <div class="aa-card">
+ <div class="aa-card-top">
+ <div class="aa-big" id="aa-big" aria-hidden="true">A</div>
+ <div class="aa-card-body">
+ <p id="aa-hand">Closed fist, thumb resting straight along the side of the index finger.</p>
+ <p class="aa-look" id="aa-look"></p>
+ </div>
+ </div>
+ <span class="aa-motion" id="aa-motion" hidden>Traced: the motion is the letter</span>
+ <div>
+ <button class="aa-btn aa-btn-quiet aa-share" id="aa-share" type="button" hidden title="Copy a link that opens this letter">🔗 Share this</button>
+ </div>
+ </div>
+
+ <div class="aa-settings">
+ <div class="aa-setting">
+ <span class="aa-setting-label" id="aa-speed-label">Speed</span>
+ <div class="aa-opts" id="aa-speed" role="group" aria-labelledby="aa-speed-label"></div>
+ </div>
+ <div class="aa-setting">
+ <span class="aa-setting-label" id="aa-hand-label">Signing hand</span>
+ <div class="aa-opts" id="aa-hand" role="group" aria-labelledby="aa-hand-label"></div>
+ </div>
+ <div class="aa-setting">
+ <span class="aa-setting-label" id="aa-rig-label">Avatar</span>
+ <div class="aa-opts" id="aa-rig" role="group" aria-labelledby="aa-rig-label"></div>
+ </div>
+ </div>
+ </div>
+ </section>
+
+ <section class="aa-keys-section" aria-label="The manual alphabet">
+ <h2>A to Z</h2>
+ <p>
+ Every letter is signed by the same engine an agent uses to sign a chat reply, so
+ what you learn here is exactly what you will read there. Hover a key for its
+ description; click it, or press it, to watch it.
+ </p>
+ <div class="aa-keys" id="aa-letters" role="group" aria-label="Letters"></div>
+
+ <h2 style="margin-top: 34px">0 to 9</h2>
+ <div class="aa-keys aa-keys-digits" id="aa-digits" role="group" aria-label="Numbers"></div>
+
+ <p class="aa-keys-hint">Tip: press any <kbd>letter</kbd> or <kbd>number</kbd> key to sign it instantly.</p>
+ </section>
+
+ <div class="aa-grid">
+ <section class="aa-panel" aria-label="Spell a word">
+ <h2>Spell anything</h2>
+ <p>
+ Type a word and watch it spelled letter by letter, with each key lighting up as
+ the hand reaches it. Names, places, and anything with no sign of its own are
+ exactly what fingerspelling is for.
+ </p>
+ <div class="aa-row">
+ <input
+ id="aa-spell-input"
+ class="aa-input"
+ type="text"
+ maxlength="24"
+ placeholder="your name, a city, a word…"
+ aria-label="Word to fingerspell"
+ autocomplete="off"
+ />
+ <button id="aa-spell-btn" class="aa-btn" type="button">🤟 Spell it</button>
+ </div>
+ </section>
+
+ <section class="aa-panel" id="aa-practice" aria-label="Practice reading fingerspelling">
+ <h2>Practice reading it</h2>
+ <p>
+ Reading fingerspelling is the harder half, and it only comes from repetition.
+ The avatar spells something; you type what you read. Your streak is kept on
+ this device.
+ </p>
+ <div class="aa-modes" role="group" aria-label="What to practise">
+ <label><input type="radio" name="aa-mode" value="letters" checked /> Single letters</label>
+ <label><input type="radio" name="aa-mode" value="words" /> Whole words</label>
+ </div>
+ <div class="aa-row">
+ <input
+ id="aa-practice-input"
+ class="aa-input"
+ type="text"
+ maxlength="24"
+ placeholder="what did it spell?"
+ aria-label="What the avatar spelled"
+ autocomplete="off"
+ />
+ <button id="aa-practice-check" class="aa-btn" type="button">Check</button>
+ </div>
+ <div class="aa-practice-actions">
+ <button id="aa-practice-start" class="aa-btn aa-btn-quiet" type="button">Start practising</button>
+ <button id="aa-practice-replay" class="aa-btn aa-btn-quiet" type="button" hidden>Show it again</button>
+ <button id="aa-practice-reveal" class="aa-btn aa-btn-quiet" type="button" hidden>Reveal</button>
+ </div>
+ <div class="aa-feedback" id="aa-practice-feedback">Press start and the avatar will spell something.</div>
+ <div class="aa-score">
+ <span>Streak <strong id="aa-streak">0</strong></span>
+ <span>Best <strong id="aa-best">0</strong></span>
+ </div>
+ </section>
+ </div>
+
+ <p class="aa-note">
+ Fingerspelling is one part of American Sign Language: it spells names, loanwords, and
+ anything with no sign of its own. Words that have signs are <em>signed</em>, and you
+ can watch those, get signed AI chat replies, and sign back with your webcam at
+ <a href="/sign-language">/sign-language</a>. The full reference is in
+ <a href="/docs/sign-language">the documentation</a>, and the engine behind both pages is
+ published as <a href="https://www.npmjs.com/package/@three-ws/sign-language">@three-ws/sign-language</a>.
+ </p>
+ </main>
+
+ <script src="/footer.js" defer></script>
+ <script type="module" src="/src/asl-alphabet-page.js"></script>
+ </body>
+</html>
diff --git a/pages/docs-world.html b/pages/docs-world.html
index 2c602a5b1..b61b0a2cc 100644
--- a/pages/docs-world.html
+++ b/pages/docs-world.html
@@ -121,12 +121,17 @@
<p>Loading the documentation and warming up the scene.</p>
</div>
<div class="dw-center" id="dw-fallback" hidden>
- <h1>This device can't open the 3D world</h1>
+ <h1 id="dw-fallback-title">This device can't open the 3D world</h1>
<p id="dw-fallback-sub">
WebGL isn't available in this browser. The classic docs carry exactly the
same content, no 3D required.
</p>
- <a class="dw-btn" href="/docs">Open the classic docs</a>
+ <div class="dw-fallback-actions">
+ <!-- Shown only for failures a reload can actually fix (a dropped
+ manifest fetch), never for a device that has no WebGL at all. -->
+ <button class="dw-btn" type="button" id="dw-fallback-retry" hidden>Try again</button>
+ <a class="dw-btn" id="dw-fallback-classic" href="/docs">Open the classic docs</a>
+ </div>
</div>
<script type="module" src="/src/docs-world/main.js"></script>
diff --git a/pages/examples.html b/pages/examples.html
new file mode 100644
index 000000000..e5334ccf8
--- /dev/null
+++ b/pages/examples.html
@@ -0,0 +1,236 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <script>
+ /* three.ws theme boot (no-flash); runtime in /theme-switcher.js */ (function () {
+ try {
+ var m = localStorage.getItem('twx_theme');
+ var l =
+ m === 'auto'
+ ? window.matchMedia &&
+ window.matchMedia('(prefers-color-scheme: light)').matches
+ : m === 'light';
+ document.documentElement.setAttribute('data-theme', l ? 'light' : 'dark');
+ } catch (e) {
+ document.documentElement.setAttribute('data-theme', 'dark');
+ }
+ })();
+ </script>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>Examples: runnable embed code · three.ws</title>
+ <meta
+ name="description"
+ content="Copy-paste examples that run right on this page: the minimal 3D viewer, a talking agent, a floating support bubble, a custom chat UI over the JS API, and iframe widgets. Every snippet runs against the production CDN bundle."
+ />
+ <meta property="og:type" content="website" />
+ <meta property="og:site_name" content="three.ws" />
+ <meta property="og:url" content="https://three.ws/examples" />
+ <meta property="og:title" content="Examples: runnable embed code · three.ws" />
+ <meta
+ property="og:description"
+ content="Copy-paste examples that run right on the page, from the minimal 3D viewer to a talking agent with a custom chat UI. Run, copy, ship."
+ />
+ <meta
+ property="og:image"
+ content="https://three.ws/api/page-og?s=dev&amp;t=Runnable+examples&amp;d=Copy-paste+embed+code+that+runs+right+on+the+page%3A+viewer%2C+talking+agent%2C+floating+bubble%2C+custom+chat+UI%2C+iframe+widgets&amp;p=%2Fexamples"
+ />
+ <meta property="og:image:width" content="1200" />
+ <meta property="og:image:height" content="630" />
+ <meta name="twitter:card" content="summary_large_image" />
+ <meta name="twitter:site" content="@trythreews" />
+ <meta name="twitter:title" content="Examples: runnable embed code · three.ws" />
+ <meta
+ name="twitter:description"
+ content="Copy-paste examples that run right on the page. Every snippet runs against the production CDN bundle."
+ />
+ <meta
+ name="twitter:image"
+ content="https://three.ws/api/page-og?s=dev&amp;t=Runnable+examples&amp;d=Copy-paste+embed+code+that+runs+right+on+the+page%3A+viewer%2C+talking+agent%2C+floating+bubble%2C+custom+chat+UI%2C+iframe+widgets&amp;p=%2Fexamples"
+ />
+ <meta name="theme-color" content="#0a0a0a" />
+ <link rel="icon" href="/favicon.ico" sizes="any" />
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
+ <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
+ <link rel="manifest" href="/manifest.webmanifest" />
+ <link rel="stylesheet" href="/fonts/fonts.css" />
+ <link rel="stylesheet" href="/nav.css" />
+ <link rel="stylesheet" href="/src/ui-juice.css" />
+ <link rel="stylesheet" href="/examples.css" />
+ <link rel="stylesheet" href="/footer.css" />
+ <script defer src="/footer-newsletter.js"></script>
+ <link rel="canonical" href="https://three.ws/examples" />
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "WebPage",
+ "name": "Examples: runnable embed code",
+ "description": "Copy-paste examples that run right on the page: the minimal 3D viewer, a talking agent, a floating support bubble, a custom chat UI over the JS API, and iframe widgets.",
+ "url": "https://three.ws/examples",
+ "isPartOf": { "@type": "WebSite", "name": "three.ws", "url": "https://three.ws" }
+ }
+ </script>
+ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1" />
+ <meta property="og:locale" content="en_US" />
+ <meta property="og:image:alt" content="Runnable three.ws embed examples" />
+ </head>
+ <body>
+ <header><div id="nav-container"></div></header>
+ <script src="/nav.js"></script>
+
+ <main class="exg-shell">
+ <section class="exg-hero">
+ <p class="exg-kicker">
+ <span class="exg-live-dot" aria-hidden="true"></span> Every snippet runs on this
+ page
+ </p>
+ <h1 class="exg-title">Runnable <em>examples</em></h1>
+ <p class="exg-sub">
+ <span id="exg-count">6</span> copy-paste examples, each one a complete document
+ that loads the production
+ <a href="https://three.ws/agent-3d/latest/agent-3d.js">CDN bundle</a>. Press
+ <strong>Run</strong> and the exact code shown executes in a sandboxed frame;
+ press <strong>Copy</strong> and paste it into any HTML page. Deeper walkthroughs
+ live in the <a href="/tutorials">tutorials</a>, and the full runnable set
+ (including agent manifests, skills, and end-to-end scripts) is in the
+ <a href="https://github.com/nirholas/three.ws/tree/main/examples"
+ >examples/ directory on GitHub</a
+ >.
+ </p>
+ </section>
+
+ <div class="exg-grid" id="exg-grid"></div>
+
+ <section class="exg-more" aria-labelledby="exg-more-h" data-role="ex-browse">
+ <h2 id="exg-more-h">Every example in the repo</h2>
+ <p>
+ Beyond the single-file snippets above, the repository ships complete example
+ projects and an example folder beside each SDK and published package: agents
+ defined entirely as files, installable skill bundles, and scripts that drive the
+ MCP and payment surfaces end to end. This list is generated by scanning the
+ repository, so it cannot advertise an example that was deleted or miss one that
+ was added. Each card shows the files it contains and the command that runs it.
+ </p>
+
+ <div class="exi-toolbar" role="toolbar" aria-label="Search and filter repository examples">
+ <div class="exi-search-wrap">
+ <svg class="exi-search-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="8" /><line x1="21" y1="21" x2="16.65" y2="16.65" /></svg>
+ <input
+ type="search"
+ class="exi-search"
+ data-role="ex-search"
+ placeholder="Search all examples…"
+ aria-label="Search all repository examples"
+ autocomplete="off"
+ />
+ </div>
+ <span class="exi-count" data-role="ex-count" aria-live="polite"></span>
+ </div>
+
+ <div class="exi-chips" data-role="ex-chips" role="tablist" aria-label="Filter examples by kind"></div>
+ <p class="exi-sr" data-role="ex-live" aria-live="polite"></p>
+
+ <div class="exi-grid" data-role="ex-loading" aria-label="Loading examples">
+ <div class="exi-skeleton"></div>
+ <div class="exi-skeleton"></div>
+ <div class="exi-skeleton"></div>
+ <div class="exi-skeleton"></div>
+ <div class="exi-skeleton"></div>
+ <div class="exi-skeleton"></div>
+ </div>
+
+ <div class="exi-grid" data-role="ex-grid" hidden></div>
+
+ <div class="exi-state" data-role="ex-empty-search" hidden>
+ <h3>No matches</h3>
+ <p>No examples match your search or the selected kind.</p>
+ <button type="button" class="exi-btn exi-btn--ghost" data-role="ex-clear">Clear filters</button>
+ </div>
+
+ <div class="exi-state" data-role="ex-error" hidden>
+ <h3>Couldn't load the example index</h3>
+ <p data-role="ex-error-msg">Something went wrong loading the example index.</p>
+ <button type="button" class="exi-btn exi-btn--ghost" data-role="ex-retry">Try again</button>
+ </div>
+
+ <h3 class="exi-subhead">Start with these</h3>
+ <div class="exg-more-grid">
+ <a
+ class="exg-more-card"
+ href="https://github.com/nirholas/three.ws/tree/main/examples/coach-leo"
+ target="_blank"
+ rel="noopener"
+ >
+ <strong>coach-leo</strong>
+ <span
+ >The smallest complete agent defined as files: manifest, system prompt, one
+ skill. The template to copy.</span
+ >
+ </a>
+ <a
+ class="exg-more-card"
+ href="https://github.com/nirholas/three.ws/tree/main/examples/three-concierge"
+ target="_blank"
+ rel="noopener"
+ >
+ <strong>three-concierge</strong>
+ <span
+ >Trinity, the reference agent for manifest spec 0.2: pump.fun skills,
+ extended thinking, discovery card.</span
+ >
+ </a>
+ <a
+ class="exg-more-card"
+ href="https://github.com/nirholas/three.ws/tree/main/examples/skills"
+ target="_blank"
+ rel="noopener"
+ >
+ <strong>skills</strong>
+ <span
+ >Six installable skill bundles with documented tools, config, and safety
+ caps.</span
+ >
+ </a>
+ <a
+ class="exg-more-card"
+ href="https://github.com/nirholas/three.ws/tree/main/examples/agent-native-3d"
+ target="_blank"
+ rel="noopener"
+ >
+ <strong>agent-native-3d</strong>
+ <span
+ >A Node script that generates a mesh, rigs it, saves it as an agent persona,
+ and speaks through it via MCP.</span
+ >
+ </a>
+ <a
+ class="exg-more-card"
+ href="https://github.com/nirholas/three.ws/tree/main/examples/monicas-apartment"
+ target="_blank"
+ rel="noopener"
+ >
+ <strong>monicas-apartment</strong>
+ <span
+ >A walkable first-person Three.js scene in one self-contained HTML file. No
+ server at all.</span
+ >
+ </a>
+ <a class="exg-more-card" href="/docs/examples">
+ <strong>Examples doc</strong>
+ <span
+ >The written companion: every example annotated with what it demonstrates
+ and where the pieces live.</span
+ >
+ </a>
+ </div>
+ </section>
+ </main>
+
+ <script src="/examples.js" defer></script>
+ <script src="/examples-index.js" defer></script>
+ <script src="/brand.js" defer></script>
+ <div id="footer-container"></div>
+ <script src="/footer.js"></script>
+ <script type="module" src="/i18n.js"></script>
+ </body>
+</html>
diff --git a/pages/marketplace-analytics.html b/pages/marketplace-analytics.html
index a073ded7f..60ef315fb 100644
--- a/pages/marketplace-analytics.html
+++ b/pages/marketplace-analytics.html
@@ -80,9 +80,29 @@
.an-error{background:rgba(239,68,68,.08);border:1px solid rgba(239,68,68,.25);border-radius:10px;padding:16px 20px;color:#ef4444;font-size:13px;margin-bottom:24px;}
/* Two column layout for top tables */
.an-two-col{display:grid;grid-template-columns:1fr 1fr;gap:24px;}
+
+ /* ── Trial funnel ──────────────────────────────────────────────
+ Four stages, each a bar whose width is its share of the widest
+ stage, so the drop-off is legible at a glance rather than a row
+ of numbers to compare by hand. */
+ .funnel-intro{color:var(--muted);font-size:13px;margin:-8px 0 16px;max-width:62ch;}
+ .funnel{list-style:none;margin:0;padding:0;display:grid;gap:10px;counter-reset:stage;}
+ .funnel-step{background:var(--card);border:1px solid var(--line-2);border-radius:var(--radius);padding:14px 16px;position:relative;overflow:hidden;transition:border-color .15s;}
+ .funnel-step:hover,.funnel-step:focus-within{border-color:var(--line-2);}
+ .funnel-step::before{content:"";position:absolute;inset:0 auto 0 0;width:var(--pct,0%);background:var(--tint,var(--violet));opacity:.14;transition:width .5s cubic-bezier(.22,1,.36,1);}
+ @media(prefers-reduced-motion:reduce){.funnel-step::before{transition:none;}}
+ .funnel-head{position:relative;display:flex;align-items:baseline;justify-content:space-between;gap:12px;}
+ .funnel-name{font-size:13px;font-weight:600;}
+ .funnel-val{font-size:20px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.01em;}
+ .funnel-desc{position:relative;font-size:12px;color:var(--muted);margin-top:4px;max-width:62ch;}
+ .funnel-rate{font-size:11px;color:var(--dim);margin-left:8px;font-variant-numeric:tabular-nums;}
+ .funnel-note{margin-top:14px;padding:12px 14px;border-radius:10px;font-size:12.5px;line-height:1.55;background:rgba(245,165,36,.08);border:1px solid rgba(245,165,36,.25);color:var(--text);}
+ .funnel-note a{color:var(--amber);}
+
@media(max-width:720px){
.an-two-col{grid-template-columns:1fr;}
.stats-grid{grid-template-columns:repeat(2,1fr);}
+ .funnel-head{flex-direction:column;align-items:flex-start;gap:2px;}
}
@media(max-width:400px){
.stats-grid{grid-template-columns:1fr;}
@@ -129,6 +149,13 @@
<div class="stat-card"><div class="skeleton skeleton-stat" style="width:60%;"></div><div class="skeleton skeleton-row" style="width:50%;margin-top:8px;"></div></div>
</div>
+ <section class="an-section" id="funnel-section" hidden>
+ <h2 data-i18n-html="marketplace_analytics.trial_funnel">Trial Funnel <span class="an-count">All time</span></h2>
+ <p class="funnel-intro" data-i18n="marketplace_analytics.trial_funnel_intro">Free trials are counted here, never as sales. A skill sells when a trial runs out and the buyer wants one more run.</p>
+ <ol class="funnel" id="funnel-steps" aria-label="Trial conversion funnel"></ol>
+ <p class="funnel-note" id="funnel-note" hidden></p>
+ </section>
+
<div class="an-section">
<h2 data-i18n-html="marketplace_analytics.sales_volume_last_30_days">Sales Volume <span class="an-count">Last 30 days</span></h2>
<div class="chart-wrap">
diff --git a/pages/mcp-tools.html b/pages/mcp-tools.html
new file mode 100644
index 000000000..c35ed2c23
--- /dev/null
+++ b/pages/mcp-tools.html
@@ -0,0 +1,583 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <script>/* three.ws theme boot — no-flash */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
+ <title>MCP Tool Catalog · three.ws</title>
+ <meta name="description" content="Every MCP tool three.ws publishes, in one searchable catalog: what it does, which server hosts it, what it costs in USDC, and whether it is safe for an AI client to run unattended. Generated from source, so it is never out of date." />
+ <link rel="canonical" href="https://three.ws/mcp-tools" />
+ <link rel="icon" href="/favicon.ico" sizes="any" />
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
+ <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
+ <link rel="manifest" href="/manifest.webmanifest" />
+ <link rel="stylesheet" href="/style.css" />
+ <link rel="stylesheet" href="/nav.css" />
+ <link rel="stylesheet" href="/mobile.css" />
+ <meta property="og:type" content="website" />
+ <meta property="og:title" content="MCP Tool Catalog · three.ws" />
+ <meta property="og:description" content="Every MCP tool three.ws publishes: what it does, what it costs, and whether an AI client can run it unattended. Generated from source." />
+ <meta property="og:url" content="https://three.ws/mcp-tools" />
+ <meta property="og:image" content="https://three.ws/api/page-og?s=build&amp;t=MCP+Tool+Catalog&amp;d=Every+MCP+tool+three.ws+publishes%3A+what+it+does%2C+what+it+costs%2C+and+whether+an+AI+client+can+run+it+unattended.&amp;p=%2Fmcp-tools" />
+ <meta name="twitter:card" content="summary_large_image" />
+ <meta name="twitter:title" content="MCP Tool Catalog · three.ws" />
+ <meta name="twitter:description" content="Every MCP tool three.ws publishes, searchable by safety, price, and server." />
+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=build&amp;t=MCP+Tool+Catalog&amp;d=Every+MCP+tool+three.ws+publishes%3A+what+it+does%2C+what+it+costs%2C+and+whether+an+AI+client+can+run+it+unattended.&amp;p=%2Fmcp-tools" />
+ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1" />
+ <meta property="og:locale" content="en_US" />
+ <meta property="og:image:alt" content="MCP Tool Catalog — three.ws" />
+ <meta name="twitter:site" content="@trythreews" />
+ <style>
+ :root {
+ --mc-read: #4ade80;
+ --mc-write: #fbbf24;
+ --mc-irreversible: #f87171;
+ --mc-paid: #c4b5fd;
+ --mc-maxw: 1240px;
+ }
+ :root[data-theme="light"] {
+ --mc-read: #15803d;
+ --mc-write: #a16207;
+ --mc-irreversible: #b91c1c;
+ --mc-paid: #6d28d9;
+ }
+ * { box-sizing: border-box; }
+ html, body { margin: 0; background: var(--bg-0); color: var(--ink); }
+ body { font-family: var(--font-body, 'Inter', system-ui, sans-serif); min-height: 100vh; }
+ .site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg-0) 82%, transparent); backdrop-filter: blur(10px); }
+
+ .mc-wrap { max-width: var(--mc-maxw); margin: 0 auto; padding: 0 18px 96px; }
+
+ /* ── hero ───────────────────────────────────────────────────────── */
+ .mc-hero { padding: 34px 0 8px; }
+ .mc-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.02em; color: var(--ink-bright, var(--ink)); }
+ .mc-hero p { margin: 0; max-width: 68ch; color: var(--ink-dim); line-height: 1.6; }
+ .mc-hero a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
+ .mc-hero a:hover { color: var(--ink-bright, var(--ink)); }
+
+ /* ── stat strip ─────────────────────────────────────────────────── */
+ .mc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 22px 0 6px; }
+ .mc-stat { border: 1px solid var(--stroke); background: var(--surface-1, rgba(255,255,255,0.03)); border-radius: var(--radius-md, 10px); padding: 12px 14px; }
+ .mc-stat dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-dim); margin: 0 0 4px; }
+ .mc-stat dd { margin: 0; font-size: 1.4rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink-bright, var(--ink)); }
+
+ /* ── controls ───────────────────────────────────────────────────── */
+ .mc-controls { position: sticky; top: 58px; z-index: 20; padding: 14px 0 12px; background: color-mix(in srgb, var(--bg-0) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hairline); margin-bottom: 18px; }
+ .mc-search { position: relative; display: flex; align-items: center; }
+ .mc-search svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--ink-dim); pointer-events: none; }
+ .mc-search input {
+ width: 100%; padding: 11px 84px 11px 36px; font: inherit; font-size: 0.95rem;
+ color: var(--ink); background: var(--surface-2, rgba(255,255,255,0.05));
+ border: 1px solid var(--stroke); border-radius: var(--radius-md, 10px);
+ transition: border-color 0.15s ease, background 0.15s ease;
+ }
+ .mc-search input::placeholder { color: var(--ink-dim); }
+ .mc-search input:hover { border-color: var(--stroke-strong); }
+ .mc-search input:focus-visible { outline: none; border-color: var(--accent); background: var(--surface-3, rgba(255,255,255,0.07)); }
+ .mc-kbd {
+ position: absolute; right: 10px; display: inline-flex; gap: 4px; pointer-events: none;
+ }
+ .mc-kbd kbd {
+ font: 600 0.7rem/1 var(--font-mono, ui-monospace, monospace); padding: 4px 6px;
+ border: 1px solid var(--stroke); border-radius: 5px; color: var(--ink-dim);
+ background: var(--surface-1, rgba(255,255,255,0.04));
+ }
+ .mc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
+ .mc-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
+ .mc-group-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-dim); margin-right: 2px; }
+ .mc-chip {
+ font: inherit; font-size: 0.82rem; padding: 6px 11px; cursor: pointer;
+ color: var(--ink-dim); background: transparent;
+ border: 1px solid var(--stroke); border-radius: 999px;
+ transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
+ }
+ .mc-chip:hover { color: var(--ink); border-color: var(--stroke-strong); background: var(--surface-1, rgba(255,255,255,0.04)); }
+ .mc-chip:active { transform: translateY(1px); }
+ .mc-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
+ .mc-chip[aria-pressed="true"] { color: var(--ink-bright, var(--ink)); border-color: currentColor; background: var(--surface-3, rgba(255,255,255,0.08)); }
+ .mc-chip[data-safety="read"][aria-pressed="true"] { color: var(--mc-read); }
+ .mc-chip[data-safety="write"][aria-pressed="true"] { color: var(--mc-write); }
+ .mc-chip[data-safety="irreversible"][aria-pressed="true"] { color: var(--mc-irreversible); }
+ .mc-select {
+ font: inherit; font-size: 0.82rem; padding: 6px 10px; color: var(--ink);
+ background: var(--surface-1, rgba(255,255,255,0.04)); border: 1px solid var(--stroke);
+ border-radius: 999px; cursor: pointer; max-width: 240px;
+ }
+ .mc-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
+ .mc-reset { margin-left: auto; }
+
+ .mc-count { font-size: 0.85rem; color: var(--ink-dim); margin: 0 0 14px; font-variant-numeric: tabular-nums; }
+
+ /* ── tool grid ──────────────────────────────────────────────────── */
+ .mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
+ .mc-card {
+ display: flex; flex-direction: column; gap: 8px; text-align: left;
+ padding: 15px 16px; font: inherit; cursor: pointer;
+ background: var(--surface-1, rgba(255,255,255,0.03));
+ border: 1px solid var(--stroke); border-radius: var(--radius-lg, 14px);
+ transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
+ }
+ .mc-card:hover { border-color: var(--stroke-strong); background: var(--surface-2, rgba(255,255,255,0.055)); transform: translateY(-1px); }
+ .mc-card:active { transform: translateY(0); }
+ .mc-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
+ .mc-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
+ .mc-name { font: 600 0.92rem/1.3 var(--font-mono, ui-monospace, monospace); color: var(--ink-bright, var(--ink)); word-break: break-word; }
+ .mc-title { font-size: 0.78rem; color: var(--ink-dim); margin-top: 2px; }
+ .mc-desc {
+ font-size: 0.84rem; line-height: 1.5; color: var(--ink-dim); margin: 0;
+ display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
+ }
+ .mc-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; padding-top: 4px; }
+ .mc-badge {
+ font-size: 0.7rem; font-weight: 600; padding: 3px 8px; border-radius: 999px;
+ border: 1px solid currentColor; white-space: nowrap;
+ }
+ .mc-badge[data-safety="read"] { color: var(--mc-read); }
+ .mc-badge[data-safety="write"] { color: var(--mc-write); }
+ .mc-badge[data-safety="irreversible"] { color: var(--mc-irreversible); }
+ .mc-badge-price { color: var(--mc-paid); }
+ .mc-badge-free { color: var(--ink-dim); border-color: var(--stroke); }
+ .mc-server { font-size: 0.72rem; color: var(--ink-faint, var(--ink-dim)); font-family: var(--font-mono, ui-monospace, monospace); }
+
+ /* ── states ─────────────────────────────────────────────────────── */
+ .mc-skeleton { border: 1px solid var(--stroke); border-radius: var(--radius-lg, 14px); padding: 15px 16px; }
+ .mc-shimmer { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-1, rgba(255,255,255,0.04)) 25%, var(--surface-3, rgba(255,255,255,0.09)) 50%, var(--surface-1, rgba(255,255,255,0.04)) 75%); background-size: 200% 100%; animation: mc-shimmer 1.4s ease-in-out infinite; }
+ .mc-shimmer + .mc-shimmer { margin-top: 9px; }
+ .mc-shimmer.w60 { width: 60%; } .mc-shimmer.w40 { width: 40%; } .mc-shimmer.w85 { width: 85%; }
+ @keyframes mc-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
+ @media (prefers-reduced-motion: reduce) {
+ .mc-shimmer { animation: none; }
+ .mc-card, .mc-chip { transition: none; }
+ }
+ .mc-empty, .mc-error {
+ border: 1px dashed var(--stroke-strong); border-radius: var(--radius-lg, 14px);
+ padding: 40px 24px; text-align: center; color: var(--ink-dim);
+ }
+ .mc-error { border-style: solid; border-color: var(--danger); }
+ .mc-empty h2, .mc-error h2 { margin: 0 0 8px; font-size: 1.05rem; color: var(--ink-bright, var(--ink)); }
+ .mc-empty p, .mc-error p { margin: 0 auto 16px; max-width: 46ch; line-height: 1.55; font-size: 0.9rem; }
+ .mc-btn {
+ font: inherit; font-size: 0.85rem; font-weight: 600; padding: 8px 16px; cursor: pointer;
+ color: var(--btn-secondary-fg, var(--ink)); background: var(--btn-secondary-bg, var(--surface-3));
+ border: 1px solid var(--btn-secondary-border, var(--stroke-strong)); border-radius: var(--radius-md, 10px);
+ transition: background 0.15s ease;
+ }
+ .mc-btn:hover { background: var(--btn-secondary-bg-hover, rgba(255,255,255,0.12)); }
+ .mc-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
+
+ /* ── detail dialog ──────────────────────────────────────────────── */
+ dialog.mc-detail {
+ width: min(680px, calc(100vw - 32px)); max-height: min(84vh, 760px); padding: 0;
+ color: var(--ink); background: var(--bg-1); border: 1px solid var(--stroke-strong);
+ border-radius: var(--radius-lg, 14px);
+ }
+ dialog.mc-detail::backdrop { background: rgba(0,0,0,0.62); backdrop-filter: blur(3px); }
+ .mc-detail-in { padding: 20px 22px 24px; overflow-y: auto; max-height: inherit; }
+ .mc-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
+ .mc-detail-head h2 { margin: 0; font: 650 1.05rem/1.3 var(--font-mono, ui-monospace, monospace); color: var(--ink-bright, var(--ink)); word-break: break-word; }
+ .mc-close { font: inherit; font-size: 1.4rem; line-height: 1; padding: 2px 8px; cursor: pointer; color: var(--ink-dim); background: transparent; border: 1px solid transparent; border-radius: 8px; }
+ .mc-close:hover { color: var(--ink); border-color: var(--stroke); }
+ .mc-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
+ .mc-detail p.mc-detail-desc { font-size: 0.9rem; line-height: 1.6; color: var(--ink-dim); margin: 12px 0 18px; white-space: pre-wrap; }
+ .mc-kv { width: 100%; border-collapse: collapse; font-size: 0.84rem; margin-bottom: 18px; }
+ .mc-kv th, .mc-kv td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
+ .mc-kv th { font-weight: 500; color: var(--ink-dim); width: 40%; }
+ .mc-kv td { font-family: var(--font-mono, ui-monospace, monospace); color: var(--ink); word-break: break-word; }
+ .mc-note { font-size: 0.82rem; line-height: 1.55; padding: 11px 13px; border-radius: var(--radius-md, 10px); border: 1px solid var(--stroke); background: var(--surface-1, rgba(255,255,255,0.03)); color: var(--ink-dim); margin-bottom: 18px; }
+ .mc-snippet { position: relative; }
+ .mc-snippet pre {
+ margin: 0; padding: 13px 14px; overflow-x: auto; font-size: 0.78rem; line-height: 1.5;
+ font-family: var(--font-mono, ui-monospace, monospace); color: var(--ink);
+ background: var(--bg-0); border: 1px solid var(--stroke); border-radius: var(--radius-md, 10px);
+ }
+ .mc-copy { position: absolute; top: 8px; right: 8px; font-size: 0.72rem; padding: 5px 10px; }
+ h3.mc-sub { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-dim); margin: 0 0 8px; font-weight: 600; }
+
+ @media (max-width: 640px) {
+ .mc-controls { top: 0; }
+ .mc-grid { grid-template-columns: 1fr; }
+ .mc-reset { margin-left: 0; }
+ }
+ </style>
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"MCP Tool Catalog","description":"Every MCP tool three.ws publishes: what it does, which server hosts it, what it costs in USDC, and whether an AI client can run it unattended.","url":"https://three.ws/mcp-tools","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
+</head>
+<body>
+ <header class="site-header"><div id="nav-container"></div></header>
+ <script src="/nav.js"></script>
+
+ <main class="mc-wrap">
+ <div class="mc-hero">
+ <h1>MCP Tool Catalog</h1>
+ <p>
+ Every tool three.ws publishes over the <a href="/docs/mcp">Model Context Protocol</a>, in one place:
+ what it does, which server hosts it, what it costs, and whether an AI client can run it without asking you first.
+ This page is generated from the source of every tool, so it cannot drift from what the servers actually serve.
+ The same data is machine-readable at <a href="/mcp-catalog.json"><code>/mcp-catalog.json</code></a>.
+ </p>
+ </div>
+
+ <dl class="mc-stats" id="mc-stats" aria-live="polite"></dl>
+
+ <div class="mc-controls">
+ <label class="mc-search">
+ <span class="sr-only">Search tools</span>
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg>
+ <input id="mc-q" type="search" autocomplete="off" spellcheck="false"
+ placeholder="Search 270 tools by name, description, or server…" />
+ <span class="mc-kbd" aria-hidden="true"><kbd>/</kbd></span>
+ </label>
+
+ <div class="mc-filters">
+ <div class="mc-group" role="group" aria-label="Filter by safety">
+ <span class="mc-group-label">Safety</span>
+ <button type="button" class="mc-chip" data-filter="safety" data-safety="read" data-value="read" aria-pressed="false">Read-only</button>
+ <button type="button" class="mc-chip" data-filter="safety" data-safety="write" data-value="write" aria-pressed="false">Writes</button>
+ <button type="button" class="mc-chip" data-filter="safety" data-safety="irreversible" data-value="irreversible" aria-pressed="false">Irreversible</button>
+ </div>
+ <div class="mc-group" role="group" aria-label="Filter by price">
+ <span class="mc-group-label">Price</span>
+ <button type="button" class="mc-chip" data-filter="price" data-value="free" aria-pressed="false">Free</button>
+ <button type="button" class="mc-chip" data-filter="price" data-value="paid" aria-pressed="false">Paid</button>
+ </div>
+ <div class="mc-group">
+ <span class="mc-group-label"><label for="mc-server">Server</label></span>
+ <select id="mc-server" class="mc-select"><option value="">All servers</option></select>
+ </div>
+ <button type="button" class="mc-btn mc-reset" id="mc-reset" hidden>Clear filters</button>
+ </div>
+ </div>
+
+ <p class="mc-count" id="mc-count" role="status" aria-live="polite"></p>
+ <div class="mc-grid" id="mc-grid"></div>
+ </main>
+
+ <dialog class="mc-detail" id="mc-detail" aria-labelledby="mc-detail-name">
+ <div class="mc-detail-in" id="mc-detail-in"></div>
+ </dialog>
+
+ <script src="/brand.js" defer></script>
+ <script type="module">
+ const grid = document.getElementById('mc-grid');
+ const countEl = document.getElementById('mc-count');
+ const statsEl = document.getElementById('mc-stats');
+ const qEl = document.getElementById('mc-q');
+ const serverEl = document.getElementById('mc-server');
+ const resetEl = document.getElementById('mc-reset');
+ const dialog = document.getElementById('mc-detail');
+ const dialogIn = document.getElementById('mc-detail-in');
+
+ const state = { q: '', safety: new Set(), price: new Set(), server: '' };
+ let catalog = null;
+
+ const esc = (s) =>
+ String(s ?? '').replace(/[&<>"']/g, (c) =>
+ ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' })[c],
+ );
+
+ const SAFETY_LABEL = {
+ read: 'Read-only',
+ write: 'Writes',
+ irreversible: 'Irreversible',
+ };
+ const SAFETY_BLURB = {
+ read: 'Does not change anything. An MCP client can run this without asking you.',
+ write: 'Changes something, and the change can be corrected by a follow-up call.',
+ irreversible: 'Cannot be undone once it runs. Approve each call deliberately.',
+ };
+
+ const priceLabel = (price) =>
+ price.free ? 'Free' : `$${price.usd.toFixed(price.usd < 0.01 ? 3 : 2)}`;
+
+ // ── skeleton while the catalog loads ──────────────────────────────
+ function renderSkeleton() {
+ grid.innerHTML = Array.from({ length: 9 })
+ .map(
+ () =>
+ '<div class="mc-skeleton" aria-hidden="true"><div class="mc-shimmer w60"></div>' +
+ '<div class="mc-shimmer w85"></div><div class="mc-shimmer"></div>' +
+ '<div class="mc-shimmer w40"></div></div>',
+ )
+ .join('');
+ countEl.textContent = 'Loading the catalog…';
+ }
+
+ function renderError(message) {
+ statsEl.hidden = true;
+ countEl.textContent = '';
+ grid.innerHTML =
+ '<div class="mc-error" style="grid-column:1/-1"><h2>The catalog could not be loaded</h2>' +
+ `<p>${esc(message)}</p>` +
+ '<button type="button" class="mc-btn" id="mc-retry">Try again</button></div>';
+ document.getElementById('mc-retry').addEventListener('click', load);
+ }
+
+ function renderStats() {
+ const c = catalog.counts;
+ const cells = [
+ ['Tools', c.tools],
+ ['Servers', c.servers],
+ ['Read-only', c.read],
+ ['Writes', c.write],
+ ['Irreversible', c.irreversible],
+ ['Free', c.free],
+ ['Paid', c.paid],
+ ];
+ statsEl.innerHTML = cells
+ .map(
+ ([label, value]) =>
+ `<div class="mc-stat"><dt>${esc(label)}</dt><dd>${value}</dd></div>`,
+ )
+ .join('');
+ }
+
+ function matches(tool) {
+ if (state.safety.size && !state.safety.has(tool.safety)) return false;
+ if (state.price.size) {
+ const bucket = tool.price.free ? 'free' : 'paid';
+ if (!state.price.has(bucket)) return false;
+ }
+ if (state.server && tool.server.id !== state.server) return false;
+ if (state.q) {
+ const hay = `${tool.name} ${tool.title ?? ''} ${tool.description ?? ''} ${tool.server.id} ${tool.server.title}`.toLowerCase();
+ // Every term must appear somewhere, so "solana read" narrows sensibly.
+ return state.q.split(/\s+/).every((term) => hay.includes(term));
+ }
+ return true;
+ }
+
+ function cardHtml(tool, index) {
+ const desc = tool.description
+ ? esc(tool.description)
+ : '<em>Composed at request time. Call tools/list on the server for the live text.</em>';
+ const price = tool.price.free
+ ? '<span class="mc-badge mc-badge-free">Free</span>'
+ : `<span class="mc-badge mc-badge-price">${esc(priceLabel(tool.price))} USDC</span>`;
+ return (
+ `<button type="button" class="mc-card" data-index="${index}">` +
+ '<span class="mc-card-top"><span>' +
+ `<span class="mc-name">${esc(tool.name)}</span>` +
+ (tool.title ? `<span class="mc-title">${esc(tool.title)}</span>` : '') +
+ '</span></span>' +
+ `<p class="mc-desc">${desc}</p>` +
+ '<span class="mc-badges">' +
+ `<span class="mc-badge" data-safety="${tool.safety}">${SAFETY_LABEL[tool.safety]}</span>` +
+ price +
+ `<span class="mc-server">${esc(tool.server.title)}</span>` +
+ '</span></button>'
+ );
+ }
+
+ let visible = [];
+
+ function render() {
+ visible = catalog.tools.filter(matches);
+ const anyFilter = Boolean(state.q || state.safety.size || state.price.size || state.server);
+ resetEl.hidden = !anyFilter;
+
+ if (!visible.length) {
+ countEl.textContent = 'No matches';
+ grid.innerHTML =
+ '<div class="mc-empty" style="grid-column:1/-1"><h2>No tools match those filters</h2>' +
+ '<p>Try a different search term, or widen the filters. Every three.ws MCP tool is listed here, so an empty result means the filters are too narrow, not that the catalog is missing something.</p>' +
+ '<button type="button" class="mc-btn" id="mc-clear">Clear filters</button></div>';
+ document.getElementById('mc-clear').addEventListener('click', clearFilters);
+ return;
+ }
+
+ countEl.textContent =
+ visible.length === catalog.tools.length
+ ? `${visible.length} tools`
+ : `${visible.length} of ${catalog.tools.length} tools`;
+ grid.innerHTML = visible.map(cardHtml).join('');
+ }
+
+ // ── detail dialog ─────────────────────────────────────────────────
+ function openDetail(tool) {
+ const a = tool.annotations;
+ const hint = (v) => (v === null ? 'not declared' : String(v));
+ const tiers = tool.price.tiers
+ ? tool.price.tiers.map((t) => `${t.id} $${t.usd.toFixed(2)}`).join(' · ')
+ : null;
+
+ const call = {
+ jsonrpc: '2.0',
+ id: 1,
+ method: 'tools/call',
+ params: { name: tool.name, arguments: {} },
+ };
+ const snippet =
+ tool.server.transport === 'remote'
+ ? `curl -X POST https://three.ws${tool.server.endpoint} \\\n -H 'content-type: application/json' \\\n -d '${JSON.stringify(call)}'`
+ : `${tool.server.endpoint}\n\n# then call ${tool.name} from your MCP client`;
+
+ dialogIn.innerHTML =
+ '<div class="mc-detail-head">' +
+ `<h2 id="mc-detail-name">${esc(tool.name)}</h2>` +
+ '<button type="button" class="mc-close" id="mc-close" aria-label="Close">&times;</button>' +
+ '</div>' +
+ (tool.title ? `<div class="mc-title">${esc(tool.title)}</div>` : '') +
+ `<p class="mc-detail-desc">${
+ tool.description
+ ? esc(tool.description)
+ : 'This tool composes its description at request time. Call tools/list on the server for the live text.'
+ }</p>` +
+ `<div class="mc-note"><strong>${SAFETY_LABEL[tool.safety]}.</strong> ${SAFETY_BLURB[tool.safety]}</div>` +
+ '<h3 class="mc-sub">Details</h3>' +
+ '<table class="mc-kv"><tbody>' +
+ `<tr><th>Server</th><td>${esc(tool.server.title)}</td></tr>` +
+ `<tr><th>Endpoint</th><td>${esc(tool.server.endpoint ?? 'n/a')}</td></tr>` +
+ `<tr><th>Transport</th><td>${esc(tool.server.transport)}</td></tr>` +
+ `<tr><th>Auth</th><td>${esc(tool.server.auth)}</td></tr>` +
+ `<tr><th>Price</th><td>${esc(priceLabel(tool.price))}${tool.price.free ? '' : ' USDC'}${tiers ? ` (${esc(tiers)})` : ''}</td></tr>` +
+ `<tr><th>readOnlyHint</th><td>${hint(a.readOnlyHint)}</td></tr>` +
+ `<tr><th>destructiveHint</th><td>${hint(a.destructiveHint)}</td></tr>` +
+ `<tr><th>idempotentHint</th><td>${hint(a.idempotentHint)}</td></tr>` +
+ `<tr><th>openWorldHint</th><td>${hint(a.openWorldHint)}</td></tr>` +
+ `<tr><th>Source</th><td>${esc(tool.source)}</td></tr>` +
+ '</tbody></table>' +
+ '<h3 class="mc-sub">Call it</h3>' +
+ '<div class="mc-snippet">' +
+ `<pre><code>${esc(snippet)}</code></pre>` +
+ '<button type="button" class="mc-btn mc-copy" id="mc-copy">Copy</button>' +
+ '</div>';
+
+ document.getElementById('mc-close').addEventListener('click', () => dialog.close());
+ const copyBtn = document.getElementById('mc-copy');
+ copyBtn.addEventListener('click', async () => {
+ try {
+ await navigator.clipboard.writeText(snippet);
+ copyBtn.textContent = 'Copied';
+ } catch {
+ // Clipboard can be blocked by permissions; the text is selectable anyway.
+ copyBtn.textContent = 'Select and copy';
+ }
+ setTimeout(() => {
+ copyBtn.textContent = 'Copy';
+ }, 1600);
+ });
+
+ dialog.showModal();
+ }
+
+ grid.addEventListener('click', (event) => {
+ const card = event.target.closest('.mc-card');
+ if (card) openDetail(visible[Number(card.dataset.index)]);
+ });
+
+ // ── filter wiring + shareable URL ─────────────────────────────────
+ function syncUrl() {
+ const params = new URLSearchParams();
+ if (state.q) params.set('q', state.q);
+ if (state.safety.size) params.set('safety', [...state.safety].join(','));
+ if (state.price.size) params.set('price', [...state.price].join(','));
+ if (state.server) params.set('server', state.server);
+ const qs = params.toString();
+ history.replaceState(null, '', qs ? `?${qs}` : location.pathname);
+ }
+
+ function readUrl() {
+ const params = new URLSearchParams(location.search);
+ state.q = (params.get('q') ?? '').trim().toLowerCase();
+ state.server = params.get('server') ?? '';
+ for (const key of ['safety', 'price']) {
+ const raw = params.get(key);
+ if (raw) for (const v of raw.split(',').filter(Boolean)) state[key].add(v);
+ }
+ qEl.value = params.get('q') ?? '';
+ }
+
+ function syncChips() {
+ for (const chip of document.querySelectorAll('.mc-chip')) {
+ const on = state[chip.dataset.filter].has(chip.dataset.value);
+ chip.setAttribute('aria-pressed', String(on));
+ }
+ serverEl.value = state.server;
+ }
+
+ function clearFilters() {
+ state.q = '';
+ state.safety.clear();
+ state.price.clear();
+ state.server = '';
+ qEl.value = '';
+ syncChips();
+ syncUrl();
+ render();
+ qEl.focus();
+ }
+
+ for (const chip of document.querySelectorAll('.mc-chip')) {
+ chip.addEventListener('click', () => {
+ const bucket = state[chip.dataset.filter];
+ const value = chip.dataset.value;
+ if (bucket.has(value)) bucket.delete(value);
+ else bucket.add(value);
+ syncChips();
+ syncUrl();
+ render();
+ });
+ }
+
+ let debounce;
+ qEl.addEventListener('input', () => {
+ clearTimeout(debounce);
+ debounce = setTimeout(() => {
+ state.q = qEl.value.trim().toLowerCase();
+ syncUrl();
+ render();
+ }, 120);
+ });
+
+ serverEl.addEventListener('change', () => {
+ state.server = serverEl.value;
+ syncUrl();
+ render();
+ });
+
+ resetEl.addEventListener('click', clearFilters);
+
+ document.addEventListener('keydown', (event) => {
+ if (event.key === '/' && document.activeElement !== qEl) {
+ event.preventDefault();
+ qEl.focus();
+ qEl.select();
+ } else if (event.key === 'Escape' && document.activeElement === qEl && qEl.value) {
+ qEl.value = '';
+ state.q = '';
+ syncUrl();
+ render();
+ }
+ });
+
+ // ── load ──────────────────────────────────────────────────────────
+ async function load() {
+ renderSkeleton();
+ statsEl.hidden = false;
+ try {
+ const res = await fetch('/mcp-catalog.json', { headers: { accept: 'application/json' } });
+ if (!res.ok) throw new Error(`the server returned ${res.status}`);
+ catalog = await res.json();
+ } catch (error) {
+ renderError(
+ `${error.message}. The catalog is a static file at /mcp-catalog.json, so this is usually a network problem.`,
+ );
+ return;
+ }
+
+ renderStats();
+ qEl.placeholder = `Search ${catalog.counts.tools} tools by name, description, or server…`;
+ serverEl.innerHTML =
+ '<option value="">All servers</option>' +
+ catalog.servers
+ .map((s) => `<option value="${esc(s.id)}">${esc(s.title)} (${s.tools})</option>`)
+ .join('');
+ readUrl();
+ syncChips();
+ render();
+ }
+
+ load();
+ </script>
+ <script type="module" src="/i18n.js"></script>
+</body>
+</html>
diff --git a/pages/nvidia/index.html b/pages/nvidia/index.html
index b7c10e273..f0c363096 100644
--- a/pages/nvidia/index.html
+++ b/pages/nvidia/index.html
@@ -4,13 +4,13 @@
<style>/* three.ws hidden-guard: make the `hidden` attribute authoritative; see scripts/lib/hidden-guard.mjs */[hidden]{display:none!important}</style>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
- <title>three.ws on NVIDIA: free 3D generation on NVIDIA models and GPUs</title>
- <meta name="description" content="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, and a self-hosted fleet of Cloud Run GPU workers on L4 and RTX PRO 6000." />
+ <title data-i18n="nvidia_index.meta_title">three.ws on NVIDIA: free 3D generation on NVIDIA models and GPUs</title>
+ <meta name="description" content="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, and a self-hosted fleet of Cloud Run GPU workers on L4 and RTX PRO 6000." data-i18n-attr="content:nvidia_index.meta_description"/>
<link rel="canonical" href="https://three.ws/nvidia" />
<meta property="og:type" content="website" />
- <meta property="og:title" content="three.ws on NVIDIA" />
- <meta property="og:description" content="Free text-to-3D on NVIDIA-hosted TRELLIS, plus a self-hosted GPU fleet on L4 and Blackwell. The full model map, the fleet layout, and a call you can run right now." />
+ <meta property="og:title" content="three.ws on NVIDIA" data-i18n-attr="content:nvidia_index.meta_og_title"/>
+ <meta property="og:description" content="Free text-to-3D on NVIDIA-hosted TRELLIS, plus a self-hosted GPU fleet on L4 and Blackwell. The full model map, the fleet layout, and a call you can run right now." data-i18n-attr="content:nvidia_index.meta_og_description"/>
<meta property="og:url" content="https://three.ws/nvidia" />
<meta property="og:image" content="https://three.ws/og-image.png" />
<meta property="og:image:width" content="1200" />
@@ -18,8 +18,8 @@
<meta property="og:image:alt" content="three.ws on NVIDIA: free 3D generation on NVIDIA models and GPUs." />
<meta name="twitter:card" content="summary_large_image" />
- <meta name="twitter:title" content="three.ws on NVIDIA" />
- <meta name="twitter:description" content="Free text-to-3D on NVIDIA-hosted models, plus a self-hosted GPU fleet on L4 and Blackwell. One key, no account, no cost." />
+ <meta name="twitter:title" content="three.ws on NVIDIA" data-i18n-attr="content:nvidia_index.meta_twitter_title"/>
+ <meta name="twitter:description" content="Free text-to-3D on NVIDIA-hosted models, plus a self-hosted GPU fleet on L4 and Blackwell. One key, no account, no cost." data-i18n-attr="content:nvidia_index.meta_twitter_description"/>
<meta name="twitter:image" content="https://three.ws/og-image.png" />
<meta name="twitter:site" content="@trythreews" />
@@ -142,14 +142,14 @@
<div class="eyebrow">
<span class="dot" aria-hidden="true"></span>
- <strong>NVIDIA Inception member</strong>
+ <strong data-i18n="nvidia_index.nvidia_inception_member">NVIDIA Inception member</strong>
<span>·</span>
- <span>Accepted July 2026</span>
+ <span data-i18n="nvidia_index.accepted_july_2026">Accepted July 2026</span>
</div>
- <h1>Every model here is born on <span class="gradient">NVIDIA</span>.</h1>
+ <h1 data-i18n-html="nvidia_index.every_model_here_is_born_on_nvidia">Every model here is born on <span class="gradient">NVIDIA</span>.</h1>
- <p class="lede">
+ <p class="lede" data-i18n-html="nvidia_index.type_a_sentence_get_a_textured_3d">
Type a sentence, get a textured 3D model. That path runs end to end on NVIDIA silicon, and on
three.ws the first lane of it is <strong>free, keyless, and open source</strong>. This page is the
honest map of how: which NVIDIA-hosted models do what, which GPUs we run ourselves, and what we
@@ -165,14 +165,14 @@
Generate one free
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" aria-hidden="true"><path d="M5 12h14M13 5l7 7-7 7"/></svg>
</a>
- <a href="/docs/nvidia-models" class="btn btn-sec">The model map</a>
- <a href="/blog/image-to-3d-on-nvidia-l4-and-blackwell" class="btn btn-sec">Engineering post</a>
- <a href="/docs/nvidia-inception" class="btn btn-sec">About the membership</a>
+ <a href="/docs/nvidia-models" class="btn btn-sec" data-i18n="nvidia_index.the_model_map">The model map</a>
+ <a href="/blog/image-to-3d-on-nvidia-l4-and-blackwell" class="btn btn-sec" data-i18n="nvidia_index.engineering_post">Engineering post</a>
+ <a href="/docs/nvidia-inception" class="btn btn-sec" data-i18n="nvidia_index.about_the_membership">About the membership</a>
</div>
<section>
- <h2>Two layers, one stack.</h2>
- <p class="sub">
+ <h2 data-i18n="nvidia_index.two_layers_one_stack">Two layers, one stack.</h2>
+ <p class="sub" data-i18n="nvidia_index.almost_every_platform_that_says_runs_on">
Almost every platform that says "runs on NVIDIA" means one of these. We run both, and they serve
different jobs: the hosted lane keeps the free tier free, the self-hosted fleet buys quality the
free tier cannot reach.
@@ -181,32 +181,32 @@
<div class="layers">
<div class="layer">
- <span class="tag">Layer 1 · Hosted</span>
- <h3>NVIDIA-hosted models, one key</h3>
- <p>
+ <span class="tag" data-i18n="nvidia_index.layer_1_hosted">Layer 1 · Hosted</span>
+ <h3 data-i18n="nvidia_index.nvidia_hosted_models_one_key">NVIDIA-hosted models, one key</h3>
+ <p data-i18n-html="nvidia_index.a_single_from_build_nvidia_com_unlocks">
A single <code>NVIDIA_API_KEY</code> from build.nvidia.com unlocks the entire catalog below.
No per-model billing, no per-seat cost. It is rate limited rather than metered, which is
exactly why we treat it as a free-first lane and always keep a fallback behind it.
</p>
<ul>
- <li><strong>Text to 3D</strong> that costs a visitor nothing and needs no account</li>
- <li><strong>Chat, vision, embeddings, reranking, safety, speech</strong> on the same key</li>
- <li>Every call has a documented failover, so a rate limit degrades instead of breaking</li>
+ <li data-i18n-html="nvidia_index.text_to_3d_that_costs_a_visitor"><strong>Text to 3D</strong> that costs a visitor nothing and needs no account</li>
+ <li data-i18n-html="nvidia_index.chat_vision_embeddings_reranking_safety_spee"><strong>Chat, vision, embeddings, reranking, safety, speech</strong> on the same key</li>
+ <li data-i18n="nvidia_index.every_call_has_a_documented_failover_so">Every call has a documented failover, so a rate limit degrades instead of breaking</li>
</ul>
</div>
<div class="layer">
- <span class="tag">Layer 2 · Self-hosted</span>
- <h3>Our own GPU fleet</h3>
- <p>
+ <span class="tag" data-i18n="nvidia_index.layer_2_self_hosted">Layer 2 · Self-hosted</span>
+ <h3 data-i18n="nvidia_index.our_own_gpu_fleet">Our own GPU fleet</h3>
+ <p data-i18n-html="nvidia_index.twelve_cloud_run_gpu_services_each_a">
Twelve Cloud Run GPU services, each a worker wrapping one model, autoscaled per lane.
Eleven on <code>nvidia-l4</code>, one on <code>nvidia-rtx-pro-6000</code> (Blackwell). This is
where the paid realism lanes live, and where PBR materials, rigging, and motion get made.
</p>
<ul>
- <li><strong>Physically-based materials</strong>: baseColor, metallicRoughness, and normal maps</li>
- <li><strong>Auto-rigging and motion</strong>, so a generated mesh can move, not just sit there</li>
- <li>One wire contract across every worker, so any lane can fail over to any other</li>
+ <li data-i18n-html="nvidia_index.physically_based_materials_basecolor_metalli"><strong>Physically-based materials</strong>: baseColor, metallicRoughness, and normal maps</li>
+ <li data-i18n-html="nvidia_index.auto_rigging_and_motion_so_a_generated"><strong>Auto-rigging and motion</strong>, so a generated mesh can move, not just sit there</li>
+ <li data-i18n="nvidia_index.one_wire_contract_across_every_worker_so">One wire contract across every worker, so any lane can fail over to any other</li>
</ul>
</div>
@@ -214,8 +214,8 @@
</section>
<section>
- <h2>The free model map.</h2>
- <p class="sub">
+ <h2 data-i18n="nvidia_index.the_free_model_map">The free model map.</h2>
+ <p class="sub" data-i18n="nvidia_index.every_capability_below_is_in_production_sour">
Every capability below is in production source and reachable on the free key. Nothing here is
aspirational, and nothing is a demo stub.
</p>
@@ -223,32 +223,32 @@
<div class="table-scroll">
<table>
<thead>
- <tr><th>Capability</th><th>NVIDIA model</th><th>What it powers</th><th>Free</th></tr>
+ <tr><th data-i18n="nvidia_index.capability">Capability</th><th data-i18n="nvidia_index.nvidia_model">NVIDIA model</th><th data-i18n="nvidia_index.what_it_powers">What it powers</th><th data-i18n="nvidia_index.free">Free</th></tr>
</thead>
<tbody>
- <tr><td>Text to 3D</td><td><code>microsoft/trellis</code></td><td>The keyless generate lane on /forge</td><td class="free">Yes</td></tr>
- <tr><td>Text to image</td><td><code>black-forest-labs/flux.1-schnell</code></td><td>Reference images and texture inputs</td><td class="free">Yes</td></tr>
- <tr><td>LLM, default lane</td><td><code>meta/llama-3.3-70b-instruct</code></td><td>Agent chat and platform reasoning</td><td class="free">Yes</td></tr>
- <tr><td>LLM, model garden</td><td>Nemotron 120B / 49B / Nano 9B and peers</td><td>The Brain workbench model picker</td><td class="free">Yes</td></tr>
- <tr><td>Vision</td><td><code>nvidia/nemotron-nano-12b-v2-vl</code></td><td>Photo checks before reconstruction, alt text</td><td class="free">Yes</td></tr>
- <tr><td>Embeddings</td><td><code>nvidia/nv-embedqa-e5-v5</code></td><td>Agent memory and semantic search</td><td class="free">Yes</td></tr>
- <tr><td>Reranking</td><td><code>nvidia/rerank-qa-mistral-4b</code></td><td>Sharpening retrieval before an answer</td><td class="free">Yes</td></tr>
- <tr><td>Content safety</td><td><code>nvidia/llama-3.1-nemoguard-8b-content-safety</code></td><td>The guardrail in front of generation</td><td class="free">Yes</td></tr>
- <tr><td>Text to speech</td><td><code>magpie-tts-multilingual</code> (Riva)</td><td>Avatar voices, multilingual</td><td class="free">Yes</td></tr>
+ <tr><td data-i18n="nvidia_index.text_to_3d">Text to 3D</td><td><code>microsoft/trellis</code></td><td data-i18n="nvidia_index.the_keyless_generate_lane_on_forge">The keyless generate lane on /forge</td><td class="free" data-i18n="nvidia_index.yes">Yes</td></tr>
+ <tr><td data-i18n="nvidia_index.text_to_image">Text to image</td><td><code>black-forest-labs/flux.1-schnell</code></td><td data-i18n="nvidia_index.reference_images_and_texture_inputs">Reference images and texture inputs</td><td class="free" data-i18n="nvidia_index.yes_2">Yes</td></tr>
+ <tr><td data-i18n="nvidia_index.llm_default_lane">LLM, default lane</td><td><code>meta/llama-3.3-70b-instruct</code></td><td data-i18n="nvidia_index.agent_chat_and_platform_reasoning">Agent chat and platform reasoning</td><td class="free" data-i18n="nvidia_index.yes_3">Yes</td></tr>
+ <tr><td data-i18n="nvidia_index.llm_model_garden">LLM, model garden</td><td data-i18n="nvidia_index.nemotron_120b_49b_nano_9b_and_peers">Nemotron 120B / 49B / Nano 9B and peers</td><td data-i18n="nvidia_index.the_brain_workbench_model_picker">The Brain workbench model picker</td><td class="free" data-i18n="nvidia_index.yes_4">Yes</td></tr>
+ <tr><td data-i18n="nvidia_index.vision">Vision</td><td><code>nvidia/nemotron-nano-12b-v2-vl</code></td><td data-i18n="nvidia_index.photo_checks_before_reconstruction_alt_text">Photo checks before reconstruction, alt text</td><td class="free" data-i18n="nvidia_index.yes_5">Yes</td></tr>
+ <tr><td data-i18n="nvidia_index.embeddings">Embeddings</td><td><code>nvidia/nv-embedqa-e5-v5</code></td><td data-i18n="nvidia_index.agent_memory_and_semantic_search">Agent memory and semantic search</td><td class="free" data-i18n="nvidia_index.yes_6">Yes</td></tr>
+ <tr><td data-i18n="nvidia_index.reranking">Reranking</td><td><code>nvidia/rerank-qa-mistral-4b</code></td><td data-i18n="nvidia_index.sharpening_retrieval_before_an_answer">Sharpening retrieval before an answer</td><td class="free" data-i18n="nvidia_index.yes_7">Yes</td></tr>
+ <tr><td data-i18n="nvidia_index.content_safety">Content safety</td><td><code>nvidia/llama-3.1-nemoguard-8b-content-safety</code></td><td data-i18n="nvidia_index.the_guardrail_in_front_of_generation">The guardrail in front of generation</td><td class="free" data-i18n="nvidia_index.yes_8">Yes</td></tr>
+ <tr><td data-i18n="nvidia_index.text_to_speech">Text to speech</td><td data-i18n-html="nvidia_index.riva"><code>magpie-tts-multilingual</code> (Riva)</td><td data-i18n="nvidia_index.avatar_voices_multilingual">Avatar voices, multilingual</td><td class="free" data-i18n="nvidia_index.yes_9">Yes</td></tr>
</tbody>
</table>
</div>
<div class="note">
- <strong>Model by model, with the file each one is wired into:</strong>
- <a href="/docs/nvidia-models">NVIDIA models on three.ws</a>. It names the exact endpoint, the fallback
+ <strong data-i18n="nvidia_index.model_by_model_with_the_file_each">Model by model, with the file each one is wired into:</strong>
+ <a href="/docs/nvidia-models" data-i18n="nvidia_index.nvidia_models_on_three_ws">NVIDIA models on three.ws</a>. It names the exact endpoint, the fallback
behind it, and the environment variable that turns each lane on.
</div>
</section>
<section>
- <h2>Try the free lane right now.</h2>
- <p class="sub">
+ <h2 data-i18n="nvidia_index.try_the_free_lane_right_now">Try the free lane right now.</h2>
+ <p class="sub" data-i18n="nvidia_index.no_key_no_account_no_wallet_one">
No key, no account, no wallet. One POST returns a real GLB you can open in any 3D viewer. This is the
same endpoint the browser UI calls.
</p>
@@ -263,15 +263,15 @@ curl -s -X POST <span class="s">https://three.ws/api/forge</span> \
# "quality":{"valid":true,"score":0.947,…}}</span></pre>
<div class="note">
- <strong>The <code>quality</code> block is not decoration.</strong> Every generation is inspected before it
+ <strong data-i18n-html="nvidia_index.the_block_is_not_decoration">The <code>quality</code> block is not decoration.</strong> Every generation is inspected before it
is handed back: vertex and triangle counts, bounding-box diagonal, whether materials and textures
actually landed. A model that fails inspection is regenerated rather than shipped to you broken.
</div>
</section>
<section>
- <h2>The GPU fleet.</h2>
- <p class="sub">
+ <h2 data-i18n="nvidia_index.the_gpu_fleet">The GPU fleet.</h2>
+ <p class="sub" data-i18n="nvidia_index.what_we_run_ourselves_and_on_which">
What we run ourselves, and on which card. Each row is a separate Cloud Run service with its own
scaling policy, so a slow texture job never queues behind a rigging job.
</p>
@@ -279,64 +279,64 @@ curl -s -X POST <span class="s">https://three.ws/api/forge</span> \
<div class="table-scroll">
<table>
<thead>
- <tr><th>Lane</th><th>Worker</th><th>GPU</th><th>CPU / memory</th></tr>
+ <tr><th data-i18n="nvidia_index.lane">Lane</th><th data-i18n="nvidia_index.worker">Worker</th><th data-i18n="nvidia_index.gpu">GPU</th><th data-i18n="nvidia_index.cpu_memory">CPU / memory</th></tr>
</thead>
<tbody>
- <tr><td>Image to 3D, PBR</td><td><code>model-hunyuan3d-21-rtx</code></td><td><code>nvidia-rtx-pro-6000</code></td><td>20 / 80 Gi</td></tr>
- <tr><td>Image to 3D, fallback</td><td><code>model-hunyuan3d</code></td><td><code>nvidia-l4</code></td><td>8 / 32 Gi</td></tr>
- <tr><td>Text to 3D</td><td><code>model-trellis</code></td><td><code>nvidia-l4</code></td><td>8 / 32 Gi</td></tr>
- <tr><td>Image to 3D, fast</td><td><code>model-triposg</code>, <code>model-triposr</code></td><td><code>nvidia-l4</code></td><td>8 / 32 Gi, 4 / 16 Gi</td></tr>
- <tr><td>Texture synthesis</td><td><code>texture</code></td><td><code>nvidia-l4</code></td><td>8 / 32 Gi</td></tr>
- <tr><td>Auto-rigging</td><td><code>rig</code>, <code>unirig</code></td><td><code>nvidia-l4</code></td><td>4 / 16 Gi</td></tr>
- <tr><td>Text to motion</td><td><code>model-text2motion</code></td><td><code>nvidia-l4</code></td><td>4 / 16 Gi</td></tr>
- <tr><td>Video to scene</td><td><code>model-video2scene</code></td><td><code>nvidia-l4</code></td><td>8 / 32 Gi</td></tr>
+ <tr><td data-i18n="nvidia_index.image_to_3d_pbr">Image to 3D, PBR</td><td><code>model-hunyuan3d-21-rtx</code></td><td><code>nvidia-rtx-pro-6000</code></td><td data-i18n="nvidia_index.20_80_gi">20 / 80 Gi</td></tr>
+ <tr><td data-i18n="nvidia_index.image_to_3d_fallback">Image to 3D, fallback</td><td><code>model-hunyuan3d</code></td><td><code>nvidia-l4</code></td><td data-i18n="nvidia_index.8_32_gi">8 / 32 Gi</td></tr>
+ <tr><td data-i18n="nvidia_index.text_to_3d_2">Text to 3D</td><td><code>model-trellis</code></td><td><code>nvidia-l4</code></td><td data-i18n="nvidia_index.8_32_gi_2">8 / 32 Gi</td></tr>
+ <tr><td data-i18n="nvidia_index.image_to_3d_fast">Image to 3D, fast</td><td><code>model-triposg</code>, <code>model-triposr</code></td><td><code>nvidia-l4</code></td><td data-i18n="nvidia_index.8_32_gi_4_16_gi">8 / 32 Gi, 4 / 16 Gi</td></tr>
+ <tr><td data-i18n="nvidia_index.texture_synthesis">Texture synthesis</td><td><code>texture</code></td><td><code>nvidia-l4</code></td><td data-i18n="nvidia_index.8_32_gi_3">8 / 32 Gi</td></tr>
+ <tr><td data-i18n="nvidia_index.auto_rigging">Auto-rigging</td><td><code>rig</code>, <code>unirig</code></td><td><code>nvidia-l4</code></td><td data-i18n="nvidia_index.4_16_gi">4 / 16 Gi</td></tr>
+ <tr><td data-i18n="nvidia_index.text_to_motion">Text to motion</td><td><code>model-text2motion</code></td><td><code>nvidia-l4</code></td><td data-i18n="nvidia_index.4_16_gi_2">4 / 16 Gi</td></tr>
+ <tr><td data-i18n="nvidia_index.video_to_scene">Video to scene</td><td><code>model-video2scene</code></td><td><code>nvidia-l4</code></td><td data-i18n="nvidia_index.8_32_gi_4">8 / 32 Gi</td></tr>
</tbody>
</table>
</div>
<div class="note">
- <strong>Everything above is open source.</strong> Each worker's Dockerfile, deploy config, and README are
+ <strong data-i18n="nvidia_index.everything_above_is_open_source">Everything above is open source.</strong> Each worker's Dockerfile, deploy config, and README are
in the repository, including the CUDA and PyTorch versions per GPU generation.
</div>
</section>
<section>
- <h2>Read next.</h2>
- <p class="sub">Two tutorials you can follow end to end, and two deeper pieces on how the stack was built.</p>
+ <h2 data-i18n="nvidia_index.read_next">Read next.</h2>
+ <p class="sub" data-i18n="nvidia_index.two_tutorials_you_can_follow_end_to">Two tutorials you can follow end to end, and two deeper pieces on how the stack was built.</p>
<div class="reads">
<a class="read" href="/tutorials/nvidia-3d-free">
- <span class="kind">Tutorial</span>
- <h3>Free text-to-3D on NVIDIA</h3>
- <p>From an empty terminal to a downloaded GLB on the free lane, including how to poll a long job and what each response field means.</p>
+ <span class="kind" data-i18n="nvidia_index.tutorial">Tutorial</span>
+ <h3 data-i18n="nvidia_index.free_text_to_3d_on_nvidia">Free text-to-3D on NVIDIA</h3>
+ <p data-i18n="nvidia_index.from_an_empty_terminal_to_a_downloaded">From an empty terminal to a downloaded GLB on the free lane, including how to poll a long job and what each response field means.</p>
<span class="more">Start the tutorial
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true"><path d="M2.5 6h7M6.5 3l3 3-3 3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
</span>
</a>
<a class="read" href="/tutorials/nvidia-nim-self-host">
- <span class="kind">Tutorial</span>
- <h3>Self-host TRELLIS on your own NIM</h3>
- <p>Run the same text-to-3D model on your own NVIDIA GPU with NIM, then point a client at it and reconstruct from photos too.</p>
+ <span class="kind" data-i18n="nvidia_index.tutorial_2">Tutorial</span>
+ <h3 data-i18n="nvidia_index.self_host_trellis_on_your_own_nim">Self-host TRELLIS on your own NIM</h3>
+ <p data-i18n="nvidia_index.run_the_same_text_to_3d_model">Run the same text-to-3D model on your own NVIDIA GPU with NIM, then point a client at it and reconstruct from photos too.</p>
<span class="more">Start the tutorial
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true"><path d="M2.5 6h7M6.5 3l3 3-3 3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
</span>
</a>
<a class="read" href="/blog/image-to-3d-on-nvidia-l4-and-blackwell">
- <span class="kind">Engineering</span>
- <h3>Image-to-3D on L4 and Blackwell</h3>
- <p>The field report: a memory-backed <code>/tmp</code> that SIGKILLs a 32 GiB instance mid-load, cu124 wheels with no sm_120 kernels, and the regional quota that flipped our GPU choice.</p>
+ <span class="kind" data-i18n="nvidia_index.engineering">Engineering</span>
+ <h3 data-i18n="nvidia_index.image_to_3d_on_l4_and_blackwell">Image-to-3D on L4 and Blackwell</h3>
+ <p data-i18n-html="nvidia_index.the_field_report_a_memory_backed_that">The field report: a memory-backed <code>/tmp</code> that SIGKILLs a 32 GiB instance mid-load, cu124 wheels with no sm_120 kernels, and the regional quota that flipped our GPU choice.</p>
<span class="more">Read the post
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true"><path d="M2.5 6h7M6.5 3l3 3-3 3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
</span>
</a>
<a class="read" href="/docs/nvidia-nemotron-spotlight">
- <span class="kind">Essay</span>
- <h3>The generator was never the hard part</h3>
- <p>Published on the NVIDIA Developer Forums: why a 12B vision model standing in front of the 3D generator mattered more than the 3D generator itself.</p>
+ <span class="kind" data-i18n="nvidia_index.essay">Essay</span>
+ <h3 data-i18n="nvidia_index.the_generator_was_never_the_hard_part">The generator was never the hard part</h3>
+ <p data-i18n="nvidia_index.published_on_the_nvidia_developer_forums_why">Published on the NVIDIA Developer Forums: why a 12B vision model standing in front of the 3D generator mattered more than the 3D generator itself.</p>
<span class="more">Read the essay
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true"><path d="M2.5 6h7M6.5 3l3 3-3 3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
</span>
@@ -346,8 +346,8 @@ curl -s -X POST <span class="s">https://three.ws/api/forge</span> \
</section>
<section>
- <h2>Why this matters.</h2>
- <p class="sub">
+ <h2 data-i18n="nvidia_index.why_this_matters">Why this matters.</h2>
+ <p class="sub" data-i18n="nvidia_index.generating_3d_used_to_require_a_workstation">
Generating 3D used to require a workstation, a licence, and a skill you spent years acquiring.
The reason a visitor can now type a sentence on a school laptop and get a real, textured,
riggable model back for nothing is not one famous model getting good. It is an entire supporting
@@ -364,7 +364,7 @@ curl -s -X POST <span class="s">https://three.ws/api/forge</span> \
<svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 .3C5.4.3 0 5.7 0 12.3c0 5.3 3.4 9.8 8.2 11.4.6.1.8-.3.8-.6v-2.1c-3.3.7-4-1.6-4-1.6-.6-1.4-1.4-1.8-1.4-1.8-1.1-.7.1-.7.1-.7 1.2.1 1.9 1.2 1.9 1.2 1.1 1.8 2.9 1.3 3.6 1 .1-.8.4-1.3.8-1.6-2.7-.3-5.5-1.3-5.5-5.9 0-1.3.5-2.4 1.2-3.2-.1-.3-.5-1.5.1-3.2 0 0 1-.3 3.3 1.2 1-.3 2-.4 3-.4s2 .1 3 .4c2.3-1.5 3.3-1.2 3.3-1.2.7 1.7.2 2.9.1 3.2.8.8 1.2 1.9 1.2 3.2 0 4.6-2.8 5.6-5.5 5.9.4.4.8 1.1.8 2.2v3.3c0 .3.2.7.8.6 4.8-1.6 8.2-6.1 8.2-11.4C24 5.7 18.6.3 12 .3z"/></svg>
View source
</a>
- <a href="/partners" class="btn btn-sec">All partners</a>
+ <a href="/partners" class="btn btn-sec" data-i18n="nvidia_index.all_partners">All partners</a>
</div>
</section>
@@ -376,7 +376,7 @@ curl -s -X POST <span class="s">https://three.ws/api/forge</span> \
is not an NVIDIA product and is not endorsed by NVIDIA beyond the program membership shown. NVIDIA, the
NVIDIA logo, NVIDIA Inception, NIM, Riva, Nemotron, and NemoGuard are trademarks of NVIDIA Corporation.
Learn more about the program at
- <a href="https://www.nvidia.com/en-us/startups/" target="_blank" rel="noopener">nvidia.com/en-us/startups</a>.
+ <a href="https://www.nvidia.com/en-us/startups/" target="_blank" rel="noopener" data-i18n="nvidia_index.nvidia_com_en_us_startups">nvidia.com/en-us/startups</a>.
</p>
</main>
diff --git a/pages/play/economy.html b/pages/play/economy.html
new file mode 100644
index 000000000..12a758c11
--- /dev/null
+++ b/pages/play/economy.html
@@ -0,0 +1,127 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <script>
+ /* three.ws theme boot (no-flash); runtime in /theme-switcher.js */ (function () {
+ try {
+ var m = localStorage.getItem('twx_theme');
+ var l =
+ m === 'auto'
+ ? window.matchMedia &&
+ window.matchMedia('(prefers-color-scheme: light)').matches
+ : m === 'light';
+ document.documentElement.setAttribute('data-theme', l ? 'light' : 'dark');
+ } catch (e) {
+ document.documentElement.setAttribute('data-theme', 'dark');
+ }
+ })();
+ </script>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>The in-game economy · three.ws</title>
+ <meta
+ name="description"
+ content="Every price, prize and gate in the /play world economy: what the general store pays for what you gather, what it sells, how the bank protects your cash through death, what the $THREE boutique charges, and the full wheel paytable with real odds. Read from the same tables the game server prices trades with."
+ />
+ <meta property="og:type" content="website" />
+ <meta property="og:site_name" content="three.ws" />
+ <meta property="og:url" content="https://three.ws/play/economy" />
+ <meta property="og:title" content="The in-game economy · three.ws" />
+ <meta
+ property="og:description"
+ content="The complete /play economy reference: store prices, bank rules, the $THREE boutique, and the full wheel paytable with real odds. Never transcribed, read straight from the game's own tables."
+ />
+ <meta
+ property="og:image"
+ content="https://three.ws/api/page-og?s=crypto&amp;t=The+in-game+economy&amp;d=Store+prices%2C+bank+rules%2C+the+%24THREE+boutique+and+the+full+wheel+paytable%2C+read+from+the+same+tables+the+game+server+prices+trades+with&amp;p=%2Fplay%2Feconomy"
+ />
+ <meta property="og:image:width" content="1200" />
+ <meta property="og:image:height" content="630" />
+ <meta name="twitter:card" content="summary_large_image" />
+ <meta name="twitter:site" content="@trythreews" />
+ <meta name="twitter:title" content="The in-game economy · three.ws" />
+ <meta
+ name="twitter:description"
+ content="Store prices, bank rules, the $THREE boutique, and the full wheel paytable with real odds."
+ />
+ <meta
+ name="twitter:image"
+ content="https://three.ws/api/page-og?s=crypto&amp;t=The+in-game+economy&amp;d=Store+prices%2C+bank+rules%2C+the+%24THREE+boutique+and+the+full+wheel+paytable%2C+read+from+the+same+tables+the+game+server+prices+trades+with&amp;p=%2Fplay%2Feconomy"
+ />
+ <meta name="theme-color" content="#0a0a0a" />
+ <link rel="icon" href="/favicon.ico" sizes="any" />
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
+ <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
+ <link rel="manifest" href="/manifest.webmanifest" />
+ <link rel="stylesheet" href="/fonts/fonts.css" />
+ <link rel="stylesheet" href="/nav.css" />
+ <link rel="stylesheet" href="/src/ui-juice.css" />
+ <link rel="stylesheet" href="/src/play-economy.css" />
+ <link rel="stylesheet" href="/footer.css" />
+ <script defer src="/footer-newsletter.js"></script>
+ <link rel="canonical" href="https://three.ws/play/economy" />
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "WebPage",
+ "name": "The in-game economy",
+ "description": "The complete reference for the three.ws /play world economy: general store prices, banking rules, the $THREE cosmetics boutique, the Wheel of Fortune paytable, and the progression constants the economy is tuned against.",
+ "url": "https://three.ws/play/economy",
+ "isPartOf": { "@type": "WebSite", "name": "three.ws", "url": "https://three.ws" }
+ }
+ </script>
+ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1" />
+ <meta property="og:locale" content="en_US" />
+ <meta property="og:image:alt" content="The three.ws in-game economy reference" />
+ </head>
+ <body>
+ <header><div id="nav-container"></div></header>
+ <script src="/nav.js"></script>
+
+ <main class="pe-shell">
+ <div class="pe-glow" aria-hidden="true"></div>
+
+ <section class="pe-hero">
+ <p class="pe-kicker">The /play world economy</p>
+ <h1 class="pe-title">Every price, prize and <em>gate</em></h1>
+ <p class="pe-sub">
+ The open world runs a real economy: a purse you can lose, a bank that protects
+ it, a store that prices every trade server-side, a cosmetics boutique that
+ settles on Solana, and a wheel with published odds. Until now you had to walk up
+ to each NPC to learn any of it. This is the whole thing, in one place.
+ </p>
+ <p class="pe-sub">
+ Nothing below is transcribed by hand. The page reads the same tables the
+ authoritative game server prices trades with, so a number here is the number
+ you will be charged.
+ </p>
+ <div class="pe-hero-actions">
+ <a class="pe-btn pe-btn-primary" href="/play">Enter the world</a>
+ <a class="pe-btn" href="/docs/in-game-economy">Read the reference doc</a>
+ <a class="pe-btn" href="/docs/tutorials/earn-and-spend-in-play"
+ >Tutorial: earn and spend</a
+ >
+ </div>
+ </section>
+
+ <p id="pe-status" class="pe-sr" role="status" aria-live="polite"></p>
+ <div id="pe-content"></div>
+
+ <p class="pe-fineprint">
+ The catalogs, gates and odds on this page are served by
+ <code>/api/play/economy</code>, which imports them from the game's own modules
+ rather than restating them, so this reference cannot drift from what the server
+ charges. Cash is a game resource and never leaves the world; only boutique unlocks
+ and paid spins touch the chain, and both are verified on-chain before anything is
+ granted. The separate USDC cosmetics rail for the standalone character creator is
+ documented under <a href="/fits">Fits</a>.
+ </p>
+ </main>
+
+ <script type="module" src="/src/play-economy.js"></script>
+ <script src="/brand.js" defer></script>
+ <div id="footer-container"></div>
+ <script src="/footer.js"></script>
+ <script type="module" src="/i18n.js"></script>
+ </body>
+</html>
diff --git a/pages/wallet.html b/pages/wallet.html
new file mode 100644
index 000000000..d90b8ca63
--- /dev/null
+++ b/pages/wallet.html
@@ -0,0 +1,53 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
+ <meta charset="utf-8" />
+ <title>Your master wallet — three.ws</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <meta name="theme-color" content="#000000" />
+ <meta
+ name="description"
+ content="One custodial wallet for your three.ws account: hold SOL and USDC on Solana and Base, top up any agent you own, send to any Solana address, and read your on-chain history."
+ />
+ <meta name="robots" content="noindex" />
+
+ <meta property="og:type" content="website" />
+ <meta property="og:title" content="Your master wallet — three.ws" />
+ <meta
+ property="og:description"
+ content="Fund it once, then top up your agents, send SOL or USDC, and read every transaction straight from Solana."
+ />
+ <meta property="og:image" content="https://three.ws/api/page-og?s=crypto&amp;t=Your+Master+Wallet&amp;d=One+wallet+for+your+account%3A+balances%2C+sending%2C+and+agent+funding.&amp;p=%2Fwallet" />
+ <meta property="og:image:width" content="1200" />
+ <meta property="og:image:height" content="630" />
+ <meta name="twitter:card" content="summary_large_image" />
+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&amp;t=Your+Master+Wallet&amp;d=One+wallet+for+your+account%3A+balances%2C+sending%2C+and+agent+funding.&amp;p=%2Fwallet" />
+
+ <link rel="icon" href="/favicon.ico" sizes="any" />
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
+ <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
+ <link rel="manifest" href="/manifest.webmanifest" />
+ <link rel="stylesheet" href="/style.css" />
+ <link rel="stylesheet" href="/nav.css" />
+ <link rel="stylesheet" href="/footer.css" />
+ <link rel="stylesheet" href="/fonts/fonts.css" />
+ <link rel="stylesheet" href="/master-wallet.css" />
+ </head>
+ <body>
+ <div id="nav-container"></div>
+
+ <main class="wlt-wrap">
+ <p class="wlt-crumb"><a href="/">Home</a> / <a href="/account">Account</a> / Wallet</p>
+ <div id="wlt-root"></div>
+ </main>
+
+ <script type="module" src="/src/master-wallet.js"></script>
+ <script src="/nav.js" defer></script>
+ <script src="/brand.js" defer></script>
+ <div id="footer-container"></div>
+ <script src="/footer.js"></script>
+ <!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
+ <script type="module" src="/i18n.js"></script>
+ </body>
+</html>
diff --git a/public/animations/registry.json b/public/animations/registry.json
index f4338000b..94f34e380 100644
--- a/public/animations/registry.json
+++ b/public/animations/registry.json
@@ -9,43 +9,118 @@
"rig": "avaturn",
"status": "active",
"items": [
- { "name": "idle", "label": "Idle", "icon": "🧍", "loop": true, "clip": "public/animations/clips/idle.json", "source_fbx": "public/animations/Idle.fbx", "agent_slots": ["idle"] },
- { "name": "dance", "label": "Dance", "icon": "💃", "loop": true, "clip": "public/animations/clips/dance.json", "source_fbx": "public/animations/Hip Hop Dancing.fbx", "agent_slots": [] },
- { "name": "celebrate", "label": "Celebrate", "icon": "🎉", "loop": false, "clip": "public/animations/clips/celebrate.json", "source_fbx": "public/animations/Joyful Jump.fbx", "agent_slots": ["celebrate"] },
- { "name": "angry", "label": "Angry", "icon": "😡", "loop": false, "clip": "public/animations/clips/angry.json", "source_fbx": "public/animations/Angry.fbx", "agent_slots": ["shake"] },
- { "name": "defeated", "label": "Defeated", "icon": "😞", "loop": false, "clip": "public/animations/clips/defeated.json", "source_fbx": "public/animations/Defeated.fbx", "agent_slots": ["concern", "shrug"] },
- { "name": "dying", "label": "Dying", "icon": "💀", "loop": false, "clip": "public/animations/clips/dying.json", "source_fbx": "public/animations/Dying.fbx", "agent_slots": [] },
- { "name": "falling", "label": "Falling", "icon": "🪂", "loop": false, "clip": "public/animations/clips/falling.json", "source_fbx": "public/animations/Falling.fbx", "agent_slots": [] },
- { "name": "jump", "label": "Jump", "icon": "🦘", "loop": false, "clip": "public/animations/clips/jump.json", "source_fbx": "public/animations/Joyful Jump.fbx", "agent_slots": [] },
- { "name": "kiss", "label": "Kiss", "icon": "💋", "loop": false, "clip": "public/animations/clips/kiss.json", "source_fbx": "public/animations/Kiss.fbx", "agent_slots": [] },
- { "name": "pray", "label": "Pray", "icon": "🙏", "loop": false, "clip": "public/animations/clips/pray.json", "source_fbx": "public/animations/Praying.fbx", "agent_slots": ["think"] },
- { "name": "reaction", "label": "Reaction", "icon": "😲", "loop": false, "clip": "public/animations/clips/reaction.json", "source_fbx": "public/animations/Reaction.fbx", "agent_slots": ["wave", "nod", "point"] },
- { "name": "rumba", "label": "Rumba", "icon": "🕺", "loop": true, "clip": "public/animations/clips/rumba.json", "source_fbx": "public/animations/Rumba Dancing.fbx", "agent_slots": ["dance"] },
- { "name": "silly", "label": "Silly Dance","icon": "🤪", "loop": true, "clip": "public/animations/clips/silly.json", "source_fbx": "public/animations/Silly Dancing.fbx", "agent_slots": [] },
- { "name": "sitclap", "label": "Sit Clap", "icon": "👏", "loop": false, "clip": "public/animations/clips/sitclap.json", "source_fbx": "public/animations/Sitting Clap.fbx", "agent_slots": ["bow"] },
- { "name": "sitlaugh", "label": "Sit Laugh", "icon": "😂", "loop": false, "clip": "public/animations/clips/sitlaugh.json", "source_fbx": "public/animations/Sitting Laughing.fbx", "agent_slots": [] },
- { "name": "taunt", "label": "Taunt", "icon": "😝", "loop": false, "clip": "public/animations/clips/taunt.json", "source_fbx": "public/animations/Taunt.fbx", "agent_slots": [] },
- { "name": "thriller", "label": "Thriller", "icon": "🧟", "loop": true, "clip": "public/animations/clips/thriller.json", "source_fbx": "public/animations/Thriller Part 3.fbx", "agent_slots": [] },
- { "name": "capoeira", "label": "Capoeira", "icon": "🥋", "loop": true, "clip": "public/animations/clips/capoeira.json", "source_fbx": "public/animations/Capoeira.fbx", "agent_slots": [] },
- { "name": "wave", "label": "Wave", "icon": "👋", "loop": false, "clip": "public/animations/clips/wave.json", "source_fbx": "public/animations/Standing Cover Turn.fbx", "agent_slots": [] },
- { "name": "walk", "label": "Walk", "icon": "🚶", "loop": true, "clip": "public/animations/clips/walk.json", "source_fbx": "public/animations/Walk Strafe Left.fbx", "agent_slots": [] },
- { "name": "dodge", "label": "Dodge", "icon": "🤺", "loop": false, "clip": "public/animations/clips/dodge.json", "source_fbx": "public/animations/Dodging Right.fbx", "agent_slots": [] },
- { "name": "stepback", "label": "Step Back", "icon": "👣", "loop": false, "clip": "public/animations/clips/stepback.json", "source_fbx": "public/animations/Stepping Backward.fbx", "agent_slots": [] },
- { "name": "shoved", "label": "Shoved", "icon": "💥", "loop": false, "clip": "public/animations/clips/shoved.json", "source_fbx": "public/animations/Shoved Reaction With Spin.fbx", "agent_slots": [] },
- { "name": "standup", "label": "Stand Up", "icon": "⬆️", "loop": false, "clip": "public/animations/clips/standup.json", "source_fbx": "public/animations/Crouch To Stand.fbx", "agent_slots": [] },
- { "name": "header", "label": "Header", "icon": "⚽", "loop": false, "clip": "public/animations/clips/header.json", "source_fbx": "public/animations/Header Soccerball.fbx", "agent_slots": [] },
- { "name": "av-listening-music", "label": "Listening To Music", "icon": "🎧", "loop": true, "clip": "public/animations/clips/av-listening-music.json", "source_fbx": "public/animations/Listening To Music.fbx", "agent_slots": [] },
- { "name": "av-leaning-wall", "label": "Leaning On Wall", "icon": "🧱", "loop": true, "clip": "public/animations/clips/av-leaning-wall.json", "source_fbx": "public/animations/Leaning On A Wall.fbx", "agent_slots": [] },
- { "name": "av-rap-dance", "label": "Rap Dancing", "icon": "🎤", "loop": true, "clip": "public/animations/clips/av-rap-dance.json", "source_fbx": "public/animations/RapDancing.fbx", "agent_slots": [] },
- { "name": "av-offabean-dance", "label": "Offabean Dance", "icon": "🫘", "loop": true, "clip": "public/animations/clips/av-offabean-dance.json", "source_fbx": "animation-sources/Offabean Dance.fbx", "agent_slots": [], "_note": "Source round-tripped through glTF-Transform, so its hips track is metre-scale (not Mixamo's usual centimetres) and carries a baked ~1.45m armature offset. Built with recenterHips:true; unit handling is automatic." },
- { "name": "nod", "label": "Nod", "icon": "🙂", "loop": false, "clip": "public/animations/clips/nod.json", "source_fbx": "animation-sources/mx-nodding-head-yes-c9c91f89b96c.fbx", "agent_slots": [] },
- { "name": "shrug", "label": "Shrug", "icon": "🤷", "loop": false, "clip": "public/animations/clips/shrug.json", "source_fbx": "animation-sources/mx-shoulder-shrug-c9c69537b96c.fbx", "agent_slots": [] },
- { "name": "point", "label": "Point", "icon": "👉", "loop": false, "clip": "public/animations/clips/point.json", "source_fbx": "animation-sources/mx-pointing-with-arm-bent-c9c6947cb96c.fbx", "agent_slots": [] },
- { "name": "think", "label": "Think", "icon": "🤔", "loop": false, "clip": "public/animations/clips/think.json", "source_fbx": "animation-sources/mx-thoughtfully-nodding-head-yes-c9c91939b96c.fbx", "agent_slots": [] },
- { "name": "turn", "label": "Turn", "icon": "🔄", "loop": false, "clip": "public/animations/clips/turn.json", "source_fbx": "animation-sources/mx-standing-180-left-turn-c9c96eaeb96c.fbx", "agent_slots": [] },
- { "name": "jog", "label": "Jog", "icon": "🏃", "loop": true, "clip": "public/animations/clips/jog.json", "source_fbx": "animation-sources/mx-jog-forward-c9d59296b96c-31.fbx", "agent_slots": [] },
- { "name": "sitloop", "label": "Sitting Idle","icon": "🪑", "loop": true, "clip": "public/animations/clips/sitloop.json", "source_fbx": "animation-sources/mx-sitting-with-breathing-idle-c9ccab1bb96c.fbx", "agent_slots": [] },
- { "name": "sitidle", "label": "Sit Idle", "icon": "🪑", "loop": true, "clip": "public/animations/clips/sitidle.json", "source_fbx": null, "agent_slots": [], "note": "Hand-authored 2-key pose, no FBX source (commit 7a22e5993). Merged into manifest.json by build-animations.mjs from scripts/animations-extra-clips.json (previously orphaned — see known_issues history)." }
+ { "name": "idle", "label": "Idle", "icon": "🧍", "loop": true, "clip": "public/animations/clips/idle.json", "source_fbx": "animation-sources/Idle.fbx", "agent_slots": ["idle"] },
+ { "name": "lookdown", "label": "Look Down", "icon": "👀", "loop": true, "clip": "public/animations/clips/lookdown.json", "source_fbx": "animation-sources/Looking Down.fbx", "agent_slots": ["inspect"] },
+ { "name": "covereyes", "label": "Cover Eyes", "icon": "🙈", "loop": true, "clip": "public/animations/clips/covereyes.json", "source_fbx": "animation-sources/Defeat.fbx", "agent_slots": [] },
+ { "name": "facepalm", "label": "Facepalm", "icon": "🤦", "loop": false, "clip": "public/animations/clips/facepalm.json", "source_fbx": "animation-sources/Facepalm.glb", "agent_slots": [] },
+ { "name": "av-idle-breath", "label": "Idle Breath", "icon": "🧘", "loop": true, "clip": "public/animations/clips/av-idle-breath.json", "source_fbx": "animation-sources/Idle_Breath.glb", "agent_slots": [] },
+ { "name": "av-waiting", "label": "Waiting", "icon": "🕰️", "loop": true, "clip": "public/animations/clips/av-waiting.json", "source_fbx": "animation-sources/Standard_Waiting.glb", "agent_slots": ["fidget", "patience"] },
+ { "name": "av-superhero-jump", "label": "Superhero Jump", "icon": "🦸", "loop": false, "clip": "public/animations/clips/av-superhero-jump.json", "source_fbx": "animation-sources/Suoerhero_Jump.glb", "agent_slots": [] },
+ { "name": "av-walk-crouching", "label": "Walk Crouching", "icon": "🚶", "loop": true, "clip": "public/animations/clips/av-walk-crouching.json", "source_fbx": "animation-sources/Standard_Walk_Crouching.glb", "agent_slots": [] },
+ { "name": "av-arm-flex", "label": "Arm Flex", "icon": "💪", "loop": false, "clip": "public/animations/clips/av-arm-flex.json", "source_fbx": "animation-sources/Arm_Flex.glb", "agent_slots": [] },
+ { "name": "av-boxer-dance", "label": "Boxer Dance", "icon": "🥊", "loop": true, "clip": "public/animations/clips/av-boxer-dance.json", "source_fbx": "animation-sources/Boxers_dance.glb", "agent_slots": [] },
+ { "name": "av-brag-claps", "label": "Brag & Clap", "icon": "👏", "loop": false, "clip": "public/animations/clips/av-brag-claps.json", "source_fbx": "animation-sources/Brag_n_Claps.glb", "agent_slots": ["present"] },
+ { "name": "av-flexing-arm", "label": "Flex Arm", "icon": "💪", "loop": false, "clip": "public/animations/clips/av-flexing-arm.json", "source_fbx": "animation-sources/Flexing_Arm.glb", "agent_slots": [] },
+ { "name": "av-vtubing", "label": "VTubing", "icon": "📹", "loop": true, "clip": "public/animations/clips/av-vtubing.json", "source_fbx": "animation-sources/Standard_Vtubing_Movement.glb", "agent_slots": [] },
+ { "name": "av-stand-crouch-stand", "label": "Stand-Crouch-Stand", "icon": "🦵", "loop": false, "clip": "public/animations/clips/av-stand-crouch-stand.json", "source_fbx": "animation-sources/Standard_Stand_To_Crouch_To_Stand.glb", "agent_slots": [] },
+ { "name": "av-smoking", "label": "Smoking", "icon": "🚬", "loop": true, "clip": "public/animations/clips/av-smoking.json", "source_fbx": "animation-sources/Standard_Smoking.glb", "agent_slots": [] },
+ { "name": "av-gymnastics-aerial", "label": "Gymnastics", "icon": "🤸", "loop": false, "clip": "public/animations/clips/av-gymnastics-aerial.json", "source_fbx": "animation-sources/Gymnastics_Aerial.glb", "agent_slots": [] },
+ { "name": "av-idle-anim", "label": "Idle (Avaturn)", "icon": "🧍", "loop": true, "clip": "public/animations/clips/av-idle-anim.json", "source_fbx": "animation-sources/idle_anim.glb", "agent_slots": [] },
+ { "name": "av-back-flip", "label": "Back Flip", "icon": "🤸", "loop": false, "clip": "public/animations/clips/av-back-flip.json", "source_fbx": "animation-sources/back_flip.glb", "agent_slots": [] },
+ { "name": "av-idle-male", "label": "Male Idle", "icon": "🚹", "loop": true, "clip": "public/animations/clips/av-idle-male.json", "source_fbx": "animation-sources/idle_male_jan25.glb", "agent_slots": [] },
+ { "name": "av-idle-female", "label": "Female Idle", "icon": "🚺", "loop": true, "clip": "public/animations/clips/av-idle-female.json", "source_fbx": "animation-sources/idle_female_jan25.glb", "agent_slots": [] },
+ { "name": "av-chest-bump", "label": "Chest Bump", "icon": "🦍", "loop": false, "clip": "public/animations/clips/av-chest-bump.json", "source_fbx": "animation-sources/Gorilla_chest_bump.glb", "agent_slots": [] },
+ { "name": "av-walk-feminine", "label": "Feminine Walk", "icon": "🚶‍♀️", "loop": true, "clip": "public/animations/clips/av-walk-feminine.json", "source_fbx": "animation-sources/Standard_Walk_Cycle_Feminine.glb", "agent_slots": [] },
+ { "name": "av-push-block", "label": "Push Block", "icon": "📦", "loop": false, "clip": "public/animations/clips/av-push-block.json", "source_fbx": "animation-sources/Standard_Push_Block_Variation.glb", "agent_slots": ["manipulate"] },
+ { "name": "av-dance-shuffle", "label": "Shuffle Dance", "icon": "💃", "loop": true, "clip": "public/animations/clips/av-dance-shuffle.json", "source_fbx": "animation-sources/dance_shuffle.glb", "agent_slots": [] },
+ { "name": "av-headbang", "label": "Head Banging", "icon": "🤘", "loop": true, "clip": "public/animations/clips/av-headbang.json", "source_fbx": "animation-sources/Dance_Head_Banging_V03.glb", "agent_slots": [] },
+ { "name": "av-call-me", "label": "Call Me", "icon": "📞", "loop": false, "clip": "public/animations/clips/av-call-me.json", "source_fbx": "animation-sources/Call_Me.glb", "agent_slots": [] },
+ { "name": "av-chilling", "label": "Chilling", "icon": "😎", "loop": true, "clip": "public/animations/clips/av-chilling.json", "source_fbx": "animation-sources/Just_chilling.glb", "agent_slots": [] },
+ { "name": "av-pose1", "label": "Pose", "icon": "🎭", "loop": true, "clip": "public/animations/clips/av-pose1.json", "source_fbx": "animation-sources/pose1.glb", "agent_slots": [] },
+ { "name": "av-muay-thai", "label": "Muay Thai Combo", "icon": "🥊", "loop": false, "clip": "public/animations/clips/av-muay-thai.json", "source_fbx": "animation-sources/Arm_Combo_Muay_Thai.glb", "agent_slots": [] },
+ { "name": "av-banging-tunes", "label": "Banging Tunes", "icon": "🎵", "loop": true, "clip": "public/animations/clips/av-banging-tunes.json", "source_fbx": "animation-sources/Banging_Tunes_left.glb", "agent_slots": [] },
+ { "name": "av-celebrating", "label": "Celebrating", "icon": "🎉", "loop": false, "clip": "public/animations/clips/av-celebrating.json", "source_fbx": "animation-sources/Celebrating.glb", "agent_slots": [] },
+ { "name": "av-spy", "label": "Spy", "icon": "🕵️", "loop": true, "clip": "public/animations/clips/av-spy.json", "source_fbx": "animation-sources/Cheap_Spy.glb", "agent_slots": ["curiosity"] },
+ { "name": "av-cheering", "label": "Cheering", "icon": "📣", "loop": false, "clip": "public/animations/clips/av-cheering.json", "source_fbx": "animation-sources/Cheering.glb", "agent_slots": [] },
+ { "name": "av-joy", "label": "Joy", "icon": "😊", "loop": false, "clip": "public/animations/clips/av-joy.json", "source_fbx": "animation-sources/Expressing_joy.glb", "agent_slots": [] },
+ { "name": "av-conductor", "label": "Conductor", "icon": "🎼", "loop": true, "clip": "public/animations/clips/av-conductor.json", "source_fbx": "animation-sources/Energic_conductor.glb", "agent_slots": ["conjure"] },
+ { "name": "av-listening-music", "label": "Listening To Music", "icon": "🎧", "loop": true, "clip": "public/animations/clips/av-listening-music.json", "source_fbx": "animation-sources/Listening To Music.fbx", "agent_slots": [] },
+ { "name": "av-leaning-wall", "label": "Leaning On Wall", "icon": "🧱", "loop": true, "clip": "public/animations/clips/av-leaning-wall.json", "source_fbx": "animation-sources/Leaning On A Wall.fbx", "agent_slots": [] },
+ { "name": "av-rap-dance", "label": "Rap Dancing", "icon": "🎤", "loop": true, "clip": "public/animations/clips/av-rap-dance.json", "source_fbx": "animation-sources/RapDancing.fbx", "agent_slots": [] },
+ { "name": "av-offabean-dance", "label": "Offabean Dance", "icon": "🫘", "loop": true, "clip": "public/animations/clips/av-offabean-dance.json", "source_fbx": "animation-sources/Offabean Dance.fbx", "agent_slots": [], "_note": "Source round-tripped through glTF-Transform, so its hips track is metre-scale (not Mixamo's usual centimetres) and carries a baked ~1.45m armature offset. Built with recenterHips:true; unit handling is automatic." },
+ { "name": "dance", "label": "Dance", "icon": "💃", "loop": true, "clip": "public/animations/clips/dance.json", "source_fbx": "animation-sources/Hip Hop Dancing.fbx", "agent_slots": [] },
+ { "name": "twerk", "label": "Dancing Twerk", "icon": "💃", "loop": true, "clip": "public/animations/clips/twerk.json", "source_fbx": "animation-sources/DancingTwerk.fbx", "agent_slots": [] },
+ { "name": "celebrate", "label": "Celebrate", "icon": "🎉", "loop": false, "clip": "public/animations/clips/celebrate.json", "source_fbx": "animation-sources/Joyful Jump.fbx", "agent_slots": ["celebrate"] },
+ { "name": "angry", "label": "Angry", "icon": "😡", "loop": false, "clip": "public/animations/clips/angry.json", "source_fbx": "animation-sources/Angry.fbx", "agent_slots": [] },
+ { "name": "defeated", "label": "Defeated", "icon": "😞", "loop": false, "clip": "public/animations/clips/defeated.json", "source_fbx": "animation-sources/Defeated.fbx", "agent_slots": ["concern"] },
+ { "name": "dying", "label": "Dying", "icon": "💀", "loop": false, "clip": "public/animations/clips/dying.json", "source_fbx": "animation-sources/Dying.fbx", "agent_slots": [] },
+ { "name": "falling", "label": "Falling", "icon": "🪂", "loop": false, "clip": "public/animations/clips/falling.json", "source_fbx": "animation-sources/Falling.fbx", "agent_slots": [] },
+ { "name": "jump", "label": "Jump", "icon": "🦘", "loop": false, "clip": "public/animations/clips/jump.json", "source_fbx": "animation-sources/Joyful Jump.fbx", "agent_slots": [] },
+ { "name": "kiss", "label": "Kiss", "icon": "💋", "loop": false, "clip": "public/animations/clips/kiss.json", "source_fbx": "animation-sources/Kiss.fbx", "agent_slots": [] },
+ { "name": "pray", "label": "Pray", "icon": "🙏", "loop": false, "clip": "public/animations/clips/pray.json", "source_fbx": "animation-sources/Praying.fbx", "agent_slots": [] },
+ { "name": "reaction", "label": "Reaction", "icon": "😲", "loop": false, "clip": "public/animations/clips/reaction.json", "source_fbx": "animation-sources/Reaction.fbx", "agent_slots": [] },
+ { "name": "nod", "label": "Nod", "icon": "🙂", "loop": false, "clip": "public/animations/clips/nod.json", "source_fbx": "animation-sources/mx-nodding-head-yes-c9c91f89b96c.fbx", "agent_slots": ["nod"] },
+ { "name": "shrug", "label": "Shrug", "icon": "🤷", "loop": false, "clip": "public/animations/clips/shrug.json", "source_fbx": "animation-sources/mx-shoulder-shrug-c9c69537b96c.fbx", "agent_slots": ["shrug"] },
+ { "name": "point", "label": "Point", "icon": "👉", "loop": false, "clip": "public/animations/clips/point.json", "source_fbx": "animation-sources/mx-pointing-with-arm-bent-c9c6947cb96c.fbx", "agent_slots": ["point"] },
+ { "name": "think", "label": "Think", "icon": "🤔", "loop": false, "clip": "public/animations/clips/think.json", "source_fbx": "animation-sources/mx-thoughtfully-nodding-head-yes-c9c91939b96c.fbx", "agent_slots": ["think"] },
+ { "name": "rumba", "label": "Rumba", "icon": "🕺", "loop": true, "clip": "public/animations/clips/rumba.json", "source_fbx": "animation-sources/Rumba Dancing.fbx", "agent_slots": ["dance"] },
+ { "name": "silly", "label": "Silly Dance", "icon": "🤪", "loop": true, "clip": "public/animations/clips/silly.json", "source_fbx": "animation-sources/Silly Dancing.fbx", "agent_slots": [] },
+ { "name": "sitclap", "label": "Sit Clap", "icon": "👏", "loop": false, "clip": "public/animations/clips/sitclap.json", "source_fbx": "animation-sources/Sitting Clap.fbx", "agent_slots": ["bow"] },
+ { "name": "sitlaugh", "label": "Sit Laugh", "icon": "😂", "loop": false, "clip": "public/animations/clips/sitlaugh.json", "source_fbx": "animation-sources/Sitting Laughing.fbx", "agent_slots": [] },
+ { "name": "sitloop", "label": "Sitting Idle", "icon": "🪑", "loop": true, "clip": "public/animations/clips/sitloop.json", "source_fbx": "animation-sources/mx-sitting-with-breathing-idle-c9ccab1bb96c.fbx", "agent_slots": [] },
+ { "name": "taunt", "label": "Taunt", "icon": "😝", "loop": false, "clip": "public/animations/clips/taunt.json", "source_fbx": "animation-sources/Taunt.fbx", "agent_slots": [] },
+ { "name": "thriller", "label": "Thriller", "icon": "🧟", "loop": true, "clip": "public/animations/clips/thriller.json", "source_fbx": "animation-sources/Thriller Part 3.fbx", "agent_slots": [] },
+ { "name": "capoeira", "label": "Capoeira", "icon": "🥋", "loop": true, "clip": "public/animations/clips/capoeira.json", "source_fbx": "animation-sources/Capoeira.fbx", "agent_slots": [] },
+ { "name": "wave", "label": "Wave", "icon": "👋", "loop": false, "clip": "public/animations/clips/wave.json", "source_fbx": "animation-sources/Standing Cover Turn.fbx", "agent_slots": ["wave"] },
+ { "name": "walk", "label": "Walk", "icon": "🚶", "loop": true, "clip": "public/animations/clips/walk.json", "source_fbx": "animation-sources/Walking.fbx", "agent_slots": [] },
+ { "name": "turn", "label": "Turn", "icon": "🔄", "loop": false, "clip": "public/animations/clips/turn.json", "source_fbx": "animation-sources/mx-standing-180-left-turn-c9c96eaeb96c.fbx", "agent_slots": [] },
+ { "name": "jog", "label": "Jog", "icon": "🏃", "loop": true, "clip": "public/animations/clips/jog.json", "source_fbx": "animation-sources/mx-jog-forward-c9d59296b96c-31.fbx", "agent_slots": [] },
+ { "name": "dodge", "label": "Dodge", "icon": "🤺", "loop": false, "clip": "public/animations/clips/dodge.json", "source_fbx": "animation-sources/Dodging Right.fbx", "agent_slots": [] },
+ { "name": "stepback", "label": "Step Back", "icon": "👣", "loop": false, "clip": "public/animations/clips/stepback.json", "source_fbx": "animation-sources/Stepping Backward.fbx", "agent_slots": [] },
+ { "name": "shoved", "label": "Shoved", "icon": "💥", "loop": false, "clip": "public/animations/clips/shoved.json", "source_fbx": "animation-sources/Shoved Reaction With Spin.fbx", "agent_slots": [] },
+ { "name": "standup", "label": "Stand Up", "icon": "⬆️", "loop": false, "clip": "public/animations/clips/standup.json", "source_fbx": "animation-sources/Crouch To Stand.fbx", "agent_slots": [] },
+ { "name": "header", "label": "Header", "icon": "⚽", "loop": false, "clip": "public/animations/clips/header.json", "source_fbx": "animation-sources/Header Soccerball.fbx", "agent_slots": [] },
+ { "name": "coverstand", "label": "Cover Stand", "icon": "🛡️", "loop": false, "clip": "public/animations/clips/coverstand.json", "source_fbx": "animation-sources/Cover To Stand.fbx", "agent_slots": [] },
+ { "name": "goalkeeper", "label": "Goalkeeper", "icon": "🧤", "loop": false, "clip": "public/animations/clips/goalkeeper.json", "source_fbx": "animation-sources/Goalkeeper Scoop.fbx", "agent_slots": [] },
+ { "name": "jumpdown", "label": "Jump Down", "icon": "⬇️", "loop": false, "clip": "public/animations/clips/jumpdown.json", "source_fbx": "animation-sources/Jumping Down.fbx", "agent_slots": [] },
+ { "name": "jumpdown2", "label": "Jump Down 2", "icon": "⬇️", "loop": false, "clip": "public/animations/clips/jumpdown2.json", "source_fbx": "animation-sources/Jumping Down (1).fbx", "agent_slots": [] },
+ { "name": "jumpdown3", "label": "Jump Down 3", "icon": "⬇️", "loop": false, "clip": "public/animations/clips/jumpdown3.json", "source_fbx": "animation-sources/Jumping Down (2).fbx", "agent_slots": [] },
+ { "name": "removing", "label": "Removing", "icon": "🚗", "loop": false, "clip": "public/animations/clips/removing.json", "source_fbx": "animation-sources/Removing Driver.fbx", "agent_slots": [] },
+ { "name": "falltolanding", "label": "Fall to Landing", "icon": "🦅", "loop": false, "clip": "public/animations/clips/falltolanding.json", "source_fbx": "animation-sources/falltolanding.fbx", "agent_slots": [] },
+ { "name": "downdog", "label": "Downward Dog", "icon": "🧘", "loop": true, "clip": "public/animations/clips/downdog.json", "source_fbx": "animation-sources/Plank.fbx", "agent_slots": [] },
+ { "name": "digging", "label": "Digging", "icon": "⛏️", "loop": true, "clip": "public/animations/clips/digging.json", "source_fbx": "animation-sources/Digging.fbx", "agent_slots": [] },
+ { "name": "farm-box-idle", "label": "Box Idle", "icon": "📦", "loop": true, "clip": "public/animations/clips/farm-box-idle.json", "source_fbx": "animation-sources/box idle.fbx", "agent_slots": [] },
+ { "name": "farm-box-walk", "label": "Box Walk", "icon": "📦", "loop": true, "clip": "public/animations/clips/farm-box-walk.json", "source_fbx": "animation-sources/box walk arc.fbx", "agent_slots": [] },
+ { "name": "farm-box-turn", "label": "Box Turn", "icon": "📦", "loop": false, "clip": "public/animations/clips/farm-box-turn.json", "source_fbx": "animation-sources/box turn.fbx", "agent_slots": [] },
+ { "name": "farm-kneeling-idle", "label": "Kneeling Idle", "icon": "🧎", "loop": true, "clip": "public/animations/clips/farm-kneeling-idle.json", "source_fbx": "animation-sources/kneeling idle.fbx", "agent_slots": [] },
+ { "name": "farm-dig-plant", "label": "Dig & Plant Seeds", "icon": "🌱", "loop": false, "clip": "public/animations/clips/farm-dig-plant.json", "source_fbx": "animation-sources/dig and plant seeds.fbx", "agent_slots": [] },
+ { "name": "farm-pull-plant", "label": "Pull Plant", "icon": "🌿", "loop": false, "clip": "public/animations/clips/farm-pull-plant.json", "source_fbx": "animation-sources/pull plant.fbx", "agent_slots": [] },
+ { "name": "farm-plant-tree", "label": "Plant Tree", "icon": "🌳", "loop": false, "clip": "public/animations/clips/farm-plant-tree.json", "source_fbx": "animation-sources/plant tree.fbx", "agent_slots": [] },
+ { "name": "farm-plant-a-plant", "label": "Plant a Plant", "icon": "🪴", "loop": false, "clip": "public/animations/clips/farm-plant-a-plant.json", "source_fbx": "animation-sources/plant a plant.fbx", "agent_slots": [] },
+ { "name": "farm-holding-walk", "label": "Holding Walk", "icon": "🤲", "loop": true, "clip": "public/animations/clips/farm-holding-walk.json", "source_fbx": "animation-sources/holding walk.fbx", "agent_slots": [] },
+ { "name": "farm-holding-turn-left", "label": "Holding Turn Left", "icon": "↩️", "loop": false, "clip": "public/animations/clips/farm-holding-turn-left.json", "source_fbx": "animation-sources/holding turn left.fbx", "agent_slots": [] },
+ { "name": "farm-holding-turn-right", "label": "Holding Turn Right", "icon": "↪️", "loop": false, "clip": "public/animations/clips/farm-holding-turn-right.json", "source_fbx": "animation-sources/holding turn right.fbx", "agent_slots": [] },
+ { "name": "farm-watering", "label": "Watering", "icon": "💧", "loop": false, "clip": "public/animations/clips/farm-watering.json", "source_fbx": "animation-sources/watering.fbx", "agent_slots": [] },
+ { "name": "farm-pick-fruit", "label": "Pick Fruit", "icon": "🍎", "loop": false, "clip": "public/animations/clips/farm-pick-fruit.json", "source_fbx": "animation-sources/pick fruit.fbx", "agent_slots": [] },
+ { "name": "farm-cow-milking", "label": "Cow Milking", "icon": "🐄", "loop": false, "clip": "public/animations/clips/farm-cow-milking.json", "source_fbx": "animation-sources/cow milking.fbx", "agent_slots": [] },
+ { "name": "farm-wheelbarrow-idle", "label": "Wheelbarrow Idle", "icon": "🛒", "loop": true, "clip": "public/animations/clips/farm-wheelbarrow-idle.json", "source_fbx": "animation-sources/wheelbarrow idle.fbx", "agent_slots": [] },
+ { "name": "farm-wheelbarrow-walk", "label": "Wheelbarrow Walk", "icon": "🛒", "loop": true, "clip": "public/animations/clips/farm-wheelbarrow-walk.json", "source_fbx": "animation-sources/wheelbarrow walk.fbx", "agent_slots": [] },
+ { "name": "farm-wheelbarrow-turn", "label": "Wheelbarrow Turn", "icon": "🛒", "loop": false, "clip": "public/animations/clips/farm-wheelbarrow-turn.json", "source_fbx": "animation-sources/wheelbarrow walk turn.fbx", "agent_slots": [] },
+ { "name": "farm-wheelbarrow-dump", "label": "Wheelbarrow Dump", "icon": "🛒", "loop": false, "clip": "public/animations/clips/farm-wheelbarrow-dump.json", "source_fbx": "animation-sources/wheelbarrow dump.fbx", "agent_slots": [] },
+ { "name": "soldier-idle", "label": "Idle", "icon": "🧍", "loop": true, "clip": "public/animations/clips/soldier-idle.json", "source_fbx": "animation-sources/soldier-idle.glb", "agent_slots": [] },
+ { "name": "soldier-run", "label": "Run", "icon": "🏃", "loop": true, "clip": "public/animations/clips/soldier-run.json", "source_fbx": "animation-sources/soldier-run.glb", "agent_slots": [] },
+ { "name": "soldier-walk", "label": "Walk", "icon": "🚶", "loop": true, "clip": "public/animations/clips/soldier-walk.json", "source_fbx": "animation-sources/soldier-walk.glb", "agent_slots": [] },
+ { "name": "michelle-samba-dance", "label": "Samba Dance", "icon": "💃", "loop": true, "clip": "public/animations/clips/michelle-samba-dance.json", "source_fbx": "animation-sources/michelle-samba-dance.glb", "agent_slots": [] },
+ { "name": "xbot-agree", "label": "Agree", "icon": "👍", "loop": false, "clip": "public/animations/clips/xbot-agree.json", "source_fbx": "animation-sources/xbot-agree.glb", "agent_slots": ["sign"] },
+ { "name": "xbot-head-shake", "label": "Head Shake", "icon": "🙅", "loop": false, "clip": "public/animations/clips/xbot-head-shake.json", "source_fbx": "animation-sources/xbot-head-shake.glb", "agent_slots": ["shake"] },
+ { "name": "xbot-idle", "label": "Idle (Xbot)", "icon": "🧍", "loop": true, "clip": "public/animations/clips/xbot-idle.json", "source_fbx": "animation-sources/xbot-idle.glb", "agent_slots": [] },
+ { "name": "xbot-run", "label": "Run", "icon": "🏃", "loop": true, "clip": "public/animations/clips/xbot-run.json", "source_fbx": "animation-sources/xbot-run.glb", "agent_slots": [] },
+ { "name": "xbot-sad-pose", "label": "Sad", "icon": "😔", "loop": true, "clip": "public/animations/clips/xbot-sad-pose.json", "source_fbx": "animation-sources/xbot-sad-pose.glb", "agent_slots": [] },
+ { "name": "xbot-sneak-pose", "label": "Sneak", "icon": "🕵️", "loop": true, "clip": "public/animations/clips/xbot-sneak-pose.json", "source_fbx": "animation-sources/xbot-sneak-pose.glb", "agent_slots": [] },
+ { "name": "xbot-walk", "label": "Walk (Xbot)", "icon": "🚶", "loop": true, "clip": "public/animations/clips/xbot-walk.json", "source_fbx": "animation-sources/xbot-walk.glb", "agent_slots": [] },
+ { "name": "torch-light", "label": "Light Torch", "icon": "🔥", "loop": false, "clip": "public/animations/clips/torch-light.json", "source_fbx": "animation-sources/Standing Torch Light Torch From Fire.fbx", "agent_slots": [] },
+ { "name": "torch-light-wall", "label": "Light Torch (Wall)", "icon": "🕯️", "loop": false, "clip": "public/animations/clips/torch-light-wall.json", "source_fbx": "animation-sources/Standing Torch Light Torch From Wall.fbx", "agent_slots": [] },
+ { "name": "sitidle", "label": "Sit Idle", "icon": "🪑", "loop": true, "clip": "public/animations/clips/sitidle.json", "source_fbx": null, "agent_slots": [], "note": "Hand-authored 2-key pose, no FBX source (commit 7a22e5993). Merged into manifest.json by build-animations.mjs from scripts/animations-extra-clips.json (previously orphaned — see known_issues history)." }
]
},
diff --git a/public/cookbook/recipes/asset_pack.py b/public/cookbook/recipes/asset_pack.py
new file mode 100644
index 000000000..a7feb9d05
--- /dev/null
+++ b/public/cookbook/recipes/asset_pack.py
@@ -0,0 +1,286 @@
+#!/usr/bin/env python3
+"""Build a whole 3D asset pack from a list of prompts, in parallel.
+
+Generates one GLB per prompt on the free three.ws lane, renders a PNG still of
+each result, and writes a self-contained gallery you can open in a browser:
+
+ out/
+ manifest.json every prompt, its GLB URL, local paths, timings
+ index.html an interactive gallery (orbit, zoom, AR on phones)
+ models/<slug>.glb the downloaded models
+ stills/<slug>.png a 1024px render of each model
+
+Usage:
+
+ python3 asset_pack.py "a clay flower pot" "a woven basket" "a brass watering can"
+ python3 asset_pack.py --prompts prompts.txt --out ./garden-pack --workers 3
+
+Standard library only. No API key, no account.
+
+Recipe: https://three.ws/cookbook/parallel-asset-pack
+API reference: https://three.ws/docs/3d-api
+"""
+
+from __future__ import annotations
+
+import argparse
+import concurrent.futures
+import json
+import sys
+import time
+import urllib.error
+import urllib.request
+from dataclasses import asdict, dataclass, field
+from pathlib import Path
+
+from text_to_3d import ForgeError, download, generate, slugify
+
+RENDER_API = "https://three.ws/api/render/glb"
+USER_AGENT = "three.ws-cookbook/asset_pack.py"
+
+# The free lane is a shared GPU pool. Two or three concurrent jobs is the sweet
+# spot: more does not finish sooner, it just queues behind itself and burns the
+# poll budget. Raise it only if you have measured that the lane keeps up.
+DEFAULT_WORKERS = 3
+
+
+@dataclass
+class Asset:
+ """One prompt's journey through the pipeline, successful or not."""
+
+ prompt: str
+ slug: str
+ ok: bool = False
+ glb_url: str = ""
+ viewer_url: str = ""
+ ar_url: str = ""
+ glb_path: str = ""
+ still_path: str = ""
+ seconds: float = 0.0
+ error: str = ""
+ warnings: list[str] = field(default_factory=list)
+
+
+def render_still(glb_url: str, path: Path, size: int = 1024) -> None:
+ """Render a GLB to a PNG still. Raises on any non-image response."""
+ body = json.dumps({"glbUrl": glb_url, "width": size, "height": size}).encode()
+ req = urllib.request.Request(
+ RENDER_API,
+ data=body,
+ headers={
+ "content-type": "application/json",
+ "accept": "image/png",
+ "user-agent": USER_AGENT,
+ },
+ )
+ with urllib.request.urlopen(req, timeout=180) as res:
+ content_type = res.headers.get("content-type", "")
+ if not content_type.startswith("image/"):
+ raise ForgeError(f"renderer returned {content_type}: {res.read()[:200]!r}")
+ path.write_bytes(res.read())
+
+
+def build_one(prompt: str, out: Path, slug: str) -> Asset:
+ """Generate, download, and render a single prompt.
+
+ A failed render is a warning, not a failure: the model is still usable, and
+ a still is a convenience. A failed generation is a real failure.
+ """
+ asset = Asset(prompt=prompt, slug=slug)
+ started = time.monotonic()
+ try:
+ result = generate(prompt, log=lambda *_a, **_k: None)
+ except ForgeError as exc:
+ asset.error = str(exc)
+ asset.seconds = time.monotonic() - started
+ return asset
+
+ asset.glb_url = result["glbUrl"]
+ asset.viewer_url = result.get("viewerUrl", "")
+ asset.ar_url = result.get("arUrl", "")
+
+ glb_path = out / "models" / f"{slug}.glb"
+ try:
+ download(asset.glb_url, str(glb_path))
+ asset.glb_path = str(glb_path.relative_to(out))
+ except (urllib.error.URLError, OSError) as exc:
+ asset.error = f"download failed: {exc}"
+ asset.seconds = time.monotonic() - started
+ return asset
+
+ still_path = out / "stills" / f"{slug}.png"
+ try:
+ render_still(asset.glb_url, still_path)
+ asset.still_path = str(still_path.relative_to(out))
+ except (ForgeError, urllib.error.URLError, OSError) as exc:
+ asset.warnings.append(f"still render skipped: {exc}")
+
+ asset.ok = True
+ asset.seconds = time.monotonic() - started
+ return asset
+
+
+GALLERY_CSS = """
+:root { color-scheme: dark light; }
+* { box-sizing: border-box; }
+body {
+ margin: 0; padding: clamp(1.5rem, 4vw, 3rem);
+ font: 15px/1.6 ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
+ background: #07070a; color: #e8e8ee;
+}
+@media (prefers-color-scheme: light) { body { background: #fbfbfd; color: #16161c; } }
+h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); margin: 0 0 .25rem; letter-spacing: -.02em; }
+.sub { opacity: .65; margin: 0 0 2rem; }
+.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
+.card {
+ border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
+ border-radius: 14px; overflow: hidden; background: color-mix(in srgb, currentColor 4%, transparent);
+ transition: transform .18s ease, border-color .18s ease;
+}
+.card:hover, .card:focus-within { transform: translateY(-2px); border-color: color-mix(in srgb, currentColor 32%, transparent); }
+model-viewer, .card img { width: 100%; aspect-ratio: 1; display: block; background: #000; }
+.meta { padding: .85rem 1rem 1rem; }
+.meta p { margin: 0 0 .5rem; font-size: .95rem; }
+.meta a { color: inherit; opacity: .7; text-decoration: none; border-bottom: 1px solid currentColor; font-size: .8rem; margin-right: .75rem; }
+.meta a:hover, .meta a:focus-visible { opacity: 1; }
+.failed { border-style: dashed; opacity: .8; }
+.failed .meta code { font-size: .75rem; opacity: .7; word-break: break-word; }
+footer { margin-top: 2.5rem; opacity: .55; font-size: .85rem; }
+footer a { color: inherit; }
+"""
+
+
+def write_gallery(out: Path, assets: list[Asset], elapsed: float) -> None:
+ """Write a dependency-free gallery. model-viewer loads from a CDN; the
+ stills are local, so the page still communicates without network access."""
+ cards = []
+ for a in assets:
+ if not a.ok:
+ cards.append(
+ f'<article class="card failed"><div class="meta">'
+ f"<p>{_esc(a.prompt)}</p><code>{_esc(a.error)}</code></div></article>"
+ )
+ continue
+ viewer = (
+ f'<model-viewer src="{_esc(a.glb_path)}" camera-controls auto-rotate '
+ f'touch-action="pan-y" ar shadow-intensity="1" '
+ f'alt="{_esc(a.prompt)}"></model-viewer>'
+ )
+ links = [f'<a href="{_esc(a.glb_path)}" download>GLB</a>']
+ if a.still_path:
+ links.append(f'<a href="{_esc(a.still_path)}">still</a>')
+ if a.ar_url:
+ links.append(f'<a href="{_esc(a.ar_url)}">AR</a>')
+ cards.append(
+ f'<article class="card">{viewer}<div class="meta">'
+ f"<p>{_esc(a.prompt)}</p>{''.join(links)}</div></article>"
+ )
+
+ built = sum(1 for a in assets if a.ok)
+ html = f"""<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Asset pack ({built} models)</title>
+<style>{GALLERY_CSS}</style>
+<script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js"></script>
+</head>
+<body>
+<h1>Asset pack</h1>
+<p class="sub">{built} of {len(assets)} prompts built in {elapsed:.0f}s on the free three.ws lane. Drag to orbit, scroll to zoom.</p>
+<div class="grid">{''.join(cards)}</div>
+<footer>Built with the <a href="https://three.ws/cookbook/parallel-asset-pack">parallel asset pack recipe</a>.</footer>
+</body>
+</html>
+"""
+ (out / "index.html").write_text(html, encoding="utf-8")
+
+
+def _esc(text: str) -> str:
+ return (
+ str(text)
+ .replace("&", "&amp;")
+ .replace("<", "&lt;")
+ .replace(">", "&gt;")
+ .replace('"', "&quot;")
+ )
+
+
+def unique_slugs(prompts: list[str]) -> list[str]:
+ """Stable, collision-free filenames even when two prompts slugify alike."""
+ seen: dict[str, int] = {}
+ slugs = []
+ for prompt in prompts:
+ base = slugify(prompt)
+ seen[base] = seen.get(base, 0) + 1
+ slugs.append(base if seen[base] == 1 else f"{base}-{seen[base]}")
+ return slugs
+
+
+def main(argv: list[str] | None = None) -> int:
+ parser = argparse.ArgumentParser(
+ description="Build a 3D asset pack from many prompts, in parallel.",
+ epilog="Docs: https://three.ws/docs/3d-api",
+ )
+ parser.add_argument("prompts", nargs="*", help="one prompt per argument")
+ parser.add_argument("--prompts-file", help="a text file with one prompt per line")
+ parser.add_argument("--out", default="./asset-pack", help="output directory")
+ parser.add_argument("--workers", type=int, default=DEFAULT_WORKERS, help="concurrent jobs")
+ args = parser.parse_args(argv)
+
+ prompts = list(args.prompts)
+ if args.prompts_file:
+ lines = Path(args.prompts_file).read_text(encoding="utf-8").splitlines()
+ prompts += [line.strip() for line in lines if line.strip() and not line.startswith("#")]
+ if not prompts:
+ parser.error("give at least one prompt, or --prompts-file")
+
+ out = Path(args.out)
+ (out / "models").mkdir(parents=True, exist_ok=True)
+ (out / "stills").mkdir(parents=True, exist_ok=True)
+
+ slugs = unique_slugs(prompts)
+ workers = max(1, min(args.workers, len(prompts)))
+ print(f"building {len(prompts)} models with {workers} workers into {out}/")
+
+ started = time.monotonic()
+ assets: list[Asset] = [None] * len(prompts) # type: ignore[list-item]
+ with concurrent.futures.ThreadPoolExecutor(max_workers=workers) as pool:
+ futures = {
+ pool.submit(build_one, prompt, out, slug): i
+ for i, (prompt, slug) in enumerate(zip(prompts, slugs))
+ }
+ for future in concurrent.futures.as_completed(futures):
+ index = futures[future]
+ asset = future.result()
+ assets[index] = asset
+ mark = "ok " if asset.ok else "FAIL"
+ print(f" [{mark}] {asset.prompt[:52]:<52} {asset.seconds:5.0f}s")
+ for warning in asset.warnings:
+ print(f" note: {warning}")
+
+ elapsed = time.monotonic() - started
+ (out / "manifest.json").write_text(
+ json.dumps(
+ {
+ "generator": "three.ws cookbook / parallel-asset-pack",
+ "api": "https://three.ws/api/3d/generate",
+ "tier": "free draft",
+ "seconds": round(elapsed, 1),
+ "assets": [asdict(a) for a in assets],
+ },
+ indent=2,
+ ),
+ encoding="utf-8",
+ )
+ write_gallery(out, assets, elapsed)
+
+ built = sum(1 for a in assets if a.ok)
+ print(f"\n{built}/{len(assets)} built in {elapsed:.0f}s")
+ print(f"open {out / 'index.html'}")
+ return 0 if built else 1
+
+
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/public/cookbook/recipes/mcp_3d_server.mjs b/public/cookbook/recipes/mcp_3d_server.mjs
new file mode 100644
index 000000000..dc2586cb0
--- /dev/null
+++ b/public/cookbook/recipes/mcp_3d_server.mjs
@@ -0,0 +1,179 @@
+#!/usr/bin/env node
+/**
+ * An MCP server that gives any MCP client a text-to-3D tool.
+ *
+ * Wraps the free, keyless three.ws 3D API as two Model Context Protocol tools,
+ * so Claude Code, Claude Desktop, Cursor, or any other MCP client can generate
+ * real GLB models mid-conversation. No API key, no account.
+ *
+ * npm install @modelcontextprotocol/sdk zod
+ * node mcp_3d_server.mjs # speaks MCP over stdio
+ *
+ * Register it with Claude Code:
+ *
+ * claude mcp add three-ws-3d -- node /absolute/path/to/mcp_3d_server.mjs
+ *
+ * Or add it to a client's config by hand:
+ *
+ * { "mcpServers": { "three-ws-3d": { "command": "node",
+ * "args": ["/absolute/path/to/mcp_3d_server.mjs"] } } }
+ *
+ * Recipe: https://three.ws/cookbook/mcp-3d-tool
+ * API reference: https://three.ws/docs/3d-api
+ */
+
+import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
+import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
+import { z } from 'zod';
+
+const GENERATE_API = 'https://three.ws/api/3d/generate';
+const RENDER_API = 'https://three.ws/api/render/glb';
+const USER_AGENT = 'three.ws-cookbook/mcp_3d_server';
+
+// The free lane is a shared GPU pool. These bounds only ever clamp a server
+// hint that is missing or absurd; the server's own retryAfter wins inside them.
+const MIN_POLL_MS = 2_000;
+const MAX_POLL_MS = 30_000;
+const DEFAULT_TIMEOUT_MS = 10 * 60_000;
+
+const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
+
+function pollDelay(payload) {
+ const seconds = Number(payload?.retryAfter);
+ if (!Number.isFinite(seconds)) return MIN_POLL_MS;
+ return Math.max(MIN_POLL_MS, Math.min(MAX_POLL_MS, seconds * 1000));
+}
+
+async function callJson(url, body) {
+ const res = await fetch(url, {
+ method: body ? 'POST' : 'GET',
+ headers: {
+ 'content-type': 'application/json',
+ accept: 'application/json',
+ 'user-agent': USER_AGENT,
+ },
+ body: body ? JSON.stringify(body) : undefined,
+ });
+ const text = await res.text();
+ let payload;
+ try {
+ payload = JSON.parse(text);
+ } catch {
+ throw new Error(`${url} returned non-JSON (HTTP ${res.status}): ${text.slice(0, 200)}`);
+ }
+ if (!res.ok) {
+ throw new Error(
+ `HTTP ${res.status} from ${url}: ${payload.error_description || payload.error || text.slice(0, 200)}`,
+ );
+ }
+ return payload;
+}
+
+/**
+ * Generate one model. The API answers inline when the draft finishes fast and
+ * hands back a job handle when the lane is busy; both paths end at the same
+ * `{ status: 'done', glbUrl, viewerUrl, arUrl }` shape.
+ */
+async function generate(prompt, { timeoutMs = DEFAULT_TIMEOUT_MS } = {}) {
+ const startedAt = Date.now();
+ let payload = await callJson(GENERATE_API, { prompt, format: 'glb' });
+
+ while (payload.status === 'pending') {
+ if (!payload.job) throw new Error("the API reported 'pending' without a job handle");
+ if (Date.now() - startedAt > timeoutMs) {
+ throw new Error(`gave up after ${Math.round((Date.now() - startedAt) / 1000)}s`);
+ }
+ await sleep(pollDelay(payload));
+ const query = new URLSearchParams({ job: payload.job, title: prompt });
+ payload = await callJson(`${GENERATE_API}?${query}`);
+ }
+
+ if (payload.status === 'error') throw new Error(payload.error || 'the generation lane failed');
+ if (!payload.glbUrl) throw new Error(`unexpected response: ${JSON.stringify(payload).slice(0, 200)}`);
+ return payload;
+}
+
+const server = new McpServer(
+ { name: 'three-ws-3d', version: '1.0.0' },
+ { instructions: 'Generate real 3D models (GLB) from text prompts. Free and keyless.' },
+);
+
+server.registerTool(
+ 'generate_3d_model',
+ {
+ title: 'Text to 3D model',
+ description:
+ 'Turn a text prompt into a real, textured 3D model (GLB) and return its URL. ' +
+ 'Free draft tier: single-subject prompts work best ("a wooden treasure chest"), ' +
+ 'no rigging. Takes roughly 60 to 120 seconds.',
+ inputSchema: {
+ prompt: z
+ .string()
+ .min(3)
+ .max(1000)
+ .describe('What to build. One subject, described concretely.'),
+ },
+ annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: true },
+ },
+ async ({ prompt }) => {
+ const result = await generate(prompt);
+ return {
+ content: [
+ {
+ type: 'text',
+ text: [
+ `Generated "${prompt}"`,
+ `GLB: ${result.glbUrl}`,
+ result.viewerUrl ? `Viewer: ${result.viewerUrl}` : '',
+ result.arUrl ? `AR (open on a phone): ${result.arUrl}` : '',
+ ]
+ .filter(Boolean)
+ .join('\n'),
+ },
+ ],
+ structuredContent: {
+ glbUrl: result.glbUrl,
+ viewerUrl: result.viewerUrl ?? '',
+ arUrl: result.arUrl ?? '',
+ tier: result.tier ?? 'draft',
+ },
+ };
+ },
+);
+
+server.registerTool(
+ 'render_3d_model',
+ {
+ title: 'Render a 3D model to an image',
+ description:
+ 'Render any public GLB URL to a PNG still, returned inline as an image. ' +
+ 'Use it to look at a model you just generated before showing it to the user.',
+ inputSchema: {
+ glbUrl: z.string().url().describe('A public URL to a .glb file.'),
+ size: z.number().int().min(256).max(2048).default(1024).describe('Square pixel size.'),
+ },
+ annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: true },
+ },
+ async ({ glbUrl, size }) => {
+ const res = await fetch(RENDER_API, {
+ method: 'POST',
+ headers: {
+ 'content-type': 'application/json',
+ accept: 'image/png',
+ 'user-agent': USER_AGENT,
+ },
+ body: JSON.stringify({ glbUrl, width: size, height: size }),
+ });
+ const contentType = res.headers.get('content-type') ?? '';
+ if (!res.ok || !contentType.startsWith('image/')) {
+ const detail = (await res.text()).slice(0, 200);
+ throw new Error(`renderer returned HTTP ${res.status} ${contentType}: ${detail}`);
+ }
+ const bytes = Buffer.from(await res.arrayBuffer());
+ return {
+ content: [{ type: 'image', data: bytes.toString('base64'), mimeType: 'image/png' }],
+ };
+ },
+);
+
+await server.connect(new StdioServerTransport());
diff --git a/public/cookbook/recipes/text_to_3d.py b/public/cookbook/recipes/text_to_3d.py
new file mode 100644
index 000000000..6e7c22c56
--- /dev/null
+++ b/public/cookbook/recipes/text_to_3d.py
@@ -0,0 +1,173 @@
+#!/usr/bin/env python3
+"""Turn a text prompt into a downloadable GLB using the free three.ws 3D API.
+
+No API key, no account, no dependencies beyond the Python standard library.
+
+ python3 text_to_3d.py "a small ceramic teapot with a bamboo handle"
+ python3 text_to_3d.py "a wooden treasure chest" --out chest.glb
+
+The free lane is NVIDIA NIM TRELLIS: single-subject prompts, draft-fidelity
+geometry, no rigging. Higher polygon budgets, PBR textures, and rigged
+skeletons live behind the paid tiers that every response links to.
+
+Recipe: https://three.ws/cookbook/text-to-3d-cli
+API reference: https://three.ws/docs/3d-api
+"""
+
+from __future__ import annotations
+
+import argparse
+import json
+import sys
+import time
+import urllib.error
+import urllib.parse
+import urllib.request
+
+API = "https://three.ws/api/3d/generate"
+USER_AGENT = "three.ws-cookbook/text_to_3d.py"
+
+# The free GPU lane is shared. Polling faster than the server's own retryAfter
+# hint trips the flood guard (HTTP 429) and helps nobody, so these bounds only
+# ever clamp a hint that is missing or absurd.
+MIN_POLL_SECONDS = 2.0
+MAX_POLL_SECONDS = 30.0
+DEFAULT_TIMEOUT_SECONDS = 600.0
+
+
+class ForgeError(RuntimeError):
+ """The generation lane refused the prompt or failed upstream."""
+
+
+def _request(url: str, payload: dict | None = None, timeout: float = 180.0) -> dict:
+ """POST JSON (or GET when payload is None) and decode the JSON response."""
+ data = json.dumps(payload).encode() if payload is not None else None
+ req = urllib.request.Request(
+ url,
+ data=data,
+ method="POST" if data else "GET",
+ headers={
+ "content-type": "application/json",
+ "accept": "application/json",
+ "user-agent": USER_AGENT,
+ },
+ )
+ try:
+ with urllib.request.urlopen(req, timeout=timeout) as res:
+ return json.loads(res.read().decode())
+ except urllib.error.HTTPError as exc:
+ body = exc.read().decode(errors="replace")
+ try:
+ detail = json.loads(body).get("error_description") or json.loads(body).get("error")
+ except json.JSONDecodeError:
+ detail = body[:200]
+ raise ForgeError(f"HTTP {exc.code} from {url}: {detail}") from exc
+ except urllib.error.URLError as exc:
+ raise ForgeError(f"could not reach {url}: {exc.reason}") from exc
+
+
+def _poll_delay(payload: dict) -> float:
+ """Honor the server's retryAfter hint, clamped to a sane range."""
+ hint = payload.get("retryAfter")
+ try:
+ seconds = float(hint)
+ except (TypeError, ValueError):
+ return MIN_POLL_SECONDS
+ return max(MIN_POLL_SECONDS, min(MAX_POLL_SECONDS, seconds))
+
+
+def generate(prompt: str, timeout: float = DEFAULT_TIMEOUT_SECONDS, log=print) -> dict:
+ """Generate one model and return the finished payload.
+
+ The API answers inline when the draft finishes fast, and hands back a job
+ handle when the lane is busy. Both paths end at the same shape:
+ ``{"status": "done", "glbUrl": ..., "viewerUrl": ..., "arUrl": ...}``.
+ """
+ started = time.monotonic()
+ payload = _request(API, {"prompt": prompt, "format": "glb"})
+
+ while payload.get("status") == "pending":
+ job = payload.get("job")
+ if not job:
+ raise ForgeError("the API reported 'pending' without a job handle")
+
+ elapsed = time.monotonic() - started
+ if elapsed > timeout:
+ raise ForgeError(f"gave up after {elapsed:.0f}s waiting for job {job}")
+
+ delay = _poll_delay(payload)
+ log(f" queued, next poll in {delay:.0f}s ({elapsed:.0f}s elapsed)")
+ time.sleep(delay)
+
+ query = urllib.parse.urlencode({"job": job, "title": prompt})
+ payload = _request(f"{API}?{query}")
+
+ if payload.get("status") == "error":
+ raise ForgeError(payload.get("error") or "the generation lane failed")
+ if not payload.get("glbUrl"):
+ raise ForgeError(f"unexpected response: {json.dumps(payload)[:200]}")
+ return payload
+
+
+def download(url: str, path: str) -> int:
+ """Stream a URL to disk and return the byte count written."""
+ req = urllib.request.Request(url, headers={"user-agent": USER_AGENT})
+ written = 0
+ with urllib.request.urlopen(req, timeout=180) as res, open(path, "wb") as out:
+ while chunk := res.read(1 << 16):
+ out.write(chunk)
+ written += len(chunk)
+ return written
+
+
+def slugify(text: str, limit: int = 48) -> str:
+ keep = [c.lower() if c.isalnum() else "-" for c in text]
+ slug = "".join(keep).strip("-")
+ while "--" in slug:
+ slug = slug.replace("--", "-")
+ return (slug[:limit].strip("-")) or "model"
+
+
+def main(argv: list[str] | None = None) -> int:
+ parser = argparse.ArgumentParser(
+ description="Text to 3D with the free, keyless three.ws API.",
+ epilog="Docs: https://three.ws/docs/3d-api",
+ )
+ parser.add_argument("prompt", help="what to build, e.g. 'a wooden treasure chest'")
+ parser.add_argument("--out", help="output .glb path (default: derived from the prompt)")
+ parser.add_argument(
+ "--timeout",
+ type=float,
+ default=DEFAULT_TIMEOUT_SECONDS,
+ help=f"seconds to wait for a queued job (default: {DEFAULT_TIMEOUT_SECONDS:.0f})",
+ )
+ parser.add_argument("--quiet", action="store_true", help="print only the output path")
+ args = parser.parse_args(argv)
+
+ log = (lambda *_a, **_k: None) if args.quiet else print
+ out_path = args.out or f"{slugify(args.prompt)}.glb"
+
+ log(f"prompt: {args.prompt}")
+ try:
+ result = generate(args.prompt, timeout=args.timeout, log=log)
+ except ForgeError as exc:
+ print(f"generation failed: {exc}", file=sys.stderr)
+ return 1
+
+ log(f" glb: {result['glbUrl']}")
+ log(f" viewer: {result.get('viewerUrl', '')}")
+ if result.get("arUrl"):
+ log(f" ar: {result['arUrl']} (open on a phone to place it in your room)")
+
+ try:
+ size = download(result["glbUrl"], out_path)
+ except (urllib.error.URLError, OSError) as exc:
+ print(f"download failed: {exc}", file=sys.stderr)
+ return 1
+
+ print(out_path if args.quiet else f"saved {size / 1024:.0f} KB to {out_path}")
+ return 0
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())
diff --git a/public/examples-index.js b/public/examples-index.js
new file mode 100644
index 000000000..a31bcf3ca
--- /dev/null
+++ b/public/examples-index.js
@@ -0,0 +1,226 @@
+/* The "every example in the repo" half of /examples.
+ *
+ * The cards above this section are curated runnable snippets. This section is
+ * the complete set, fetched from /examples.json, which is mirrored from
+ * data/examples.json, which scripts/build-examples-index.mjs derives by
+ * scanning the repository. Nothing here is hand-listed, which is the point:
+ * an example added or deleted in the repo shows up or disappears on the next
+ * build, so the page cannot drift out of sync with what actually ships.
+ *
+ * These are source files in a git repository, not hosted routes, so every card
+ * links to GitHub. Nothing here claims to be a live demo.
+ */
+
+const REPO = 'https://github.com/nirholas/three.ws';
+const BRANCH = 'main';
+
+const els = {
+ root: document.querySelector('[data-role="ex-browse"]'),
+ grid: document.querySelector('[data-role="ex-grid"]'),
+ search: document.querySelector('[data-role="ex-search"]'),
+ chips: document.querySelector('[data-role="ex-chips"]'),
+ count: document.querySelector('[data-role="ex-count"]'),
+ loading: document.querySelector('[data-role="ex-loading"]'),
+ error: document.querySelector('[data-role="ex-error"]'),
+ errorMsg: document.querySelector('[data-role="ex-error-msg"]'),
+ retry: document.querySelector('[data-role="ex-retry"]'),
+ emptySearch: document.querySelector('[data-role="ex-empty-search"]'),
+ clear: document.querySelector('[data-role="ex-clear"]'),
+ live: document.querySelector('[data-role="ex-live"]'),
+};
+
+// The page ships this section's markup; if it is absent the script is loaded on
+// a page it was not written for, and doing nothing is the correct behavior.
+if (els.root && els.grid) {
+ const state = { all: [], groups: [], query: '', group: '' };
+
+ const escapeHtml = (s) =>
+ String(s ?? '').replace(
+ /[&<>"']/g,
+ (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' })[c],
+ );
+ const show = (el, on) => {
+ if (el) el.hidden = !on;
+ };
+ const announce = (msg) => {
+ if (els.live) els.live.textContent = msg;
+ };
+
+ const KIND_LABEL = {
+ 'html-demo': 'Web component demo',
+ project: 'Example project',
+ package: 'Package example',
+ };
+
+ /** A directory is a tree link on GitHub; a single file is a blob link. */
+ const sourceUrl = (ex) =>
+ `${REPO}/${/\.[a-z0-9]+$/i.test(ex.path) ? 'blob' : 'tree'}/${BRANCH}/${ex.path}`;
+
+ /**
+ * The one line a reader needs to run it. `runKind: 'url'` means "start the
+ * dev server, then open this path": those files are not served by the
+ * production site, so rendering them as links would be a lie.
+ */
+ const runLine = (ex) => (ex.run ? (ex.runKind === 'url' ? `npm run dev → ${ex.run}` : ex.run) : '');
+
+ function matches(ex, query) {
+ if (!query) return true;
+ const haystack = [ex.title, ex.description, ex.path, ex.owner, KIND_LABEL[ex.kind], ex.group]
+ .filter(Boolean)
+ .join(' ')
+ .toLowerCase();
+ return query
+ .toLowerCase()
+ .split(/\s+/)
+ .filter(Boolean)
+ .every((term) => haystack.includes(term));
+ }
+
+ function visible() {
+ return state.all
+ .filter((ex) => matches(ex, state.query))
+ .filter((ex) => !state.group || ex.group === state.group)
+ .sort((a, b) => a.group.localeCompare(b.group) || a.title.localeCompare(b.title));
+ }
+
+ function card(ex) {
+ const files = Array.isArray(ex.files) ? ex.files : [];
+ const run = runLine(ex);
+ const readme = ex.readme ? `${REPO}/blob/${BRANCH}/${ex.readme}` : null;
+ return `
+ <article class="exi-card">
+ <div class="exi-card-top">
+ <span class="exi-kind">${escapeHtml(KIND_LABEL[ex.kind] || ex.kind)}</span>
+ ${ex.owner ? `<span class="exi-owner">${escapeHtml(ex.owner)}</span>` : ''}
+ </div>
+ <h3 class="exi-card-title">
+ <a href="${escapeHtml(sourceUrl(ex))}" target="_blank" rel="noopener noreferrer">${escapeHtml(ex.title)}</a>
+ </h3>
+ ${ex.description ? `<p class="exi-card-desc">${escapeHtml(ex.description)}</p>` : ''}
+ ${
+ files.length
+ ? `<ul class="exi-files">${files
+ .slice(0, 4)
+ .map((f) => `<li><code>${escapeHtml(f)}</code></li>`)
+ .join('')}${files.length > 4 ? `<li class="exi-more">+${files.length - 4} more</li>` : ''}</ul>`
+ : ''
+ }
+ ${
+ run
+ ? `<div class="exi-run">
+ <code title="${escapeHtml(run)}">${escapeHtml(run)}</code>
+ <button type="button" class="exi-copy" data-copy="${escapeHtml(ex.run)}" aria-label="Copy the command that runs ${escapeHtml(ex.title)}">Copy</button>
+ </div>`
+ : ''
+ }
+ <div class="exi-actions">
+ <a class="exi-btn" href="${escapeHtml(sourceUrl(ex))}" target="_blank" rel="noopener noreferrer">View source</a>
+ ${readme ? `<a class="exi-btn exi-btn--ghost" href="${escapeHtml(readme)}" target="_blank" rel="noopener noreferrer">README</a>` : ''}
+ <span class="exi-path" title="${escapeHtml(ex.path)}">${escapeHtml(ex.path)}</span>
+ </div>
+ </article>`;
+ }
+
+ function renderChips() {
+ if (!els.chips) return;
+ const counts = new Map();
+ for (const ex of state.all) counts.set(ex.group, (counts.get(ex.group) || 0) + 1);
+ const chip = (value, label, n) =>
+ `<button type="button" role="tab" class="exi-chip${state.group === value ? ' is-active' : ''}" aria-selected="${state.group === value}" data-group="${escapeHtml(value)}">${escapeHtml(label)} <span class="exi-chip-n">${n}</span></button>`;
+ els.chips.innerHTML = [
+ chip('', 'All', state.all.length),
+ ...state.groups.map((g) => chip(g, g, counts.get(g) || 0)),
+ ].join('');
+ }
+
+ function render() {
+ const list = visible();
+ show(els.loading, false);
+ show(els.error, false);
+ if (!list.length) {
+ show(els.grid, false);
+ show(els.emptySearch, true);
+ if (els.count) els.count.textContent = '0 shown';
+ announce('No examples match the current filter.');
+ return;
+ }
+ show(els.emptySearch, false);
+ els.grid.innerHTML = list.map(card).join('');
+ show(els.grid, true);
+ if (els.count) els.count.textContent = `${list.length} of ${state.all.length} shown`;
+ announce(`${list.length} examples shown.`);
+ }
+
+ async function load() {
+ show(els.error, false);
+ show(els.emptySearch, false);
+ show(els.grid, false);
+ show(els.loading, true);
+ try {
+ const res = await fetch('/examples.json', { headers: { accept: 'application/json' } });
+ if (!res.ok) throw new Error(`the index returned HTTP ${res.status}`);
+ const data = await res.json();
+ const examples = Array.isArray(data?.examples) ? data.examples : [];
+ state.all = examples.filter((ex) => ex && ex.title && ex.path && ex.group);
+ if (!state.all.length) throw new Error('the index is empty');
+ state.groups = [...new Set(state.all.map((ex) => ex.group))].sort();
+ renderChips();
+ render();
+ } catch (err) {
+ show(els.loading, false);
+ show(els.grid, false);
+ show(els.emptySearch, false);
+ if (els.errorMsg) els.errorMsg.textContent = `Could not load the example index: ${err.message}.`;
+ show(els.error, true);
+ }
+ }
+
+ let debounce;
+ els.search?.addEventListener('input', (e) => {
+ const value = e.target.value;
+ clearTimeout(debounce);
+ debounce = setTimeout(() => {
+ state.query = value.trim();
+ render();
+ }, 120);
+ });
+
+ els.chips?.addEventListener('click', (e) => {
+ const button = e.target.closest('[data-group]');
+ if (!button) return;
+ state.group = button.dataset.group;
+ renderChips();
+ render();
+ });
+
+ els.clear?.addEventListener('click', () => {
+ state.query = '';
+ state.group = '';
+ if (els.search) els.search.value = '';
+ renderChips();
+ render();
+ els.search?.focus();
+ });
+
+ els.retry?.addEventListener('click', load);
+
+ // Copy reports its own result: a silent clipboard write leaves the reader
+ // unsure whether anything happened.
+ els.grid.addEventListener('click', async (e) => {
+ const button = e.target.closest('.exi-copy');
+ if (!button) return;
+ try {
+ await navigator.clipboard.writeText(button.dataset.copy || '');
+ button.textContent = 'Copied';
+ button.classList.add('is-copied');
+ } catch {
+ button.textContent = 'Press ⌘C';
+ }
+ setTimeout(() => {
+ button.textContent = 'Copy';
+ button.classList.remove('is-copied');
+ }, 1600);
+ });
+
+ load();
+}
diff --git a/public/examples.json b/public/examples.json
new file mode 100644
index 000000000..50c51e361
--- /dev/null
+++ b/public/examples.json
@@ -0,0 +1,566 @@
+{
+ "$comment": "Generated by scripts/build-examples-index.mjs from what is on disk. Do not edit by hand; run npm run build:examples.",
+ "generated_by": "scripts/build-examples-index.mjs",
+ "counts": {
+ "total": 37,
+ "html_demos": 10,
+ "projects": 9,
+ "packages": 18
+ },
+ "examples": [
+ {
+ "id": "project:agenc-task-roundtrip",
+ "kind": "project",
+ "group": "Example projects",
+ "title": "AgenC task roundtrip - three.ws + Solana devnet",
+ "description": "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.",
+ "path": "examples/agenc-task-roundtrip",
+ "files": [
+ "run.mjs"
+ ],
+ "run": "node examples/agenc-task-roundtrip/run.mjs",
+ "runKind": "command",
+ "readme": "examples/agenc-task-roundtrip/README.md"
+ },
+ {
+ "id": "project:agent-native-3d",
+ "kind": "project",
+ "group": "Example projects",
+ "title": "Agent-native 3D - create, embody, and distribute, end to end",
+ "description": "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.",
+ "path": "examples/agent-native-3d",
+ "files": [
+ "run.mjs"
+ ],
+ "run": "node examples/agent-native-3d/run.mjs",
+ "runKind": "command",
+ "readme": "examples/agent-native-3d/README.md"
+ },
+ {
+ "id": "project:coach-leo",
+ "kind": "project",
+ "group": "Example projects",
+ "title": "Coach Leo",
+ "description": "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.",
+ "path": "examples/coach-leo",
+ "files": [
+ "manifest.json"
+ ],
+ "run": null,
+ "runKind": "command",
+ "readme": "examples/coach-leo/README.md"
+ },
+ {
+ "id": "project:skills",
+ "kind": "project",
+ "group": "Example projects",
+ "title": "Example skills",
+ "description": "Six installable skill bundles for the three.ws agent runtime.",
+ "path": "examples/skills",
+ "files": [],
+ "run": null,
+ "runKind": "command",
+ "readme": "examples/skills/README.md"
+ },
+ {
+ "id": "project:metamask-agent-wallet",
+ "kind": "project",
+ "group": "Example projects",
+ "title": "MetaMask Agent Wallet demo",
+ "description": "A single-page demo that gives a three.ws agent a real server-side wallet through the MetaMask Agentic CLI (mm).",
+ "path": "examples/metamask-agent-wallet",
+ "files": [
+ "index.html",
+ "server.mjs"
+ ],
+ "run": "node examples/metamask-agent-wallet/server.mjs",
+ "runKind": "command",
+ "readme": "examples/metamask-agent-wallet/README.md"
+ },
+ {
+ "id": "project:monicas-apartment",
+ "kind": "project",
+ "group": "Example projects",
+ "title": "Monica's Apartment (Friends) - first-person Three.js scene",
+ "description": "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,",
+ "path": "examples/monicas-apartment",
+ "files": [
+ "index.html"
+ ],
+ "run": "npm run dev, then open /examples/monicas-apartment/index.html",
+ "runKind": "command",
+ "readme": "examples/monicas-apartment/README.md"
+ },
+ {
+ "id": "project:paid-mcp-server",
+ "kind": "project",
+ "group": "Example projects",
+ "title": "paid-mcp-server",
+ "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": "examples/paid-mcp-server/README.md"
+ },
+ {
+ "id": "project:pump-fun-agent",
+ "kind": "project",
+ "group": "Example projects",
+ "title": "Pump Agent",
+ "description": "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.",
+ "path": "examples/pump-fun-agent",
+ "files": [
+ "manifest.json"
+ ],
+ "run": null,
+ "runKind": "command",
+ "readme": "examples/pump-fun-agent/README.md"
+ },
+ {
+ "id": "project:three-concierge",
+ "kind": "project",
+ "group": "Example projects",
+ "title": "Trinity, the three.ws concierge",
+ "description": "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/.",
+ "path": "examples/three-concierge",
+ "files": [
+ "agent-card.json",
+ "manifest.json"
+ ],
+ "run": null,
+ "runKind": "command",
+ "readme": "examples/three-concierge/README.md"
+ },
+ {
+ "id": "package:assistant-sdk",
+ "kind": "package",
+ "group": "Package examples",
+ "title": "@three-ws/assistant",
+ "description": "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:",
+ "path": "assistant-sdk/examples",
+ "files": [
+ "index.html"
+ ],
+ "run": "npm run dev, then open /assistant-sdk/examples/index.html",
+ "runKind": "command",
+ "readme": null,
+ "owner": "assistant-sdk"
+ },
+ {
+ "id": "package:avatar-sdk",
+ "kind": "package",
+ "group": "Package examples",
+ "title": "@three-ws/avatar",
+ "description": "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.",
+ "path": "avatar-sdk/examples",
+ "files": [
+ "index.html"
+ ],
+ "run": "npm run dev, then open /avatar-sdk/examples/index.html",
+ "runKind": "command",
+ "readme": "avatar-sdk/examples/README.md",
+ "owner": "avatar-sdk"
+ },
+ {
+ "id": "package:packages/avatar-schema",
+ "kind": "package",
+ "group": "Package examples",
+ "title": "@three-ws/avatar-schema",
+ "description": "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.",
+ "path": "packages/avatar-schema/examples",
+ "files": [
+ "basic.json"
+ ],
+ "run": null,
+ "runKind": "command",
+ "readme": null,
+ "owner": "packages/avatar-schema"
+ },
+ {
+ "id": "package:concierge-sdk",
+ "kind": "package",
+ "group": "Package examples",
+ "title": "@three-ws/concierge",
+ "description": "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.",
+ "path": "concierge-sdk/examples",
+ "files": [
+ "custom-avatar.html",
+ "imperative.html",
+ "index.html",
+ "shopify.html",
+ "web-component.html"
+ ],
+ "run": "npm run dev, then open /concierge-sdk/examples/custom-avatar.html",
+ "runKind": "command",
+ "readme": "concierge-sdk/examples/README.md",
+ "owner": "concierge-sdk"
+ },
+ {
+ "id": "package:packages/marketplace-mcp",
+ "kind": "package",
+ "group": "Package examples",
+ "title": "@three-ws/marketplace-mcp",
+ "description": "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.",
+ "path": "packages/marketplace-mcp/examples",
+ "files": [
+ "browse-marketplace.mjs",
+ "list-tools.mjs"
+ ],
+ "run": "node packages/marketplace-mcp/examples/browse-marketplace.mjs",
+ "runKind": "command",
+ "readme": "packages/marketplace-mcp/examples/README.md",
+ "owner": "packages/marketplace-mcp"
+ },
+ {
+ "id": "package:mcp-server",
+ "kind": "package",
+ "group": "Package examples",
+ "title": "@three-ws/mcp-server",
+ "description": "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).",
+ "path": "mcp-server/examples",
+ "files": [
+ "client.mjs",
+ "curl-session.sh"
+ ],
+ "run": "node mcp-server/examples/client.mjs",
+ "runKind": "command",
+ "readme": "mcp-server/examples/README.md",
+ "owner": "mcp-server"
+ },
+ {
+ "id": "package:page-agent-sdk",
+ "kind": "package",
+ "group": "Package examples",
+ "title": "@three-ws/page-agent",
+ "description": "Run these from the package root with any static server so the import map can resolve the unbundled source from ../src:",
+ "path": "page-agent-sdk/examples",
+ "files": [
+ "custom-avatar.html",
+ "headless.html",
+ "index.html"
+ ],
+ "run": "npm run dev, then open /page-agent-sdk/examples/custom-avatar.html",
+ "runKind": "command",
+ "readme": "page-agent-sdk/examples/README.md",
+ "owner": "page-agent-sdk"
+ },
+ {
+ "id": "package:packages/pumpfun-mcp",
+ "kind": "package",
+ "group": "Package examples",
+ "title": "@three-ws/pumpfun-mcp",
+ "description": "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.",
+ "path": "packages/pumpfun-mcp/examples",
+ "files": [
+ "list-tools.mjs",
+ "token-report.mjs"
+ ],
+ "run": "node packages/pumpfun-mcp/examples/list-tools.mjs",
+ "runKind": "command",
+ "readme": "packages/pumpfun-mcp/examples/README.md",
+ "owner": "packages/pumpfun-mcp"
+ },
+ {
+ "id": "package:sdk",
+ "kind": "package",
+ "group": "Package examples",
+ "title": "@three-ws/sdk",
+ "description": "Ship a cross-chain 3D AI agent with EVM + Solana identity, a chat panel, and discoverable .well-known endpoints.",
+ "path": "sdk/example",
+ "files": [
+ "index.html",
+ "solana-attest.html"
+ ],
+ "run": "npm run dev, then open /sdk/example/index.html",
+ "runKind": "command",
+ "readme": null,
+ "owner": "sdk"
+ },
+ {
+ "id": "package:packages/sign-language",
+ "kind": "package",
+ "group": "Package examples",
+ "title": "@three-ws/sign-language",
+ "description": "American Sign Language for 3D avatars.",
+ "path": "packages/sign-language/example",
+ "files": [
+ "compile-utterance.mjs",
+ "utterance.clip.json"
+ ],
+ "run": "node packages/sign-language/example/compile-utterance.mjs",
+ "runKind": "command",
+ "readme": null,
+ "owner": "packages/sign-language"
+ },
+ {
+ "id": "package:tour-sdk",
+ "kind": "package",
+ "group": "Package examples",
+ "title": "@three-ws/tour",
+ "description": "The guide walks from feature to feature across your real pages.",
+ "path": "tour-sdk/examples",
+ "files": [
+ "curriculum.example.json",
+ "shopify-storefront.html",
+ "shopify-tour-plus-concierge.html",
+ "storefront-curriculum.json"
+ ],
+ "run": "npm run dev, then open /tour-sdk/examples/shopify-storefront.html",
+ "runKind": "command",
+ "readme": null,
+ "owner": "tour-sdk"
+ },
+ {
+ "id": "package:packages/vanity-mcp",
+ "kind": "package",
+ "group": "Package examples",
+ "title": "@three-ws/vanity-mcp",
+ "description": "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.",
+ "path": "packages/vanity-mcp/examples",
+ "files": [
+ "list-tools.mjs",
+ "quote-and-appraise.mjs"
+ ],
+ "run": "node packages/vanity-mcp/examples/list-tools.mjs",
+ "runKind": "command",
+ "readme": "packages/vanity-mcp/examples/README.md",
+ "owner": "packages/vanity-mcp"
+ },
+ {
+ "id": "package:packages/x402-fetch",
+ "kind": "package",
+ "group": "Package examples",
+ "title": "@three-ws/x402-fetch",
+ "description": "Two runnable scripts against the live three.ws x402 Market Data API. Node 20+ is the only requirement; the package has zero production dependencies.",
+ "path": "packages/x402-fetch/examples",
+ "files": [
+ "discover.mjs",
+ "paid-call.mjs"
+ ],
+ "run": "node packages/x402-fetch/examples/discover.mjs",
+ "runKind": "command",
+ "readme": "packages/x402-fetch/examples/README.md",
+ "owner": "packages/x402-fetch"
+ },
+ {
+ "id": "package:packages/x402-mcp",
+ "kind": "package",
+ "group": "Package examples",
+ "title": "@three-ws/x402-mcp",
+ "description": "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.",
+ "path": "packages/x402-mcp/examples",
+ "files": [
+ "inspect-price.mjs",
+ "list-tools.mjs"
+ ],
+ "run": "node packages/x402-mcp/examples/inspect-price.mjs",
+ "runKind": "command",
+ "readme": "packages/x402-mcp/examples/README.md",
+ "owner": "packages/x402-mcp"
+ },
+ {
+ "id": "package:x402-modal-sdk",
+ "kind": "package",
+ "group": "Package examples",
+ "title": "@three-ws/x402-modal",
+ "description": "A drop-in payment modal for any x402 paid endpoint.",
+ "path": "x402-modal-sdk/examples",
+ "files": [
+ "index.html",
+ "server.mjs"
+ ],
+ "run": "node x402-modal-sdk/examples/server.mjs",
+ "runKind": "command",
+ "readme": null,
+ "owner": "x402-modal-sdk"
+ },
+ {
+ "id": "package:packages/x402-server",
+ "kind": "package",
+ "group": "Package examples",
+ "title": "@three-ws/x402-server",
+ "description": "Runnable examples for the seller half of x402. Each is a standalone .mjs file.",
+ "path": "packages/x402-server/examples",
+ "files": [
+ "express-metered-api.mjs",
+ "loopback-demo.mjs",
+ "raw-primitives.mjs",
+ "streaming-download.mjs"
+ ],
+ "run": "node packages/x402-server/examples/express-metered-api.mjs",
+ "runKind": "command",
+ "readme": "packages/x402-server/examples/README.md",
+ "owner": "packages/x402-server"
+ },
+ {
+ "id": "package:.",
+ "kind": "package",
+ "group": "Package examples",
+ "title": "3d-agent",
+ "description": "Runnable demos for the three.ws SDKs and agent runtime. Two kinds live here:",
+ "path": "examples",
+ "files": [
+ "agent-presence.html",
+ "agent-wallet-embed.html",
+ "bare-avatar.html",
+ "embed-test.html",
+ "minimal.html",
+ "one-line-demo.html",
+ "three-concierge.html",
+ "two-agents.html",
+ "web-component.html",
+ "widget-rpc.html"
+ ],
+ "run": "npm run dev, then open /examples/agent-presence.html",
+ "runKind": "command",
+ "readme": "examples/README.md",
+ "owner": "."
+ },
+ {
+ "id": "package:agent-payments-sdk/src/solana",
+ "kind": "package",
+ "group": "Package examples",
+ "title": "agent-payments-sdk/src/solana",
+ "description": "",
+ "path": "agent-payments-sdk/src/solana/examples",
+ "files": [
+ "listen-pump-events.ts"
+ ],
+ "run": null,
+ "runKind": "command",
+ "readme": null,
+ "owner": "agent-payments-sdk/src/solana"
+ },
+ {
+ "id": "demo:agent-wallet-embed.html",
+ "kind": "html-demo",
+ "group": "Web component demos",
+ "title": "<agent-3d wallet> - the portable agent wallet",
+ "description": "Finding a public agent to show…",
+ "path": "examples/agent-wallet-embed.html",
+ "files": [
+ "agent-wallet-embed.html"
+ ],
+ "run": "http://localhost:3000/examples/agent-wallet-embed.html",
+ "runKind": "url"
+ },
+ {
+ "id": "demo:agent-presence.html",
+ "kind": "html-demo",
+ "group": "Web component demos",
+ "title": "<agent-presence> - standalone harness · three.ws",
+ "description": "Standalone test for the global presence element - all three modes + live market reactions, on real data.",
+ "path": "examples/agent-presence.html",
+ "files": [
+ "agent-presence.html"
+ ],
+ "run": "http://localhost:3000/examples/agent-presence.html",
+ "runKind": "url"
+ },
+ {
+ "id": "demo:two-agents.html",
+ "kind": "html-demo",
+ "group": "Web component demos",
+ "title": "<agent-stage> - two agents, one scene",
+ "description": "Both agents render in a single WebGL context. Each keeps its own brain, memory, and chat chrome.",
+ "path": "examples/two-agents.html",
+ "files": [
+ "two-agents.html"
+ ],
+ "run": "http://localhost:3000/examples/two-agents.html",
+ "runKind": "url"
+ },
+ {
+ "id": "demo:web-component.html",
+ "kind": "html-demo",
+ "group": "Web component demos",
+ "title": "<mv-viewer> Custom Element demo",
+ "description": "Minimal, auto-rotate, and poster/reveal variants of the Custom Element wrapper.",
+ "path": "examples/web-component.html",
+ "files": [
+ "web-component.html"
+ ],
+ "run": "http://localhost:3000/examples/web-component.html",
+ "runKind": "url"
+ },
+ {
+ "id": "demo:bare-avatar.html",
+ "kind": "html-demo",
+ "group": "Web component demos",
+ "title": "Bare avatar - three.ws",
+ "description": "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.",
+ "path": "examples/bare-avatar.html",
+ "files": [
+ "bare-avatar.html"
+ ],
+ "run": "http://localhost:3000/examples/bare-avatar.html",
+ "runKind": "url"
+ },
+ {
+ "id": "demo:minimal.html",
+ "kind": "html-demo",
+ "group": "Web component demos",
+ "title": "Minimal embed - three.ws",
+ "description": "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.",
+ "path": "examples/minimal.html",
+ "files": [
+ "minimal.html"
+ ],
+ "run": "http://localhost:3000/examples/minimal.html",
+ "runKind": "url"
+ },
+ {
+ "id": "demo:one-line-demo.html",
+ "kind": "html-demo",
+ "group": "Web component demos",
+ "title": "One line, one 3D agent - three.ws",
+ "description": "Everything below the heading is a single <agent-3d> tag.",
+ "path": "examples/one-line-demo.html",
+ "files": [
+ "one-line-demo.html"
+ ],
+ "run": "http://localhost:3000/examples/one-line-demo.html",
+ "runKind": "url"
+ },
+ {
+ "id": "demo:embed-test.html",
+ "kind": "html-demo",
+ "group": "Web component demos",
+ "title": "three.ws Embed Test",
+ "description": "Testing the <agent-3d> web component embed.",
+ "path": "examples/embed-test.html",
+ "files": [
+ "embed-test.html"
+ ],
+ "run": "http://localhost:3000/examples/embed-test.html",
+ "runKind": "url"
+ },
+ {
+ "id": "demo:widget-rpc.html",
+ "kind": "html-demo",
+ "group": "Web component demos",
+ "title": "three.ws widget - JSON-RPC example",
+ "description": "This page loads /widget in the iframe and drives it through the ThreeWidget SDK. Open the source - it's ~70 lines, no build step.",
+ "path": "examples/widget-rpc.html",
+ "files": [
+ "widget-rpc.html"
+ ],
+ "run": "http://localhost:3000/examples/widget-rpc.html",
+ "runKind": "url"
+ },
+ {
+ "id": "demo:three-concierge.html",
+ "kind": "html-demo",
+ "group": "Web component demos",
+ "title": "Trinity - a 3D agent defined entirely in JSON · three.ws",
+ "description": "Trinity, the three.ws concierge, mounted live from a JSON manifest: a glTF body, browser voice, skills, and scene tools - wired end to end.",
+ "path": "examples/three-concierge.html",
+ "files": [
+ "three-concierge.html"
+ ],
+ "run": "http://localhost:3000/examples/three-concierge.html",
+ "runKind": "url"
+ }
+ ]
+}
diff --git a/public/llms-full.txt b/public/llms-full.txt
index 60bb1af48..7aa978452 100644
--- a/public/llms-full.txt
+++ b/public/llms-full.txt
@@ -2573,6 +2573,12 @@ URL: https://three.ws/docs/walk-leaderboard
Every step your avatar takes on three.ws is measured, rolled up, and ranked. The Walk Leaderboard is the public board for it: walkers ordered by distance walked, sites visited, or time on their feet, over today, this week, or all time.
+### Repository guards
+
+URL: https://three.ws/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.
+
### Tutorial · Give an Agent a Spending Envelope
URL: https://three.ws/tutorials/agent-spending-envelope
diff --git a/public/llms.txt b/public/llms.txt
index 9d5552fba..b4b57d27b 100644
--- a/public/llms.txt
+++ b/public/llms.txt
@@ -444,6 +444,7 @@ Docs, tutorials, and reference.
- [Docs: Living Stages](https://three.ws/docs/stage): A Living Stage is a 3D venue where an embodied AI agent performs a live show for a co-present crowd. The host opens the set, riffs, runs its format, and answers questions typed by real people in the room, with spatial voice, lip-sync, and live captions.
- [Docs: World Lines](https://three.ws/docs/world-lines): A World Line is a quest an agent leaves at a real place. Someone walks to that spot, completes the agent's challenge in a live ceremony panel (a tap, a passphrase, or a quiz), and the agent's own wallet signs an ed25519 proof of presence: a tamper-evident receipt that says this visitor was in this.
- [Docs: Walk Leaderboard](https://three.ws/docs/walk-leaderboard): Every step your avatar takes on three.ws is measured, rolled up, and ranked. The Walk Leaderboard is the public board for it: walkers ordered by distance walked, sites visited, or time on their feet, over today, this week, or all time.
+- [Repository guards](https://three.ws/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.
- [Tutorial · Give an Agent a Spending Envelope](https://three.ws/tutorials/agent-spending-envelope): Fund a budget from prepaid credits, hand an agent a capped bearer token, and let it buy real x402 services with no private key: total budget, per-call ceiling, host allowlist, expiry, audit ledger, and a refund on cancel.
- [Tutorial · Render Avatars as Images](https://three.ws/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 · Character Library to a Live Embed](https://three.ws/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.
diff --git a/public/locales/localized-pages.json b/public/locales/localized-pages.json
index fc1763168..5a15df85f 100644
--- a/public/locales/localized-pages.json
+++ b/public/locales/localized-pages.json
@@ -1,6 +1,6 @@
{
"generated": true,
- "count": 348,
+ "count": 349,
"paths": [
"/",
"/3d",
@@ -266,6 +266,7 @@
"/news/threews-play-coin-communities",
"/nim-forge",
"/notifications",
+ "/nvidia",
"/objects",
"/openai",
"/oracle",
diff --git a/public/master-wallet.css b/public/master-wallet.css
new file mode 100644
index 000000000..d8ed6cb4e
--- /dev/null
+++ b/public/master-wallet.css
@@ -0,0 +1,748 @@
+/* Your master wallet (/wallet).
+ *
+ * Built on the shared tokens in /tokens.css. The violet --wallet-* family is
+ * the same one the agent wallet hub and claim-wallet use, so a person moving
+ * between the three surfaces reads them as one system.
+ *
+ * Layout rules: nothing is a fixed pixel width, the balance grid reflows by
+ * available space rather than by breakpoint guesswork, and long addresses are
+ * middle-truncated in markup (never clipped by overflow) so they stay
+ * verifiable by eye at 320px.
+ */
+
+.wlt-wrap {
+ max-width: 880px;
+ margin: 0 auto;
+ padding: calc(var(--space-md) * 2) var(--space-md) calc(var(--space-md) * 4);
+}
+
+.wlt-crumb {
+ font: var(--text-sm) var(--font-body);
+ color: var(--ink-dim);
+ margin: 0 0 var(--space-lg);
+}
+.wlt-crumb a {
+ color: inherit;
+}
+.wlt-crumb a:hover {
+ color: var(--ink);
+}
+
+/* ── Shared controls ─────────────────────────────────────────────────────── */
+
+.wlt-btn {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: var(--space-xs);
+ appearance: none;
+ font: var(--text-md) var(--font-body);
+ font-weight: var(--weight-medium);
+ color: var(--ink);
+ background: var(--surface-2);
+ border: 1px solid var(--stroke);
+ border-radius: var(--radius-md);
+ padding: 9px 16px;
+ cursor: pointer;
+ text-decoration: none;
+ white-space: nowrap;
+ transition:
+ background var(--duration-fast) var(--ease-standard),
+ border-color var(--duration-fast) var(--ease-standard),
+ transform var(--duration-fast) var(--ease-standard);
+}
+.wlt-btn:hover:not(:disabled) {
+ background: var(--surface-3);
+ border-color: var(--stroke-strong);
+}
+.wlt-btn:active:not(:disabled) {
+ transform: translateY(1px);
+}
+.wlt-btn:focus-visible {
+ outline: var(--focus-ring-width) solid var(--wallet-focus);
+ outline-offset: var(--focus-ring-offset);
+}
+.wlt-btn:disabled {
+ opacity: var(--disabled-opacity);
+ cursor: var(--disabled-cursor);
+}
+.wlt-btn--primary {
+ background: var(--wallet-accent-fill);
+ border-color: var(--wallet-stroke-strong);
+ color: var(--wallet-accent);
+ font-weight: var(--weight-semibold);
+}
+.wlt-btn--primary:hover:not(:disabled) {
+ background: var(--wallet-accent-soft);
+ border-color: var(--wallet-accent-strong);
+ box-shadow: 0 0 0 1px var(--wallet-stroke), 0 8px 24px -12px var(--wallet-glow);
+}
+.wlt-btn--lg {
+ padding: 12px 22px;
+ font-size: var(--text-lg);
+}
+.wlt-btn--sm {
+ padding: 6px 12px;
+ font-size: var(--text-sm);
+}
+
+.wlt-icon-btn {
+ appearance: none;
+ background: transparent;
+ border: 1px solid transparent;
+ border-radius: var(--radius-sm);
+ color: var(--ink-dim);
+ font: var(--text-xs) var(--font-body);
+ padding: 4px 8px;
+ cursor: pointer;
+ text-decoration: none;
+ transition:
+ color var(--duration-fast) var(--ease-standard),
+ background var(--duration-fast) var(--ease-standard);
+}
+.wlt-icon-btn:hover {
+ color: var(--ink);
+ background: var(--surface-3);
+}
+.wlt-icon-btn:focus-visible {
+ outline: var(--focus-ring-width) solid var(--wallet-focus);
+ outline-offset: var(--focus-ring-offset);
+}
+.wlt-icon-btn.is-copied {
+ color: var(--success);
+}
+
+.wlt-linkbtn {
+ appearance: none;
+ background: none;
+ border: 0;
+ padding: 0;
+ font: inherit;
+ color: var(--wallet-accent);
+ cursor: pointer;
+ text-decoration: underline;
+ text-underline-offset: 2px;
+}
+.wlt-linkbtn:focus-visible {
+ outline: var(--focus-ring-width) solid var(--wallet-focus);
+ outline-offset: var(--focus-ring-offset);
+}
+
+/* ── Hero states (signed out, no wallet) ─────────────────────────────────── */
+
+.wlt-eyebrow {
+ display: inline-block;
+ font: var(--text-xs) var(--font-body);
+ font-weight: var(--weight-semibold);
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: var(--wallet-accent);
+ margin-bottom: var(--space-xs);
+}
+
+.wlt-hero {
+ background: var(--surface-1);
+ border: 1px solid var(--stroke);
+ border-radius: var(--radius-lg);
+ padding: var(--space-xl);
+ position: relative;
+ overflow: hidden;
+}
+/* A single soft violet wash: enough to feel considered, never enough to fight
+ the text contrast in either theme. */
+.wlt-hero::before {
+ content: '';
+ position: absolute;
+ inset: -40% 40% 60% -20%;
+ background: radial-gradient(closest-side, var(--wallet-accent-soft), transparent);
+ pointer-events: none;
+}
+.wlt-hero > * {
+ position: relative;
+}
+.wlt-hero-title {
+ font: var(--text-2xl) var(--font-display);
+ font-weight: var(--weight-bold);
+ line-height: var(--leading-tight);
+ color: var(--ink-bright);
+ margin: 0 0 var(--space-sm);
+}
+.wlt-hero-sub {
+ font: var(--text-md) var(--font-body);
+ line-height: var(--leading-loose);
+ color: var(--ink-dim);
+ margin: 0 0 var(--space-lg);
+ max-width: 60ch;
+}
+.wlt-bullets {
+ list-style: none;
+ margin: 0 0 var(--space-lg);
+ padding: 0;
+ display: grid;
+ gap: var(--space-sm);
+}
+.wlt-bullets li {
+ font: var(--text-md) var(--font-body);
+ color: var(--ink-dim);
+ padding-left: 1.6em;
+ position: relative;
+}
+.wlt-bullets li::before {
+ content: '';
+ position: absolute;
+ left: 0.35em;
+ top: 0.62em;
+ width: 6px;
+ height: 6px;
+ border-radius: 50%;
+ background: var(--wallet-accent);
+}
+.wlt-bullets strong {
+ color: var(--ink);
+}
+.wlt-hero-actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: var(--space-sm);
+}
+
+/* ── Error / message ─────────────────────────────────────────────────────── */
+
+.wlt-msg {
+ background: var(--surface-1);
+ border: 1px solid var(--stroke);
+ border-radius: var(--radius-lg);
+ padding: var(--space-xl);
+}
+.wlt-msg--inline {
+ padding: var(--space-lg);
+ display: grid;
+ gap: var(--space-md);
+ justify-items: start;
+}
+.wlt-msg-title {
+ font: var(--text-xl) var(--font-display);
+ font-weight: var(--weight-bold);
+ color: var(--ink-bright);
+ margin: 0 0 var(--space-sm);
+}
+.wlt-msg-body {
+ font: var(--text-md) var(--font-body);
+ color: var(--ink-dim);
+ margin: 0 0 var(--space-lg);
+ max-width: 60ch;
+}
+.wlt-msg--inline .wlt-msg-body {
+ margin: 0;
+}
+
+/* ── Header ──────────────────────────────────────────────────────────────── */
+
+.wlt-head {
+ display: flex;
+ align-items: flex-end;
+ justify-content: space-between;
+ gap: var(--space-md);
+ flex-wrap: wrap;
+ margin-bottom: var(--space-lg);
+}
+.wlt-title {
+ font: var(--text-2xl) var(--font-display);
+ font-weight: var(--weight-bold);
+ color: var(--ink-bright);
+ margin: 0;
+ line-height: var(--leading-tight);
+}
+
+/* ── Notice banner ───────────────────────────────────────────────────────── */
+
+.wlt-notice {
+ display: flex;
+ align-items: center;
+ gap: var(--space-md);
+ flex-wrap: wrap;
+ border-radius: var(--radius-md);
+ border: 1px solid var(--stroke);
+ padding: var(--space-md);
+ margin-bottom: var(--space-lg);
+ animation: wlt-notice-in var(--duration-base) var(--ease-out);
+}
+.wlt-notice--ok {
+ background: var(--badge-success-bg);
+ border-color: var(--badge-success-border);
+}
+.wlt-notice--err {
+ background: var(--badge-danger-bg);
+ border-color: var(--badge-danger-border);
+}
+.wlt-notice-text {
+ display: grid;
+ gap: 2px;
+ flex: 1 1 16rem;
+ min-width: 0;
+}
+.wlt-notice-text strong {
+ font: var(--text-md) var(--font-body);
+ font-weight: var(--weight-semibold);
+ color: var(--ink-bright);
+}
+.wlt-notice-text span {
+ font: var(--text-sm) var(--font-body);
+ color: var(--ink-dim);
+}
+@keyframes wlt-notice-in {
+ from {
+ opacity: 0;
+ transform: translateY(-4px);
+ }
+ to {
+ opacity: 1;
+ transform: none;
+ }
+}
+
+/* ── Balances ────────────────────────────────────────────────────────────── */
+
+.wlt-balances {
+ display: grid;
+ /* Reflows by space, not by breakpoint: four across on a wide screen, two on
+ a tablet, one on a phone, with no media query to keep in sync. */
+ grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
+ gap: var(--space-sm);
+ margin-bottom: var(--space-lg);
+}
+.wlt-bal {
+ display: grid;
+ gap: 2px;
+ background: var(--surface-1);
+ border: 1px solid var(--stroke);
+ border-radius: var(--radius-md);
+ padding: var(--space-md);
+ min-width: 0;
+}
+.wlt-bal--accent {
+ background: var(--wallet-accent-soft);
+ border-color: var(--wallet-stroke);
+}
+.wlt-bal-label {
+ font: var(--text-xs) var(--font-body);
+ text-transform: uppercase;
+ letter-spacing: 0.06em;
+ color: var(--ink-faint);
+}
+.wlt-bal-value {
+ font: var(--text-xl) var(--font-mono);
+ font-weight: var(--weight-semibold);
+ color: var(--ink-bright);
+ overflow-wrap: anywhere;
+}
+.wlt-bal--accent .wlt-bal-value {
+ color: var(--wallet-accent);
+}
+.wlt-bal-sub {
+ font: var(--text-xs) var(--font-body);
+ color: var(--ink-dim);
+}
+.wlt-bal-na {
+ font-size: var(--text-sm);
+ color: var(--ink-faint);
+ font-family: var(--font-body);
+ font-weight: var(--weight-regular);
+}
+
+/* ── Addresses ───────────────────────────────────────────────────────────── */
+
+.wlt-addresses {
+ background: var(--surface-1);
+ border: 1px solid var(--stroke);
+ border-radius: var(--radius-md);
+ padding: var(--space-md);
+ margin-bottom: var(--space-lg);
+ display: grid;
+ gap: var(--space-sm);
+}
+.wlt-addr {
+ display: flex;
+ align-items: center;
+ gap: var(--space-sm);
+ flex-wrap: wrap;
+}
+.wlt-addr-label {
+ font: var(--text-xs) var(--font-body);
+ font-weight: var(--weight-semibold);
+ text-transform: uppercase;
+ letter-spacing: 0.06em;
+ color: var(--ink-faint);
+ min-width: 3.5rem;
+}
+.wlt-addr-value {
+ font: var(--text-sm) var(--font-mono);
+ color: var(--ink);
+ background: var(--surface-2);
+ border-radius: var(--radius-sm);
+ padding: 4px 8px;
+ overflow-wrap: anywhere;
+}
+.wlt-addr-note {
+ font: var(--text-xs) var(--font-body);
+ color: var(--ink-faint);
+ margin: 0;
+ max-width: 60ch;
+}
+
+/* ── Tabs + panel ────────────────────────────────────────────────────────── */
+
+.wlt-actions {
+ background: var(--surface-1);
+ border: 1px solid var(--stroke);
+ border-radius: var(--radius-lg);
+ overflow: hidden;
+}
+.wlt-tabs {
+ display: flex;
+ gap: 2px;
+ padding: var(--space-xs);
+ border-bottom: 1px solid var(--stroke);
+ overflow-x: auto;
+ scrollbar-width: none;
+}
+.wlt-tabs::-webkit-scrollbar {
+ display: none;
+}
+.wlt-tab {
+ appearance: none;
+ background: transparent;
+ border: 0;
+ border-radius: var(--radius-sm);
+ color: var(--ink-dim);
+ font: var(--text-md) var(--font-body);
+ font-weight: var(--weight-medium);
+ padding: 10px 16px;
+ cursor: pointer;
+ white-space: nowrap;
+ transition:
+ color var(--duration-fast) var(--ease-standard),
+ background var(--duration-fast) var(--ease-standard);
+}
+.wlt-tab:hover {
+ color: var(--ink);
+ background: var(--surface-2);
+}
+.wlt-tab:focus-visible {
+ outline: var(--focus-ring-width) solid var(--wallet-focus);
+ outline-offset: calc(var(--focus-ring-offset) * -1);
+}
+.wlt-tab.is-active {
+ color: var(--wallet-accent);
+ background: var(--wallet-accent-soft);
+}
+.wlt-panel {
+ padding: var(--space-lg);
+}
+.wlt-panel:focus-visible {
+ outline: var(--focus-ring-width) solid var(--wallet-focus);
+ outline-offset: calc(var(--focus-ring-offset) * -1);
+}
+
+/* ── Forms ───────────────────────────────────────────────────────────────── */
+
+.wlt-form {
+ display: grid;
+ gap: var(--space-md);
+}
+.wlt-field {
+ display: grid;
+ gap: 6px;
+ min-width: 0;
+}
+.wlt-field label {
+ font: var(--text-sm) var(--font-body);
+ font-weight: var(--weight-medium);
+ color: var(--ink);
+}
+.wlt-field-row {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
+ gap: var(--space-md);
+}
+.wlt-input {
+ width: 100%;
+ appearance: none;
+ font: var(--text-md) var(--font-body);
+ color: var(--ink);
+ background: var(--surface-2);
+ border: 1px solid var(--stroke);
+ border-radius: var(--radius-md);
+ padding: 10px 12px;
+ transition:
+ border-color var(--duration-fast) var(--ease-standard),
+ box-shadow var(--duration-fast) var(--ease-standard);
+}
+.wlt-input:hover {
+ border-color: var(--stroke-strong);
+}
+.wlt-input:focus {
+ outline: none;
+ border-color: var(--wallet-accent-strong);
+ box-shadow: 0 0 0 3px var(--wallet-accent-soft);
+}
+input.wlt-input {
+ font-family: var(--font-mono);
+}
+.wlt-help {
+ font: var(--text-xs) var(--font-body);
+ color: var(--ink-faint);
+ margin: 0;
+}
+
+/* ── Confirmation ────────────────────────────────────────────────────────── */
+
+.wlt-confirm {
+ border: 1px solid var(--wallet-stroke-strong);
+ background: var(--wallet-accent-soft);
+ border-radius: var(--radius-md);
+ padding: var(--space-lg);
+ display: grid;
+ gap: var(--space-md);
+ animation: wlt-notice-in var(--duration-base) var(--ease-out);
+}
+.wlt-confirm-title {
+ font: var(--text-lg) var(--font-display);
+ font-weight: var(--weight-bold);
+ color: var(--ink-bright);
+ margin: 0;
+}
+.wlt-confirm-note {
+ font: var(--text-sm) var(--font-body);
+ color: var(--ink-dim);
+ margin: 0;
+}
+.wlt-confirm-rows {
+ display: grid;
+ gap: var(--space-sm);
+ margin: 0;
+}
+.wlt-confirm-rows > div {
+ display: flex;
+ justify-content: space-between;
+ gap: var(--space-md);
+ align-items: baseline;
+ flex-wrap: wrap;
+ padding-bottom: var(--space-sm);
+ border-bottom: 1px solid var(--hairline);
+}
+.wlt-confirm-rows > div:last-child {
+ border-bottom: 0;
+ padding-bottom: 0;
+}
+.wlt-confirm-rows dt {
+ font: var(--text-sm) var(--font-body);
+ color: var(--ink-dim);
+ margin: 0;
+}
+.wlt-confirm-rows dd {
+ margin: 0;
+ font: var(--text-sm) var(--font-body);
+ color: var(--ink);
+ text-align: right;
+ min-width: 0;
+ overflow-wrap: anywhere;
+}
+.wlt-confirm-rows code {
+ font-family: var(--font-mono);
+ font-size: var(--text-sm);
+}
+.wlt-confirm-amount {
+ font-size: var(--text-lg) !important;
+ font-weight: var(--weight-semibold);
+ color: var(--ink-bright) !important;
+}
+.wlt-confirm-usd {
+ color: var(--ink-dim);
+ font-weight: var(--weight-regular);
+ font-size: var(--text-sm);
+}
+.wlt-confirm-actions {
+ display: flex;
+ gap: var(--space-sm);
+ flex-wrap: wrap;
+}
+
+/* ── History ─────────────────────────────────────────────────────────────── */
+
+.wlt-tx-list {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ display: grid;
+ gap: 2px;
+}
+.wlt-tx {
+ display: flex;
+ align-items: center;
+ gap: var(--space-sm);
+ padding: var(--space-sm);
+ border-radius: var(--radius-sm);
+ transition: background var(--duration-fast) var(--ease-standard);
+}
+.wlt-tx:hover {
+ background: var(--surface-2);
+}
+.wlt-tx-dot {
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+ flex: none;
+ background: var(--ink-faint);
+}
+.wlt-tx-dot--in {
+ background: var(--success);
+}
+.wlt-tx-dot--out {
+ background: var(--wallet-accent);
+}
+.wlt-tx-dot--failed {
+ background: var(--danger);
+}
+.wlt-tx-main {
+ display: grid;
+ gap: 1px;
+ flex: 1 1 auto;
+ min-width: 0;
+}
+.wlt-tx-summary {
+ font: var(--text-sm) var(--font-body);
+ color: var(--ink);
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+.wlt-tx-meta {
+ font: var(--text-xs) var(--font-body);
+ color: var(--ink-faint);
+}
+.wlt-tx-amount {
+ font: var(--text-sm) var(--font-mono);
+ color: var(--ink);
+ white-space: nowrap;
+}
+.wlt-tx-amount--in {
+ color: var(--success);
+}
+.wlt-tx-link {
+ font: var(--text-xs) var(--font-body);
+ color: var(--ink-dim);
+ text-decoration: none;
+ padding: 4px 8px;
+ border-radius: var(--radius-sm);
+ flex: none;
+}
+.wlt-tx-link:hover {
+ color: var(--ink);
+ background: var(--surface-3);
+}
+.wlt-tx-link:focus-visible {
+ outline: var(--focus-ring-width) solid var(--wallet-focus);
+ outline-offset: var(--focus-ring-offset);
+}
+.wlt-tx--failed .wlt-tx-summary {
+ color: var(--ink-dim);
+}
+
+/* ── Empty panel state ───────────────────────────────────────────────────── */
+
+.wlt-empty {
+ text-align: center;
+ padding: var(--space-xl) var(--space-md);
+ display: grid;
+ gap: var(--space-sm);
+ justify-items: center;
+}
+.wlt-empty h3 {
+ font: var(--text-lg) var(--font-display);
+ font-weight: var(--weight-semibold);
+ color: var(--ink);
+ margin: 0;
+}
+.wlt-empty p {
+ font: var(--text-sm) var(--font-body);
+ color: var(--ink-dim);
+ margin: 0 0 var(--space-xs);
+ max-width: 44ch;
+}
+
+/* ── Skeletons ───────────────────────────────────────────────────────────── */
+
+.wlt-skel {
+ display: grid;
+ gap: var(--space-lg);
+}
+.wlt-skel-hero,
+.wlt-skel-card,
+.wlt-skel-panel,
+.wlt-inline-skel {
+ background: linear-gradient(
+ 90deg,
+ var(--skeleton-base) 0%,
+ var(--skeleton-sheen) 50%,
+ var(--skeleton-base) 100%
+ );
+ background-size: 200% 100%;
+ border-radius: var(--skeleton-radius);
+ animation: wlt-sheen 1.4s var(--ease-standard) infinite;
+}
+.wlt-skel-hero {
+ height: 9rem;
+}
+.wlt-skel-row {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
+ gap: var(--space-sm);
+}
+.wlt-skel-card {
+ height: 5.5rem;
+}
+.wlt-skel-panel {
+ height: 16rem;
+}
+.wlt-inline-skel {
+ height: 10rem;
+}
+@keyframes wlt-sheen {
+ from {
+ background-position: 200% 0;
+ }
+ to {
+ background-position: -200% 0;
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .wlt-skel-hero,
+ .wlt-skel-card,
+ .wlt-skel-panel,
+ .wlt-inline-skel,
+ .wlt-notice,
+ .wlt-confirm {
+ animation: none;
+ }
+ .wlt-btn,
+ .wlt-input,
+ .wlt-tab,
+ .wlt-tx {
+ transition: none;
+ }
+}
+
+@media (max-width: 40rem) {
+ .wlt-wrap {
+ padding-inline: var(--space-sm);
+ }
+ .wlt-hero,
+ .wlt-msg {
+ padding: var(--space-lg);
+ }
+ .wlt-hero-actions .wlt-btn {
+ flex: 1 1 100%;
+ }
+}
diff --git a/public/mcp-catalog.json b/public/mcp-catalog.json
index ad1f0dc54..f9a9bf43b 100644
--- a/public/mcp-catalog.json
+++ b/public/mcp-catalog.json
@@ -303,8 +303,8 @@
"tools": [
{
"name": "get_feed_events",
- "title": null,
- "description": null,
+ "title": "Site-wide activity feed",
+ "description": "The site-wide activity ticker — recent things that just happened across three.ws, newest-first. Each event is { id, type, ts (epoch ms), actor (a short, already-public display label), ...typeSpecific }. Types include coin-buy { mint, sol, network }, agent-deploy { agentId, name }, agent-onchain { agentId, name, chain }, level-up { skill, level, coin }, world-join { coin, coinName }, jackpot { reward, coin }, payment { usdcAtomic, recipientLabel, txSig, explorerUrl }, mission-complete { mission, gold, coop, coin }, and member-join { handle }. Use it for situational awareness — what agents, coins, and players are active right now. Read-only live data; new events arrive constantly.",
"server": {
"id": "activity-mcp",
"title": "@three-ws/activity-mcp",
@@ -327,8 +327,8 @@
},
{
"name": "get_holder_leaderboard",
- "title": null,
- "description": null,
+ "title": "$THREE holder leaderboard",
+ "description": "The public $THREE holder leaderboard, ranked by on-chain balance. $THREE is the only coin three.ws ranks holders for. Returns a page of holders — each row is { rank, wallet, wallet_short, amount, pct_of_supply, tier } — plus the total holder count, the page limit/offset, the circulating supply, the $THREE mint and decimals, the full tier ladder (the legend), and a live market strip { price_usd, market_cap, holders } for the header. Pass a wallet to also get that holder's own standing (`you`: rank + amount + tier) even when it falls outside the requested page. Read-only live data; balances and ranks move between calls.",
"server": {
"id": "activity-mcp",
"title": "@three-ws/activity-mcp",
@@ -351,8 +351,8 @@
},
{
"name": "get_tier_info",
- "title": null,
- "description": null,
+ "title": "$THREE holder tier ladder",
+ "description": "The $THREE holder tier ladder — the membership bands a wallet earns purely from its on-chain $THREE balance. Returns each tier as { id, label, min, accent }: the tier key, its display label (Genesis, Diamond, Platinum, Gold, Silver, Bronze, …), the minimum whole-token $THREE balance to reach it, and the accent color used for its badge. Use this to explain what a holder's tier means, to tell a holder how far they are from the next band, or to render the leaderboard legend. The same ladder gates the 3D PFP generator and styles the share card, so it's consistent everywhere. Read-only; the ladder is the live source of truth (thresholds can change between calls).",
"server": {
"id": "activity-mcp",
"title": "@three-ws/activity-mcp",
@@ -375,8 +375,8 @@
},
{
"name": "get_trending_agents",
- "title": null,
- "description": null,
+ "title": "Trending agents by activity",
+ "description": "The agents that are hot on three.ws right now, ranked by REAL chat activity. For the 24h/7d windows the rank is the count of LLM usage events in that window (window_chats); for the all-time window it's each public agent's pre-aggregated total chat_count. Every row carries the agent's id, name, short description, avatar thumbnail, lifetime chat_count, window_chats (null for all-time), an is_onchain flag, its public custodial Solana wallet (with any vanity prefix/suffix), a deep agent_url, and — when available — a wallet-trust reputation card { score, tier, tierLabel, isNew }. Pass sort='trust' to blend proven wallet reputation into the ranking (one signal among others, weighted ~0.45, never pay-to-win) instead of pure activity. Read-only live data; the ranking moves between calls.",
"server": {
"id": "activity-mcp",
"title": "@three-ws/activity-mcp",
@@ -399,8 +399,8 @@
},
{
"name": "get_trending_coins",
- "title": null,
- "description": null,
+ "title": "Trending coins by Oracle conviction",
+ "description": "The coins three.ws's Oracle has the highest conviction in right now, ranked by its 0–100 conviction score (only recently-scored coins, <36h stale, are included). Each row carries the mint, symbol, name, the overall score and tier, the four component sub-scores (momentum, pedigree, structure, narrative), the smart_wallet_count behind it, when it was scored_at, and a coin_url into the Oracle detail page. This is the platform's runtime launch-directory discovery data — a ranking of what the Oracle scored, NOT financial advice or a recommendation of any coin. Read-only live data; the ranking moves between calls.",
"server": {
"id": "activity-mcp",
"title": "@three-ws/activity-mcp",
@@ -423,8 +423,8 @@
},
{
"name": "get_agent",
- "title": null,
- "description": null,
+ "title": "Get AgenC agent registry entry",
+ "description": "Resolve an agent's on-chain identity in the AgenC registry (ERC-8004-style). Returns the registry entry: authority wallet, status (Inactive, Active, Busy, Suspended), declared capabilities bitmask, service endpoint, metadata URI, stake amount, active task count, reputation, and registration time. Use this to verify another agent before coordinating with it — confirm it is registered, active, and what it claims to do. Address the agent by `agentPda`, or by `agentId` (a 0x/64-char hex seed or a plain text label the bridge hashes to the canonical id). Read-only live on-chain data; returns ok:false with error:\"not_found\" when the agent is not registered. Free, no key required.",
"server": {
"id": "agenc-mcp",
"title": "@three-ws/agenc-mcp",
@@ -447,8 +447,8 @@
},
{
"name": "get_task",
- "title": null,
- "description": null,
+ "title": "Get AgenC task detail + lifecycle",
+ "description": "Fetch one AgenC task by its PDA, or by (creator + taskId). Returns the task state (Open, Claimed, Completed, Cancelled, Disputed, Expired), creator, reward amount + mint, deadline, worker counts, completion time, and whether it is private (constraint-gated). Set `lifecycle:true` to also get the full event timeline — every state transition with its timestamp, actor, and tx signature — so an agent can audit how the task progressed before deciding to claim it. `taskId` accepts a 0x-prefixed or bare 64-char hex seed, or a plain text label the bridge hashes to the canonical id. Read-only live on-chain data; returns ok:false with error:\"not_found\" when the task PDA does not exist. Free, no key required.",
"server": {
"id": "agenc-mcp",
"title": "@three-ws/agenc-mcp",
@@ -471,8 +471,8 @@
},
{
"name": "link_agent",
- "title": null,
- "description": null,
+ "title": "Link a three.ws identity to its AgenC agent id",
+ "description": "Resolve a three.ws identity to its canonical AgenC agent id and check whether it is registered on-chain. Provide ONE of: `erc8004AgentId` (an ERC-8004 numeric/hex id), `mplCoreAsset` (a base58 MPL-Core asset address), or `handle` (a three.ws handle). The identity bridge returns the deterministic `agenCAgentId` (hex), its on-chain `agentPda`, the `source`/`label` the id was derived from, the `metadataUri` three.ws would publish for it, and `registered:true|false`. When already registered, the live registry `agent` snapshot (authority, status, endpoint, reputation, active tasks, stake) is included. This derives identity and reads chain state — it does NOT register, stake, or sign; registration itself is an authenticated on-chain action performed elsewhere. Read-only; registration state is live, so results are not idempotent. Free, no key required.",
"server": {
"id": "agenc-mcp",
"title": "@three-ws/agenc-mcp",
@@ -495,8 +495,8 @@
},
{
"name": "list_tasks",
- "title": null,
- "description": null,
+ "title": "List AgenC tasks by creator",
+ "description": "List every AgenC task created by a given Solana wallet. AgenC (agenc.tech, by Tetsuo Corp) is an on-chain coordination protocol where agents post, claim, and complete tasks with SOL/SPL escrow. Returns each task PDA with its lifecycle state (Open, Claimed, Completed, Cancelled, Disputed, Expired), reward amount + mint, deadline, and worker counts (current/max). `private:true` flags a task gated by a constraint hash. Use this to see the work a specific creator has open or in-flight. Read-only live on-chain data — the set shifts as tasks are posted and claimed, so results are not idempotent. Free, no key required.",
"server": {
"id": "agenc-mcp",
"title": "@three-ws/agenc-mcp",
@@ -519,8 +519,8 @@
},
{
"name": "query_x402_services",
- "title": null,
- "description": null,
+ "title": "Query x402 services as AgenC tasks",
+ "description": "Browse the x402 service directory (the bazaar of paid HTTP endpoints and MCP tools) projected into AgenC task shape. Each entry returns the resource URL, service/tool name, description, tags, HTTP method, a deterministic `taskIdSeed` (so re-posting maps to the same AgenC task PDA), the `price` (atomic + label, currency, network, settlement family), input/output schema hints, and `rewardKind:\"x402_pay_to_endpoint\"`. Filter by `type` (http endpoints or mcp tools), `network`, `maxPrice` (in the given `asset`), and `extension`. Use this to discover paid work an agent can earn by calling — the x402 complement to the on-chain task marketplace. Read-only live directory data; the feed moves between calls. Free, no key required.",
"server": {
"id": "agenc-mcp",
"title": "@three-ws/agenc-mcp",
@@ -543,8 +543,8 @@
},
{
"name": "cancel_payment_session",
- "title": null,
- "description": null,
+ "title": "Cancel a payment session and refund unused budget",
+ "description": "Cancel an active payment session. The un-spent portion of the budget is immediately refunded to your credit balance. Already-completed payments are not reversed. Idempotent — safe to call on an already-cancelled session. Requires THREE_WS_SESSION.",
"server": {
"id": "agentcore-payments-mcp",
"title": "@three-ws/agentcore-payments-mcp",
@@ -567,8 +567,8 @@
},
{
"name": "check_payment_session",
- "title": null,
- "description": null,
+ "title": "Check a payment session's budget and status",
+ "description": "Inspect a payment session: budget, amount spent, remaining budget, status (active/exhausted/expired/cancelled), expiry time, allowlist, and per-tx ceiling. Optionally include recent payment executions. Requires THREE_WS_SESSION (only the session owner can read it).",
"server": {
"id": "agentcore-payments-mcp",
"title": "@three-ws/agentcore-payments-mcp",
@@ -591,8 +591,8 @@
},
{
"name": "create_payment_session",
- "title": null,
- "description": null,
+ "title": "Create a funded agent payment session",
+ "description": "Create a platform-managed payment session that funds agent x402 payments from your credits. The agent never needs a private key — it uses the returned session token to call pay_with_session. Governance enforces your budget_usd ceiling, optional per-payment cap (max_per_tx_usd), URL allowlist, and time expiry. Un-spent budget is automatically refunded on cancel or expiry. Returns: session object + token (shown once — store securely). Requires THREE_WS_SESSION.",
"server": {
"id": "agentcore-payments-mcp",
"title": "@three-ws/agentcore-payments-mcp",
@@ -615,8 +615,8 @@
},
{
"name": "list_payment_sessions",
- "title": null,
- "description": null,
+ "title": "List payment sessions and spending stats",
+ "description": "List your payment sessions with aggregate spending stats. Filter by status. Stats include: total budget allocated, total spent, active/exhausted/expired counts, settled payment count, and unique endpoints paid. Requires THREE_WS_SESSION.",
"server": {
"id": "agentcore-payments-mcp",
"title": "@three-ws/agentcore-payments-mcp",
@@ -639,8 +639,8 @@
},
{
"name": "pay_with_session",
- "title": null,
- "description": null,
+ "title": "Pay an x402 endpoint via a payment session",
+ "description": "Execute an x402 micropayment against a paid API or MCP endpoint using a Payment Session token. The platform signs the Solana USDC transfer — no private key needed by the agent. Governance enforces budget limits, URL allowlists, and per-tx ceilings before any money moves. Endpoints that respond without a 402 are called for free. Returns the endpoint's response + payment receipt. Uses PAYMENT_SESSION_TOKEN env var if token is not passed inline.",
"server": {
"id": "agentcore-payments-mcp",
"title": "@three-ws/agentcore-payments-mcp",
@@ -663,8 +663,8 @@
},
{
"name": "agora_board",
- "title": null,
- "description": null,
+ "title": "Browse the Agora job board",
+ "description": "Browse the live Agora job board — the work an agent can claim and earn $THREE for. Two lanes: open AgenC on-chain tasks (real bounties citizens posted, still open: PDA, profession, reward, creator, minReputation, taskType, an explorer-backed taskUrl) and the x402 bazaar (every paid HTTP/MCP service as a claimable Fetcher job: resource URL, price, currency, network). Filter by `profession` (fetcher, sculptor, scribe, cartographer, crier, appraiser, verifier, namekeeper) to see only jobs you can take, and by `minReward` (atomic reward units) to skip low-value work. `network`/`maxPrice`/`asset` narrow the x402 lane. Returns honest empty arrays when nothing is open — the economy is real, not fabricated. Read-only live data; the board moves between calls. Free, no key required.",
"server": {
"id": "agora-mcp",
"title": "@three-ws/agora-mcp",
@@ -687,8 +687,8 @@
},
{
"name": "agora_citizens",
- "title": null,
- "description": null,
+ "title": "List Agora citizens",
+ "description": "List the citizens of Agora — the population of the agent + human economy. Each citizen returns its id, kind (agent or human), display name, profession + decoded profession bits, live status (Active, Busy, Idle), its AgenC on-chain identity (agentId, agentPda, cluster, registered), reputation, stake, $THREE earned, and tasks completed/posted. Filter by `profession` (fetcher, sculptor, scribe, cartographer, crier, appraiser, verifier, namekeeper), `status` (active, busy, idle), or `kind` (agent, human). Use it to scout collaborators, find a Verifier for your proof, or see who's earning. Returns an honest empty list before the world is seeded — never fabricated citizens. Read-only live data; the population moves between calls. Free, no key required.",
"server": {
"id": "agora-mcp",
"title": "@three-ws/agora-mcp",
@@ -711,8 +711,8 @@
},
{
"name": "agora_claim_task",
- "title": null,
- "description": null,
+ "title": "Claim an open Agora task (on-chain)",
+ "description": "CLAIM an open job from the Agora board — a REAL on-chain AgenC claim signed by YOUR Solana key (signs locally; never logged, stored, or transmitted). Pass the `taskPda` from agora_board, and your worker identity: either `workerAgentId` (your 32-byte AgenC id in hex) OR an identity to derive it from (`handle` / `erc8004AgentId` / `mplCoreAsset`) — must match the identity you registered with. You must already be a registered citizen and your capability bitmap must satisfy the task's requiredCapabilities, or the chain rejects the claim. On success the task moves to InProgress; do the work, then call agora_complete_task with your proof to release the escrow. Returns the tx signature + explorer link and the task's new on-chain state. Devnet by default; set cluster:\"mainnet\" for a mainnet task. Requires a funded signer.",
"server": {
"id": "agora-mcp",
"title": "@three-ws/agora-mcp",
@@ -735,8 +735,8 @@
},
{
"name": "agora_complete_task",
- "title": null,
- "description": null,
+ "title": "Complete an Agora task with a proof (on-chain)",
+ "description": "COMPLETE a task you claimed and GET PAID — a REAL on-chain AgenC completion signed by YOUR Solana key (signs locally; never logged, stored, or transmitted). Submit the `taskPda`, your worker identity (`workerAgentId` hex OR `handle`/`erc8004AgentId`/`mplCoreAsset`), and a real `proofHash`: a 32-byte hex digest of your deliverable (the canonical convention is sha256(deliverable bytes) so a Verifier citizen can re-download and re-derive it). Optionally pass `deliverable` (a URL or short reference) — packed into the on-chain 64-byte result slot. On accepted proof the escrow RELEASES to your wallet and your reputation ticks up. You compute and supply the proof — nothing is faked; a wrong proof for the work is a real, auditable record. Returns the tx signature + explorer link and the task's new on-chain state. Requires a funded signer.",
"server": {
"id": "agora-mcp",
"title": "@three-ws/agora-mcp",
@@ -759,8 +759,8 @@
},
{
"name": "agora_passport",
- "title": null,
- "description": null,
+ "title": "Get one Agora citizen passport",
+ "description": "Fetch one citizen's living passport — the full record of a participant in Agora. Address it by `id` (the Agora citizen id), `agentPda` (its on-chain AgenC PDA), or `agentId` (its 32-byte AgenC id, hex). Returns the citizen projection (name, profession, status, reputation, stake, $THREE earned), its LIVE on-chain AgenC snapshot reconciled from the chain (authority, status, capabilities, endpoint, stake, active tasks, reputation, registeredAt), and its recent activity history — every claim/complete/earn/vouch with its task PDA, reward, tx signature, proofHash, and deliverable URL, so you can audit and even re-verify a citizen's work before coordinating with it. Read-only live data; returns ok:false with error:\"not_found\" when no such citizen exists. Free, no key required.",
"server": {
"id": "agora-mcp",
"title": "@three-ws/agora-mcp",
@@ -783,8 +783,8 @@
},
{
"name": "agora_post_task",
- "title": null,
- "description": null,
+ "title": "Post a bounty to the Agora board (on-chain escrow)",
+ "description": "POST a bounty to Agora — a REAL on-chain AgenC task that LOCKS your reward in escrow until a worker completes it with a valid proof, signed by YOUR Solana key (signs locally; never logged, stored, or transmitted). Specify the work: `description`, `rewardAmount` (atomic units — lamports on devnet, $THREE base units on mainnet), the `requiredProfessions` a worker must have (their capability bitmap must cover yours), a `deadline` (unix seconds, or use `deadlineInSeconds` for a relative one), `maxWorkers`, `taskType` (Exclusive=one worker, Collaborative=many split the reward, Competitive=first valid proof wins), and an optional `minReputation` gate. You must already be a registered citizen — pass your creator identity (`creatorAgentId` hex OR `handle`/`erc8004AgentId`/`mplCoreAsset`). DEVNET escrows native SOL; MAINNET escrows the $THREE mint (FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump) by default, or any SPL `rewardMint` you supply at call time (you must hold it). Returns the task PDA + id, the tx signature + explorer link, and the task's on-chain state. Requires a funded signer.",
"server": {
"id": "agora-mcp",
"title": "@three-ws/agora-mcp",
@@ -807,8 +807,8 @@
},
{
"name": "agora_professions",
- "title": null,
- "description": null,
+ "title": "List Agora professions (the capability bit map)",
+ "description": "List Agora's professions — the labor market's type system over AgenC's u64 capability bitmap. Each profession is a stable bit with a key (fetcher, sculptor, scribe, cartographer, crier, appraiser, verifier, namekeeper, …), a human label, and the real platform skill that backs it (e.g. Fetcher → an x402 service call; Sculptor → text/image→rigged GLB; Scribe → research/write via the LLM router; Verifier → re-derive a proofHash + attest). Bits are additive — a citizen can be a Sculptor AND a Verifier — and the registry is open, so this returns whatever bits the live economy currently defines rather than a hardcoded list. Use it to read a citizen's `capabilityBits` or to set a task's `requiredCapabilities` when posting work. Read-only live data. Free, no key required.",
"server": {
"id": "agora-mcp",
"title": "@three-ws/agora-mcp",
@@ -831,8 +831,8 @@
},
{
"name": "agora_pulse",
- "title": null,
- "description": null,
+ "title": "Read the Agora economy pulse",
+ "description": "Read the Agora economy ticker — a live snapshot of the agent + human economy. Returns the population (total citizens, agents vs humans, active in 24h, breakdown by status and by profession), the 24h economy flows (tasks completed, $THREE earned, payout count), the top earners (by $THREE earned, with reputation + tasks completed), and the most recent narrated activity (who did what, the reward, the deliverable, the proof). The coin is always $THREE (its mint is surfaced). Use this to gauge how busy the economy is before deciding to register or post work. Returns an honest empty snapshot before the economy is populated. Read-only live data; the pulse moves between calls. Free, no key required.",
"server": {
"id": "agora-mcp",
"title": "@three-ws/agora-mcp",
@@ -855,8 +855,8 @@
},
{
"name": "agora_register",
- "title": null,
- "description": null,
+ "title": "Register as an Agora citizen (on-chain)",
+ "description": "JOIN AGORA as a citizen — a REAL on-chain AgenC registration signed by YOUR Solana key (the key signs locally and is never logged, stored, or transmitted). Derives your canonical AgenC agentId from an identity via the identity bridge: pass a `handle` (simplest), and/or an `erc8004AgentId`, and/or an `mplCoreAsset`. Declare your `professions` (fetcher, sculptor, scribe, cartographer, crier, appraiser, verifier, namekeeper) — they become your AgenC capability bitmap, the jobs you can claim. Posts a slashable stake (default 0.001 SOL devnet) the protocol holds against your reputation. IDEMPOTENT: if you are already registered it reconciles from the chain and returns existed:true (no second stake). Returns your agentPda, agentId, the tx signature + explorer link, and your live on-chain registry entry. Devnet by default (SOL stake); set cluster:\"mainnet\" to register there. Requires a funded signer.",
"server": {
"id": "agora-mcp",
"title": "@three-ws/agora-mcp",
@@ -879,8 +879,8 @@
},
{
"name": "create_alert_rule",
- "title": null,
- "description": null,
+ "title": "Create a pump.fun alert rule",
+ "description": "Create a pump.fun alert rule on the authenticated three.ws account. The pumpfun-monitor cron evaluates it against the live event stream and delivers across the channels you enable, so it fires across devices with no dashboard open. NOT idempotent — each call adds a new rule (max 50 per account). Targeting by kind: `graduation` is global or scoped to target_mint OR target_agent; `price_above` / `price_below` / `whale_buy` require target_mint; `new_mint` requires target_agent. `threshold` is required for the price/whale kinds — USD market cap for price_above/price_below, minimum buy size in SOL for whale_buy. At least one delivery channel must be on (deliver_in_app defaults true; webhook_url must be https and gets a generated webhook_secret for signature verification; telegram_chat is a numeric chat id or @username). Any mint you pass is runtime input — three.ws promotes only $THREE. Returns the created rule. Requires THREE_WS_SESSION.",
"server": {
"id": "alerts-mcp",
"title": "@three-ws/alerts-mcp",
@@ -903,8 +903,8 @@
},
{
"name": "delete_alert_rule",
- "title": null,
- "description": null,
+ "title": "Delete a pump.fun alert rule",
+ "description": "Permanently delete a pump.fun alert rule by id from the authenticated three.ws account. DESTRUCTIVE and irreversible: the rule plus its cooldown tracker and per-channel delivery log are removed (cascade). The rule stops firing immediately. Deleting an already-deleted id returns not_found (so this is not idempotent). To pause a rule without losing it, prefer update_alert_rule with enabled:false. Returns the deleted rule id. Requires THREE_WS_SESSION.",
"server": {
"id": "alerts-mcp",
"title": "@three-ws/alerts-mcp",
@@ -927,8 +927,8 @@
},
{
"name": "get_alert_history",
- "title": null,
- "description": null,
+ "title": "Read fired pump.fun alert history",
+ "description": "Read the pump.fun alerts that have actually fired for the authenticated account, newest first. Each entry carries a one-line `summary`, the originating `rule_id`, the event `kind`, the coin (mint / name / symbol), whether it has been `read`, when it `fired_at`, and the full `event` payload (amounts, market cap, tx signature, buyer, …). Pair this with list_alert_rules — whose `recent_deliveries` shows per-channel send outcomes — to see both what fired and how it was delivered. Optionally filter to one rule (rule_id) or one kind. The feed returns at most the 50 most recent alerts. Requires THREE_WS_SESSION.",
"server": {
"id": "alerts-mcp",
"title": "@three-ws/alerts-mcp",
@@ -951,8 +951,8 @@
},
{
"name": "list_alert_rules",
- "title": null,
- "description": null,
+ "title": "List my pump.fun alert rules",
+ "description": "List every pump.fun alert rule on the authenticated three.ws account. Each rule has a `kind` (graduation | price_above | price_below | whale_buy | new_mint), its target (target_mint or target_agent), an optional numeric `threshold` (USD market cap for price rules, SOL for whale_buy), the delivery channels (deliver_in_app, webhook_url + webhook_secret, telegram_chat), the cooldown, and whether it is enabled. Also returns live delivery health: `last_fired_at`, `recent_failures` (failed channel deliveries in the last 24h), and `recent_deliveries` (the last few per-channel outcomes). Use this to audit what an agent is watching before creating or editing rules. Requires THREE_WS_SESSION.",
"server": {
"id": "alerts-mcp",
"title": "@three-ws/alerts-mcp",
@@ -975,8 +975,8 @@
},
{
"name": "update_alert_rule",
- "title": null,
- "description": null,
+ "title": "Update a pump.fun alert rule",
+ "description": "Update an existing pump.fun alert rule by id on the authenticated three.ws account. Partial — only the fields you pass change. Idempotent: re-applying the same values yields the same rule. Common uses: flip `enabled` to pause/resume, retune `threshold`, add or swap a delivery channel, or change `kind` (the rule is re-validated against the new kind, and fields incompatible with it are cleared automatically). Pass null to clear a clearable field (target_mint, target_agent, threshold, webhook_url, telegram_chat, label). Removing webhook_url drops its secret; adding one mints a fresh webhook_secret (returned). The result must still have at least one delivery channel and satisfy the kind's targeting/threshold rules, or the API rejects it with a precise message. Returns the updated rule. Requires THREE_WS_SESSION.",
"server": {
"id": "alerts-mcp",
"title": "@three-ws/alerts-mcp",
@@ -999,8 +999,8 @@
},
{
"name": "build_assistant_widget",
- "title": null,
- "description": null,
+ "title": "Build a paste-ready three.ws assistant widget embed",
+ "description": "Turn a config into a ready-to-embed three.ws assistant widget, a floating 3D avatar chatbot you can drop onto any website. Returns a paste-ready <script> tag (with only the non-default settings as data-* attributes), a standalone frame URL for <iframe> embedding, an equivalent ThreeAssistant.init({...}) JavaScript-API snippet, the visual builder link, and the fully-normalized config. Pure and offline: every field is validated and clamped locally, so a bad value falls back to a safe default and the generated HTML is always well-formed. Call list_assistant_options first to see every avatar, background, mode and attribute you can set.",
"server": {
"id": "assistant-mcp",
"title": "@three-ws/assistant-mcp",
@@ -1023,8 +1023,8 @@
},
{
"name": "list_assistant_options",
- "title": null,
- "description": null,
+ "title": "List every three.ws assistant widget option",
+ "description": "List everything you can configure on the three.ws assistant widget: the built-in avatars, background presets and grammar, interaction modes, chat lanes (free vs bring-your-own-key), and the full data-* attribute reference table. Call this before build_assistant_widget to know the vocabulary. Read-only and offline.",
"server": {
"id": "assistant-mcp",
"title": "@three-ws/assistant-mcp",
@@ -1047,8 +1047,8 @@
},
{
"name": "audio_to_face",
- "title": null,
- "description": null,
+ "title": "Audio to face (lipsync)",
+ "description": "Generate a per-frame ARKit blendshape lipsync track from speech using free NVIDIA NIM Audio2Face-3D. Provide either `text` (the server synthesizes it with Magpie TTS, then animates that clip and returns both the audio and the animation) or `audio` (base64 wav/pcm you already have, so the lips match the exact bytes you will play). Returns { animation: { fps, blendShapeNames, frames, durationSec } } where each frame is { t, w } — t in seconds, w = weights ordered by blendShapeNames (ARKit-52). On the text path it also returns { audio: { base64, contentType, format } }. Read-only — produces an animation track without changing platform state.",
"server": {
"id": "audio-mcp",
"title": "@three-ws/audio-mcp",
@@ -1071,8 +1071,8 @@
},
{
"name": "motion_capture_clip",
- "title": null,
- "description": null,
+ "title": "Get a motion-capture clip",
+ "description": "Fetch a single motion-capture clip by id, including its full per-frame animation track. Returns { clip } with metadata plus `frames`: each frame is { t, shapes, mat? } — t in seconds, shapes a name→weight map (ARKit blendshapes for face clips; joint channels for pose/hand/vmc), and an optional 16-float transform matrix. Use this to drive an avatar from a clip discovered via motion_capture_clips. Public and unlisted clips are readable anonymously; a private clip needs THREE_WS_API_KEY for its owner. Read-only.",
"server": {
"id": "audio-mcp",
"title": "@three-ws/audio-mcp",
@@ -1095,8 +1095,8 @@
},
{
"name": "motion_capture_clips",
- "title": null,
- "description": null,
+ "title": "List motion-capture clips",
+ "description": "List motion-capture clips from the three.ws library — recorded face/pose/hand/VMC tracks an avatar can play back. Returns clip metadata (id, slug, name, kind, format, duration_ms, frame_count, tags, visibility, play_count, price) but NOT the frames; fetch a clip by id with motion_capture_clip to get the animation track. Anonymous callers see only public clips; set THREE_WS_API_KEY to include your own. Cursor-paginated via next_cursor. Read-only live data.",
"server": {
"id": "audio-mcp",
"title": "@three-ws/audio-mcp",
@@ -1119,8 +1119,8 @@
},
{
"name": "speech_to_text",
- "title": null,
- "description": null,
+ "title": "Speech to text",
+ "description": "Transcribe spoken audio to text using the free NVIDIA NIM Riva recognizer. Pass the audio as base64 (raw or a data: URL). Accepted encodings: wav, pcm (set sampleRate), flac, ogg/opus — the WebM container from a browser MediaRecorder must be decoded to WAV or PCM first. Returns { text, confidence, language, model, durationSec } and, when `words` is set, per-word timestamps. Audio is capped at ~8 MB. Read-only — recognizes speech without changing any platform state.",
"server": {
"id": "audio-mcp",
"title": "@three-ws/audio-mcp",
@@ -1143,8 +1143,8 @@
},
{
"name": "text_to_speech",
- "title": null,
- "description": null,
+ "title": "Text to speech",
+ "description": "Synthesize spoken audio from text for a 3D avatar and return it as a base64 audio data URL (data:<mime>;base64,…) plus metadata. Free NVIDIA NIM Magpie TTS leads; OpenAI is the paid backstop. Because Magpie emits raw PCM, every non-pcm request is served as WAV — the returned `mime`, `format`, and `voice` describe the bytes you actually get, not the request. Pair the audio with audio_to_face to drive lipsync. Input text is capped at 4096 characters. Read-only — synthesizes audio without changing any platform state.",
"server": {
"id": "audio-mcp",
"title": "@three-ws/audio-mcp",
@@ -1167,8 +1167,8 @@
},
{
"name": "adjust_proposal",
- "title": null,
- "description": null,
+ "title": "Adjust a pending autopilot proposal",
+ "description": "Edit a pending proposal's params before executing it — tune a threshold, swap a briefing cadence, correct a transfer amount/recipient. The new params are validated SERVER-SIDE against the proposal kind and shape: create_alert → { asset:\"three\"|<mint>, condition:\"price_above\"|\"price_below\"|\"graduation\"|\"whale_buy\", threshold_usd?|threshold_sol? }; briefing → { summary, cadence:\"once\"|\"daily\"|\"weekly\", topic }; wallet_transfer → { recipient:<solana addr>, amount_sol:number, reason? }. An invalid edit is rejected with the reason and nothing changes. Only a pending proposal can be adjusted. WRITE but idempotent (no action taken; re-applying the same params is a no-op). For alerts the only coin is $THREE (asset:\"three\"); wallet_transfer sends SOL only and never sells or sends $THREE. Returns the updated proposal.",
"server": {
"id": "autopilot-mcp",
"title": "@three-ws/autopilot-mcp",
@@ -1191,8 +1191,8 @@
},
{
"name": "compute_trust",
- "title": null,
- "description": null,
+ "title": "Compute autopilot trust level",
+ "description": "The agent's earned trust level, computed from its REAL autopilot history. Returns level (sandbox → trusted → autonomous), a 0+ score (net kept executions weighted by reliability), the underlying stats (executed / undone / dismissed / pending counts + reliability %), and what it takes to reach the next level. Trust rises as the owner keeps the agent's actions and falls when they undo or dismiss them — it is not configurable, only earned. Read-only.",
"server": {
"id": "autopilot-mcp",
"title": "@three-ws/autopilot-mcp",
@@ -1215,8 +1215,8 @@
},
{
"name": "dismiss_proposal",
- "title": null,
- "description": null,
+ "title": "Dismiss a pending autopilot proposal",
+ "description": "Dismiss a pending proposal the agent decided not to act on. Marks it dismissed and records a feedback memory (\"don't propose this again\") so future generate_proposals steers away from it — this is how the agent learns the owner's boundaries. WRITE. Only a pending proposal can be dismissed (executed/undone/dismissed ones are rejected). Returns the updated proposal and trust.",
"server": {
"id": "autopilot-mcp",
"title": "@three-ws/autopilot-mcp",
@@ -1239,8 +1239,8 @@
},
{
"name": "dryrun_proposal",
- "title": null,
- "description": null,
+ "title": "Dry-run an autopilot proposal",
+ "description": "Preview exactly what executing a proposal WOULD do, without taking any action. Returns the kind, a plain-language \"willDo\" sentence, and a checklist of guard checks (scope granted? params valid? within the daily SOL cap? wallet balance covers a transfer?) plus a `blocked` flag if any check fails. Always dry-run an irreversible wallet_transfer before executing it. Performs a live balance read but no write and no spend — safe to call freely. Read-only.",
"server": {
"id": "autopilot-mcp",
"title": "@three-ws/autopilot-mcp",
@@ -1263,8 +1263,8 @@
},
{
"name": "execute_proposal",
- "title": null,
- "description": null,
+ "title": "Execute an autopilot proposal (moves real value)",
+ "description": "EXECUTE a proposal for real, within the owner-granted scope. ⚠️ This is the funds-touching action: a `wallet_transfer` proposal sends REAL SOL on Solana mainnet and is IRREVERSIBLE — you MUST pass confirm:true for it (unless the owner durably pre-authorized that scope), and it is capped by the daily SOL budget. It sends native SOL only — never $THREE. `create_alert` and `briefing` are real writes but reversible via undo_action. Always dryrun_proposal first. Scope, confirmation, and spend caps are enforced SERVER-SIDE; this tool cannot override them — an out-of-scope, over-budget, or unconfirmed call is denied (no action taken). Returns the updated proposal, a human receipt, the signed action-log id, and updated trust.",
"server": {
"id": "autopilot-mcp",
"title": "@three-ws/autopilot-mcp",
@@ -1287,8 +1287,8 @@
},
{
"name": "generate_proposals",
- "title": null,
- "description": null,
+ "title": "Generate autopilot proposals",
+ "description": "Run the agent's mind: read its high-salience memories and pending reflections and synthesize real, concrete autopilot proposals — each citing the exact memories that justify it. New proposals are persisted to the queue (see list_proposals). WRITE: any reversible proposal the owner has scoped for auto-execution may run immediately and is reported under `autoRan`; irreversible SOL transfers never auto-run — they stay pending for explicit execute_proposal. Returns the created proposals, the autoRan receipts, the generation `source` (reflection | memory | heuristic), what was `scanned`, and updated trust. Deduped server-side, so calling it repeatedly will not enqueue duplicates.",
"server": {
"id": "autopilot-mcp",
"title": "@three-ws/autopilot-mcp",
@@ -1311,8 +1311,8 @@
},
{
"name": "get_autopilot_config",
- "title": null,
- "description": null,
+ "title": "Get autopilot config",
+ "description": "Read the agent's autopilot permission model: whether autopilot is enabled, which capability scopes the owner granted (create_alert, briefing, wallet_transfer), which reversible scopes may auto-execute, the daily SOL spend ceiling (in SOL; 0 = no spending), and whether irreversible actions require explicit confirmation. Also returns the live trust level (sandbox → trusted → autonomous) computed from real action history. Nothing the agent can do exists outside these owner-granted scopes — read this before proposing or executing. Read-only.",
"server": {
"id": "autopilot-mcp",
"title": "@three-ws/autopilot-mcp",
@@ -1335,8 +1335,8 @@
},
{
"name": "list_autopilot_activity",
- "title": null,
- "description": null,
+ "title": "List autopilot activity (signed receipts)",
+ "description": "Read the append-only log of every autonomous action the agent has taken, newest first — the real agent_actions trail. Each receipt carries the kind (alert created / briefing authored / wallet transfer), its rationale, the outcome (created rule id / notification id / on-chain signature), the source memories it was grounded in, and the cryptographic signature + signer address when the action was signed by the agent's wallet. Use it to audit what the agent did and why. Omit agentId to aggregate across every agent the credential owns. Paginate with the returned next_cursor. Read-only.",
"server": {
"id": "autopilot-mcp",
"title": "@three-ws/autopilot-mcp",
@@ -1359,8 +1359,8 @@
},
{
"name": "list_proposals",
- "title": null,
- "description": null,
+ "title": "List autopilot proposals",
+ "description": "List the agent's autopilot proposals — candidate actions it generated, each grounded in cited memories (provenance hydrated). Each proposal carries its id (needed for dryrun/execute/dismiss/undo/adjust), kind (create_alert | briefing | wallet_transfer), title, plain-language rationale (the receipt), params, confidence, requiresConfirmation, status, result, and the source memories. Filter by status to find what is actionable. Also returns the current config + trust for context. Read-only.",
"server": {
"id": "autopilot-mcp",
"title": "@three-ws/autopilot-mcp",
@@ -1383,8 +1383,8 @@
},
{
"name": "set_autopilot_config",
- "title": null,
- "description": null,
+ "title": "Set autopilot config",
+ "description": "Update the agent's autopilot guardrails. A partial patch — only the fields you pass change; the rest are preserved. Set `enabled` to arm/disarm autopilot, `scopes` to grant/revoke each capability (create_alert, briefing, wallet_transfer), `autoExecute` to let reversible scopes run without review, `dailySpendSol` for the daily SOL outflow ceiling (in SOL; 0 disables spending), and `requireConfirm` to force explicit confirmation on irreversible actions. WRITE but idempotent: it changes only the boundaries, takes no action, and re-applying the same values is a no-op. Returns the full updated config. Scopes are enforced server-side at execution time — granting one here is what makes a later execute_proposal possible.",
"server": {
"id": "autopilot-mcp",
"title": "@three-ws/autopilot-mcp",
@@ -1407,8 +1407,8 @@
},
{
"name": "undo_action",
- "title": null,
- "description": null,
+ "title": "Undo a reversible autopilot action",
+ "description": "Reverse a reversible executed proposal: deletes the real artifact the execution created — the alert rule (create_alert) or the briefing notification (briefing) — and records a feedback memory so the agent learns to be more conservative next time. WRITE. NOTE: an irreversible SOL wallet_transfer is on-chain and cannot be undone — the server rejects that with `irreversible`; to send value back you would have to execute a new transfer. Returns the updated proposal (status → undone) and trust.",
"server": {
"id": "autopilot-mcp",
"title": "@three-ws/autopilot-mcp",
@@ -1431,8 +1431,8 @@
},
{
"name": "dress_avatar",
- "title": null,
- "description": null,
+ "title": "Apply accessories + pose to a spawned avatar",
+ "description": "Apply (or replace) accessories on a spawned avatar session and optionally set a pose. Pass accessoryIds to set the full accessory list (empty array clears them). Pass pose to switch animations. Returns the updated viewer URL.",
"server": {
"id": "avatar-agent-mcp",
"title": "@three-ws/avatar-agent-mcp",
@@ -1455,8 +1455,8 @@
},
{
"name": "ens_sns_resolve",
- "title": null,
- "description": null,
+ "title": "Resolve ENS + SNS names to addresses",
+ "description": "Resolve a human-readable name to addresses across ENS (Ethereum) and SNS (Solana, Bonfida). For .eth: returns Ethereum address + reverse lookup. For .sol: returns Solana owner wallet + the wallet's other owned .sol domains + favorite domain. Names without a suffix are tried against both registries.",
"server": {
"id": "avatar-agent-mcp",
"title": "@three-ws/avatar-agent-mcp",
@@ -1479,8 +1479,8 @@
},
{
"name": "generate_avatar",
- "title": null,
- "description": null,
+ "title": "Generate a 3D avatar (Replicate text-to-3D)",
+ "description": "Generate a textured GLB from a text prompt or reference image URLs via Replicate (Hunyuan-3D 3.1 by default; configurable). Returns the GLB URL and a new avatar session you can dress + animate. Requires REPLICATE_API_TOKEN and REPLICATE_TEXT_TO_AVATAR_MODEL on the MCP server.",
"server": {
"id": "avatar-agent-mcp",
"title": "@three-ws/avatar-agent-mcp",
@@ -1503,8 +1503,8 @@
},
{
"name": "inspect_glb",
- "title": null,
- "description": null,
+ "title": "Inspect a GLB / glTF 3D model",
+ "description": "Fetch any GLB URL (or data: URL) and return a full structural breakdown: meshes, primitives, materials, textures, animations, skins, vertex + triangle counts, world-space bounding box, and file size. Pure local parse via @gltf-transform/core — no third-party services.",
"server": {
"id": "avatar-agent-mcp",
"title": "@three-ws/avatar-agent-mcp",
@@ -1527,8 +1527,8 @@
},
{
"name": "list_animations",
- "title": null,
- "description": null,
+ "title": "List three.ws pose presets + animation slots",
+ "description": "Return the three.ws pose preset catalog (T-pose, A-pose, wave, thinker, jump, dance, warrior2, …) grouped by category. Use the ids returned here as posePresetId in render_avatar. Fetched live from three.ws so the catalog reflects the deployed version.",
"server": {
"id": "avatar-agent-mcp",
"title": "@three-ws/avatar-agent-mcp",
@@ -1551,8 +1551,8 @@
},
{
"name": "list_avatars",
- "title": null,
- "description": null,
+ "title": "List three.ws default avatars + accessories",
+ "description": "Return the catalog of default 3D avatars (default, cz) and accessories (hats, glasses, earrings) hosted on the three.ws CDN. Each entry includes a public GLB URL ready to load in any glTF viewer or Three.js scene. Includes the supported pose preset names.",
"server": {
"id": "avatar-agent-mcp",
"title": "@three-ws/avatar-agent-mcp",
@@ -1575,8 +1575,8 @@
},
{
"name": "optimize_glb",
- "title": null,
- "description": null,
+ "title": "Optimize a GLB (dedup, prune, weld, Draco)",
+ "description": "Run a @gltf-transform/functions optimization pipeline on a GLB URL: dedup → prune unused → weld duplicate vertices → optional Draco mesh compression. Returns the optimized bytes as a base64 data URL with before/after sizes. Lossless for geometry except where Draco quantization is requested.",
"server": {
"id": "avatar-agent-mcp",
"title": "@three-ws/avatar-agent-mcp",
@@ -1599,8 +1599,8 @@
},
{
"name": "pump_buy",
- "title": null,
- "description": null,
+ "title": "Buy a Solana token via Jupiter (direct or Jito-bundled)",
+ "description": "Swap SOL → target mint via Jupiter aggregator. Direct mode = one tx signed by the buyer. Bundled mode (jitoBundle=true) = two-tx Jito bundle where funderSecret transfers SOL + tip to the buyer atomically with the swap (sweeper-resistant). Pass target=\"three\" to use the $three reference mint. EXECUTION ACTION.",
"server": {
"id": "avatar-agent-mcp",
"title": "@three-ws/avatar-agent-mcp",
@@ -1623,8 +1623,8 @@
},
{
"name": "pump_collect_fees",
- "title": null,
- "description": null,
+ "title": "Atomic pump.fun creator-fee collection (Jito bundle)",
+ "description": "Collect a pump.fun coin's creator-fee vault and route the SOL to a safe destination, atomically, in a single tx inside a Jito bundle. Funder pays the fee + Jito tip; creator signs collectCoinCreatorFee + drain to DESTINATION. The bundle's atomicity blocks any competing collector from interleaving even if the creator key is leaked. EXECUTION ACTION.",
"server": {
"id": "avatar-agent-mcp",
"title": "@three-ws/avatar-agent-mcp",
@@ -1647,8 +1647,8 @@
},
{
"name": "pump_launch",
- "title": null,
- "description": null,
+ "title": "Atomic pump.fun launch (Jito bundle, separate funder/creator)",
+ "description": "Launch a pump.fun token atomically via a Jito bundle. Funder pays its own fee + tip and rent-funds the creator; creator signs createV2 in tx2 — both txs land in the same block or neither does. Pass devBuySol to launch-and-snipe: the creator first buy is folded into the create tx (createV2AndBuy) so it lands atomically before any sniper sees the curve. If uri is omitted, metadata is uploaded to pump.fun IPFS first from name/symbol/description/socials/imageUrl. Returns the mint address, bundle id, both tx signatures, the dev-buy quote, and the pump.fun URL. EXECUTION ACTION — creates a real mint on mainnet.",
"server": {
"id": "avatar-agent-mcp",
"title": "@three-ws/avatar-agent-mcp",
@@ -1671,8 +1671,8 @@
},
{
"name": "pump_snapshot",
- "title": null,
- "description": null,
+ "title": "Live pump.fun / Solana token snapshot",
+ "description": "Live snapshot for a Solana token (SPL or pump.fun): USD price (Jupiter), 24h volume + primary DEX (Dexscreener), pump.fun metadata (name/symbol/image/socials/mcap), and top-holder distribution from Solana RPC. Optional Helius DAS supply when HELIUS_API_KEY is configured. Free — no signer.",
"server": {
"id": "avatar-agent-mcp",
"title": "@three-ws/avatar-agent-mcp",
@@ -1695,8 +1695,8 @@
},
{
"name": "render_avatar",
- "title": null,
- "description": null,
+ "title": "Render a posed avatar (pose + camera + expression)",
+ "description": "Render an avatar GLB with a three.ws pose preset, camera orbit, and optional ARKit-52 facial expression. Same pipeline as the three.ws customizer's save-snapshot flow. Returns PNG bytes as a base64 data URL. Accepts either glbUrl directly or sessionId from spawn_avatar.",
"server": {
"id": "avatar-agent-mcp",
"title": "@three-ws/avatar-agent-mcp",
@@ -1719,8 +1719,8 @@
},
{
"name": "spawn_avatar",
- "title": null,
- "description": null,
+ "title": "Spawn a 3D avatar session",
+ "description": "Spawn a 3D avatar from a curated default (preset=\"default\" or \"cz\") or from a custom GLB URL. Returns a sessionId other tools (dress_avatar, viewer_url, speak) reference, plus the avatar GLB URL and a ready-to-open three.ws viewer link.",
"server": {
"id": "avatar-agent-mcp",
"title": "@three-ws/avatar-agent-mcp",
@@ -1743,8 +1743,8 @@
},
{
"name": "speak",
- "title": null,
- "description": null,
+ "title": "Avatar speaks (TTS)",
+ "description": "Synthesize speech for an avatar session and return a base64 audio data URL the client can play. Free NVIDIA NIM Magpie TTS leads when NVIDIA_API_KEY is set (non-pcm requests are served as WAV); OpenAI TTS is the paid backstop when OPENAI_API_KEY is set. Picks the session's configured voice unless overridden.",
"server": {
"id": "avatar-agent-mcp",
"title": "@three-ws/avatar-agent-mcp",
@@ -1767,8 +1767,8 @@
},
{
"name": "thumbnail_glb",
- "title": null,
- "description": null,
+ "title": "Render a GLB to a PNG thumbnail",
+ "description": "Render any public GLB URL to a PNG via three.ws's hosted three-light rig + auto-framing camera. Returns the PNG inline as a base64 data URL (≤ ~4 MB) plus dimensions. Background defaults to #0a0a0a — pass \"transparent\" for compositing.",
"server": {
"id": "avatar-agent-mcp",
"title": "@three-ws/avatar-agent-mcp",
@@ -1791,8 +1791,8 @@
},
{
"name": "validate_glb",
- "title": null,
- "description": null,
+ "title": "Validate a GLB / glTF against the Khronos spec",
+ "description": "Run the official Khronos gltf-validator against a GLB URL. Returns errors, warnings, infos, and hints with codes + JSON pointers, plus structural counts (animations, materials, etc.) per the validator's info report. The same engine that powers gltf.report.",
"server": {
"id": "avatar-agent-mcp",
"title": "@three-ws/avatar-agent-mcp",
@@ -1815,8 +1815,8 @@
},
{
"name": "viewer_url",
- "title": null,
- "description": null,
+ "title": "Build a three.ws viewer URL + embed snippet",
+ "description": "Build a shareable https://three.ws/viewer?... URL that opens any GLB in three.ws's WebGL viewer, plus a ready-to-paste iframe snippet. Supports background, auto-rotate, camera preset OR explicit camera orbit, AR mode (model-viewer), dimensions, pose, and accessory overlay. Accepts a raw glbUrl or a sessionId from spawn_avatar.",
"server": {
"id": "avatar-agent-mcp",
"title": "@three-ws/avatar-agent-mcp",
@@ -1839,8 +1839,8 @@
},
{
"name": "wallet_balance",
- "title": null,
- "description": null,
+ "title": "Read Solana wallet balances (SOL + SPL tokens)",
+ "description": "Return SOL balance and all SPL token balances (including Token-2022) for a Solana pubkey. Uses the configured SOLANA_RPC_URL. Read-only — no signer required.",
"server": {
"id": "avatar-agent-mcp",
"title": "@three-ws/avatar-agent-mcp",
@@ -1863,8 +1863,8 @@
},
{
"name": "wallet_create",
- "title": null,
- "description": null,
+ "title": "Create a Solana wallet (optionally vanity-grinded)",
+ "description": "Generate a Solana keypair locally. Optionally grind for a base58 prefix/suffix (e.g. \"three\") and/or attach it to an avatar session. Returns the base58 pubkey and secret ONCE — store the secret yourself; the MCP does not persist it.",
"server": {
"id": "avatar-agent-mcp",
"title": "@three-ws/avatar-agent-mcp",
@@ -1887,8 +1887,8 @@
},
{
"name": "wallet_send",
- "title": null,
- "description": null,
+ "title": "Send SOL on Solana mainnet",
+ "description": "Send SOL from the configured signer to a destination pubkey. The signer is supplied via the `secret` arg (base58) or via SOLANA_SECRET_KEY env on the MCP server. Returns the confirmed signature and a Solscan link. EXECUTION ACTION — funds move on mainnet, irreversible: pass confirm:true. Capped by MAX_SOL_PER_TX; destination must be in RECIPIENT_ALLOWLIST if one is configured.",
"server": {
"id": "avatar-agent-mcp",
"title": "@three-ws/avatar-agent-mcp",
@@ -1911,8 +1911,8 @@
},
{
"name": "export_billing_history",
- "title": null,
- "description": null,
+ "title": "Export my billing history as CSV",
+ "description": "Export a billing period's usage line items as a ready-to-save CSV — the same charges query_usage returns, in spreadsheet form. Returns `filename` (suggested download name, e.g. three-ws-invoice-2026-06.csv), `content_type` (text/csv), `csv` (the full CSV text, columns: action,label,count,units,gross_usd,fee_usd,discount_bps with a trailing TOTAL row), `row_count`, and `preview` (the first few parsed rows as objects for a quick look). Same period selection as query_usage: pass `period` (YYYY-MM) or `from`/`to` (ISO-8601); defaults to the current UTC calendar month. Requires THREE_WS_SESSION. Read-only.",
"server": {
"id": "billing-mcp",
"title": "@three-ws/billing-mcp",
@@ -1935,8 +1935,8 @@
},
{
"name": "get_billing_summary",
- "title": null,
- "description": null,
+ "title": "My plan, quotas, and current usage",
+ "description": "Your account's plan tier, the quota ceilings for that tier, and live usage measured against them — the \"how much of my plan is left?\" call. Returns `plan` (e.g. free | pro), `quotas` (max_avatars, max_bytes_per_avatar, max_total_bytes, mcp_calls_per_day — or null when the tier has no metered ceilings), and `usage` (avatar_count, total_bytes of avatar storage, agent_count, mcp_calls_24h tool calls in the last 24 hours, llm_calls_month LLM calls since the start of this UTC month). Each tool returns a `remaining` map computed from quotas − usage so an agent can see headroom at a glance. Resolved from your three.ws session; requires THREE_WS_SESSION. Read-only.",
"server": {
"id": "billing-mcp",
"title": "@three-ws/billing-mcp",
@@ -1959,8 +1959,8 @@
},
{
"name": "get_fee_info",
- "title": null,
- "description": null,
+ "title": "Current platform fee rate",
+ "description": "The current three.ws platform fee rate — the cut taken on marketplace sales, so an agent can reason about net vs gross before a charge settles. Returns `fee_bps` (basis points, e.g. 250 = 2.5%) and `fee_percent` (the same rate as a human string, e.g. \"2.5\"). Public — needs no session or credential. Read-only.",
"server": {
"id": "billing-mcp",
"title": "@three-ws/billing-mcp",
@@ -1983,8 +1983,8 @@
},
{
"name": "get_receipt",
- "title": null,
- "description": null,
+ "title": "Get one receipt (per-charge or per-purchase)",
+ "description": "Fetch a single itemized receipt you own, in one of two forms. Pass `event_id` (numeric, from a usage line item) for a per-CHARGE receipt: action, label, units, gross_usd / fee_usd / net (with USDC atomics), discount_bps + discount_percent, and a `settlement` block (kind, ref, tx_signature, network, explorer_url, token_price_usd) plus issued_at. Pass `purchase_id` (UUID) instead for the cryptographically SIGNED receipt JSON of a confirmed skill purchase (receipt + signature + issued_at). Supply exactly one. Returns the `receipt` object and which `kind` (\"charge\" | \"purchase\") it is. Requires THREE_WS_SESSION. Read-only.",
"server": {
"id": "billing-mcp",
"title": "@three-ws/billing-mcp",
@@ -2007,8 +2007,8 @@
},
{
"name": "get_revenue",
- "title": null,
- "description": null,
+ "title": "My agents’ earnings (revenue + subscriptions)",
+ "description": "Earnings for the agents YOU own — the income side of your account economics (what you EARNED, vs what you were charged in query_usage). Returns `summary` (gross_total, fee_total, net_total in token atomics, plus payment_count, currency_mint, chain), `by_skill` (net_total + count per skill, top first), `timeseries` (net_total + count bucketed by granularity), `subscriptions` (creator-subscription income in USD — income_usd, payment_count, active_subscribers, plan_count — settled directly to your wallet, kept separate from the withdrawable pool so units never mix), `subscription_timeseries`, and `reconciliation`. Optional `agent_id` narrows to one agent; `from`/`to` set the window (default last 30 days); `granularity` is day | week | month (default day). Requires THREE_WS_SESSION. Read-only.",
"server": {
"id": "billing-mcp",
"title": "@three-ws/billing-mcp",
@@ -2031,8 +2031,8 @@
},
{
"name": "query_usage",
- "title": null,
- "description": null,
+ "title": "My metered usage / invoice statement for a period",
+ "description": "Your metered usage rolled up into an invoice statement for a billing period — what you were charged for, broken down by action. Returns `period_label` + `period` ({from,to} ISO), `line_items` (one per billed action: action id, human label, count, units, gross_usd, fee_usd, gross/fee/net atomics in USDC 6dp, discount_bps holder-tier discount applied), `totals` (charge_count, gross_usd, fee_usd, net_usd, currency), and `reconciliation` (total / reconciled / unreconciled / all_reconciled — whether every charge maps to a real settlement). Defaults to the current UTC calendar month. Pass `period` (YYYY-MM) for a calendar month, or `from`/`to` (ISO-8601) for an explicit window — `period` wins if both are given. For a downloadable CSV of the same line items use export_billing_history. Requires THREE_WS_SESSION. Read-only.",
"server": {
"id": "billing-mcp",
"title": "@three-ws/billing-mcp",
@@ -2055,8 +2055,8 @@
},
{
"name": "chat",
- "title": null,
- "description": null,
+ "title": "Run a chat completion",
+ "description": "Run a chat completion through the three.ws LLM router and get back the full reply as a single message. Pick `provider` from `list_providers` (default `gpt-oss-120b`, a free open-weight model). `messages` is the conversation so far (roles `user`/`assistant`); add system instructions via `system`. The route streams and auto-falls-back across mirrors/free tiers if the chosen model is briefly down — this tool collapses that into one reply and reports the actual route taken, token usage, and timing. Paid first-party flagships (Claude, GPT-4o, o3, Qwen Plus, DeepSeek) need a three.ws API key (set THREE_WS_API_KEY); the free open-weight tiers (GPT-OSS 120B, NVIDIA NIM models) need none. Read-only: a completion does not change any platform state.",
"server": {
"id": "brain-mcp",
"title": "@three-ws/brain-mcp",
@@ -2079,8 +2079,8 @@
},
{
"name": "list_providers",
- "title": null,
- "description": null,
+ "title": "List LLM providers and models",
+ "description": "List every LLM the three.ws router can run a completion through — one entry per provider/model. Each entry has: `key` (the id you pass to `chat`), `label` (human name), `network` (e.g. Anthropic, OpenAI, DashScope, NVIDIA NIM, IBM watsonx.ai), `tier` (flagship | balanced | fast | reasoning), `maxOutput` (max output tokens), `description`, `available` (true when the server currently holds a working key/route for it), and `requiresAuth` (true when it is a paid first-party model that needs a three.ws API key — set THREE_WS_API_KEY; false for the free open-weight tiers). Call this first to pick a `key` for `chat`. The set is live, so availability moves between calls — not idempotent.",
"server": {
"id": "brain-mcp",
"title": "@three-ws/brain-mcp",
@@ -2103,8 +2103,8 @@
},
{
"name": "enlist_faction",
- "title": null,
- "description": null,
+ "title": "Enlist in a Coin Clash faction",
+ "description": "Enlist the signer's wallet as a soldier in a Coin Clash faction and return a war pass. Requires the wallet to hold the faction coin: the tool requests a challenge, signs it with the wallet's Solana key (from the `secret` arg, or SOLANA_SECRET_KEY env), and the backend verifies the signature then checks a live on-chain holding. Returns `{ eligible, wallet, faction, amount, usd, warPass }`. If `eligible` is false the wallet does not currently hold the coin (`reason: \"not_a_holder\"`) and `warPass` is null — buy/hold the coin and retry. Keep the `warPass`: pass it to rally_faction to spend taps as battle power. No funds move; the pass expires after ~30 minutes.",
"server": {
"id": "clash-mcp",
"title": "@three-ws/clash-mcp",
@@ -2127,8 +2127,8 @@
},
{
"name": "get_clash_leaderboard",
- "title": null,
- "description": null,
+ "title": "Coin Clash leaderboard",
+ "description": "Rank Coin Clash factions by their all-time war record. Returns `board`: factions sorted by wins then power, each with `token`, `symbol`, `image`, `members`, `w`/`l`/`d` (win/loss/draw), `battles`, cumulative `power`, and `winRate` (percent of decided battles won, or null if none decided yet). Pass `faction` (a faction mint) to also get `soldiers`: that faction's top rally contributors this round (wallet + power). Live data — records update as rounds settle. Use this to find the strongest armies and the heaviest hitters.",
"server": {
"id": "clash-mcp",
"title": "@three-ws/clash-mcp",
@@ -2151,8 +2151,8 @@
},
{
"name": "get_clash_state",
- "title": null,
- "description": null,
+ "title": "Coin Clash battle board",
+ "description": "Read the live Coin Clash board for the current round. Coin Clash is three.ws community faction warfare: every CoinCommunities community is a faction, its holders are its army, and two factions are matched each round — whichever army rallies more power before the clock runs out wins. Returns `epoch` (round index), `endsAt`/`msLeft`/`epochMs` (the clock), and `arena`: an array of battles, each with sides `a` and `b` (token, symbol, image, members, posts, priceUsd, live `momentum` multiplier, accumulated `power`, all-time `record`), `aShare` (side a's share of the round's combined power for a tug-of-war bar), and `leader` (the winning side's token, or null if tied). `bye` is the unmatched faction this round (odd roster), `factionCount` the active army count. Live data — power and standings move between calls. Use this to see who's fighting and who's winning before enlisting or rallying.",
"server": {
"id": "clash-mcp",
"title": "@three-ws/clash-mcp",
@@ -2175,8 +2175,8 @@
},
{
"name": "rally_faction",
- "title": null,
- "description": null,
+ "title": "Rally power for a Coin Clash faction",
+ "description": "Rally for a Coin Clash faction by spending taps as battle power for the current round. Authorize with either a `pass` (war pass from enlist_faction) or a `token` (+ optional `secret`) to auto-enlist first. `taps` (1–50 per call) convert to power, multiplied by the faction's live momentum and capped per wallet per round. Returns `{ epoch, mint, added, momentum, walletPower, walletCap, capped, factionPower, msLeft }` — `added` is the power this call contributed, `factionPower` the army's new round total, `capped` true once the wallet hits `walletCap`. Each call adds power (not idempotent); call repeatedly to keep rallying while the round clock (`msLeft`) runs.",
"server": {
"id": "clash-mcp",
"title": "@three-ws/clash-mcp",
@@ -2199,8 +2199,8 @@
},
{
"name": "concierge_ask",
- "title": null,
- "description": null,
+ "title": "Ask a website's AI concierge a question",
+ "description": "Ask an AI concierge a question and get a grounded answer. Provide a \"url\" and it fetches that page and answers using its real content (title, headings, navigation, main text), the way to ask any website a question. Or skip the url and pass \"knowledge\"/\"content\" to answer grounded in text you already have. The model is instructed not to invent facts it cannot see. Runs on the free three.ws lane; no key required.",
"server": {
"id": "concierge-mcp",
"title": "@three-ws/concierge-mcp",
@@ -2223,8 +2223,8 @@
},
{
"name": "concierge_avatars",
- "title": null,
- "description": null,
+ "title": "List available Concierge avatars",
+ "description": "List the rigged 3D avatars a three.ws Concierge widget can wear (id, name, personality tagline, style). Use the id with concierge_embed's \"avatar\" option, or omit it to let each visitor pick their own. Offline.",
"server": {
"id": "concierge-mcp",
"title": "@three-ws/concierge-mcp",
@@ -2247,8 +2247,8 @@
},
{
"name": "concierge_embed",
- "title": null,
- "description": null,
+ "title": "Generate a Concierge embed snippet for a website",
+ "description": "Generate ready-to-paste embed code for adding a three.ws Concierge (an AI chat widget with a talking 3D avatar) to a website. Returns the one-tag <script> install by default, or the <three-concierge> web component / npm snippet / all of them. Configure the accent color, avatar, greeting, curated knowledge, suggested prompts, position and theme. Offline: this only composes the code, it installs nothing.",
"server": {
"id": "concierge-mcp",
"title": "@three-ws/concierge-mcp",
@@ -2271,8 +2271,8 @@
},
{
"name": "cancel_subscription",
- "title": null,
- "description": null,
+ "title": "Stop a copy-trade subscription",
+ "description": "Stop following a leader: transitions the subscription to \"stopped\" so no new copy intents are generated. DESTRUCTIVE in that it ends an active money-adjacent follow — but it is a SOFT stop: execution history and earnings are preserved, and you can re-follow the same leader later with create_subscription. To merely halt copies temporarily without ending the follow, use update_subscription with status:\"paused\" instead. Returns the cancellation result. Requires THREE_WS_API_KEY.",
"server": {
"id": "copy-mcp",
"title": "@three-ws/copy-mcp",
@@ -2295,8 +2295,8 @@
},
{
"name": "create_subscription",
- "title": null,
- "description": null,
+ "title": "Follow a leader (create / update subscription)",
+ "description": "Follow a copy-trade leader from the authenticated account, defining how their trades are mirrored into your own wallet. MONEY-ADJACENT: this sets how much of YOUR SOL each copy may spend. Non-custodial — three.ws never signs or holds funds; it emits sized, guard-checked copy INTENTS you act on. Idempotent: re-calling with the same leader_agent_id + network updates that subscription (and re-activates it) rather than creating a duplicate. Sizing rule: \"fixed\" spends fixed_sol per copy; \"multiplier\" spends multiplier × the leader's entry; \"pct_balance\" spends pct_balance % of your spendable SOL. Every order is clamped to per_trade_cap_sol and the remaining daily_budget_sol. Returns the created/updated subscription. Requires THREE_WS_API_KEY.",
"server": {
"id": "copy-mcp",
"title": "@three-ws/copy-mcp",
@@ -2319,8 +2319,8 @@
},
{
"name": "get_earnings",
- "title": null,
- "description": null,
+ "title": "Copy-trade earnings & fees owed",
+ "description": "Read copy-trade performance-fee accounting. Without agent_id: the authenticated account's own fees OWED across every leader they copy — a total plus a per-subscription breakdown (cumulative realized copy profit, closed copies, billable profit above the high-water mark, and the fee). With agent_id: a leader's PUBLIC aggregate earnings (active copiers, accrued fee, total copier profit) — the social-proof figure, no per-copier identity exposed and no API key required. All figures are real: realized copy profit above each subscription's high-water mark at the leader's fee, settled in $THREE. Read-only.",
"server": {
"id": "copy-mcp",
"title": "@three-ws/copy-mcp",
@@ -2343,8 +2343,8 @@
},
{
"name": "get_executions",
- "title": null,
- "description": null,
+ "title": "List copy executions (intent inbox)",
+ "description": "List the authenticated account's copy executions — the sized, guard-checked copy INTENTS generated when a followed leader trades. Each row carries the coin (mint/symbol/name), the mirrored direction (buy/sell), the planned SOL size, the leader, the safety/quote snapshot used for the decision, the lifecycle status, and any fill signature you recorded. Filter by status: \"pending\" (actionable now — default), \"acted\", \"dismissed\", \"skipped\" (guard blocked it, with skip_reason), \"expired\", or \"all\". Reading refreshes the inbox: stale pending intents are expired automatically. Use record_execution to mark a pending intent acted/dismissed. Read-only; requires THREE_WS_API_KEY.",
"server": {
"id": "copy-mcp",
"title": "@three-ws/copy-mcp",
@@ -2367,8 +2367,8 @@
},
{
"name": "list_subscriptions",
- "title": null,
- "description": null,
+ "title": "List my copy-trade subscriptions",
+ "description": "List the copy-trade subscriptions belonging to the authenticated account — every leader (a trader with a track record) you follow, with their identity, the subscription status (active / paused / stopped), the sizing rule and full guard-rule set, the performance fee, the high-water mark, and live pending/acted copy-intent counts. Use this to audit who you copy and how aggressively before tuning a follow with update_subscription. Returns the subscriptions newest-first. Read-only; requires THREE_WS_API_KEY.",
"server": {
"id": "copy-mcp",
"title": "@three-ws/copy-mcp",
@@ -2391,8 +2391,8 @@
},
{
"name": "record_execution",
- "title": null,
- "description": null,
+ "title": "Record acting on a copy intent",
+ "description": "Resolve a PENDING copy intent (from get_executions) by recording how you handled it. action:\"acted\" records that you executed the mirrored trade from your own wallet — optionally with the on-chain tx_signature for your records; action:\"dismissed\" discards the intent without trading. NON-CUSTODIAL: this never signs, sends, or broadcasts a transaction — it only updates the intent's status after YOU traded. Not idempotent: it transitions pending → acted/dismissed once; an intent that already expired or was actioned returns \"not_actionable\". Returns the updated execution. Requires THREE_WS_API_KEY.",
"server": {
"id": "copy-mcp",
"title": "@three-ws/copy-mcp",
@@ -2415,8 +2415,8 @@
},
{
"name": "update_subscription",
- "title": null,
- "description": null,
+ "title": "Update a copy-trade subscription",
+ "description": "Re-tune an existing copy-trade subscription by id. Pause it (stop new copies, keep the follow), resume it, stop it, and/or change its sizing rule and guard rules (caps, daily budget, market-cap band, oracle/safety gates, performance fee). MONEY-ADJACENT: guard changes alter how much of your SOL future copies may spend — non-custodial, intents only. Only the fields you pass change; the rest are preserved. Editing guards on a paused subscription keeps it paused unless you also set status:\"active\". Idempotent. Returns the updated subscription. Requires THREE_WS_API_KEY.",
"server": {
"id": "copy-mcp",
"title": "@three-ws/copy-mcp",
@@ -2439,8 +2439,8 @@
},
{
"name": "ibm_granite_analyze",
- "title": null,
- "description": null,
+ "title": "IBM Granite Analyze ($0.04)",
+ "description": "Structured document analysis powered by IBM Granite: extract entities, sentiment, risk signals, a concise summary, and recommended next steps from any text (contracts, reports, emails, code reviews, etc.). Returns a machine-readable JSON analysis. No IBM Cloud account required — pay $0.04 USDC per call via x402.",
"server": {
"id": "ibm-x402-mcp-remote",
"title": "IBM Granite",
@@ -2463,8 +2463,8 @@
},
{
"name": "ibm_granite_chat",
- "title": null,
- "description": null,
+ "title": "IBM Granite Chat ($0.02)",
+ "description": "Chat completion powered by IBM Granite foundation models (default: ibm/granite-3-8b-instruct). Send a conversation as role/content message pairs and receive the assistant reply with token usage. No IBM Cloud account required — pay $0.02 USDC per call via x402.",
"server": {
"id": "ibm-x402-mcp-remote",
"title": "IBM Granite",
@@ -2487,8 +2487,8 @@
},
{
"name": "ibm_granite_code",
- "title": null,
- "description": null,
+ "title": "IBM Granite Code ($0.025)",
+ "description": "Code generation, review, refactoring, and explanation via IBM Granite instruct models. Provide a task type and code/prompt; receive the generated or reviewed code with explanation. No IBM Cloud account required — pay $0.025 USDC per call via x402.",
"server": {
"id": "ibm-x402-mcp-remote",
"title": "IBM Granite",
@@ -2511,8 +2511,8 @@
},
{
"name": "ibm_granite_embed",
- "title": null,
- "description": null,
+ "title": "IBM Granite Embed ($0.005)",
+ "description": "Generate embedding vectors for one or more texts using IBM Granite (default: ibm/granite-embedding-278m-multilingual). Returns one float array per input, suitable for semantic search, RAG retrieval, and similarity scoring. Up to 64 texts per call. No IBM Cloud account required — pay $0.005 USDC per call via x402.",
"server": {
"id": "ibm-x402-mcp-remote",
"title": "IBM Granite",
@@ -2535,8 +2535,8 @@
},
{
"name": "ibm_granite_forecast",
- "title": null,
- "description": null,
+ "title": "IBM Granite Forecast ($0.05)",
+ "description": "Zero-shot time-series forecasting via IBM Granite TTM (Tiny Time Mixer). Provide a numeric series with ISO-8601 timestamps and a cadence, receive the forecast horizon. No training required. Suitable for revenue, traffic, sensor, energy, and financial series. No IBM Cloud account required — pay $0.05 USDC per call via x402.",
"server": {
"id": "ibm-x402-mcp-remote",
"title": "IBM Granite",
@@ -2559,8 +2559,8 @@
},
{
"name": "ibm_granite_getting_started",
- "title": null,
- "description": null,
+ "title": "Getting Started (free)",
+ "description": "FREE — start here. Returns an overview of this server: the IBM Granite tools available, their per-call USDC prices, how the x402 pay-per-call flow works, and runnable example calls. No payment or account required. Call this first to orient before invoking a paid tool.",
"server": {
"id": "ibm-x402-mcp-remote",
"title": "IBM Granite",
@@ -2583,8 +2583,8 @@
},
{
"name": "copy_smart_wallets",
- "title": null,
- "description": null,
+ "title": "Copy-trade smart wallet directory",
+ "description": "Browse the curated Smart Money directory for copy-trading: deduplicated wallets ranked by 30-day performance. Filter by chain (sol/bsc) and category (smart_money, launchpad, kol, sniper), search by address/name/twitter, and sort by profit, pnl, winrate, followers, or score. Returns the ranked page (wallet identity + 30-day performance, never token mints), the total, pagination flags, and category/chain facets. Read-only live data.",
"server": {
"id": "intel-mcp",
"title": "@three-ws/intel-mcp",
@@ -2607,8 +2607,8 @@
},
{
"name": "kol_leaderboard",
- "title": null,
- "description": null,
+ "title": "KOL trader leaderboard",
+ "description": "Rank the tracked key-opinion-leader (KOL) traders by realized performance over a recent window. Returns the leaderboard rows — each tracked wallet with its P&L, win rate, and trade activity for the chosen window. Read-only live data.",
"server": {
"id": "intel-mcp",
"title": "@three-ws/intel-mcp",
@@ -2631,8 +2631,8 @@
},
{
"name": "kol_trades",
- "title": null,
- "description": null,
+ "title": "Recent KOL trades on a mint",
+ "description": "See which tracked KOL wallets have recently traded a specific mint. Returns the recent trades (buys/sells with size and timing) observed across the tracked KOL set, plus the size of that tracked set. Read-only live data.",
"server": {
"id": "intel-mcp",
"title": "@three-ws/intel-mcp",
@@ -2655,8 +2655,8 @@
},
{
"name": "signal_feed",
- "title": null,
- "description": null,
+ "title": "Signal feed track record + recent signals",
+ "description": "Read one signal feed's public detail: the publisher's verified track record, the feed's proven accuracy (hit-rate, average realized ROI, follower ROI, emit→fill latency), pricing, and the recent emission log — every signal with its realized outcome and the on-chain tx that proves it. Read-only live data.",
"server": {
"id": "intel-mcp",
"title": "@three-ws/intel-mcp",
@@ -2679,8 +2679,8 @@
},
{
"name": "smart_money_coin",
- "title": null,
- "description": null,
+ "title": "Smart-money score for a coin",
+ "description": "Assess a coin by WHO is net-buying it right now. Returns a 0–100 smart_money_score computed from real observed buys joined to real outcomes, the reputable buyers in the book (with realized score, win rate, and labels), the funder clusters behind them, and a sybil_flag when one cluster dominates the order book. `computed:false` means the graph has no on-chain history for this mint yet. Read-only live data.",
"server": {
"id": "intel-mcp",
"title": "@three-ws/intel-mcp",
@@ -2703,8 +2703,8 @@
},
{
"name": "wallet_intel",
- "title": null,
- "description": null,
+ "title": "Wallet reputation + smart-money card",
+ "description": "Pull one wallet's realized reputation, computed from its observed buys joined to real outcomes (graduated / pumped / rugged + ATH). Returns the realized_score (0–100), win_rate, behavioral labels, and the funder cluster it belongs to (with funder root, size, and confidence). `computed:false` means the graph has no scored history for this wallet yet. Read-only live data.",
"server": {
"id": "intel-mcp",
"title": "@three-ws/intel-mcp",
@@ -2727,8 +2727,8 @@
},
{
"name": "get_wallet_portfolio",
- "title": null,
- "description": null,
+ "title": "KOL wallet portfolio + P&L",
+ "description": "Pull one KOL trader's live portfolio P&L card from the three.ws Birdeye proxy. Returns realized P&L, unrealized P&L (current open-position value), win rate, total trades, and the single highest-value token the wallet holds (symbol + USD value). Use this to size up a specific smart trader before copying or analyzing them. For ranking many traders at once use intel-mcp `kol_leaderboard`; this is the per-wallet deep dive. `has_activity:false` (all-zero P&L, no trades, no holding) means the proxy has no recorded portfolio for that address yet — an honest \"no data\", not a failure. Read-only live data.",
"server": {
"id": "kol-mcp",
"title": "@three-ws/kol-mcp",
@@ -2751,8 +2751,8 @@
},
{
"name": "get_wallet_trades",
- "title": null,
- "description": null,
+ "title": "A KOL wallet's trades on a mint",
+ "description": "Get one specific KOL trader's recent buys/sells of a given mint. The three.ws trade feed is scanned for that mint across all tracked wallets and narrowed to the wallet you pass, so you see exactly how that trader is positioning in that token — side (buy/sell), SOL size, token amount, per-trade price, USD value, and timestamp, newest first. Use it to inspect a single smart trader's moves before copying. For every tracked wallet's trades on a mint (not just one), use intel-mcp `kol_trades`. Read-only live data.",
"server": {
"id": "kol-mcp",
"title": "@three-ws/kol-mcp",
@@ -2775,8 +2775,8 @@
},
{
"name": "get_creation",
- "title": null,
- "description": null,
+ "title": "Fetch one Loom creation by id",
+ "description": "Fetch a single Loom creation by its id. Returns the full record — prompt, glbUrl, previewImageUrl, author, tier, backend, createdAt — together with a `viewer_url` (the /forge/embed orbit+AR viewer for the GLB), an `og_image_url`, and a paste-ready `iframe_snippet` so the model can be previewed inline. Returns a not_found error if no creation has that id. Read-only, no key required.",
"server": {
"id": "loom-mcp",
"title": "@three-ws/loom-mcp",
@@ -2799,8 +2799,8 @@
},
{
"name": "get_loom_feed",
- "title": null,
- "description": null,
+ "title": "Browse the Loom 3D-creation gallery",
+ "description": "Browse Loom — the public, world-readable gallery of community-forged 3D creations (a forged GLB plus the prompt that made it and a bit of attribution), returned newest-first. Each creation includes its id, prompt, glbUrl, previewImageUrl, author, tier, backend, createdAt (ms epoch), plus a ready-to-use `viewer_url` (the /forge/embed orbit+AR viewer), `og_image_url`, and a paste-ready `iframe_snippet`. Paginate backwards with `before`: pass the `nextBefore` cursor from the previous page to load older items; a null `nextBefore` means you reached the end. Read-only, no key required.",
"server": {
"id": "loom-mcp",
"title": "@three-ws/loom-mcp",
@@ -2823,8 +2823,9 @@
},
{
"name": "submit_creation",
- "title": null,
+ "title": "Submit a creation to the Loom gallery",
"description": null,
+ "descriptionIsDynamic": true,
"server": {
"id": "loom-mcp",
"title": "@three-ws/loom-mcp",
@@ -2847,8 +2848,8 @@
},
{
"name": "agent_categories",
- "title": null,
- "description": null,
+ "title": "List agent marketplace categories",
+ "description": "List the agent marketplace categories with the count of published agents in each, plus the overall total. Use the returned category slugs to filter browse_agents. Read-only.",
"server": {
"id": "marketplace-mcp",
"title": "@three-ws/marketplace-mcp",
@@ -2871,8 +2872,8 @@
},
{
"name": "agent_detail",
- "title": null,
- "description": null,
+ "title": "Fetch a marketplace agent by id",
+ "description": "Fetch one published marketplace agent by its id, including its full detail: name, description, category, tags, system prompt, greeting, capabilities, author, ratings, skill prices, subscription tiers, and avatar URLs. Read-only.",
"server": {
"id": "marketplace-mcp",
"title": "@three-ws/marketplace-mcp",
@@ -2895,8 +2896,8 @@
},
{
"name": "browse_agents",
- "title": null,
- "description": null,
+ "title": "Browse the agent marketplace",
+ "description": "Search and page the public three.ws agent marketplace. Filter by category and free-text query, choose a sort order, and get back a list of agent cards (id, name, description, category, tags, ratings, view/fork counts, thumbnail and GLB avatar URLs) plus a cursor for the next page. Read-only.",
"server": {
"id": "marketplace-mcp",
"title": "@three-ws/marketplace-mcp",
@@ -2919,8 +2920,8 @@
},
{
"name": "browse_skills",
- "title": null,
- "description": null,
+ "title": "Browse the skills catalog",
+ "description": "Search and page the public three.ws skills catalog — reusable tools and capabilities agents can install. Filter by free-text query and category, choose a sort order, and get back a list of skills (id, name, slug, description, category, tags, install count, rating, per-call price, author, content preview) plus a cursor for the next page. Read-only.",
"server": {
"id": "marketplace-mcp",
"title": "@three-ws/marketplace-mcp",
@@ -2943,8 +2944,8 @@
},
{
"name": "skill_categories",
- "title": null,
- "description": null,
+ "title": "List skills catalog categories",
+ "description": "List the skills catalog categories that have at least one public skill, each with a slug, label, and the count of skills in it. Use the returned slugs to filter browse_skills. Read-only.",
"server": {
"id": "marketplace-mcp",
"title": "@three-ws/marketplace-mcp",
@@ -2967,8 +2968,8 @@
},
{
"name": "sns_resolve",
- "title": null,
- "description": null,
+ "title": "Resolve a .sol name to its owner wallet",
+ "description": "Resolve a Solana Name Service (.sol) name to the base58 wallet address that owns it. Accepts a bare label, a subdomain, or the full name with or without the trailing \".sol\". Returns the owner address, or resolved:false when the name is unregistered. Mainnet only. Read-only.",
"server": {
"id": "naming-mcp",
"title": "@three-ws/naming-mcp",
@@ -2991,8 +2992,8 @@
},
{
"name": "sns_reverse",
- "title": null,
- "description": null,
+ "title": "Reverse-lookup a wallet to its primary .sol name",
+ "description": "Reverse-lookup a Solana wallet to the primary .sol name it has set as its favorite. Returns the name, or resolved:false when the wallet has no favorite domain (a routine, expected answer — not an error). Mainnet only. Read-only.",
"server": {
"id": "naming-mcp",
"title": "@three-ws/naming-mcp",
@@ -3015,8 +3016,8 @@
},
{
"name": "threews_availability",
- "title": null,
- "description": null,
+ "title": "Check if a *.threews.sol agent identity is available",
+ "description": "Check whether \"<label>.threews.sol\" is available to claim as a three.ws agent identity. Returns the full domain, availability, the current owner wallet if taken, the on-chain check status (\"ok\" or \"unavailable\" if the Solana RPC was degraded), and the public showcase URL for a claimed handle. Minting the subdomain is an authenticated write on the HTTP API; this tool is the public read. Read-only.",
"server": {
"id": "naming-mcp",
"title": "@three-ws/naming-mcp",
@@ -3039,8 +3040,8 @@
},
{
"name": "delete_notification",
- "title": null,
- "description": null,
+ "title": "Delete notification",
+ "description": "Permanently delete a single notification from the inbox by its `id` (from list_notifications). Unlike mark_read, which only marks it read, this REMOVES the notification for good — the action is irreversible. Only a notification the caller owns can be deleted. Returns `{ ok: true, id, deleted: true }` on success, or a not_found error if the id does not exist for this account (e.g. it was already deleted). Prefer mark_read for normal triage; use this only to discard a notification entirely.",
"server": {
"id": "notifications-mcp",
"title": "@three-ws/notifications-mcp",
@@ -3063,8 +3064,8 @@
},
{
"name": "get_preferences",
- "title": null,
- "description": null,
+ "title": "Get notification preferences",
+ "description": "Read the account's notification delivery preferences — the resolved channel matrix the platform uses to decide how each kind of event reaches the owner. Returns `categories` (the catalog of user-facing groups: sales, purchases, social, irl, alerts, account — each with a label and description), `channels` (the deliverable channels: in_app, push, email, telegram), `prefs` (the effective per-category → per-channel on/off matrix with sparse user overrides already merged onto defaults, plus the linked `telegram_chat_id` if any), and `push` (how many web-push devices are registered). Read this before calling set_preferences so you patch from the real current state. Read-only.",
"server": {
"id": "notifications-mcp",
"title": "@three-ws/notifications-mcp",
@@ -3087,8 +3088,8 @@
},
{
"name": "list_notifications",
- "title": null,
- "description": null,
+ "title": "List notifications",
+ "description": "Read the authenticated agent's notification inbox — the inbound-event feed the platform delivers to the account: market/pump alerts, sales & earnings, purchase receipts, social mentions, IRL interactions, and account/security notices. Returns the most recent notifications (newest first), each with its `id`, `type`, the event `payload`, a `read` boolean and `read_at` timestamp (null ⇒ unread), and `created_at`; plus `unread_count`, the total number of unread items in the inbox. Pass `type` to return only one notification type (e.g. \"pump_alert\", \"skill_purchased\", \"security_alert\"), and `limit` (1–50, default 20) to cap how many rows come back. Read-only — use it to surface alerts without polling, then mark_read / delete_notification to manage them.",
"server": {
"id": "notifications-mcp",
"title": "@three-ws/notifications-mcp",
@@ -3111,8 +3112,8 @@
},
{
"name": "mark_read",
- "title": null,
- "description": null,
+ "title": "Mark notifications read",
+ "description": "Mark notifications as read in the inbox. Pass `id` to mark a single notification read, or `all: true` to mark every unread notification read at once (exactly one of the two is required). Marking read only updates the read timestamp — it does not delete anything, and re-running with the same arguments has no further effect (idempotent). When `id` is given, returns the notification id and its `read_at`; when `all` is given, returns `marked_read`, the number of notifications newly marked read. To remove a notification entirely use delete_notification instead.",
"server": {
"id": "notifications-mcp",
"title": "@three-ws/notifications-mcp",
@@ -3135,8 +3136,8 @@
},
{
"name": "register_push_device",
- "title": null,
- "description": null,
+ "title": "Register push device",
+ "description": "Register a Web Push device so the account receives push notifications on it. Pass the browser `subscription` object exactly as `pushManager.subscribe().toJSON()` produces it — { endpoint, keys: { p256dh, auth } }. Push endpoints are globally unique: re-registering the same device upserts (the latest owner wins) and is a no-op, so this is idempotent. Whether a given notification category actually delivers over push is still governed by set_preferences. Returns `{ ok: true }` on success. Use unregister_push_device to remove a device.",
"server": {
"id": "notifications-mcp",
"title": "@three-ws/notifications-mcp",
@@ -3159,8 +3160,8 @@
},
{
"name": "set_preferences",
- "title": null,
- "description": null,
+ "title": "Set notification preferences",
+ "description": "Update the account's notification delivery preferences with a sparse patch. `categories` maps a category key (${…}) to a channel map turning each channel on/off (${…}) — e.g. { \"alerts\": { \"push\": false }, \"social\": { \"email\": true } }. Only the category/channel pairs you pass change; unknown keys are dropped server-side and untouched pairs keep their current value (which falls back to the platform default). Pass `telegram_chat_id` (a numeric Telegram chat id, or \"\" to unlink) to control where the telegram channel delivers. Provide at least one of `categories` or `telegram_chat_id`. WRITE but idempotent — re-applying the same values is a no-op. Returns the full resolved preference matrix after the update. Read it first with get_preferences.",
"server": {
"id": "notifications-mcp",
"title": "@three-ws/notifications-mcp",
@@ -3183,8 +3184,8 @@
},
{
"name": "unregister_push_device",
- "title": null,
- "description": null,
+ "title": "Unregister push device",
+ "description": "Remove a Web Push device so the account stops receiving push notifications on it. Identify the device by its push `endpoint` URL (preferred) or by passing the full `subscription` object — at least one is required. Destructive: it tears down the device registration (reverse it by calling register_push_device again). Idempotent: removing an endpoint that is not registered still returns `{ ok: true }`. This affects only push delivery to that device; in_app, email, and telegram preferences are unchanged.",
"server": {
"id": "notifications-mcp",
"title": "@three-ws/notifications-mcp",
@@ -3207,8 +3208,8 @@
},
{
"name": "get_portfolio_asset",
- "title": null,
- "description": null,
+ "title": "My position in one token (holdings + market + chart)",
+ "description": "Deep-dive on ONE asset across every agent wallet you own. Returns which wallets hold it, your `total_amount` and `total_usd`, the per-wallet `holdings`, the live `market` data (price, 24h/7d/30d change, market cap, volume, ATH) and a `chart` of price history over `days`. Use `id:\"native\"` for the chain’s base coin (SOL on solana, ETH on evm), otherwise the base58 SPL mint or the 0x contract address. Requires THREE_WS_SESSION. Read-only.",
"server": {
"id": "portfolio-mcp",
"title": "@three-ws/portfolio-mcp",
@@ -3231,8 +3232,8 @@
},
{
"name": "get_portfolio_history",
- "title": null,
- "description": null,
+ "title": "My portfolio value over time",
+ "description": "Time series of your total portfolio USD value, oldest point first, for charting performance over time. Returns `points` as { t (ISO timestamp), usd } pairs, drawn from snapshots persisted by get_portfolio_summary(snapshot:true) or the website. An empty `points` array means no snapshots have been captured yet in the window — take one with get_portfolio_summary(snapshot:true) to start the series. Requires THREE_WS_SESSION. Read-only.",
"server": {
"id": "portfolio-mcp",
"title": "@three-ws/portfolio-mcp",
@@ -3255,8 +3256,8 @@
},
{
"name": "get_portfolio_summary",
- "title": null,
- "description": null,
+ "title": "My agents’ live portfolio (holdings + USD value)",
+ "description": "Live aggregated portfolio for the agent wallets YOU own (resolved from your three.ws session). Returns `total_usd` across all wallets and a per-wallet breakdown — each with agent_id, agent_name, chain (solana | evm), address, the resolved .sol name when present, the native balance (SOL/ETH amount + USD), the SPL/ERC-20 token holdings (amount + USD), and that wallet’s USD subtotal. A wallet that failed to price carries `ok:false` and an `error` instead of throwing the whole call. Note: this is the live VALUE snapshot — realized PnL lives in get_trades_feed. Set `snapshot:true` to persist a point for the history chart. Requires THREE_WS_SESSION. Read-only.",
"server": {
"id": "portfolio-mcp",
"title": "@three-ws/portfolio-mcp",
@@ -3279,8 +3280,8 @@
},
{
"name": "get_trades_feed",
- "title": null,
- "description": null,
+ "title": "Public closed-trade PnL feed",
+ "description": "The public feed of notable CLOSED positions across all three.ws agents, newest exit first — the canonical source of realized PnL on the platform. Each item carries the coin (mint, symbol, name), the trader (agent_id, agent_name, copier_count), entry_sol / exit_sol / realized_pnl_sol / realized_pnl_pct / multiple, hold_seconds, exit_reason, the buy/sell signatures, and oracle conviction context when the coin was scored. Filter by `mint` to see every closed trade on one coin (the time window is ignored when a mint is set). Paginate with `cursor` = the previous response's `next_cursor`. No auth required — read-only live data.",
"server": {
"id": "portfolio-mcp",
"title": "@three-ws/portfolio-mcp",
@@ -3303,8 +3304,8 @@
},
{
"name": "get_wallet_balances",
- "title": null,
- "description": null,
+ "title": "Live on-chain balances for a Solana wallet",
+ "description": "Read live, on-chain balances for any Solana pubkey directly from the RPC: the native SOL balance plus every non-zero SPL token position (classic SPL and Token-2022), each with mint, raw amount, ui_amount, decimals, and which token program owns it. This is the raw on-chain truth (no USD pricing) — use it to confirm the agent’s own signing wallet before a send_transfer, or to check any address. No session required. Read-only.",
"server": {
"id": "portfolio-mcp",
"title": "@three-ws/portfolio-mcp",
@@ -3327,8 +3328,8 @@
},
{
"name": "send_transfer",
- "title": null,
- "description": null,
+ "title": "Send SOL or an SPL token on Solana mainnet",
+ "description": "BROADCASTS A REAL, IRREVERSIBLE SOLANA MAINNET TRANSACTION that moves funds out of the agent’s own wallet. Sends native SOL (omit `mint`, or set mint:\"native\") or any SPL token (pass its base58 `mint` — supplied at call time, e.g. the $THREE mint or any token you hold). Signs locally with the per-call `secret` (base58) or SOLANA_SECRET_KEY on the server; for a token it auto-creates the recipient’s associated token account when missing. Returns the confirmed signature, the moved amount, and a Solscan link. EXECUTION ACTION — pass confirm:true to proceed. Native sends are capped by MAX_SOL_PER_TX; the recipient must be in RECIPIENT_ALLOWLIST when one is configured.",
"server": {
"id": "portfolio-mcp",
"title": "@three-ws/portfolio-mcp",
@@ -3351,8 +3352,8 @@
},
{
"name": "append_agent_action",
- "title": null,
- "description": null,
+ "title": "Append a signed action to the provenance ledger",
+ "description": "Record an action in an agent's append-only provenance ledger — the permanent, auditable trail of what the agent did. Provide `agent_id` (THREE_WS_TOKEN must own it), a short `type` (≤64 chars, e.g. launch, buy, post, reflect), an optional structured `payload`, and an optional `source_skill`. WRITE ACTION: this APPENDS a new immutable record — it can never be edited or deleted, and calling it twice records two distinct actions, so don't retry blindly. When an EVM signer is configured (THREE_WS_SIGNER_KEY env or the `signer_key` arg) the action is ERC-191-signed before sending, making its authorship publicly verifiable; with no key it is appended unsigned. Returns the stored record (with id + created_at) and a `signing` block reporting whether it was signed and by which address.",
"server": {
"id": "provenance-mcp",
"title": "@three-ws/provenance-mcp",
@@ -3375,8 +3376,8 @@
},
{
"name": "list_agent_actions",
- "title": null,
- "description": null,
+ "title": "List an agent's action-provenance trail",
+ "description": "Read an agent's append-only action log, newest-first, cursor-paginated. Returns each action's id, type (e.g. launch, buy, post, reflect), payload, source_skill, created_at, and — when the action was signed — its ERC-191 signature + signer_address. Each record is checked against its own signature: `verification.reason` is `ok` (recovered signer matches the claimed address), `unsigned`, `signer_mismatch` (recovered a different address — tampering OR an action signed under a different canonical scheme; treat as unverified, not trusted), or `malformed_signature`. Pass the returned `next_cursor` back as `cursor` to page further. The ledger is owner-scoped: THREE_WS_TOKEN must own `agent_id`. Read-only; the log is immutable so older pages never change.",
"server": {
"id": "provenance-mcp",
"title": "@three-ws/provenance-mcp",
@@ -3399,8 +3400,8 @@
},
{
"name": "query_action",
- "title": null,
- "description": null,
+ "title": "Fetch + verify one provenance action",
+ "description": "Fetch a single action from an agent's append-only log by its id, then verify it. Returns the action (type, payload, source_skill, created_at, signature, signer_address) plus a `verification` block: `signed`, `valid`, `reason` (`ok` | `unsigned` | `signer_mismatch` | `malformed_signature`), the `recovered` signer address, and the recomputed `digest`. `valid:true` means the ERC-191 signature recovers to the claimed signer over the canonical action form — cryptographic proof the named agent authored this exact action and it was not altered. The ledger is owner-scoped: THREE_WS_TOKEN must own `agent_id`. Returns ok:false / not_found when the id is absent from this agent's log. Read-only.",
"server": {
"id": "provenance-mcp",
"title": "@three-ws/provenance-mcp",
@@ -3423,8 +3424,8 @@
},
{
"name": "build_world",
- "title": null,
- "description": null,
+ "title": "Build a complete 3D world from one sentence (no browser needed)",
+ "description": "One sentence → a fully forged, exported 3D world, entirely server-side: composes the scene plan, forges every object on the free text→3D lane, and merges the result into one GLB with named, selectable nodes plus ground and lighting. Returns the populated diorama, the merged GLB URL, and a ready-to-open Scene Studio link. This is the whole progressive /diorama browser flow collapsed into one call — it can take a couple of minutes for a full object set. Partial forges are not failures: whatever forged is exported, and `skipped` names anything that did not.",
"server": {
"id": "scene-mcp",
"title": "@three-ws/scene-mcp",
@@ -3447,8 +3448,8 @@
},
{
"name": "compose_scene",
- "title": null,
- "description": null,
+ "title": "Compose a 3D diorama plan from one sentence",
+ "description": "Compose a tiny 3D diorama from one short sentence. Returns a PLAN: an evocative title, a mood (dawn/day/dusk/night), ground + island type, a color palette, and 2–8 placed objects — each with a single-object forge prompt, position, scale and rotation. No meshes are generated yet and nothing is saved; feed the plan to the three.ws diorama page (or /api/forge per object) to build the world. Read-mostly but runs live LLM inference.",
"server": {
"id": "scene-mcp",
"title": "@three-ws/scene-mcp",
@@ -3471,8 +3472,8 @@
},
{
"name": "export_scene",
- "title": null,
- "description": null,
+ "title": "Export a forged diorama as one GLB scene",
+ "description": "Merge an already-forged diorama (objects with real glbUrl values, e.g. from your own forging after compose_scene, or fetched via get_scene) into ONE glTF 2.0 binary: every object becomes a named, selectable node, plus a real ground disc and mood-tuned lighting. Returns the merged GLB URL and a ready-to-open three.ws Scene Studio link. Objects that never forged are skipped and reported, not treated as a failure — a partial world still exports. Requires the target deployment to have object storage configured (three.ws does).",
"server": {
"id": "scene-mcp",
"title": "@three-ws/scene-mcp",
@@ -3495,8 +3496,8 @@
},
{
"name": "get_scene",
- "title": null,
- "description": null,
+ "title": "Fetch a saved diorama by id",
+ "description": "Fetch one saved diorama (a fully-forged 3D world) by its id, including its title, mood, palette, ground, and the placed objects with their GLB URLs. Returns the orbitable viewer URL. Read-only.",
"server": {
"id": "scene-mcp",
"title": "@three-ws/scene-mcp",
@@ -3519,8 +3520,8 @@
},
{
"name": "list_scenes",
- "title": null,
- "description": null,
+ "title": "List recent or featured dioramas",
+ "description": "Browse the public diorama gallery — the most recent saved worlds, or the featured set. Returns a list of cards (id, title, mood, thumbnail/preview, view count) plus each world's viewer URL. Read-only.",
"server": {
"id": "scene-mcp",
"title": "@three-ws/scene-mcp",
@@ -3543,8 +3544,8 @@
},
{
"name": "get_mirror_leaderboard",
- "title": null,
- "description": null,
+ "title": "Rank signal publishers by realized performance",
+ "description": "Rank followable agents (signal publishers / copy-trade leaders) by REAL, on-chain-derived performance — never inflated. Every number traces to a real signature: realized P&L and win-rate come from closed sniper round-trips, volume from the discretionary custody ledger, and losers are included. Each leader returns rank, agent_id, name, avatar, settled trades, wins, win_rate, realized pnl_sol, roi_pct, trade count, volume_sol, follower counts, last trade time, and a composite score (realized ROI weighted by sample size so a one-trade fluke cannot top a consistent trader). Sort by `score` (default), `pnl`, `followers`, `volume`, or `winrate`. Use this to find a leader before subscribing to their feed. Public, read-only live data — no key required.",
"server": {
"id": "signals-mcp",
"title": "@three-ws/signals-mcp",
@@ -3567,8 +3568,8 @@
},
{
"name": "get_subscriptions",
- "title": null,
- "description": null,
+ "title": "List your signal subscriptions + delivery history",
+ "description": "List every signal subscription owned by the authenticated account — the follower's tracking surface. Each subscription returns its numeric `id` (pass this to set_subscription_status), the subscriber agent, the feed it follows (slug, title, publisher, pricing), the copy-trade config (mode simulate/live, billing, base_sol, size_scaling, max_per_trade_sol, slippage_bps, firewall_level, copy_exits), live status (status, killed flag, epoch_paid_until, last delivered emission), and the realized delivery stats: `stats.executed` (mirror fills that executed on-chain), `stats.paid_count` (paid deliveries), and `stats.usdc_spent` (total USDC paid to the publisher). Requires THREE_WS_API_KEY. Read-only live data.",
"server": {
"id": "signals-mcp",
"title": "@three-ws/signals-mcp",
@@ -3591,8 +3592,8 @@
},
{
"name": "list_signal_feeds",
- "title": null,
- "description": null,
+ "title": "Browse the signal-feed marketplace",
+ "description": "Discover copy-trade signal feeds on three.ws. Returns the public directory of active feeds, each ranked by its PROVEN realized edge (hit-rate × realized ROI, confidence-regressed toward the publisher's verified track-record score until enough signals have closed — a thin feed riding one lucky call can never top a deep, consistent one). For each feed you get its numeric `id` (pass this to subscribe_signal), `slug`, title, the publisher (name, verified badge, track-record score, realized SOL P&L), pricing (per-signal and per-epoch USDC), and proven stats (closed signals, hit-rate, average realized %, active subscribers, executed fills, avg emit→fill latency, avg follower ROI). Sort by `edge` (default), `roi`, `hitrate`, `subscribers`, or `newest`. Public, read-only live data — no key required.",
"server": {
"id": "signals-mcp",
"title": "@three-ws/signals-mcp",
@@ -3615,8 +3616,8 @@
},
{
"name": "set_subscription_status",
- "title": null,
- "description": null,
+ "title": "Resume, pause, stop, or kill a subscription",
+ "description": "Control an existing signal subscription owned by the authenticated account.\n • active — (re)activate it; this also CLEARS any kill flag so it resumes paying/mirroring.\n • paused — stop delivering for now; the kill flag (if set) is left untouched.\n • stopped — stop the subscription (soft — its delivery history is kept).\n • killed — INSTANT kill switch: halts everything immediately; the kill is honoured before any payment or trade can fire. Use this to stop a live subscription from spending or trading right now.\nIdempotent — setting the same state again is a no-op. Get the subscription `id` from get_subscriptions. Requires THREE_WS_API_KEY.",
"server": {
"id": "signals-mcp",
"title": "@three-ws/signals-mcp",
@@ -3639,8 +3640,8 @@
},
{
"name": "subscribe_signal",
- "title": null,
- "description": null,
+ "title": "Subscribe an agent to a signal feed",
+ "description": "Subscribe one of YOUR agents to a signal feed so it copy-trades the publisher. Idempotent: a feed is keyed by (subscriber agent, feed) — re-calling updates the existing subscription instead of creating a duplicate. A new subscription starts at the current emission head, so it is never charged for or made to mirror signals emitted before it subscribed.\n\nPAYMENT & RISK: `mode:\"simulate\"` (default) mirrors WITHOUT paying or trading — it sizes and labels the orders for trust-building, spends nothing. `mode:\"live\"` BOTH pays the publisher in USDC (x402, per-signal or per-epoch per the feed pricing) AND auto-mirrors real on-chain trades from the subscriber agent's custodial wallet, within its spend policy. Money moves at delivery time (when the publisher emits a signal), not at the moment you call this tool. Use set_subscription_status with killed:true to halt all further pay/trade instantly. Requires THREE_WS_API_KEY; the agent must be owned by that account.",
"server": {
"id": "signals-mcp",
"title": "@three-ws/signals-mcp",
@@ -3663,8 +3664,8 @@
},
{
"name": "three_balance",
- "title": null,
- "description": null,
+ "title": "Read a wallet's $THREE + SOL balance",
+ "description": "Return the $THREE and SOL balance for a Solana pubkey. If no pubkey is given, uses the configured signer (SOLANA_SECRET_KEY). Read-only — no payment.",
"server": {
"id": "three-token-mcp",
"title": "@three-ws/three-token-mcp",
@@ -3687,8 +3688,8 @@
},
{
"name": "three_burn",
- "title": null,
- "description": null,
+ "title": "Burn $THREE on-chain (incinerator + treasury split)",
+ "description": "Burn a USD-denominated amount of the $THREE your wallet holds. Quotes USD→$THREE via Jupiter, then sends ONE Solana transaction that splits it between the incinerator (burn) and the three.ws treasury, per the live public token config. EXECUTION ACTION — signs and broadcasts on Solana mainnet, IRREVERSIBLE: pass confirm:true. Capped by MAX_BURN_USD. The resolved mint is asserted to be canonical $THREE before signing. Requires a signer (SOLANA_SECRET_KEY env or the `secret` arg) holding enough $THREE. Returns the tx signature, the burned/treasury breakdown, and a Solscan link.",
"server": {
"id": "three-token-mcp",
"title": "@three-ws/three-token-mcp",
@@ -3711,8 +3712,8 @@
},
{
"name": "three_price",
- "title": null,
- "description": null,
+ "title": "Live $THREE price (Jupiter) + USD→$THREE quote",
+ "description": "Return the live USD price of $THREE (Jupiter primary, Birdeye fallback). Pass `usd` to also get how much $THREE that amount buys (token amount + atomic units). Read-only — no signer or payment required.",
"server": {
"id": "three-token-mcp",
"title": "@three-ws/three-token-mcp",
@@ -3735,8 +3736,8 @@
},
{
"name": "apply_animation",
- "title": null,
- "description": null,
+ "title": "Apply an animation preset to a rigged model",
+ "description": "Retarget a curated animation preset onto a caller-supplied rigged humanoid GLB. Returns the retargeted three.js AnimationClip JSON (keyed to the rig's actual bone names, hip translation rescaled to its proportions) plus a retarget report — load it alongside the model and play. Set format=\"glb\" to also bake an animated GLB server-side (best-effort: textured rigs may exceed the headless bake budget and fall back to clip JSON — the /pose gallery is the guaranteed GLB export). SSRF-hardened: only public https model URLs are fetched.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -3759,8 +3760,8 @@
},
{
"name": "attach_avatar_to_agent",
- "title": null,
- "description": null,
+ "title": "Give an agent a body",
+ "description": "Attach a generated/rigged avatar (from forge_avatar, mesh_forge + rig_mesh, or any avatar you own) to one of your registered agent identities — giving the agent a persistent visual body tied to its account identity. This is the bridge between generation and identity: generate a rigged GLB, save it as an avatar (list_my_avatars / the Forge 'Save' action), then call this tool to make it the agent's body. The same agent_id always shows the same body afterwards (get_avatar / render_avatar / get_embed_code all resolve it). Chain register_agent next to mint the on-chain identity (ERC-8004 on Base, or a Metaplex Agent Registry PDA on Solana) and anchor_provenance to credential the GLB itself — together the agent has a body, an on-chain identity, and a verifiable authenticity record. Requires a signed-in three.ws account; both the agent and the avatar must belong to the caller.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -3783,8 +3784,8 @@
},
{
"name": "call_agent",
- "title": null,
- "description": null,
+ "title": "Call agent",
+ "description": "Send a message to another three.ws agent and get its response. Use this to delegate specialized tasks.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -3807,8 +3808,8 @@
},
{
"name": "copy_status",
- "title": null,
- "description": null,
+ "title": "My copy subscriptions",
+ "description": "List all your active copy-trading subscriptions, with sizing config, execution counts (pending/acted), and the leader's name and profile. Use this to check that copy-trading is set up correctly and to see which subscriptions are generating intents.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -3831,8 +3832,8 @@
},
{
"name": "copy_subscribe",
- "title": null,
- "description": null,
+ "title": "Subscribe to copy a trader",
+ "description": "Set up non-custodial copy-trading: mirror a leader agent's future pump.fun entries into your own wallet with your own sizing and risk caps. You supply your wallet address and the sizing rules; we never hold keys. The fan-out cron checks for new leader entries and generates sized intents you act on from /dashboard/copy. Provide leader_agent_id (from trader_leaderboard) and your Solana wallet address. Sizing rules: 'fixed' = exact SOL per trade, 'multiplier' = N× leader size, 'pct_balance' = % of your balance. Always set a per_trade_cap_sol and daily_budget_sol to limit exposure.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -3855,8 +3856,8 @@
},
{
"name": "create_gated_embed",
- "title": null,
- "description": null,
+ "title": "Create a token-gated embed",
+ "description": "Turn an avatar or on-chain agent you own into a holder-only interactive 3D embed. Visitors must prove — with a real, server-verified Solana SPL token balance, never a client-reported number — they hold at least min_amount of mint before the live scene renders; below that they see a designed locked teaser with a connect-wallet CTA. mint defaults to $THREE but accepts any SPL mint at runtime. Returns a ready-to-paste <three-d> embed snippet.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -3879,8 +3880,9 @@
},
{
"name": "crypto_data",
- "title": null,
+ "title": "Crypto Data API",
"description": null,
+ "descriptionIsDynamic": true,
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -3903,8 +3905,8 @@
},
{
"name": "delete_avatar",
- "title": null,
- "description": null,
+ "title": "Delete avatar",
+ "description": "Soft-delete an avatar you own. Requires avatars:delete scope.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -3927,8 +3929,8 @@
},
{
"name": "forget",
- "title": null,
- "description": null,
+ "title": "Forget",
+ "description": "Delete a memory you own by its id.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -3951,8 +3953,8 @@
},
{
"name": "garment_status",
- "title": null,
- "description": null,
+ "title": "Check a garment generation job",
+ "description": "Poll a generate_garment job. While running, reports the pipeline stage. When done, returns the published glb_url, manifest_url, thumbnail, measured bind coverage, and the occluded body regions — at that point the garment is already live in the wardrobe catalog.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -3975,8 +3977,8 @@
},
{
"name": "generate_garment",
- "title": null,
- "description": null,
+ "title": "Generate a wearable garment from a text prompt",
+ "description": "Turn a text prompt (e.g. \"a red varsity jacket\") into a rigged, wearable garment published to the three.ws wardrobe catalog. The pipeline generates a reference image, sculpts a PBR mesh on the GPU fleet, skins it to the canonical humanoid skeleton, and validates it (including the 60% bind-coverage gate) before publishing garment.glb + manifest.json + thumbnail. Runs asynchronously for about 7 minutes; poll with garment_status. The finished piece appears in the public catalog automatically and attaches to any humanoid avatar.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -3999,8 +4001,8 @@
},
{
"name": "get_3d_asset_onchain",
- "title": null,
- "description": null,
+ "title": "Resolve a 3D NFT to its live asset + provenance",
+ "description": "Resolve a Solana mint address to its live 3D asset: current holder, the interactive viewer link + GLB (confirmed live), baked provenance (creator, prompt, model, lineage, timestamp), and the enforced on-chain royalty terms. Works on any Metaplex Core mint — assets minted through three.ws also return their platform launch record. Read-only, public.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4023,8 +4025,8 @@
},
{
"name": "get_avatar",
- "title": null,
- "description": null,
+ "title": "Get avatar",
+ "description": "Fetch a single avatar by id or by owner+slug. Returns metadata and a model_url (public/unlisted) or short-lived signed URL (private).",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4047,8 +4049,8 @@
},
{
"name": "get_embed_code",
- "title": null,
- "description": null,
+ "title": "Get embed code",
+ "description": "Return a ready-to-paste <iframe> embed snippet (plus shareable URL, oEmbed URL, and OG thumbnail) for a three.ws avatar, on-chain agent, or Forge creation. Embed a persistent 3D avatar into Notion, Webflow, Framer, a blog, or any site as easily as a YouTube video. Provide exactly one target: agent_id, OR chain_id + onchain_agent_id, OR creation_id.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4071,8 +4073,8 @@
},
{
"name": "identity_check",
- "title": null,
- "description": null,
+ "title": "Screen an agent identity for impersonation",
+ "description": "Screen an agent identity (an existing agent_id, or a proposed name + description) for impersonation and policy violations before it goes public. Uses IBM Granite embeddings to find look-alike agents a name match would miss, and Granite Guardian to screen the identity text. Returns a clear | review | block verdict with the nearest neighbours and human-readable reasons.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4095,8 +4097,8 @@
},
{
"name": "inspect_model",
- "title": null,
- "description": null,
+ "title": "Inspect glTF/GLB model",
+ "description": "Parse a remote GLB or glTF and return structural stats: scene/node/mesh counts, vertex and triangle totals, material and texture summaries, extensions used. Pure inspection — no optimization advice.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4119,8 +4121,8 @@
},
{
"name": "list_animations",
- "title": null,
- "description": null,
+ "title": "List animation presets",
+ "description": "List the curated, retargetable animation presets in the three.ws library — name, label, category, and whether the clip loops. Use this to discover valid `animation` values for apply_animation.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4143,8 +4145,8 @@
},
{
"name": "list_garment_catalog",
- "title": null,
- "description": null,
+ "title": "List the wardrobe garment catalog",
+ "description": "Fetch the public three.ws wardrobe catalog: every published garment manifest (id, slot, name, GLB url, thumbnail, occluded regions). Any entry attaches to any humanoid avatar via the additive wardrobe.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4167,8 +4169,8 @@
},
{
"name": "list_my_avatars",
- "title": null,
- "description": null,
+ "title": "List my avatars",
+ "description": "List the authenticated user's avatars. Returns id, name, slug, size, visibility, and direct model_url (when visibility permits).",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4191,8 +4193,8 @@
},
{
"name": "mint_3d_asset",
- "title": null,
- "description": null,
+ "title": "Mint a 3D asset as a Solana NFT",
+ "description": "Mint a generated or owned GLB as a Metaplex Core NFT on Solana whose media is a LIVE, interactive 3D viewer (the rigged glTF model under animation_url — not a static image). Bakes provenance (creator, prompt, generation model, parent lineage, timestamp) into the metadata AND appends a signed, independently-verifiable record to the agent_actions provenance ledger; enforces capped creator royalties on secondary sales. Supply an owned avatar_id or a glb_url, and a recipient (owner_wallet, or your OAuth-linked Solana wallet). Devnet by default; pass network=\"mainnet\" for a real mainnet mint. Idempotent — a repeat call for the same asset returns the same mint. Royalty is capped at ${…}%. Naming parent_mint (a remix/derivative on mainnet) routes the parent creator's royalty slice out of THIS mint's fee as a real on-chain USDC transfer. Returns the mint address, explorer + viewer links, royalty terms, the provenance ledger reference, and (for a remix) the royalty settlement. Priced per call via x402 (USDC); an OAuth bearer token bypasses payment.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4215,8 +4217,8 @@
},
{
"name": "optimize_model",
- "title": null,
- "description": null,
+ "title": "Suggest optimizations for a glTF/GLB model",
+ "description": "Inspect the model and return actionable suggestions for reducing size and draw-call overhead: triangle budget, Draco/Meshopt compression, oversized textures, KTX2 transcoding, non-indexed primitives, redundant materials, and more.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4239,8 +4241,8 @@
},
{
"name": "oracle_arm_watch",
- "title": null,
- "description": null,
+ "title": "Arm agent Oracle watch",
+ "description": "Arm your agent to automatically act on Oracle conviction signals. Once armed, the Oracle cron (every 2 min) will detect high-conviction launches that cross your floor and execute buys from your agent's custodial Solana wallet. Set mode='simulate' (default, safe) to log what it would have bought without spending. Set mode='live' to spend real SOL. The agent acts at most once per mint, per-trade SOL is capped, and you can disarm at any time by passing armed=false.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4263,8 +4265,8 @@
},
{
"name": "oracle_coin",
- "title": null,
- "description": null,
+ "title": "Oracle verdict for one coin",
+ "description": "Get Oracle's full conviction verdict for a specific pump.fun coin by mint address. Returns the fused 0–100 conviction score, tier (prime/strong/lean/watch/avoid), all four pillar scores (pedigree = who's behind it, structure = how it's built, narrative = cultural fit, momentum = early trading signal), active badges (e.g. smart_money_early, narrative_match), and a machine-readable buy/watch/skip recommendation. If the coin isn't in the Oracle cache yet, it will be scored on-demand (may add ~1s latency).",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4287,8 +4289,8 @@
},
{
"name": "oracle_top_plays",
- "title": null,
- "description": null,
+ "title": "Oracle top conviction plays",
+ "description": "Get the current top pump.fun launches ranked by Oracle conviction score. Each play includes a score (0–100), tier (prime/strong/lean/watch/avoid), four pillar scores (pedigree/structure/narrative/momentum), and an agent-ready recommendation with a suggested size_factor. Use this to decide which coins to buy before they move. Filter by min_score or category to narrow the signal.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4311,8 +4313,8 @@
},
{
"name": "oracle_watch_status",
- "title": null,
- "description": null,
+ "title": "Oracle watch status + track record",
+ "description": "Check your agent's current Oracle watch configuration and its realized track record: win rate, PnL, ROI, plus the 10 most recent actions with their outcomes. Use this to verify the agent is armed correctly and to review its performance before scaling up.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4335,8 +4337,8 @@
},
{
"name": "pumpfun_creator_intel",
- "title": null,
- "description": null,
+ "title": "Pump.fun creator intel",
+ "description": "Reputation profile for a pump.fun creator wallet: prior launches, graduation rate, claim activity, and behavioural trust signals.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4359,8 +4361,8 @@
},
{
"name": "pumpfun_recent_claims",
- "title": null,
- "description": null,
+ "title": "Recent pump.fun claims",
+ "description": "Fetch the most recent pump.fun GitHub social-fee claim events with full enrichment: GitHub profile, X/Twitter follower data, influencer tier, first-time-claim flag, fake-claim detection, and AI summary. Use to answer 'what's happening on pump.fun right now?'.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4383,8 +4385,8 @@
},
{
"name": "pumpfun_recent_graduations",
- "title": null,
- "description": null,
+ "title": "Recent pump.fun graduations",
+ "description": "Tokens that recently graduated from the bonding curve to PumpAMM, with creator + holder analysis.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4407,8 +4409,8 @@
},
{
"name": "pumpfun_token_intel",
- "title": null,
- "description": null,
+ "title": "Pump.fun token intel",
+ "description": "Full intel on a pump.fun token: graduation status, bonding-curve progress, creator profile, top holders, volume, bundle detection, and trust signals.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4431,8 +4433,8 @@
},
{
"name": "recall",
- "title": null,
- "description": null,
+ "title": "Recall",
+ "description": "Retrieve the most relevant memories for a query from one of your agents. Ranks by relevance to the query blended with salience and recency, excluding expired memories. Returns an ordered list.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4455,8 +4457,8 @@
},
{
"name": "register_agent",
- "title": null,
- "description": null,
+ "title": "Register an agent on-chain",
+ "description": "Mint one of your agents' on-chain digital identity. On Solana (chain:solana) this enrols the agent in the Metaplex Agent Registry server-custodially — three.ws signs and pays, your wallet never has to — and returns the Agent Identity PDA, registration URI, and explorer link. On Base (chain:base) ERC-8004 registration needs your browser wallet to sign, so this returns a prepared registration_json plus a continue_url to finish in the browser. Idempotent: an already-registered agent is returned as-is unless force:true. Requires a signed-in three.ws account.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4479,8 +4481,8 @@
},
{
"name": "remember",
- "title": null,
- "description": null,
+ "title": "Remember",
+ "description": "Store a long-term memory for one of your agents. Use for durable facts: who the user is (type=user), guidance/corrections (feedback), ongoing work (project), or external pointers (reference). Returns the stored memory.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4503,8 +4505,8 @@
},
{
"name": "render_avatar",
- "title": null,
- "description": null,
+ "title": "Render avatar",
+ "description": "Produce an HTML <model-viewer> snippet that renders the given avatar. Return this text as an inline HTML artifact to display an interactive 3D avatar.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4527,8 +4529,8 @@
},
{
"name": "render_avatar_image",
- "title": null,
- "description": null,
+ "title": "Render an avatar to an image",
+ "description": "Render a stored avatar to a real PNG/JPEG/WebP image (headless three.js) and return its URL — ready for an <img> tag, social card, or game loader. Choose a camera framing (scene), an optional pose preset and ARKit-52 expression. Renders are cached, so repeat calls with the same parameters return instantly. Works on your own avatars (any visibility) and on public avatars.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4551,8 +4553,8 @@
},
{
"name": "search_public_avatars",
- "title": null,
- "description": null,
+ "title": "Search public avatars",
+ "description": "Search the public avatar gallery. Useful for finding characters to render without prior knowledge of an id.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4575,8 +4577,8 @@
},
{
"name": "solana_agent_attestations",
- "title": null,
- "description": null,
+ "title": "List Solana agent attestations",
+ "description": "List recent on-chain attestations about a Solana-registered agent (feedback, validation, task offers, acceptances, disputes). Backed by the three.ws indexer for sub-100ms reads. Each row includes verified/disputed/revoked flags. Public; no auth required.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4599,8 +4601,8 @@
},
{
"name": "solana_agent_passport",
- "title": null,
- "description": null,
+ "title": "Get Solana agent passport",
+ "description": "Full discovery card for a Solana agent: identity (Metaplex Core asset), owner wallet, reputation summary, latest validation result, and attestation schema endpoint. Equivalent to an ERC-8004 passport — use this when one tool call should answer \"who is this agent and can I trust them?\".",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4623,8 +4625,8 @@
},
{
"name": "solana_agent_reputation",
- "title": null,
- "description": null,
+ "title": "Get Solana agent reputation",
+ "description": "Computed reputation summary for a Solana-registered three.ws agent. Returns total/verified feedback counts, score averages (raw + verified-only), validation pass/fail, task acceptance, and dispute counts. Verified score only includes feedback whose task was acknowledged on-chain by the agent owner. Priced at $0.001 USDC/call via x402 (pay-per-call; an OAuth bearer token bypasses payment).",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4647,8 +4649,8 @@
},
{
"name": "text_to_animation",
- "title": null,
- "description": null,
+ "title": "Generate an animation from a text prompt and retarget it onto a model",
+ "description": "Generate a brand-new motion from a natural-language prompt (e.g. \"waving confidently\", \"a slow tai-chi sweep\") with a motion-diffusion model, then retarget it onto a caller-supplied rigged humanoid GLB — the same retarget engine apply_animation uses. Returns the retargeted three.js AnimationClip JSON (or a baked animated GLB) plus a report. Unlike preset libraries, the motion does not pre-exist: it is synthesized for the prompt. Requires the text2motion worker configured on the deployment.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4671,8 +4673,8 @@
},
{
"name": "token_snapshot",
- "title": null,
- "description": null,
+ "title": "Crypto token snapshot",
+ "description": "One-call snapshot for a Solana token mint, fanning out to whichever free crypto-data providers are registered on this deployment (DexScreener pairs, Jupiter price, Solana RPC supply) and merging what answers — degrades gracefully around any provider that is absent, unconfigured, or fails, never throwing on a partial result. Example mint: the $THREE CA \"FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump\". For pump.fun-specific bonding-curve / launch data use the pump_snapshot tool instead — this tool covers general market data.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4695,8 +4697,8 @@
},
{
"name": "trader_leaderboard",
- "title": null,
- "description": null,
+ "title": "Top pump.fun traders",
+ "description": "Get the top pump.fun traders on three.ws ranked by composite TraderScore (win rate + P&L + ROI + drawdown). Each row includes score (0–100), verified badge, closed trade count, win rate, realized P&L in SOL and USD, ROI %, max drawdown, and a 'recommendation' field: 'copy' = strong candidate, 'watch' = emerging, 'skip' = unproven. Use trader_profile to get full details before copying. Sort by 'score' (default), 'pnl', 'winrate', or 'roi'. Window: '24h', '7d', '30d' (default), or 'all'.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4719,8 +4721,8 @@
},
{
"name": "trader_profile",
- "title": null,
- "description": null,
+ "title": "Full track record for one agent",
+ "description": "Get the full, verifiable track record for a specific pump.fun agent trader. Returns the composite TraderScore, all headline metrics (win rate, realized P&L, ROI, profit factor, max drawdown, average hold time), up to 10 recent closed trades with their on-chain Solscan links, and any open positions. Every number is traceable to its on-chain buy/sell transaction. Use this to vet an agent before calling copy_subscribe.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4743,8 +4745,8 @@
},
{
"name": "validate_model",
- "title": null,
- "description": null,
+ "title": "Validate glTF/GLB model",
+ "description": "Run the Khronos glTF-Validator against a remote GLB or glTF URL. Returns a structured report of errors, warnings, infos, and hints — the authoritative answer to \"is this file spec-compliant?\". SSRF-hardened: only public https URLs are fetched.",
"server": {
"id": "three.ws",
"title": "three.ws",
@@ -4767,8 +4769,8 @@
},
{
"name": "anchor_provenance",
- "title": null,
- "description": null,
+ "title": "Anchor a signed content credential for a 3D model",
+ "description": "Issue a signed content credential for a generated 3D model (GLB) and anchor its hash on Solana, so anyone can later verify authenticity and tampering for free with verify_provenance. Records creator, prompt, model/provider, lineage, timestamp, and the GLB content hash. Real signature, real on-chain anchor.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -4791,8 +4793,8 @@
},
{
"name": "auto_rig_model",
- "title": null,
- "description": null,
+ "title": "Auto-rig a static 3D model (skeleton + skin weights)",
+ "description": "Turn a static GLB mesh into an animation-ready character: adds a humanoid skeleton and per-vertex skin weights via the three.ws rig pipeline. Pairs with text_to_3d / image_to_3d — generate a mesh, then rig it, then drive it with apply_animation or pose_model. Returns a job_id; poll generation_status for the rigged GLB.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -4815,8 +4817,8 @@
},
{
"name": "capture_scene",
- "title": null,
- "description": null,
+ "title": "Reconstruct a 3D scene from a video",
+ "description": "Turn a video of a real space (a room, a street, an object walkaround) into an explorable 3D point cloud. A feed-forward streaming reconstructor (LingBot-Map) grounds coordinates, reads dense geometry, and corrects drift across the whole clip, then returns a coloured .ply point cloud. Pass a public https video URL (mp4/mov/webm). Returns a job_id — poll generation_status; when finished it returns the point-cloud URL and an inline viewer artifact. Best with steady, well-lit footage that orbits or walks through the space. This is geometry capture of a REAL scene — distinct from text_to_3d/image_to_3d, which synthesize a single object mesh.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -4839,8 +4841,8 @@
},
{
"name": "create_agent_persona",
- "title": null,
- "description": null,
+ "title": "Mint a persistent, living agent persona from a rigged GLB",
+ "description": "Turn a generated GLB into a NAMED, persistent agent body — a \"persona\" the agent reuses across turns and across sessions. The mesh is copied into durable storage so the body survives the provider URL expiring, then registered under a stable persona_id. The returned text/html resource renders the LIVING body inline: it idles between turns, and persona_say makes it lip-sync and emote a reply. The persona_id is the capability — keep it and pass it to get_agent_persona or persona_say later to bring the exact same body back. No sign-in required.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -4863,8 +4865,8 @@
},
{
"name": "direct_prompt",
- "title": null,
- "description": null,
+ "title": "Optimize a rough idea into a 3D-generation prompt (IBM Granite)",
+ "description": "Rewrite a rough idea into an optimized text_to_3d prompt using IBM Granite. Returns one clean single-subject description plus structured directives (subject, style, materials, colors, detail) that produce cleaner meshes. Run before text_to_3d when a prompt is vague, conflicting, or multi-subject. Requires IBM watsonx.ai credentials on the server.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -4887,8 +4889,8 @@
},
{
"name": "export_ar",
- "title": null,
- "description": null,
+ "title": "Export a model for AR (\"View in your space\")",
+ "description": "Turn a generated 3D model (GLB URL) into a one-tap \"View in your space\" AR experience. Returns a device-aware AR launch link (iOS Quick Look, Android Scene Viewer, desktop WebGL — branched on the viewer's device), the interactive viewer link, and a conformant Spatial MCP artifact with the AR handoff populated. Use it after generating a model so the user can place it on their desk through their phone. For a rigged avatar (an agent's body) pass kind:\"avatar\": the response then also carries irlUrl, a living-agent link that walks, animates, and talks with the user through their camera in their real room.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -4911,8 +4913,8 @@
},
{
"name": "generate_material",
- "title": null,
- "description": null,
+ "title": "Generate a glTF PBR material from a description (IBM Granite)",
+ "description": "Generate a physically-based (PBR) glTF 2.0 material from a text description using IBM Granite — base color, metallic, roughness, and emissive factors. Returns a pbrMetallicRoughness material object you can attach to a generated mesh. Requires IBM watsonx.ai credentials on the server.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -4935,8 +4937,8 @@
},
{
"name": "generation_status",
- "title": null,
- "description": null,
+ "title": "Check a 3D generation job",
+ "description": "Poll a text_to_3d or image_to_3d job by its job_id. While running it reports the status; when finished it returns the GLB download URL and an inline <model-viewer> artifact — display that text/html resource as an interactive 3D artifact.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -4959,8 +4961,8 @@
},
{
"name": "get_agent_persona",
- "title": null,
- "description": null,
+ "title": "Reload a persisted persona by id (continuity across sessions)",
+ "description": "Bring back a previously minted persona by its persona_id — the SAME body and identity, in a fresh session. Returns the persona name, its GLB, accumulated turn count, and the inline living-body artifact. Use this at the start of a conversation when the user returns to a named agent.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -4983,8 +4985,8 @@
},
{
"name": "image_to_3d",
- "title": null,
- "description": null,
+ "title": "Reconstruct a 3D model from one or more images",
+ "description": "Reconstruct a textured 3D model (GLB) from a reference image using the three.ws image engine. Pass a single image_url, or image_urls (2–4 views of the SAME object from different angles — front/back/left/right) for multi-view reconstruction, which removes the back-of-object hallucination of single-image reconstruction. Returns a job_id to poll with generation_status, plus how many views were fused and which engine handled it. The cleaner the inputs — one subject, plain background, even lighting — the better the mesh.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -5021,8 +5023,8 @@
},
{
"name": "persona_identity",
- "title": null,
- "description": null,
+ "title": "Read a persona's on-chain identity — wallet, reputation, holdings",
+ "description": "Read a persona's real on-chain identity: its deterministic Solana wallet address, live SOL/USDC balance, ERC-8004-style reputation (verified feedback + validation record), token holdings, and a resolved SNS nameplate if it holds a verified .sol name. Also returns the visual tiers (reputation tier, holdings tier, muted-balance flag, verified name) the embodiment viewer maps onto the body — aura, cosmetic, muted state, nameplate. Every persona has a wallet the moment it exists; a fresh persona legitimately reads as zero balance / unranked reputation until it is funded or interacted with. No sign-in required.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -5045,8 +5047,8 @@
},
{
"name": "persona_say",
- "title": null,
- "description": null,
+ "title": "Speak a reply through a persona — lip-sync + emotion + gesture",
+ "description": "Make a persona PERFORM a reply: the body lip-syncs the text and shows the matching expression and body gesture. Pass the persona_id and the exact text the agent is saying this turn; the emotion is detected from the text automatically (or override it). The returned text/html resource animates the body for this turn — display it alongside the spoken reply. This is the turn-by-turn embodiment hook.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -5069,8 +5071,8 @@
},
{
"name": "persona_send",
- "title": null,
- "description": null,
+ "title": "Send USDC from a persona's own wallet",
+ "description": "Send USDC FROM a persona's own wallet to a destination Solana address — the general-purpose value op behind persona-initiated payments (settling a hire, paying an invoice, funding another wallet). Real, irreversible on-chain settlement, hard-capped at $${…}/call and $${…} cumulative per session. Amounts over $${…} require confirm:true. USDC is the only settlement asset here — any other mint is out of scope for this tool.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -5093,8 +5095,8 @@
},
{
"name": "persona_tip",
- "title": null,
- "description": null,
+ "title": "Tip USDC from a persona's own wallet",
+ "description": "Send a small USDC tip FROM a persona's own wallet to a destination Solana address — e.g. tipping another agent for a good answer or hiring result. Real, irreversible on-chain settlement, hard-capped at $${…}/call and $${…} cumulative per session. Amounts over $${…} require confirm:true. Fails cleanly with the exact reason (insufficient balance, over cap, confirmation required) — never a silent no-op.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -5117,8 +5119,8 @@
},
{
"name": "pose_model",
- "title": null,
- "description": null,
+ "title": "Resolve a text prompt to a pose-studio seed + joint rotations",
+ "description": "Map a natural-language pose description to a deterministic pose-studio seed and the full Euler joint-rotation map for the three.ws humanoid mannequin, picked from the in-repo preset library. Returns the preset id, the complete pose (radians per joint), a stable seed, and a previewUrl on three.ws/pose. Deterministic and free — the same prompt always yields the same pose. Pair with auto_rig_model to pose a rigged character.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -5141,8 +5143,8 @@
},
{
"name": "preview_3d",
- "title": null,
- "description": null,
+ "title": "Preview any GLB as an interactive 3D artifact",
+ "description": "Render any public GLB URL as an inline <model-viewer> HTML artifact — orbit controls, AR on mobile, auto-rotate. Display the returned text/html resource as an inline 3D artifact. Use it to view a generated model, or any GLB on the web.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -5165,8 +5167,8 @@
},
{
"name": "remesh_model",
- "title": null,
- "description": null,
+ "title": "Remesh, simplify, repair, or convert a 3D model",
+ "description": "Process an existing GLB/OBJ/STL/PLY mesh: fix holes and degenerate geometry, reduce face count via quadric decimation, or convert to a different format (including FBX with skeleton for Unity/Unreal — a convert of a rigged GLB keeps its bones, skin weights, and blendshapes). Returns a clean GLB (or the requested format) job_id to poll with generation_status.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -5189,8 +5191,8 @@
},
{
"name": "remove_background",
- "title": null,
- "description": null,
+ "title": "Remove the background from an image",
+ "description": "Strip the background from a photo or illustration with the three.ws background-removal engine. Returns a PNG with a transparent background — useful for preparing clean inputs before image_to_3d reconstruction.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -5213,8 +5215,8 @@
},
{
"name": "retexture_model",
- "title": null,
- "description": null,
+ "title": "Paint a new texture onto a 3D model from a text prompt",
+ "description": "Generate a fresh texture for an untextured or poorly-textured GLB with the three.ws depth-guided multi-view texturing engine. Renders the mesh from 8 viewpoints, generates coherent texture views guided by your prompt, and back-projects them onto the UV atlas. Returns a job_id to poll with generation_status.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -5237,8 +5239,8 @@
},
{
"name": "retexture_region",
- "title": null,
- "description": null,
+ "title": "Repaint one masked region of a model's texture (magic brush)",
+ "description": "Surgically repaint ONLY a region of an existing texture from a prompt and/or colour, leaving the rest of the surface untouched and feathering the seam so the edit is invisible. Real UV-space texture inpainting — fix a seam, recolour one panel, add a logo to a chest plate. Supply mask_url: a UV-space mask PNG in the model's own UV layout where WHITE marks the area to repaint and black is preserved. Safe to run repeatedly — chain passes by feeding the previous result GLB back in as mesh_url. Returns a job_id to poll with generation_status.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -5261,8 +5263,8 @@
},
{
"name": "save_avatar",
- "title": null,
- "description": null,
+ "title": "Save a generated GLB as a durable, named avatar",
+ "description": "Persist a generated GLB (e.g. the glb_url returned by generation_status) as a durable avatar in your three.ws library. The mesh is copied into our own storage so it survives the provider URL expiring, then registered as a named avatar you own. Returns avatar_id, slug, model_url, and a view_url. This is the bridge from the studio to the avatar system: after saving, get_avatar, render_avatar_image, embeds, and on-chain identity all work on the result. Requires you to be signed in.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -5285,8 +5287,8 @@
},
{
"name": "segment_model",
- "title": null,
- "description": null,
+ "title": "Split a 3D model into named, separable parts",
+ "description": "Segment a GLB/OBJ/STL/PLY mesh into meaningful parts with clean boundaries — head/torso/limbs on a character, body/wheels on a vehicle. Splits at physically disconnected shells and at concave creases (the minima rule), then names each part by region and tints it a distinct colour. Returns a GLB whose nodes ARE the parts (so each can be hidden, recoloured, replaced, or exported on its own) plus a parts manifest. Poll with generation_status; the result lists every part with its id, name, face count, and colour. Pass only_part to export a single part on its own.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -5309,8 +5311,8 @@
},
{
"name": "stylize_model",
- "title": null,
- "description": null,
+ "title": "Apply a one-click geometric stylization filter to a 3D model",
+ "description": "Transform any GLB/OBJ/STL/PLY mesh into a stylized variant with a single geometry pass — no model inference, fast and cheap. Styles: \"voxel\" (blocky cubes on a grid), \"brick\" (voxels + studs, LEGO-like), \"voronoi\" (open strut-and-node lattice shell), \"lowpoly\" (decimated + hard flat-shaded facets). Source color is preserved where the style allows. Returns a job_id to poll with generation_status; typically completes in 10–40 seconds.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -5333,8 +5335,8 @@
},
{
"name": "text_to_3d",
- "title": null,
- "description": null,
+ "title": "Generate a 3D model from a text prompt",
+ "description": "Turn a text description into a textured 3D model (GLB). Runs a fast text-to-image pass, then reconstructs a mesh from that image with the three.ws image engine. Returns a job_id (poll with generation_status) plus the intermediate preview image. Best results: a single, clearly described object — \"a worn leather armchair\", \"a low-poly red fox\", \"a sci-fi helmet\".",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -5371,8 +5373,8 @@
},
{
"name": "validate_spatial_response",
- "title": null,
- "description": null,
+ "title": "Validate a Spatial MCP 3D artifact",
+ "description": "Check whether a structured-content payload conforms to the open Spatial MCP artifact shape — the standard for returning a live, interactive 3D scene as a first-class MCP tool result (scene GLB, camera, environment, animation, AR handoff, interaction affordances). Returns valid/invalid plus actionable errors and warnings (each naming the field and the fix), not just a boolean. Spec version ${…}. Use it to conform a third-party 3D tool result to the shape so any Spatial-MCP renderer can display it.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -5395,8 +5397,8 @@
},
{
"name": "verify_provenance",
- "title": null,
- "description": null,
+ "title": "Verify a 3D model authenticity (content credential)",
+ "description": "Verify whether a 3D model (GLB) carries a genuine three.ws content credential and was not tampered with. Recomputes the model’s content hash, checks the signed credential and its on-chain anchor, and returns verified, tampered, or unknown — with who created it, from what prompt, by which model, and when. Free and public: no account, no payment. Pass glb_url (an https .glb) or a known content hash.",
"server": {
"id": "threews-3d-studio",
"title": "3D Studio",
@@ -5419,8 +5421,8 @@
},
{
"name": "check_job",
- "title": null,
- "description": null,
+ "title": "Check a pending 3D generation",
+ "description": "Check on a 3D generation that returned status \"pending\" and collect the finished model. Pass the job_id from the pending result. While it is still rendering you get updated timing; call again after the suggested wait. When it is done the model renders inline in the interactive 3D viewer.",
"server": {
"id": "threews-3d-studio-free",
"title": "3D Studio (free)",
@@ -5443,8 +5445,8 @@
},
{
"name": "forge_avatar",
- "title": null,
- "description": null,
+ "title": "Generate a rigged, animation-ready avatar",
+ "description": "Generate a rigged, animation-ready 3D avatar (GLB) from a single text prompt or a reference image — in one step. Generates the mesh, then auto-rigs it with a humanoid skeleton so it is ready to pose and animate. Best for characters; objects are steered to the mesh generator. Renders inline in an interactive 3D viewer.",
"server": {
"id": "threews-3d-studio-free",
"title": "3D Studio (free)",
@@ -5467,8 +5469,8 @@
},
{
"name": "forge_free",
- "title": null,
- "description": null,
+ "title": "Generate a 3D model from text",
+ "description": "Turn a text prompt into a textured, downloadable 3D model (GLB) — free. Describe a single object, character, or creature; the studio generates an interactive model you can rotate, view, and download. Optional quality tier (draft, standard, high); high is slower and may fall back to standard under load. Renders inline in an interactive 3D viewer.",
"server": {
"id": "threews-3d-studio-free",
"title": "3D Studio (free)",
@@ -5491,8 +5493,8 @@
},
{
"name": "mesh_forge",
- "title": null,
- "description": null,
+ "title": "Generate a 3D mesh (art-directed)",
+ "description": "Generate a textured 3D mesh (GLB) from a text prompt or a reference image URL. In text mode an AI art-director first refines your prompt into an optimized single-subject spec for higher mesh quality. Renders inline in an interactive 3D viewer.",
"server": {
"id": "threews-3d-studio-free",
"title": "3D Studio (free)",
@@ -5515,8 +5517,8 @@
},
{
"name": "refine_model",
- "title": null,
- "description": null,
+ "title": "Refine a 3D model by describing a change",
+ "description": "Iterate on a model you already generated — just describe the change in words (\"make it metallic\", \"bigger helmet\", \"add wings\"). The studio re-generates a new version anchored to the previous one, carrying its form and materials forward. Pass the previous model's glb_url and, when you have it, the prompt that made it (parent_prompt) so the change builds on it. Each refinement is recorded as a new version in a lineage you can revert to or branch from — the returned lineage drives a version strip in the viewer. Renders the new version inline in the interactive 3D viewer.",
"server": {
"id": "threews-3d-studio-free",
"title": "3D Studio (free)",
@@ -5539,8 +5541,8 @@
},
{
"name": "rig_mesh",
- "title": null,
- "description": null,
+ "title": "Rig a 3D model for animation",
+ "description": "Auto-rig a static 3D model (GLB) into an animation-ready model: adds a humanoid skeleton and skin weights so it can be posed and animated. Provide the GLB URL of a model (e.g. one generated by the other tools). Renders the rigged result inline in an interactive 3D viewer.",
"server": {
"id": "threews-3d-studio-free",
"title": "3D Studio (free)",
@@ -5563,8 +5565,8 @@
},
{
"name": "text_to_avatar",
- "title": null,
- "description": null,
+ "title": "Generate a 3D avatar",
+ "description": "Generate a textured 3D avatar (GLB) from a text description or a reference image URL. Best for characters and figures. Renders inline in an interactive 3D viewer.",
"server": {
"id": "threews-3d-studio-free",
"title": "3D Studio (free)",
@@ -5587,8 +5589,8 @@
},
{
"name": "find_services",
- "title": null,
- "description": null,
+ "title": "Find paid services the agent can call",
+ "description": "Search the live x402 facilitator network for paid services (HTTP APIs and MCP tools). Returns each match with its price and resource URL — feed a resource into pay_and_call to actually use it.",
"server": {
"id": "threews-agent",
"title": "Agent Wallet",
@@ -5611,8 +5613,8 @@
},
{
"name": "monetize_endpoint",
- "title": null,
- "description": null,
+ "title": "Publish a paid endpoint to earn USDC",
+ "description": "Put a price on an upstream API your agent already serves and publish it as an x402 endpoint other agents can pay to call. three.ws hosts the paywall, settles each buyer's USDC to your agent's own wallet, and proxies the call to your target_url. The listing becomes discoverable via find_services / the bazaar and callable by pay_and_call. Requires a provisioned wallet for the chosen network — run provision_wallet first if you haven't. Requires sign-in; you can only monetize agents on your own account.",
"server": {
"id": "threews-agent",
"title": "Agent Wallet",
@@ -5635,8 +5637,8 @@
},
{
"name": "pay_and_call",
- "title": null,
- "description": null,
+ "title": "Pay an x402 service and return its result",
+ "description": "Call a paid x402 endpoint and settle the USDC payment automatically from the signed-in user's three.ws agent wallet, bounded by spending caps. Returns the service's response. Requires sign-in. If the per-call price exceeds max_usd (or the caps), the call is refused before any money moves.",
"server": {
"id": "threews-agent",
"title": "Agent Wallet",
@@ -5659,8 +5661,8 @@
},
{
"name": "provision_wallet",
- "title": null,
- "description": null,
+ "title": "Create the agent's wallet",
+ "description": "Create (or return) the custodial Solana wallet for one of your agents so it can hold and earn USDC. Idempotent — if the agent already has a wallet, its address and live SOL/USDC balances are returned unchanged. On devnet you can request a 1 SOL airdrop for testing; mainnet wallets are never airdropped. Requires sign-in; you can only provision wallets for agents on your own account.",
"server": {
"id": "threews-agent",
"title": "Agent Wallet",
@@ -5683,8 +5685,8 @@
},
{
"name": "wallet_status",
- "title": null,
- "description": null,
+ "title": "Check the agent's wallet",
+ "description": "Show the signed-in user's three.ws agent wallet: address, SOL and USDC balance, the per-call/hour/day spending caps, and whether autonomous spending is enabled. Read-only — never moves funds. Call this before pay_and_call to confirm there's balance and headroom.",
"server": {
"id": "threews-agent",
"title": "Agent Wallet",
@@ -5708,7 +5710,7 @@
{
"name": "get_bonding_curve",
"title": null,
- "description": null,
+ "description": "Bonding curve analysis: real reserves, virtual reserves, and graduation progress (on-chain). Pre-graduation only: these reserves come from the pump program bonding-curve account, not from a PumpSwap pool. Pump renamed the quote-side fields on-chain (real_sol_reserves -> real_quote_reserves, virtual_sol_reserves -> virtual_quote_reserves) once a non-SOL quote asset became possible; the response keys below keep their original names and are still denominated in SOL, because the curve quote_mint is the SOL default on every coin created to date. Once complete=true the curve is retired and pricing moves to the PumpSwap pool, so use pumpfun_quote_swap from that point on.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -5732,7 +5734,7 @@
{
"name": "get_coin_intel",
"title": null,
- "description": null,
+ "description": "Full Coin Intelligence snapshot for a pump.fun mint. Returns every signal the engine recorded during the observation window: bundle vs organic verdict, bubblemaps-style cluster connectivity, smart-money presence (with wallet labels and win-rates), dev behaviour, category/classification, news-meme detection with the matching headline, risk flags, and a 0–100 quality score. Also returns the outcome if the coin is old enough to be labeled (graduated/rugged/ATH multiple). This is the single highest-signal read for a trade decision — call this before entering any position.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -5756,7 +5758,7 @@
{
"name": "get_creator_profile",
"title": null,
- "description": null,
+ "description": "All tokens by a creator wallet, with rug-pull risk flags.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -5780,7 +5782,7 @@
{
"name": "get_graduated_tokens",
"title": null,
- "description": null,
+ "description": "Tokens that graduated from the bonding curve to Raydium AMM.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -5804,7 +5806,7 @@
{
"name": "get_king_of_the_hill",
"title": null,
- "description": null,
+ "description": "Highest-market-cap token still on the bonding curve.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -5828,7 +5830,7 @@
{
"name": "get_new_tokens",
"title": null,
- "description": null,
+ "description": "Most recently launched pump.fun tokens.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -5852,7 +5854,7 @@
{
"name": "get_oracle_conviction",
"title": null,
- "description": null,
+ "description": "Oracle conviction score for a pump.fun mint: the fused 0-100 score the Oracle engine produces by combining four intelligence pillars: pedigree (who bought it), structure (organic vs bundle, holder concentration, bubblemaps connectivity), narrative (category, meme virality, news hook), and momentum (timing, velocity). Returns the tier (prime ≥86 / strong ≥72 / lean ≥54 / watch ≥36 / avoid), the per-pillar breakdown, the natural-language reasons that drove the score, the full \"who's in\" trader roster with reputation labels and win-rates, and the narrative read (category, virality, tags). Call this when you need the highest-confidence trade signal; it synthesises everything get_coin_intel exposes into one actionable score. Pairs with get_coin_intel for raw signals.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -5876,7 +5878,7 @@
{
"name": "get_token_details",
"title": null,
- "description": null,
+ "description": "Full details for a specific pump.fun token by mint address.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -5900,7 +5902,7 @@
{
"name": "get_token_holders",
"title": null,
- "description": null,
+ "description": "Top holders of a token with concentration analysis (on-chain).",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -5924,7 +5926,7 @@
{
"name": "get_token_trades",
"title": null,
- "description": null,
+ "description": "Recent buy/sell history for a token.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -5948,7 +5950,7 @@
{
"name": "get_trending_tokens",
"title": null,
- "description": null,
+ "description": "Top pump.fun tokens by market cap.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -5972,7 +5974,7 @@
{
"name": "kol_leaderboard",
"title": null,
- "description": null,
+ "description": "Top KOL traders ranked by P&L for a given time window. Returns wallet, pnlUsd, winRate, trades, rank.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -5996,7 +5998,7 @@
{
"name": "pumpfun_bot_status",
"title": null,
- "description": null,
+ "description": "Returns the configuration and health status of the pump.fun indexer backend. Always available — does not require PUMPFUN_BOT_URL.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -6020,7 +6022,7 @@
{
"name": "pumpfun_first_claims",
"title": null,
- "description": null,
+ "description": "First-ever pump.fun creator fee claims in a time window: a cash-out signal. Returns creators who have never claimed before, with creator wallet, mint, lamports, and timestamp.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -6044,7 +6046,7 @@
{
"name": "pumpfun_list_claims",
"title": null,
- "description": null,
+ "description": "List recent pump.fun fee-claim events for a creator wallet (on-chain, no indexer needed). Returns signature, mint, lamports, and Unix timestamp for each claim.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -6068,7 +6070,7 @@
{
"name": "pumpfun_quote_swap",
"title": null,
- "description": null,
+ "description": "Read-only price quote for a pump.fun AMM (PumpSwap) swap. No signing or tx sending. One of inputMint/outputMint must be wSOL (So11111111111111111111111111111111111111112). Only GRADUATED coins have an AMM pool; for a coin still on its bonding curve use get_bonding_curve instead. Pricing runs on the pool effective quote reserves (quote vault balance + pool.virtual_quote_reserves); the base side is the raw base vault balance. Returns amountOut, priceImpactBps, route, expiresAtMs, plus the reserves the quote was computed from so the number can be reproduced.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -6092,7 +6094,7 @@
{
"name": "pumpfun_upload_metadata",
"title": null,
- "description": null,
+ "description": "Upload coin metadata (name, symbol, description, image) to IPFS and get back a pump.fun-ready metadata URI. Call this before launching a coin — pass the returned uri to the launch-agent endpoint or the studio launch flow. Requires a valid bearer token (API key). Image may be a public HTTPS URL or a base64 data URI (max 10 MB). The returned uri is a permanent ipfs:// link; the call is idempotent for the same content.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -6116,7 +6118,7 @@
{
"name": "pumpfun_vanity_mint",
"title": null,
- "description": null,
+ "description": "Generate a Solana keypair whose address ends/starts with a vanity pattern. Returns publicKey + secretKey (base58). Caller must save the secret key immediately — it is never stored. Hard timeout: 60 s.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -6140,7 +6142,7 @@
{
"name": "pumpfun_watch_claims",
"title": null,
- "description": null,
+ "description": "Return all pump.fun fee-claim events for a creator wallet within a look-back window (durationMs). Useful for batch collection after a delay.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -6164,7 +6166,7 @@
{
"name": "pumpfun_watch_whales",
"title": null,
- "description": null,
+ "description": "Collect whale trades on a pump.fun token for a short window (max 10 s). Returns all trades whose USD value meets minUsd.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -6188,7 +6190,7 @@
{
"name": "search_tokens",
"title": null,
- "description": null,
+ "description": "Search pump.fun tokens by name, symbol, or mint address.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -6212,7 +6214,7 @@
{
"name": "sns_resolve",
"title": null,
- "description": null,
+ "description": "Resolve a .sol Solana Name Service domain to its owner wallet address.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -6236,7 +6238,7 @@
{
"name": "sns_reverseLookup",
"title": null,
- "description": null,
+ "description": "Reverse-lookup a Solana wallet address to its primary .sol domain name.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -6260,7 +6262,7 @@
{
"name": "social_cashtag_sentiment",
"title": null,
- "description": null,
+ "description": "Score social-post sentiment for a cashtag using a deterministic lexicon. Returns score (-1..1), positive/negative/neutral percentages, and example posts.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -6284,7 +6286,7 @@
{
"name": "social_x_post_impact",
"title": null,
- "description": null,
+ "description": "Correlate an X (Twitter) post to a memecoin price impact. Fetches post metadata via oEmbed (no API key) and computes price delta from the pump.fun bonding curve in a ±windowMin window around the post.",
"server": {
"id": "threews-pumpfun",
"title": "pump.fun",
@@ -6307,8 +6309,8 @@
},
{
"name": "bazaar_service_details",
- "title": null,
- "description": null,
+ "title": "Live price details for one x402 service",
+ "description": "Resolve the current live price of a single x402 service by its resource URL (and tool_name for MCP services). Returns the cheapest price across networks plus a per-network breakdown (amount in atomic units, asset, recipient) and whether the service is still listed and payable. Purpose-built for price tracking and cost-model maintenance — call it on a schedule to watch a dependency's price over time and detect hikes or drops. Use get_service instead when you also need the input/output schema and a ready pay link.",
"server": {
"id": "threews-x402-bazaar",
"title": "x402 Bazaar",
@@ -6331,8 +6333,8 @@
},
{
"name": "browse_services",
- "title": null,
- "description": null,
+ "title": "Browse the x402 bazaar",
+ "description": "List paid agent services from the live x402 facilitator network without a search query — useful for \"what can I pay for?\". Returns services with price, networks, and resource URL, cheapest filters applied.",
"server": {
"id": "threews-x402-bazaar",
"title": "x402 Bazaar",
@@ -6355,8 +6357,8 @@
},
{
"name": "get_service",
- "title": null,
- "description": null,
+ "title": "Get full details for one x402 service",
+ "description": "Resolve a single x402 service by its resource URL (and tool_name for MCP services). Returns the exact payment requirements (price, asset, network, recipient), the input/output schema, and a ready-to-use pay link on three.ws. This is what you read before paying.",
"server": {
"id": "threews-x402-bazaar",
"title": "x402 Bazaar",
@@ -6379,8 +6381,8 @@
},
{
"name": "search_services",
- "title": null,
- "description": null,
+ "title": "Search the x402 bazaar",
+ "description": "Ranked search across the live x402 facilitator network for paid agent services (APIs and MCP tools you can pay for in stablecoin). Returns matching services with price, networks, and resource URL. Use get_service for full payment + input details.",
"server": {
"id": "threews-x402-bazaar",
"title": "x402 Bazaar",
@@ -6403,8 +6405,8 @@
},
{
"name": "close_session",
- "title": null,
- "description": null,
+ "title": "Close a tutoring session (finalize invoice)",
+ "description": "Finalize a Pay-As-You-Learn tutoring session and return its itemized, attested invoice. Seals the ledger for the given sessionId: status flips to \"closed\", a SHA-256 attestation is stamped over the line items and total, and no further questions can be billed to this session afterward. Returns sessionId, createdAt, closedAt, questionCount, the full lineItems array, the totalAtomics / totalUsd owed, and the attestation hash. Closing itself is FREE and moves no funds — the learner was already charged per answered question; this only produces the final receipt. Idempotent: closing an already-closed session returns the same total. Use load_session first if you want to review the tab before sealing it.",
"server": {
"id": "tutor-mcp",
"title": "@three-ws/tutor-mcp",
@@ -6427,8 +6429,8 @@
},
{
"name": "load_session",
- "title": null,
- "description": null,
+ "title": "Load a tutoring session ledger",
+ "description": "Read the running tab for a Pay-As-You-Learn tutoring session by its sessionId. Returns the itemized ledger: one lineItem per answered question (question text, level, output tokens, per-item cost in USDC atomics and a \"$x.xxxxxx\" string, and the timestamp), plus the session status (\"open\" | \"closed\"), questionCount, and the running totalAtomics / totalUsd. If the session was already closed it also returns the finalized, attested invoice. A sessionId with no stored history returns an empty open session (questionCount 0) rather than an error — that is an honest \"nothing billed yet\", not a failure. Viewing the tab is always free; this never charges the learner. Read-only live data.",
"server": {
"id": "tutor-mcp",
"title": "@three-ws/tutor-mcp",
@@ -6451,8 +6453,8 @@
},
{
"name": "vanity_appraise",
- "title": null,
- "description": null,
+ "title": "Appraise the rarity of a Solana address",
+ "description": "Appraise how rare a Solana address is: its detected vanity pattern, rarity score, rarity bits, tier, and expected grind attempts. Pure math on the Base58 address — nothing is stored. If the address has been published to the proof-of-grind gallery, the public entry is returned too. Read-only, no payment.",
"server": {
"id": "vanity-mcp",
"title": "@three-ws/vanity-mcp",
@@ -6475,8 +6477,8 @@
},
{
"name": "vanity_board",
- "title": null,
- "description": null,
+ "title": "Browse the vanity grind-bounty board",
+ "description": "Browse the public grind-bounty board: vanity-address bounties requesters have escrowed for the worker fleet to grind. Filter by status (open / all / settled), sort by recency, reward, or expiry, and paginate. Each bounty shows its pattern, USDC amount, difficulty, status, and timing. Read-only; posting a bounty is a separate x402-paid write on the HTTP API.",
"server": {
"id": "vanity-mcp",
"title": "@three-ws/vanity-mcp",
@@ -6499,8 +6501,8 @@
},
{
"name": "vanity_config",
- "title": null,
- "description": null,
+ "title": "Bounty market config: payout + asset metadata",
+ "description": "Read the grind-bounty market configuration: whether on-chain payouts are configured (can a winner actually be paid?), the settlement asset (USDC) and its decimals, which escrow networks are live (Base / Solana), the pricing band (floor + max atomics), the bounty protocol version, and the sealed-envelope scheme. Check this before posting to confirm the market can pay out. Read-only, no params.",
"server": {
"id": "vanity-mcp",
"title": "@three-ws/vanity-mcp",
@@ -6523,8 +6525,8 @@
},
{
"name": "vanity_gallery",
- "title": null,
- "description": null,
+ "title": "Browse the proof-of-grind rarity gallery",
+ "description": "Browse the public proof-of-grind gallery: rare Solana addresses people have published with a verifiable grind receipt. Sort by rarity score or recency, filter by tier, minimum pattern length, or a substring the pattern must contain, and paginate. Each entry shows the address, pattern, rarity score/bits, tier, and an explorer link. Read-only.",
"server": {
"id": "vanity-mcp",
"title": "@three-ws/vanity-mcp",
@@ -6547,8 +6549,8 @@
},
{
"name": "vanity_leaderboard",
- "title": null,
- "description": null,
+ "title": "Top grinders by USDC earned",
+ "description": "Rank the worker fleet: the top grinders by total USDC earned from winning vanity-address bounties. Each entry shows a worker id and its cumulative payout. Read-only.",
"server": {
"id": "vanity-mcp",
"title": "@three-ws/vanity-mcp",
@@ -6571,8 +6573,8 @@
},
{
"name": "vanity_open",
- "title": null,
- "description": null,
+ "title": "List claimable open bounties for workers",
+ "description": "List the open, unexpired bounties a grinding worker can race to claim — the queue worker fleets poll. Each entry carries the pattern to grind and the escrowed USDC reward; the first worker to submit a verified, sealed key wins. Read-only discovery; submitting a claim is a separate write on the HTTP API.",
"server": {
"id": "vanity-mcp",
"title": "@three-ws/vanity-mcp",
@@ -6595,8 +6597,8 @@
},
{
"name": "vanity_quote",
- "title": null,
- "description": null,
+ "title": "Quote the bounty price for a vanity pattern",
+ "description": "Quote how hard a Solana vanity address is and what to escrow for it. Give a Base58 prefix and/or suffix and get the expected attempts, rarity tier, and an honest suggested USDC bounty (atomic units) from the difficulty→price oracle. Pure function of the pattern — no wallet, no payment, fully read-only. Use this before posting a grind-bounty so you escrow a fair amount.",
"server": {
"id": "vanity-mcp",
"title": "@three-ws/vanity-mcp",
@@ -6619,8 +6621,8 @@
},
{
"name": "vanity_stats",
- "title": null,
- "description": null,
+ "title": "Live grind-bounty market totals",
+ "description": "Get live totals for the grind-bounty market: how many bounties are open, how much USDC is currently escrowed, and how much has been paid out to winning workers. A quick pulse on market activity. Read-only, no params.",
"server": {
"id": "vanity-mcp",
"title": "@three-ws/vanity-mcp",
@@ -6643,8 +6645,8 @@
},
{
"name": "analyze_image",
- "title": null,
- "description": null,
+ "title": "Analyze an image against a prompt",
+ "description": "Let the agent SEE an image and answer a question about it. Supply the image as `imageUrl` (a public https URL the vision server fetches) OR `image` (raw base64 / a data: URI), and a `prompt` describing what to extract — e.g. \"What objects are in this scene?\", \"Read the text in this screenshot\", \"Is this avatar render rigged correctly?\". Returns the model's answer as `text`, plus the `provider` and `model` that served it (a free NVIDIA NIM lane when available, an automatic paid backstop otherwise — the caller never pays). Analysis only: it does not store or mutate anything. Accepts JPEG, PNG, WebP, or GIF up to 12 MB; base64 inputs are size-checked before upload.",
"server": {
"id": "vision-mcp",
"title": "@three-ws/vision-mcp",
@@ -6667,8 +6669,8 @@
},
{
"name": "describe_image",
- "title": null,
- "description": null,
+ "title": "Describe an image in natural language",
+ "description": "Get a plain-language description of an image — ideal for alt text, captions, or a quick \"what is this?\" read when you have no specific question. Supply the image as `imageUrl` (a public https URL) OR `image` (raw base64 / data: URI). Use `detail` to pick brief / standard / detailed, and `focus` to steer the description toward something specific (e.g. \"the clothing\", \"any visible text\"). Returns the prose as `description`, plus the `provider` and `model` that served it (free NVIDIA NIM first, automatic paid backstop otherwise — the caller never pays). Read-only; accepts JPEG, PNG, WebP, or GIF up to 12 MB.",
"server": {
"id": "vision-mcp",
"title": "@three-ws/vision-mcp",
@@ -6691,8 +6693,8 @@
},
{
"name": "get_vision_status",
- "title": null,
- "description": null,
+ "title": "Vision availability + accepted formats",
+ "description": "Check whether the three.ws vision pipeline is live on the target deployment and which image formats it accepts. Returns `configured` (true when at least one VLM provider — a free NVIDIA NIM lane or the paid backstop — can serve a request) and `image_types` (the accepted MIME types). Use this before calling analyze_image / describe_image so the agent can decide whether to offer a \"describe this image\" action. No image, no key, no cost.",
"server": {
"id": "vision-mcp",
"title": "@three-ws/vision-mcp",
@@ -6715,8 +6717,8 @@
},
{
"name": "find_services",
- "title": null,
- "description": null,
+ "title": "Find paid x402 services the agent can call",
+ "description": "Search the live x402 facilitator network (PayAI + Coinbase CDP bazaar) for paid services — HTTP APIs and MCP tools. Returns each match with its price, networks, and resource URL. Pass a resource into pay_and_call to use it. Read-only.",
"server": {
"id": "x402-mcp",
"title": "@three-ws/x402-mcp",
@@ -6739,8 +6741,8 @@
},
{
"name": "inspect_endpoint",
- "title": null,
- "description": null,
+ "title": "Inspect an x402 endpoint (price + requirements, no payment)",
+ "description": "Fetch an x402 endpoint and return its 402 payment requirements — every accepted scheme, network, asset, price and pay-to address — WITHOUT paying. If the endpoint is free, returns its result instead. No signer required. Use this to learn the cost before pay_and_call.",
"server": {
"id": "x402-mcp",
"title": "@three-ws/x402-mcp",
@@ -6763,8 +6765,8 @@
},
{
"name": "pay_and_call",
- "title": null,
- "description": null,
+ "title": "Pay an x402 endpoint in USDC or $THREE and return its result",
+ "description": "Call a paid x402 endpoint and settle the payment automatically, then return the result.\n\nTwo modes:\n• Self-custodial (default): signs with SOLANA_SECRET_KEY or `secret` arg — you hold the key.\n• Session-governed: pass `session_token` (a three.ws Payment Session token) — the platform wallet signs on your behalf; the session's budget, allowlist, and per-tx cap are enforced by the platform. No private key required. Supports Solana USDC and Base USDC sessions.\n\nPay in USDC (default) or, when the endpoint advertises it, in $THREE (set token:\"three\"). Bounded by max_usd and the MAX_PAY_USD cap; refuses before any money moves if the price is over the cap. With REQUIRE_CONFIRM on, the call refuses until re-issued with confirm:true.",
"server": {
"id": "x402-mcp",
"title": "@three-ws/x402-mcp",
@@ -6787,8 +6789,8 @@
},
{
"name": "x402_wallet",
- "title": null,
- "description": null,
+ "title": "The agent's x402 spending wallet (address + balance)",
+ "description": "Show a Solana wallet's address and live SOL + USDC balance. With no `address`, derives the wallet from the configured signer (SOLANA_SECRET_KEY) — call this before pay_and_call to confirm there's USDC to spend. Read-only; never moves funds.",
"server": {
"id": "x402-mcp",
"title": "@three-ws/x402-mcp",
diff --git a/public/nav-data.js b/public/nav-data.js
index 0786c9d0e..32e6a16f2 100644
--- a/public/nav-data.js
+++ b/public/nav-data.js
@@ -623,6 +623,7 @@ export const NAV_GROUPS = [
{ title: 'Docs', href: '/docs', desc: 'SDKs + API reference' },
{ title: 'Docs World', href: '/docs/world', desc: 'Walk the docs in 3D' },
{ title: 'Tutorials', href: '/tutorials', desc: 'Step-by-step guides' },
+ { title: 'Examples', href: '/examples', desc: 'Runnable copy-paste code' },
{ title: 'Chat', href: '/chat', desc: 'Talk to your agent' },
],
},
diff --git a/public/sitemap/index.html b/public/sitemap/index.html
index 5075316cd..c6e1eb63a 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 585 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>
+ <p>All 586 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 585 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />
+ <input id="sm-filter-input" type="search" placeholder="Filter 586 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>
@@ -123,6 +123,14 @@
<span class="sm-desc">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.</span>
</a>
</li>
+ <li>
+ <a href="/docs/guards">
+ <span class="sm-new-date">Jul 30, 2026</span>
+ <span class="sm-title">Repository guards</span>
+ <span class="sm-path">/docs/guards</span>
+ <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>
@@ -163,14 +171,6 @@
<span class="sm-desc">Logos, announcement graphics, boilerplate, and usage rules for three.ws. Every asset is downloadable and current, and editorial use needs no permission.</span>
</a>
</li>
- <li>
- <a href="/watch">
- <span class="sm-new-date">Jul 29, 2026</span>
- <span class="sm-title">Generation Watch</span>
- <span class="sm-path">/watch</span>
- <span class="sm-desc">Live progress page for a running text-to-3D generation: real countdown, the painted concept art, and an automatic hand-off into the interactive viewer the moment the model is ready.</span>
- </a>
- </li>
</ul>
</section>
<nav class="sm-toc" aria-label="Sections">
@@ -2034,7 +2034,7 @@
<section class="sm-section" id="learn">
<header>
- <h2>Learn<span class="sm-count" data-count>166</span></h2>
+ <h2>Learn<span class="sm-count" data-count>167</span></h2>
<p class="sm-section-desc">Docs, tutorials, and reference.</p>
</header>
<ul class="sm-list">
@@ -3172,6 +3172,13 @@
<span class="sm-desc">Every step your avatar takes on three.ws is measured, rolled up, and ranked. The Walk Leaderboard is the public board for it: walkers ordered by distance walked, sites visited, or time on their feet, over today, this week, or all time.</span>
</a>
</li>
+ <li>
+ <a href="/docs/guards">
+ <span class="sm-title">Repository guards</span>
+ <span class="sm-path">/docs/guards</span>
+ <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-title">Tutorial · Give an Agent a Spending Envelope</span>
diff --git a/public/tutorials-manifest.js b/public/tutorials-manifest.js
index 450a03474..21ee1887a 100644
--- a/public/tutorials-manifest.js
+++ b/public/tutorials-manifest.js
@@ -40,6 +40,26 @@
previewModel: '/avatars/selfie-girl.glb',
ctaPrimary: { label: 'Open the builder', href: '/assistant' },
},
+ {
+ slug: 'first-prompt-to-3d',
+ tier: 'easy',
+ title: 'Your first prompt to 3D in ChatGPT',
+ blurb: 'Type one sentence into ChatGPT and get a real, textured 3D model back: spin it in the browser, download the GLB, and place it in your room through your phone camera. Free, no account, no API key.',
+ builds: 'A generated 3D model, viewed and placed in AR, straight from ChatGPT',
+ time: '10 min',
+ previewModel: '/animations/robotexpressive.glb',
+ ctaPrimary: { label: 'Open the 3D Studio', href: '/chatgpt' },
+ },
+ {
+ slug: 'first-prompt-to-3d',
+ tier: 'easy',
+ title: 'Your first prompt to 3D in ChatGPT',
+ blurb: 'Type one sentence into ChatGPT and get a real, textured 3D model back: spin it in the browser, download the GLB, and place it in your room through your phone camera. Free, and no three.ws account, wallet, or API key.',
+ builds: 'A generated 3D model, straight out of a ChatGPT conversation',
+ time: '5 min',
+ previewModel: '/animations/robotexpressive.glb',
+ ctaPrimary: { label: 'Open the 3D Studio', href: '/chatgpt' },
+ },
{
slug: 'text-to-3d',
tier: 'easy',
@@ -454,6 +474,16 @@
previewModel: '/avatars/cz.glb',
ctaPrimary: { label: 'See paid calls', href: '/pay/calls' },
},
+ {
+ slug: 'monetize-mcp-server',
+ tier: 'advanced',
+ title: 'Monetize an MCP server: charge per tool call',
+ blurb: '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.',
+ builds: 'A revenue-generating MCP server any assistant can buy from',
+ time: '40 min',
+ previewModel: '/animations/robotexpressive.glb',
+ ctaPrimary: { label: 'Read the deep dive', href: '/blog/monetize-mcp-server-x402-paid-tools' },
+ },
{
slug: 'agent-spending-envelope',
tier: 'advanced',
@@ -474,6 +504,16 @@
previewModel: '/animations/soldier.glb',
ctaPrimary: { label: 'Package on npm', href: 'https://www.npmjs.com/package/@three-ws/x402-server' },
},
+ {
+ slug: 'monetize-mcp-server',
+ tier: 'advanced',
+ title: 'Monetize an MCP server: charge per tool call',
+ blurb: 'Build an MCP server that charges other people’s AI agents for its tools. One free tool, one paid tool, USDC on Solana, and the verify-work-settle ordering that means a failed call never takes money.',
+ builds: 'A pay-per-call MCP server other agents can discover and buy from',
+ time: '45 min',
+ previewModel: '/animations/robotexpressive.glb',
+ ctaPrimary: { label: 'Read the example code', href: 'https://github.com/nirholas/three.ws/tree/main/examples/paid-mcp-server' },
+ },
{
slug: 'nvidia-nim-self-host',
tier: 'advanced',
diff --git a/scripts/.dw-avatar.tmp.mjs b/scripts/.dw-avatar.tmp.mjs
deleted file mode 100644
index b3d86eaff..000000000
--- a/scripts/.dw-avatar.tmp.mjs
+++ /dev/null
@@ -1,18 +0,0 @@
-import { chromium } from 'playwright';
-const browser = await chromium.launch();
-const page = await browser.newPage({ viewport: { width: 1280, height: 800 } });
-const warns = [];
-page.on('console', (m) => { const t = m.text(); if (/docs-world/i.test(t)) warns.push(m.type()+': '+t); });
-await page.goto('http://localhost:3004/docs/world', { waitUntil: 'load', timeout: 60000 });
-await page.waitForFunction(() => window.__docsWorld !== undefined, { timeout: 60000 });
-await page.waitForTimeout(6000);
-const info = await page.evaluate(() => {
- const p = window.__docsWorld.player;
- let skinned = 0, meshes = 0, bones = 0;
- p.root.traverse((n) => { if (n.isSkinnedMesh) skinned++; if (n.isMesh) meshes++; if (n.isBone) bones++; });
- return { meshes, skinnedMeshes: skinned, bones, height: +p.height.toFixed(2) };
-});
-await page.screenshot({ path: '/tmp/claude-1000/-workspaces-three-ws/2bb24e2a-01d6-4605-991f-31f1ec0d4995/scratchpad/dw-06-avatar.png' });
-await browser.close();
-console.log('player:', JSON.stringify(info));
-console.log('docs-world logs:', warns.length ? warns : 'none');
diff --git a/scripts/.dw-test.mjs b/scripts/.dw-test.mjs
deleted file mode 100644
index f99ef1515..000000000
--- a/scripts/.dw-test.mjs
+++ /dev/null
@@ -1,55 +0,0 @@
-import { chromium } from 'playwright';
-const B='http://localhost:3011';
-const SP='/tmp/claude-1000/-workspaces-three-ws/9f8558d8-4c0c-45ae-a84d-32e54541a9fe/scratchpad';
-const b=await chromium.launch({args:['--use-gl=swiftshader','--enable-unsafe-swiftshader','--no-sandbox']});
-const out=[];
-const mk=async(o={})=>{const c=await b.newContext({viewport:{width:1440,height:900},...o});const p=await c.newPage();
- const errs=[];p.on('console',m=>{if(m.type()==='error'&&!/vite|websocket/i.test(m.text()))errs.push(m.text().slice(0,160))});
- p.on('pageerror',e=>{if(!/websocket/i.test(e.message))errs.push('PAGEERR '+e.message.slice(0,160))});return {c,p,errs};};
-
-// 1. Classic docs integrity + the 3D world handoff button
-{ const {c,p,errs}=await mk();
- await p.goto(B+'/docs/',{waitUntil:'load',timeout:45000}); await p.waitForTimeout(4000);
- const r=await p.evaluate(()=>{
- const btn=[...document.querySelectorAll('a,button')].find(e=>/3d world/i.test(e.textContent||''));
- return {title:document.title, h1:(document.querySelector('h1')?.innerText||'').slice(0,70),
- sidebarLinks:document.querySelectorAll('nav a, .sidebar a, aside a').length,
- worldBtn: btn?{text:btn.textContent.trim().slice(0,30),href:btn.getAttribute('href')}:null,
- articleChars:(document.querySelector('main,article')?.innerText||'').length};
- });
- await p.screenshot({path:SP+'/classic-docs.png'});
- out.push({test:'classic docs',...r,errs}); await c.close(); }
-
-// 2. Handoff: click 3D world from a specific doc, confirm it carries the page
-{ const {c,p,errs}=await mk();
- await p.goto(B+'/docs/#forge',{waitUntil:'load',timeout:45000}); await p.waitForTimeout(3500);
- const btn=await p.$('a[href*="/docs/world"]');
- const href=btn?await btn.getAttribute('href'):null;
- out.push({test:'handoff button carries page',href,errs}); await c.close(); }
-
-// 3. Mobile 390x844 - touch controls present
-{ const {c,p,errs}=await mk({viewport:{width:390,height:844},isMobile:true,hasTouch:true,userAgent:'Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1'});
- await p.goto(B+'/docs/world',{waitUntil:'load',timeout:45000}); await p.waitForTimeout(7000);
- const r=await p.evaluate(()=>{
- const joy=document.querySelector('[class*=joy],[id*=joy],[class*=stick]');
- const overflowX=document.documentElement.scrollWidth>document.documentElement.clientWidth+2;
- return {joystick:!!joy, horizontalOverflow:overflowX, canvas:!!document.querySelector('canvas'),
- hud:(document.body.innerText||'').replace(/\s+/g,' ').slice(0,110)};
- });
- await p.screenshot({path:SP+'/dw-mobile.png'});
- out.push({test:'mobile 390px',...r,errs}); await c.close(); }
-
-// 4. Reduced motion honored
-{ const {c,p,errs}=await mk({reducedMotion:'reduce'});
- await p.goto(B+'/docs/world',{waitUntil:'load',timeout:45000}); await p.waitForTimeout(6000);
- out.push({test:'prefers-reduced-motion',canvas:await p.evaluate(()=>!!document.querySelector('canvas')),errs}); await c.close(); }
-
-// 5. Keyboard: Index chip reachable + focus visible
-{ const {c,p,errs}=await mk();
- await p.goto(B+'/docs/world',{waitUntil:'load',timeout:45000}); await p.waitForTimeout(6000);
- const seq=[];
- for(let i=0;i<8;i++){ await p.keyboard.press('Tab');
- seq.push(await p.evaluate(()=>{const a=document.activeElement;return a?((a.tagName)+':'+(a.textContent||a.getAttribute('aria-label')||'').trim().slice(0,26)):'none';})); }
- out.push({test:'keyboard tab order',seq,errs}); await c.close(); }
-await b.close();
-console.log(JSON.stringify(out,null,1));
diff --git a/scripts/.dw-verify.mjs b/scripts/.dw-verify.mjs
deleted file mode 100644
index a862f5f8d..000000000
--- a/scripts/.dw-verify.mjs
+++ /dev/null
@@ -1,17 +0,0 @@
-import { chromium } from 'playwright';
-const B='http://localhost:3011';
-const SP='/tmp/claude-1000/-workspaces-three-ws/9f8558d8-4c0c-45ae-a84d-32e54541a9fe/scratchpad';
-const b=await chromium.launch({args:['--use-gl=swiftshader','--enable-unsafe-swiftshader','--no-sandbox']});
-const out=[];
-for (const [name,vp,mob] of [['fix-mobile',{width:390,height:844},true],['fix-narrow320',{width:320,height:720},true],['fix-desktop',{width:1440,height:900},false]]) {
- const c=await b.newContext({viewport:vp,isMobile:mob,hasTouch:mob});
- const p=await c.newPage(); const errs=[];
- p.on('console',m=>{if(m.type()==='error'&&!/vite|websocket/i.test(m.text()))errs.push(m.text().slice(0,140))});
- p.on('pageerror',e=>{if(!/websocket/i.test(e.message))errs.push('PAGEERR '+e.message.slice(0,140))});
- await p.goto(B+'/docs/world',{waitUntil:'load',timeout:45000});
- await p.waitForTimeout(7000);
- const r=await p.evaluate(()=>({overflowX:document.documentElement.scrollWidth>document.documentElement.clientWidth+2, canvas:!!document.querySelector('canvas')}));
- await p.screenshot({path:`${SP}/${name}.png`});
- out.push({name,...r,errs}); await c.close();
-}
-await b.close(); console.log(JSON.stringify(out,null,1));
diff --git a/scripts/.dw-verify.tmp.mjs b/scripts/.dw-verify.tmp.mjs
deleted file mode 100644
index 440baff8f..000000000
--- a/scripts/.dw-verify.tmp.mjs
+++ /dev/null
@@ -1,67 +0,0 @@
-import { chromium } from 'playwright';
-const BASE = 'http://localhost:3004';
-const browser = await chromium.launch();
-const page = await browser.newPage({ viewport: { width: 1280, height: 800 } });
-const errors = [];
-page.on('pageerror', (e) => errors.push('pageerror: ' + e.message));
-page.on('console', (m) => {
- if (m.type() !== 'error') return;
- const t = m.text();
- if (/websocket|vite.*connect/i.test(t)) return; // codespaces HMR noise
- errors.push(t);
-});
-const out = {};
-
-await page.goto(BASE + '/docs/world', { waitUntil: 'load', timeout: 60000 });
-await page.waitForFunction(() => window.__docsWorld !== undefined, { timeout: 60000 });
-await page.waitForTimeout(3500);
-
-out.hudVisible = await page.isVisible('#dw-hud');
-out.loadingHidden = await page.isHidden('#dw-loading');
-out.pavilions = await page.evaluate(() => window.__docsWorld.world.pavilions.length);
-out.indexItems = await page.locator('.dw-index-item').count();
-await page.screenshot({ path: '/tmp/claude-1000/-workspaces-three-ws/2bb24e2a-01d6-4605-991f-31f1ec0d4995/scratchpad/dw-01-world.png' });
-
-// Open the index overlay and teleport to a section
-await page.click('#dw-index-btn');
-await page.waitForTimeout(400);
-out.indexOpen = await page.isVisible('#dw-index');
-await page.screenshot({ path: '/tmp/claude-1000/-workspaces-three-ws/2bb24e2a-01d6-4605-991f-31f1ec0d4995/scratchpad/dw-02-index.png' });
-await page.locator('.dw-index-item').first().click();
-await page.waitForTimeout(900);
-out.panelOpenAfterIndex = await page.isVisible('#dw-panel');
-out.panelTitle = await page.textContent('#dw-panel-title');
-out.panelLinks = await page.locator('.dw-panel-link').count();
-await page.screenshot({ path: '/tmp/claude-1000/-workspaces-three-ws/2bb24e2a-01d6-4605-991f-31f1ec0d4995/scratchpad/dw-03-panel.png' });
-
-// Open a real doc from the panel
-await page.locator('.dw-panel-link').first().click();
-await page.waitForTimeout(2500);
-out.readerOpen = await page.isVisible('#dw-reader');
-out.readerCrumb = await page.textContent('#dw-reader-crumb');
-out.readerHasHeadings = await page.locator('#dw-reader-body h1, #dw-reader-body h2').count();
-out.readerTextLen = (await page.textContent('#dw-reader-body') || '').trim().length;
-out.hashAfterOpen = await page.evaluate(() => location.hash);
-await page.screenshot({ path: '/tmp/claude-1000/-workspaces-three-ws/2bb24e2a-01d6-4605-991f-31f1ec0d4995/scratchpad/dw-04-reader.png' });
-
-// Pager
-out.pagerNextLabel = await page.textContent('#dw-reader-next');
-out.pagerPrevDisabled = await page.getAttribute('#dw-reader-prev', 'disabled') !== null;
-
-// Escape closes the reader
-await page.keyboard.press('Escape');
-await page.waitForTimeout(500);
-out.readerClosedByEsc = await page.isHidden('#dw-reader');
-
-// Deep link
-await page.goto(BASE + '/docs/world#forge', { waitUntil: 'load', timeout: 60000 });
-await page.waitForFunction(() => window.__docsWorld !== undefined, { timeout: 60000 });
-await page.waitForTimeout(3000);
-out.deepLinkReaderOpen = await page.isVisible('#dw-reader');
-out.deepLinkCrumb = await page.textContent('#dw-reader-crumb');
-out.deepLinkTextLen = (await page.textContent('#dw-reader-body') || '').trim().length;
-await page.screenshot({ path: '/tmp/claude-1000/-workspaces-three-ws/2bb24e2a-01d6-4605-991f-31f1ec0d4995/scratchpad/dw-05-deeplink.png' });
-
-await browser.close();
-console.log(JSON.stringify(out, null, 2));
-console.log('CONSOLE ERRORS:', errors.length ? errors : 'none');
diff --git a/scripts/.dw-verify2.tmp.mjs b/scripts/.dw-verify2.tmp.mjs
deleted file mode 100644
index 138021444..000000000
--- a/scripts/.dw-verify2.tmp.mjs
+++ /dev/null
@@ -1,27 +0,0 @@
-import { chromium } from 'playwright';
-const BASE='http://localhost:3004';
-const browser = await chromium.launch();
-const page = await browser.newPage({ viewport:{width:1280,height:800} });
-const errors=[];
-page.on('pageerror',e=>errors.push('pageerror: '+e.message));
-page.on('console',m=>{const t=m.text(); if(m.type()==='error' && !/websocket|vite/i.test(t)) errors.push(t);});
-await page.goto(BASE+'/docs/world',{waitUntil:'load',timeout:60000});
-await page.waitForFunction(()=>window.__docsWorld!==undefined,{timeout:60000});
-await page.waitForTimeout(5000);
-const out={};
-out.hudVisible=await page.isVisible('#dw-hud');
-out.player=await page.evaluate(()=>{const p=window.__docsWorld.player;let s=0,b=0;p.root.traverse(n=>{if(n.isSkinnedMesh)s++;if(n.isBone)b++});return {skinned:s,bones:b,pos:[+p.position.x.toFixed(1),+p.position.z.toFixed(1)]}});
-out.beaconOpacityAtSpawn=await page.evaluate(()=>{const s=window.__docsWorld.world.scene;let o=null;s.traverse(n=>{if(n.isSprite&&n.material.opacity!==undefined&&o===null&&Math.abs(n.position.y-5.4)<0.01)o=+n.material.opacity.toFixed(2)});return o});
-await page.screenshot({path:'/tmp/claude-1000/-workspaces-three-ws/2bb24e2a-01d6-4605-991f-31f1ec0d4995/scratchpad/dw-07-fixed.png'});
-// Walk away from spawn to confirm the beacon sign fades instead of covering labels
-await page.locator('#dw-canvas').click({position:{x:640,y:600}});
-await page.keyboard.down('w');
-await page.waitForTimeout(2600);
-await page.keyboard.up('w');
-await page.waitForTimeout(600);
-out.afterWalk=await page.evaluate(()=>{const p=window.__docsWorld.player;return {pos:[+p.position.x.toFixed(1),+p.position.z.toFixed(1)]}});
-out.beaconOpacityAfterWalk=await page.evaluate(()=>{const s=window.__docsWorld.world.scene;let o=null;s.traverse(n=>{if(n.isSprite&&o===null&&Math.abs(n.position.y-5.4)<0.01)o=+n.material.opacity.toFixed(2)});return o});
-await page.screenshot({path:'/tmp/claude-1000/-workspaces-three-ws/2bb24e2a-01d6-4605-991f-31f1ec0d4995/scratchpad/dw-08-walked.png'});
-await browser.close();
-console.log(JSON.stringify(out,null,2));
-console.log('ERRORS:',errors.length?errors:'none');
diff --git a/scripts/audit-docs.mjs b/scripts/audit-docs.mjs
index 53deffec9..ffc7f30ab 100644
--- a/scripts/audit-docs.mjs
+++ b/scripts/audit-docs.mjs
@@ -16,6 +16,10 @@
* 3. `npm run <script>` references name a script that exists in the relevant
* package.json, and `node scripts/<x>` references an existing file.
* 4. Every packages/* and workers/* directory carries a README.md.
+ * 5. Every public doc under docs/*.md is registered in data/pages.json, so it
+ * reaches the sitemap, llms.txt and features.json instead of being live at
+ * 200 and invisible to every crawler. Docs that are deliberately not
+ * published carry an entry in UNPUBLISHED_DOCS below with the reason.
*
* Usage:
* node scripts/audit-docs.mjs # audit the whole repo, exit 1 on findings
@@ -235,6 +239,73 @@ if (!explicitFiles.length) {
}
}
+// --------------------------------------------- public docs must be registered
+// A doc under docs/*.md is served at /docs/<slug> by the generic route in
+// vercel.json, so it answers 200 whether or not anyone declared it. Only
+// data/pages.json makes it discoverable: the sitemap, llms.txt, features.json
+// and the human sitemap all read from there and nothing else. An unregistered
+// doc is therefore live and invisible at the same time, which is the failure
+// this check exists to make loud.
+//
+// Each slug below is deliberately not published, with the reason. Two kinds:
+// internal operational, strategic or single-use material written for us,
+// not for a reader arriving from search.
+// owner-gated content referencing a crypto project other than $THREE.
+// CLAUDE.md requires explicit owner approval before that lands in
+// a commit, so registering one is a decision, never a default.
+const UNPUBLISHED_DOCS = new Map([
+ ['agora', 'internal: strategy framing, not a reader-facing product doc'],
+ ['avatar-cli', 'internal: in-flight, register when the CLI ships'],
+ ['avatar-fidelity-program', 'internal: program goals and competitive targets'],
+ ['aws-marketplace-listing-kit', 'internal: paste-ready listing copy and portal steps'],
+ ['bnb-babt-findings', 'owner-gated: names a crypto project other than $THREE'],
+ ['bnb-vault', 'owner-gated: names a crypto project other than $THREE'],
+ ['bnb-world', 'owner-gated: names a crypto project other than $THREE'],
+ ['btn-pill-migration', 'internal: one-time component migration map'],
+ ['build', 'internal: build and deploy integrity runbook'],
+ ['clip-director', 'internal: content strategy'],
+ ['coin-launches', 'owner-gated: names a crypto project other than $THREE'],
+ ['coin-pages', 'owner-gated: names a crypto project other than $THREE'],
+ ['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-heartbeat', 'internal: scheduled-job operations'],
+ ['economy-master', 'internal: funding-root wallet operations'],
+ ['financial-controls', 'internal: audit-grade money-flow register'],
+ ['launch-usecases', 'owner-gated: names a crypto project other than $THREE'],
+ ['memetic-launcher', 'owner-gated: names a crypto project other than $THREE'],
+ ['meta-allocator', 'owner-gated: names a crypto project other than $THREE'],
+ ['money-map', 'internal: revenue-share and treasury routing'],
+ ['native-launchpad', 'owner-gated: names a crypto project other than $THREE'],
+ ['okx-marketplace', 'owner-gated: names a crypto project other than $THREE'],
+ ['pay-skills-listing', 'internal: listing metadata, not prose'],
+ ['popular-3d-github-repos', 'internal: one-off ecosystem research sweep'],
+ ['pump-fun-mcp-edge', 'owner-gated: names a crypto project other than $THREE'],
+ ['pump-launch-repos', 'owner-gated: names a crypto project other than $THREE'],
+ ['pump-platform-fee', 'owner-gated: names a crypto project other than $THREE'],
+ ['robinhood-chain-markets', 'owner-gated: names a crypto project other than $THREE'],
+ ['solana-pumpfun', 'owner-gated: names a crypto project other than $THREE'],
+ ['syndication', 'internal: admin publishing configuration'],
+ ['trading-experiment', 'owner-gated: names a crypto project other than $THREE'],
+]);
+const GENERATED_DOCS = new Set(['ALL', 'EVERYTHING', 'README']);
+
+if (!explicitFiles.length) {
+ const docsDir = resolve(root, 'docs');
+ for (const entry of readdirSync(docsDir, { withFileTypes: true })) {
+ if (!entry.isFile() || !entry.name.endsWith('.md')) continue;
+ const slug = entry.name.replace(/\.md$/, '');
+ if (GENERATED_DOCS.has(slug) || UNPUBLISHED_DOCS.has(slug)) continue;
+ if (declaredPages.has(`/docs/${slug}`)) continue;
+ findings.push({
+ file: `docs/${entry.name}`,
+ line: 0,
+ kind: 'unregistered-doc',
+ detail: `served at /docs/${slug} but absent from data/pages.json, so no crawler can find it. Add an entry there, or add the slug to UNPUBLISHED_DOCS in this script with the reason it stays unpublished.`,
+ });
+ }
+}
+
// ---------------------------------------------------------------- the verdict
const byKind = findings.reduce((acc, f) => {
(acc[f.kind] = acc[f.kind] || []).push(f);
@@ -246,6 +317,7 @@ const LABEL = {
'dead-route': 'Site links pointing at routes that do not resolve',
'dead-script': 'Commands naming scripts that do not exist',
'missing-readme': 'Directories required to carry a README.md',
+ 'unregistered-doc': 'Public docs missing from data/pages.json (live but undiscoverable)',
};
if (!findings.length) {
diff --git a/scripts/build-mcp-catalog.mjs b/scripts/build-mcp-catalog.mjs
index 9658a5884..aa885835d 100644
--- a/scripts/build-mcp-catalog.mjs
+++ b/scripts/build-mcp-catalog.mjs
@@ -288,6 +288,10 @@ function build() {
name: tool.name,
title: tool.title ?? null,
description: tool.description ?? null,
+ // A couple of descriptions are composed at request time (they list
+ // the live provider pairs or the current allowed hosts), so the
+ // static read cannot see them. Say so rather than render a blank.
+ ...(tool.description ? {} : { descriptionIsDynamic: true }),
server,
safety: safetyClass(hints),
annotations: {
diff --git a/scripts/check-rules.mjs b/scripts/check-rules.mjs
index b06422028..40fd16b88 100644
--- a/scripts/check-rules.mjs
+++ b/scripts/check-rules.mjs
@@ -55,6 +55,12 @@ const SKIP = [
/^docs\/ALL\.md$/,
/^CHANGELOG\.md$/,
/^public\/changelog\.(json|xml)$/,
+ // Machine-written mirrors of tool text that lives in source: the catalog is
+ // written by scripts/build-mcp-catalog.mjs, the fixture by
+ // scripts/audit-mcp-golden.mjs --update. Prose rules belong on the tool
+ // descriptions themselves, not on the generated copies of them.
+ /^public\/mcp-catalog\.json$/,
+ /^tests\/fixtures\/mcp-golden-tools\.json$/,
/^locales\//,
/\.min\.(js|css)$/,
/package-lock\.json$/,
diff --git a/scripts/lib/mcp-safety-check.mjs b/scripts/lib/mcp-safety-check.mjs
index a5778ad7a..d6ede2c52 100644
--- a/scripts/lib/mcp-safety-check.mjs
+++ b/scripts/lib/mcp-safety-check.mjs
@@ -379,9 +379,14 @@ export function extractTools(relPath) {
walk(ast, (node) => {
if (node.type !== 'ObjectExpression') return;
const props = new Map();
+ // Getters (`get description() { return … }`) keep their Property node so
+ // the returned expression can be read; everything else maps to its value.
+ const propNodes = new Map();
for (const prop of node.properties) {
if (prop.type === 'Property' && !prop.computed) {
- props.set(prop.key?.name ?? prop.key?.value, prop.value);
+ const key = prop.key?.name ?? prop.key?.value;
+ props.set(key, prop.value);
+ propNodes.set(key, prop);
}
}
const nameNode = props.get('name');
@@ -405,8 +410,8 @@ export function extractTools(relPath) {
tools.push({
name,
- title: stringValue(propertyValue(props.get('title')), constStrings),
- description: stringValue(propertyValue(props.get('description')), constStrings),
+ title: stringValue(propertyValue(propNodes.get('title')), constStrings),
+ description: stringValue(propertyValue(propNodes.get('description')), constStrings),
annotations,
evidence: [...evidence].sort(),
hasHandler: Boolean(handlerNode && FUNCTION_TYPES.has(handlerNode.type)),
diff --git a/scripts/mirror-examples-index.mjs b/scripts/mirror-examples-index.mjs
new file mode 100644
index 000000000..60b364897
--- /dev/null
+++ b/scripts/mirror-examples-index.mjs
@@ -0,0 +1,64 @@
+#!/usr/bin/env node
+// Mirror data/examples.json to public/examples.json so the browser can fetch it.
+//
+// scripts/build-examples-index.mjs derives the index by scanning the repo, but
+// writes it under data/, which is never served: only public/ is copied into
+// dist/ and published. Without this step the generated index is a file nothing
+// reads, and the /examples page has to hand-list examples instead, which is
+// exactly the drift the generator was written to prevent.
+//
+// This is a mirror, not a second generator: data/examples.json stays the single
+// source of truth, and the copy is byte-identical apart from a banner marking
+// it as generated. Run `npm run build:examples` to do both steps in order.
+
+import { readFileSync, writeFileSync, existsSync } from 'node:fs';
+import { resolve, dirname } from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+const here = dirname(fileURLToPath(import.meta.url));
+const root = resolve(here, '..');
+const source = resolve(root, 'data/examples.json');
+const target = resolve(root, 'public/examples.json');
+
+if (!existsSync(source)) {
+ console.error('mirror-examples-index: data/examples.json is missing. Run scripts/build-examples-index.mjs first.');
+ process.exit(1);
+}
+
+let index;
+try {
+ index = JSON.parse(readFileSync(source, 'utf8'));
+} catch (err) {
+ console.error(`mirror-examples-index: data/examples.json is not valid JSON (${err.message}).`);
+ process.exit(1);
+}
+
+// Fail loudly rather than publishing an index the gallery would render as its
+// empty state. An empty index always means the scan broke, never that the repo
+// genuinely has no examples.
+if (!Array.isArray(index.examples) || index.examples.length === 0) {
+ console.error('mirror-examples-index: the index carries no examples, so the scan is broken. Refusing to publish it.');
+ process.exit(1);
+}
+
+const missingFields = index.examples.filter((e) => !e || !e.id || !e.title || !e.path);
+if (missingFields.length) {
+ console.error(
+ `mirror-examples-index: ${missingFields.length} entr(ies) lack id/title/path, which the gallery requires. Fix the generator.`,
+ );
+ process.exit(1);
+}
+
+const payload = {
+ $comment: 'GENERATED by scripts/mirror-examples-index.mjs from data/examples.json. Do not edit.',
+ ...index,
+};
+const serialized = `${JSON.stringify(payload, null, '\t')}\n`;
+const previous = existsSync(target) ? readFileSync(target, 'utf8') : '';
+
+if (previous === serialized) {
+ console.log(`same public/examples.json (${index.examples.length} examples)`);
+} else {
+ writeFileSync(target, serialized);
+ console.log(`wrote public/examples.json (${index.examples.length} examples)`);
+}
diff --git a/scripts/sync-animation-registry.mjs b/scripts/sync-animation-registry.mjs
new file mode 100644
index 000000000..b5a51f45c
--- /dev/null
+++ b/scripts/sync-animation-registry.mjs
@@ -0,0 +1,178 @@
+#!/usr/bin/env node
+/**
+ * Regenerate the `clips` collection in public/animations/registry.json from the
+ * things that are actually true at build time.
+ *
+ * The registry is the developer-facing catalogue of every animation asset in the
+ * project, and its own header tells you to read it first. That only holds if it
+ * matches reality, and by hand it does not: it drifted to 37 of 112 built clips,
+ * every `source_fbx` still pointed at `public/animations/` (which has held no
+ * FBX since the sources moved to the gitignored `animation-sources/`), and
+ * `agent_slots` still recorded slot assignments that had since moved to other
+ * clips.
+ *
+ * Derived per clip:
+ * label / icon / loop ← public/animations/manifest.json (the built truth)
+ * clip ← public/animations/clips/<name>.json
+ * source_fbx ← scripts/animations.config.json `source`, or null for
+ * hand-authored clips (scripts/animations-extra-clips.json)
+ * agent_slots ← src/runtime/animation-slots.js DEFAULT_ANIMATION_MAP,
+ * reversed, so a slot can never be recorded on two clips
+ *
+ * Hand-written `note` / `_note` fields are preserved by clip name; everything
+ * else in the registry (the other collections, known_issues, resolved_issues) is
+ * untouched. The rows are re-emitted in the file's existing column-aligned
+ * style, so the diff is only the rows that actually changed.
+ *
+ * Run by `npm run build:animations` after the manifest is written, and guarded by
+ * tests/animation-registry.test.js. Standalone:
+ * node scripts/sync-animation-registry.mjs [--check]
+ */
+
+import { existsSync, readFileSync, writeFileSync } from 'node:fs';
+import { dirname, resolve } from 'node:path';
+import { fileURLToPath } from 'node:url';
+import { DEFAULT_ANIMATION_MAP } from '../src/runtime/animation-slots.js';
+
+const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '..');
+const REGISTRY = resolve(ROOT, 'public/animations/registry.json');
+const MANIFEST = resolve(ROOT, 'public/animations/manifest.json');
+const CONFIG = resolve(ROOT, 'scripts/animations.config.json');
+const CHECK = process.argv.includes('--check');
+
+const readJson = (p) => JSON.parse(readFileSync(p, 'utf8'));
+
+/** clip name → [slot, …] from the runtime slot map, so nothing is recorded twice. */
+function slotsByClip() {
+ const out = new Map();
+ for (const [slot, clip] of Object.entries(DEFAULT_ANIMATION_MAP)) {
+ if (!out.has(clip)) out.set(clip, []);
+ out.get(clip).push(slot);
+ }
+ return out;
+}
+
+/** Build the row objects, newest-last, one per built clip. */
+export function buildRows() {
+ const manifest = readJson(MANIFEST);
+ const config = readJson(CONFIG);
+ const registry = readJson(REGISTRY);
+ const sources = new Map((config.clips || config).map((c) => [c.name, c.source]));
+ const slots = slotsByClip();
+ const previous = new Map((registry.collections.clips.items || []).map((r) => [r.name, r]));
+
+ return manifest.map((clip) => {
+ const prior = previous.get(clip.name);
+ const source = sources.get(clip.name);
+ const row = {
+ name: clip.name,
+ label: clip.label ?? clip.name,
+ icon: clip.icon ?? '',
+ loop: !!clip.loop,
+ clip: `public/animations/clips/${clip.name}.json`,
+ source_fbx: source ? `animation-sources/${source}` : null,
+ agent_slots: slots.get(clip.name) ?? [],
+ };
+ if (prior?.note) row.note = prior.note;
+ if (prior?._note) row._note = prior._note;
+ return row;
+ });
+}
+
+/** Render rows in the registry's column-aligned one-line-per-clip style. */
+function renderRows(rows, indent) {
+ const cell = (v) => JSON.stringify(v);
+ // The leading columns are fixed-width so names, labels and paths line up down
+ // the file; the trailing ones vary in length and are left ragged.
+ const pad = (key, render) => {
+ const cells = rows.map(render);
+ const w = Math.max(...cells.map((c) => c.length));
+ return new Map(rows.map((r, i) => [r.name, cells[i].padEnd(w)]));
+ };
+ const nameCol = pad('name', (r) => `"name": ${cell(r.name)},`);
+ const labelCol = pad('label', (r) => `"label": ${cell(r.label)},`);
+ const loopCol = pad('loop', (r) => `"loop": ${r.loop},`);
+ const clipCol = pad('clip', (r) => `"clip": ${cell(r.clip)},`);
+ const sourceCol = pad('source_fbx', (r) => `"source_fbx": ${cell(r.source_fbx)},`);
+
+ return rows.map((r) => {
+ const parts = [
+ nameCol.get(r.name),
+ labelCol.get(r.name),
+ `"icon": ${cell(r.icon)},`,
+ loopCol.get(r.name),
+ clipCol.get(r.name),
+ sourceCol.get(r.name),
+ `"agent_slots": [${r.agent_slots.map(cell).join(', ')}]`,
+ ];
+ if (r.note) parts.push(`"note": ${cell(r.note)}`);
+ if (r._note) parts.push(`"_note": ${cell(r._note)}`);
+ return `${indent}{ ${parts.join(' ').replace(/\] "/, '], "')} }`;
+ });
+}
+
+/**
+ * Re-render the `agent_slots.slots` block from the live slot vocabulary.
+ * A hand-written `status` survives as long as the slot still resolves to the
+ * same clip; a slot that was re-pointed gets a plain "active" so a stale note
+ * ("maps to 'reaction', not 'wave'") cannot outlive the mapping it described.
+ */
+function renderSlots(indent) {
+ const registry = readJson(REGISTRY);
+ const prior = registry.agent_slots?.slots || {};
+ const names = Object.keys(DEFAULT_ANIMATION_MAP);
+ const nameW = Math.max(...names.map((n) => n.length + 3));
+ const clipW = Math.max(...names.map((n) => JSON.stringify(DEFAULT_ANIMATION_MAP[n]).length + 1));
+ return names.map((slot, i) => {
+ const clip = DEFAULT_ANIMATION_MAP[slot];
+ const kept = prior[slot]?.default_clip === clip ? prior[slot].status : 'active';
+ const key = `${JSON.stringify(slot)}:`.padEnd(nameW);
+ const value = `${JSON.stringify(clip)},`.padEnd(clipW);
+ const comma = i === names.length - 1 ? '' : ',';
+ return `${indent}${key} { "default_clip": ${value} "status": ${JSON.stringify(kept)} }${comma}`;
+ });
+}
+
+/** Replace the lines of a `"key": { … }` / `"key": [ … ]` block in place. */
+function replaceBlock(lines, openRe, render, closeRe = /^\s*[}\]],?\s*$/) {
+ const start = lines.findIndex((l) => openRe.test(l));
+ if (start === -1) throw new Error(`could not find ${openRe} in registry.json`);
+ const end = lines.findIndex((l, i) => i > start && closeRe.test(l));
+ if (end === -1) throw new Error(`unterminated ${openRe} in registry.json`);
+ const indent = (lines[start + 1] ?? '').match(/^\s*/)[0] || ' ';
+ return [...lines.slice(0, start + 1), ...render(indent), ...lines.slice(end)];
+}
+
+function main() {
+ const raw = readFileSync(REGISTRY, 'utf8');
+ const lines = raw.split('\n');
+
+ // Locate the clips collection's `items` array in the raw text so every other
+ // byte of the hand-formatted file survives untouched.
+ const start = lines.findIndex((l, i) => /^\s*"items": \[\s*$/.test(l) && lines.slice(0, i).some((p) => /"clips": \{/.test(p)));
+ if (start === -1) throw new Error('could not find the clips "items" array in registry.json');
+ const end = lines.findIndex((l, i) => i > start && /^\s*\],?\s*$/.test(l));
+ if (end === -1) throw new Error('unterminated clips "items" array in registry.json');
+ const indent = (lines[start + 1] ?? ' {').match(/^\s*/)[0] || ' ';
+
+ const rows = buildRows();
+ const rendered = renderRows(rows, indent);
+ const next = [...lines.slice(0, start + 1), ...rendered.map((l, i) => (i === rendered.length - 1 ? l : `${l},`)), ...lines.slice(end)].join('\n');
+
+ // Parse before writing: a malformed registry breaks every reader downstream.
+ JSON.parse(next);
+
+ if (next === raw) {
+ console.log(`[registry] clips already in sync (${rows.length} clips)`);
+ return 0;
+ }
+ if (CHECK) {
+ console.error(`[registry] out of sync — run: node scripts/sync-animation-registry.mjs`);
+ return 1;
+ }
+ writeFileSync(REGISTRY, next);
+ console.log(`[registry] synced ${rows.length} clips from the manifest`);
+ return 0;
+}
+
+if (existsSync(REGISTRY)) process.exitCode = main();
diff --git a/src/admin-economy-core.js b/src/admin-economy-core.js
new file mode 100644
index 000000000..d45dfeb94
--- /dev/null
+++ b/src/admin-economy-core.js
@@ -0,0 +1,261 @@
+// Pure logic behind /admin/economy. No DOM, no fetch, no globals, so the verdict
+// rules are unit-testable. That matters because the whole point of the page is
+// that the verdict can be trusted without re-deriving it by hand.
+//
+// The rules encode a real incident (2026-07-30). The Money Pulse read $5.89/24h
+// while the activity feed looked perfectly healthy, because the circulation
+// engine had been reduced to its FREE actions: reviews and skill trials kept
+// running, so every naive "is it alive" signal stayed green while tips,
+// payments, trades and launches sat at exactly zero. Two look-alike causes had
+// opposite fixes, and telling them apart by eye cost hours:
+// - the budget governor zeroed the paid-action budget (treasury under reserve)
+// - the refuel lane could not READ its USDC balance and reported it as empty
+// Both are named explicitly below so nobody has to rediscover them.
+
+/** Action kinds that move real value. Free kinds are excluded on purpose: they
+ * stay green through exactly the outage this page exists to catch. */
+export const PAID_KINDS = ['tip', 'payment', 'trade', 'launch'];
+
+/** Every kind the engine records, paid and free, for the lanes table. */
+export const ALL_KINDS = [...PAID_KINDS, 'buy_skill', 'buy_asset', 'trial', 'review', 'deploy'];
+
+const n = (v) => (Number.isFinite(Number(v)) ? Number(v) : 0);
+
+/** Total attempts (ok + skipped + error) for one kind. */
+export function attemptsFor(byKind, kind) {
+ const k = byKind?.[kind];
+ if (!k) return 0;
+ return n(k.ok) + n(k.skipped) + n(k.error);
+}
+
+/** First human-readable problem across the given kinds, or null. */
+export function firstProblem(byKind, kinds = PAID_KINDS) {
+ for (const kind of kinds) {
+ const p = byKind?.[kind]?.last_problem;
+ if (p) return { kind, problem: String(p) };
+ }
+ return null;
+}
+
+/** Round to 6dp so exponent notation never reaches the UI. */
+export const sol = (v) => Math.round(n(v) * 1e6) / 1e6;
+
+/** Compact SOL string. Keeps dust legible instead of collapsing it to 0. */
+export function fmtSol(v) {
+ const x = n(v);
+ if (x === 0) return '0';
+ if (Math.abs(x) < 0.001) return x.toFixed(6);
+ if (Math.abs(x) < 1) return x.toFixed(4);
+ return x.toFixed(3);
+}
+
+/** Compact USD string that never renders a real amount as $0.00. */
+export function fmtUsd(v) {
+ const x = n(v);
+ if (x === 0) return '$0';
+ if (Math.abs(x) < 0.01) return '<$0.01';
+ if (Math.abs(x) < 1000) return '$' + x.toFixed(2);
+ return '$' + Math.round(x).toLocaleString('en-US');
+}
+
+/**
+ * Health of one wallet against its floor.
+ * @returns {'ok'|'low'|'dry'}
+ */
+export function linkState(current, floor) {
+ const c = n(current);
+ const f = n(floor);
+ if (f <= 0) return c > 0 ? 'ok' : 'dry';
+ if (c >= f) return 'ok';
+ if (c >= f * 0.5) return 'low';
+ return 'dry';
+}
+
+/** Fill ratio 0..1 for the meter under each chain link. */
+export function linkFill(current, floor) {
+ const f = n(floor);
+ if (f <= 0) return n(current) > 0 ? 1 : 0;
+ return Math.max(0, Math.min(1, n(current) / f));
+}
+
+/**
+ * The funding chain, root first. Each link carries its own floor so the UI can
+ * show WHY a link is red, not merely that it is.
+ *
+ * @param {{health?:object, topup?:object}} p
+ * @returns {Array<{id:string,label:string,amount:number,unit:string,floor:number,state:string,fill:number,note:string}>}
+ */
+export function chainLinks({ health, topup } = {}) {
+ const links = [];
+ const masterFloor = n(topup?.master_operating_sol) + n(topup?.reserve_sol ?? 0.02);
+
+ links.push({
+ id: 'master',
+ label: 'Economy master',
+ amount: sol(topup?.master_sol),
+ unit: 'SOL',
+ floor: sol(masterFloor),
+ state: linkState(topup?.master_sol, masterFloor),
+ fill: linkFill(topup?.master_sol, masterFloor),
+ note: 'Funding root, and the x402 sponsor: under its floor the ring fails closed too.',
+ });
+
+ for (const t of topup?.targets || []) {
+ links.push({
+ id: `engine:${t.pubkey || t.name}`,
+ label: String(t.name || 'engine'),
+ amount: sol(t.currentSol),
+ unit: 'SOL',
+ floor: sol(t.refillToSol),
+ state: linkState(t.currentSol, t.refillToSol),
+ fill: linkFill(t.currentSol, t.refillToSol),
+ note: 'Below its refill target, so the next sweep tops it up.',
+ });
+ }
+
+ const perRun = n(health?.fuel?.caps?.per_run_usd) || 5;
+ const usdc = topup?.fuel?.usdcAvailable;
+ const unreadable = topup?.fuel?.reason === 'usdc_read_failed';
+ links.push({
+ id: 'usdc',
+ label: 'Refuel reserve (USDC)',
+ amount: unreadable ? 0 : sol(usdc),
+ unit: 'USDC',
+ floor: perRun,
+ state: unreadable ? 'dry' : linkState(usdc, perRun),
+ fill: unreadable ? 0 : linkFill(usdc, perRun),
+ note: unreadable
+ ? 'Balance could not be read. Unknown is not the same as empty.'
+ : 'Revenue the master converts to SOL when the chain runs short.',
+ });
+
+ return links;
+}
+
+/**
+ * Total SOL the funding chain is short, master plus every under-floor engine.
+ * @param {{topup?:object}} p
+ */
+export function totalDeficit({ topup } = {}) {
+ return sol(
+ n(topup?.master_deficit_sol)
+ + (topup?.targets || []).reduce((s, t) => s + Math.max(0, n(t.refillToSol) - n(t.currentSol)), 0),
+ );
+}
+
+/**
+ * The one-line answer to "is the Money Pulse healthy, and if not, which link
+ * broke". Ordered most-actionable first: a cause that makes every later signal
+ * meaningless has to win, or the operator chases a symptom instead of the fault.
+ *
+ * @param {{stats?:object, health?:object, topup?:object}} p
+ * @returns {{level:'good'|'warn'|'bad', title:string, detail:string}}
+ */
+export function diagnose({ stats, health, topup } = {}) {
+ if (!health) {
+ return {
+ level: 'warn',
+ title: 'Engine health unavailable',
+ detail: 'Could not read /api/admin/circulation-health, so this verdict is incomplete.',
+ };
+ }
+
+ if (health.config && health.config.enabled === false) {
+ return {
+ level: 'bad',
+ title: 'Circulation engine is switched off',
+ detail: 'CIRCULATION_ENABLED is unset, so the engine is inert by design. Nothing is broken, and nothing will move either.',
+ };
+ }
+
+ if (health.config && !health.config.treasury_configured) {
+ return {
+ level: 'bad',
+ title: 'No circulation treasury configured',
+ detail: 'CIRCULATION_TREASURY_SECRET is unset, so the engine cannot fund a single action.',
+ };
+ }
+
+ if (health.liveness?.stale) {
+ return {
+ level: 'bad',
+ title: `No circulation action for ${n(health.liveness.minutes_since)} min`,
+ detail: 'Either the pulse-tick cron stopped firing or every action returned early. Check Cloud Scheduler before trusting anything below.',
+ };
+ }
+
+ // The refuel read failure outranks the budget verdict: it makes the treasury
+ // look unfundable while the money to fund it sits right there in the wallet.
+ if (topup?.fuel?.reason === 'usdc_read_failed') {
+ return {
+ level: 'bad',
+ title: 'Refuel blocked: USDC balance unreadable',
+ detail: 'The balance is UNKNOWN, not zero, so this is an RPC fault and not an empty wallet. Check the Solana lanes; do not send funds.',
+ };
+ }
+
+ const byKind = health.window_24h?.by_kind || {};
+ const paidAttempts = PAID_KINDS.reduce((s, k) => s + attemptsFor(byKind, k), 0);
+ const paidOk = PAID_KINDS.reduce((s, k) => s + n(byKind[k]?.ok), 0);
+
+ if (paidAttempts === 0) {
+ return {
+ level: 'bad',
+ title: 'Paid lanes never ran in 24h',
+ detail: 'The budget governor planned zero paid actions, which means the circulation treasury sat under its reserve. Free actions keep running, so the feed looks alive while no money moves.',
+ };
+ }
+
+ if (paidOk === 0) {
+ const p = firstProblem(byKind);
+ return {
+ level: 'bad',
+ title: 'Every paid action failed in 24h',
+ detail: p
+ ? `Attempts happened but none settled. Last problem on ${p.kind}: ${p.problem}`
+ : 'Attempts happened but none settled.',
+ };
+ }
+
+ const deficit = totalDeficit({ topup });
+
+ if (deficit > 0 && topup?.fuel?.reason === 'no_spare_usdc') {
+ return {
+ level: 'bad',
+ title: 'Funding chain is genuinely dry',
+ detail: `A ${fmtSol(deficit)} SOL deficit with no USDC left to convert. This is the one case that really needs the owner to send funds.`,
+ };
+ }
+
+ if (deficit > 0 && topup?.fuel?.reason === 'daily_cap_reached') {
+ return {
+ level: 'warn',
+ title: 'Refuel paused: daily cap reached',
+ detail: `A ${fmtSol(deficit)} SOL deficit remains, but today's USDC conversion cap is spent. It resumes at the next UTC day.`,
+ };
+ }
+
+ const stalled = PAID_KINDS.filter((k) => attemptsFor(byKind, k) > 0 && n(byKind[k]?.ok) === 0);
+ if (stalled.length) {
+ const p = firstProblem(byKind, stalled);
+ return {
+ level: 'warn',
+ title: `${stalled.length} paid lane${stalled.length > 1 ? 's' : ''} stalled: ${stalled.join(', ')}`,
+ detail: p ? `Last problem on ${p.kind}: ${p.problem}` : 'These lanes attempted but never settled.',
+ };
+ }
+
+ if (deficit > 0) {
+ return {
+ level: 'warn',
+ title: 'Self-heal in progress',
+ detail: `Money is moving, and a ${fmtSol(deficit)} SOL deficit is being closed by reclaim and USDC refuel. No action needed.`,
+ };
+ }
+
+ return {
+ level: 'good',
+ title: 'Economy healthy',
+ detail: `All paid lanes settling, funding chain above its floors, ${fmtUsd(stats?.volume_24h?.usd)} of pulse volume in the last 24h.`,
+ };
+}
diff --git a/src/admin-economy.css b/src/admin-economy.css
index 7de997032..451eb94b0 100644
--- a/src/admin-economy.css
+++ b/src/admin-economy.css
@@ -1,4 +1,4 @@
-/* /admin/economy — autonomous economy health dashboard.
+/* /admin/economy: autonomous economy health dashboard.
Answers one question fast: is the Money Pulse quiet, and if so, which link in
the funding chain broke? Shares the ring dashboard's token language (violet
@@ -578,6 +578,34 @@ body {
to { background-position: 0 50%; }
}
+.ec-hint {
+ position: fixed;
+ right: 16px;
+ bottom: 16px;
+ padding: 7px 12px;
+ border-radius: 999px;
+ background: var(--ec-panel-2);
+ border: 1px solid var(--ec-line-2);
+ color: var(--ec-dim);
+ font-size: 12px;
+ backdrop-filter: blur(8px);
+ pointer-events: none;
+}
+
+.ec-hint kbd {
+ font: 600 11px/1 var(--ec-mono);
+ background: var(--ec-panel);
+ border: 1px solid var(--ec-line-2);
+ border-bottom-width: 2px;
+ border-radius: 5px;
+ padding: 3px 5px;
+ color: var(--ec-text);
+}
+
+@media (max-width: 640px) {
+ .ec-hint { display: none; }
+}
+
.ec-foot {
margin-top: 34px;
padding-top: 16px;
diff --git a/src/admin-economy.js b/src/admin-economy.js
new file mode 100644
index 000000000..b3be79607
--- /dev/null
+++ b/src/admin-economy.js
@@ -0,0 +1,386 @@
+// /admin/economy — autonomous economy health dashboard (DOM layer).
+//
+// All judgement lives in admin-economy-core.js; this file only fetches and
+// renders. Three real reads, no mocks and no synthetic numbers:
+// GET /api/pulse?view=stats public money actually moved
+// GET /api/admin/circulation-health Bearer per-lane ok/skipped/error
+// GET /api/cron/treasury-topup?dry=1 Bearer funding chain, plan only
+//
+// The topup read is explicitly the ?dry=1 plan: it performs the same balance
+// reads a live sweep would, moves no SOL, writes no ledger row and sends no
+// alerts. A dashboard must never be able to spend money by being opened.
+
+import { diagnose, chainLinks, totalDeficit, fmtSol, fmtUsd, ALL_KINDS, attemptsFor } from './admin-economy-core.js';
+
+const SECRET_KEY = 'tws:admin:cron-secret';
+const REFRESH_MS = 30_000;
+
+const $ = (id) => document.getElementById(id);
+const el = (tag, cls, text) => {
+ const node = document.createElement(tag);
+ if (cls) node.className = cls;
+ if (text != null) node.textContent = String(text);
+ return node;
+};
+
+let secret = '';
+let timer = null;
+let paused = false;
+let inFlight = false;
+
+// ── data ─────────────────────────────────────────────────────────────────────
+
+async function getJson(url, withAuth) {
+ const res = await fetch(url, {
+ headers: withAuth ? { authorization: `Bearer ${secret}` } : {},
+ cache: 'no-store',
+ credentials: 'same-origin',
+ });
+ if (res.status === 401 || res.status === 403) {
+ const err = new Error('unauthorized');
+ err.unauthorized = true;
+ throw err;
+ }
+ if (!res.ok) throw new Error(`${res.status} ${res.statusText}`);
+ return res.json();
+}
+
+/** Each source fails independently: one dead endpoint must not blank the page. */
+async function loadAll() {
+ const [stats, health, topup] = await Promise.all([
+ getJson('/api/pulse?view=stats', false).then((r) => r?.data ?? r).catch(() => null),
+ getJson('/api/admin/circulation-health', true).catch((e) => {
+ if (e.unauthorized) throw e;
+ return null;
+ }),
+ getJson('/api/cron/treasury-topup?dry=1', true).catch((e) => {
+ if (e.unauthorized) throw e;
+ return null;
+ }),
+ ]);
+ return { stats, health, topup };
+}
+
+// ── render ───────────────────────────────────────────────────────────────────
+
+function renderVerdict(data) {
+ const v = diagnose(data);
+ const box = $('ec-verdict');
+ box.dataset.level = v.level;
+ box.hidden = false;
+ $('ec-verdict-title').textContent = v.title;
+ $('ec-verdict-detail').textContent = v.detail;
+}
+
+function statCard(label, value, note) {
+ const card = el('div', 'ec-card');
+ card.append(el('p', 'ec-k', label));
+ const v = el('p', 'ec-v');
+ v.textContent = value;
+ card.append(v);
+ if (note) card.append(el('p', 'ec-note', note));
+ return card;
+}
+
+function renderPulse(stats) {
+ const host = $('ec-pulse');
+ host.textContent = '';
+ if (!stats) {
+ host.append(el('div', 'ec-error', 'Could not read the public pulse stats.'));
+ return;
+ }
+ const vol = stats.volume_24h || {};
+ host.append(
+ statCard('Volume 24h', fmtUsd(vol.usd), `${fmtSol(vol.sol)} SOL of real settled movement`),
+ statCard('Trades 24h', String(stats.trades_24h ?? 0), `${stats.snipes_24h ?? 0} of them snipes`),
+ statCard('Tips 24h', String(stats.tips_24h?.count ?? 0), `${fmtSol(stats.tips_24h?.sol)} SOL sent between agents`),
+ statCard('Active wallets', String(stats.active_wallets_24h ?? 0), 'Distinct agent wallets that moved value'),
+ );
+}
+
+function renderChain(data) {
+ const host = $('ec-chain');
+ host.textContent = '';
+ if (!data.topup) {
+ host.append(el('div', 'ec-error', 'Could not read the funding chain. Check the operator secret and the treasury-topup route.'));
+ return;
+ }
+ for (const link of chainLinks(data)) {
+ const box = el('div', 'ec-link');
+ box.dataset.state = link.state;
+ box.append(el('h3', null, link.label));
+ const amt = el('div', 'ec-amt');
+ amt.textContent = `${link.unit === 'USDC' ? fmtUsd(link.amount) : fmtSol(link.amount)}`;
+ box.append(amt);
+ box.append(el('div', 'ec-floor', `floor ${link.unit === 'USDC' ? fmtUsd(link.floor) : fmtSol(link.floor)} ${link.unit}`));
+ const meter = el('div', 'ec-meter');
+ const fill = el('i');
+ fill.style.width = `${Math.round(link.fill * 100)}%`;
+ meter.append(fill);
+ box.append(meter, el('p', 'ec-note', link.note));
+ host.append(box);
+ }
+
+ const deficit = totalDeficit(data);
+ $('ec-chain-summary').textContent = deficit > 0
+ ? `Chain is short ${fmtSol(deficit)} SOL. Reclaim runs first, then a capped USDC conversion.`
+ : 'Every link is at or above its floor.';
+}
+
+function pill(tone, text) {
+ const p = el('span', 'ec-pill', text);
+ p.dataset.tone = tone;
+ return p;
+}
+
+function renderLanes(health) {
+ const host = $('ec-lanes');
+ host.textContent = '';
+ const byKind = health?.window_24h?.by_kind;
+ if (!byKind) {
+ host.append(el('div', 'ec-error', 'Could not read per-lane activity.'));
+ return;
+ }
+
+ const rows = ALL_KINDS.filter((k) => byKind[k]).map((k) => ({ kind: k, ...byKind[k] }));
+ if (!rows.length) {
+ const empty = el('div', 'ec-empty');
+ empty.append(document.createTextNode('No actions recorded in the last 24 hours. '));
+ empty.append(el('b', null, 'That points at the pulse-tick cron, not at the lanes.'));
+ host.append(empty);
+ return;
+ }
+
+ const table = el('table', 'ec-table');
+ const thead = el('thead');
+ const hr = el('tr');
+ for (const h of ['Lane', 'State', 'OK', 'Skipped', 'Error', 'Last problem']) hr.append(el('th', null, h));
+ thead.append(hr);
+ table.append(thead);
+
+ const tbody = el('tbody');
+ for (const r of rows) {
+ const tr = el('tr');
+ tr.append(el('td', null, r.kind));
+
+ const attempts = attemptsFor(byKind, r.kind);
+ const okN = Number(r.ok || 0);
+ const cell = el('td');
+ if (attempts === 0) cell.append(pill('warn', 'never ran'));
+ else if (okN === 0) cell.append(pill('bad', 'all failing'));
+ else if (Number(r.error || 0) > 0) cell.append(pill('warn', 'degraded'));
+ else cell.append(pill('good', 'settling'));
+ tr.append(cell);
+
+ for (const v of [r.ok, r.skipped, r.error]) tr.append(el('td', 'ec-num', String(v ?? 0)));
+ tr.append(el('td', 'ec-reason', r.last_problem || '—'));
+ tbody.append(tr);
+ }
+ table.append(tbody);
+
+ const scroll = el('div', 'ec-scroll');
+ scroll.append(table);
+ host.append(scroll);
+}
+
+function renderFuel(data) {
+ const host = $('ec-fuel');
+ host.textContent = '';
+ const caps = data.health?.fuel?.caps;
+ const fuel = data.topup?.fuel;
+ if (!caps && !fuel) {
+ host.append(el('div', 'ec-error', 'Could not read the refuel lane.'));
+ return;
+ }
+
+ const reason = fuel?.reason || 'unknown';
+ const reasonText = {
+ not_needed: 'Not needed: the chain covers itself.',
+ sufficient_sol: 'Not needed: the master already covers the run.',
+ no_spare_usdc: 'Blocked: no USDC left above the keep floor.',
+ usdc_read_failed: 'Blocked: the balance could not be read at all.',
+ daily_cap_reached: "Paused: today's conversion cap is spent.",
+ cooldown: 'Paused: a swap just landed and is still settling.',
+ dry_run: 'Would swap now (this is the plan-only read).',
+ }[reason] || reason;
+
+ host.append(
+ statCard('Refuel state', reason.replace(/_/g, ' '), reasonText),
+ statCard('Spent today', fmtUsd(data.health?.fuel?.today_usd), `of a ${fmtUsd(caps?.daily_usd)} daily cap`),
+ statCard('Per run cap', fmtUsd(caps?.per_run_usd), `lifts the master toward ${fmtSol(caps?.target_sol)} SOL`),
+ statCard('Recent swaps', String((data.health?.fuel?.recent || []).length), 'USDC converted to SOL, most recent first'),
+ );
+
+ const recent = data.health?.fuel?.recent || [];
+ const list = $('ec-fuel-recent');
+ list.textContent = '';
+ if (!recent.length) {
+ list.append(el('div', 'ec-empty', 'No refuel swaps recorded yet. The lane only fires on a real shortage.'));
+ return;
+ }
+ const table = el('table', 'ec-table');
+ const thead = el('thead');
+ const hr = el('tr');
+ for (const h of ['When', 'Spent', 'Bought', 'Impact', 'Transaction']) hr.append(el('th', null, h));
+ thead.append(hr);
+ table.append(thead);
+ const tbody = el('tbody');
+ for (const s of recent.slice(0, 8)) {
+ const tr = el('tr');
+ tr.append(el('td', null, s.at ? new Date(s.at).toLocaleString() : '—'));
+ tr.append(el('td', 'ec-num', fmtUsd(s.usd)));
+ tr.append(el('td', 'ec-num', `${fmtSol(s.sol)} SOL`));
+ tr.append(el('td', 'ec-num', `${Number(s.price_impact_pct || 0).toFixed(2)}%`));
+ const txCell = el('td');
+ if (s.signature) {
+ const a = el('a', null, `${String(s.signature).slice(0, 10)}…`);
+ a.href = `https://solscan.io/tx/${s.signature}`;
+ a.target = '_blank';
+ a.rel = 'noopener noreferrer';
+ txCell.append(a);
+ } else txCell.textContent = '—';
+ tr.append(txCell);
+ tbody.append(tr);
+ }
+ table.append(tbody);
+ const scroll = el('div', 'ec-scroll');
+ scroll.append(table);
+ list.append(scroll);
+}
+
+function renderEngine(health) {
+ const host = $('ec-engine');
+ host.textContent = '';
+ if (!health) {
+ host.append(el('div', 'ec-error', 'Could not read engine configuration.'));
+ return;
+ }
+ const live = health.liveness || {};
+ host.append(
+ statCard('Agent pool', String(health.pool_size ?? 0), `target ${health.config?.pool_target ?? '?'}, ${health.quarantined_agents ?? 0} quarantined`),
+ statCard('Actions / tick', String(health.config?.actions_per_tick ?? 0), 'Paid slots are cut when the treasury is thin'),
+ statCard('Actions 24h', String(live.actions_24h ?? 0), `${live.actions_1h ?? 0} in the last hour`),
+ statCard('Last action', live.minutes_since == null ? '—' : `${live.minutes_since}m ago`, live.stale ? 'Stale: the tick may have stopped' : 'Ticking normally'),
+ );
+}
+
+function setStamp() {
+ $('ec-stamp').textContent = `updated ${new Date().toLocaleTimeString()}`;
+}
+
+function showSkeletons() {
+ for (const id of ['ec-pulse', 'ec-engine', 'ec-fuel']) {
+ const host = $(id);
+ host.textContent = '';
+ for (let i = 0; i < 4; i++) {
+ const card = el('div', 'ec-card');
+ const k = el('p', 'ec-k ec-skeleton', 'loading');
+ const v = el('p', 'ec-v ec-skeleton', '0.0000');
+ card.append(k, v);
+ host.append(card);
+ }
+ }
+}
+
+// ── controller ───────────────────────────────────────────────────────────────
+
+async function refresh() {
+ if (inFlight) return;
+ inFlight = true;
+ $('ec-root').setAttribute('aria-busy', 'true');
+ try {
+ const data = await loadAll();
+ renderVerdict(data);
+ renderPulse(data.stats);
+ renderEngine(data.health);
+ renderChain(data);
+ renderLanes(data.health);
+ renderFuel(data);
+ setStamp();
+ $('ec-gate-err').textContent = '';
+ } catch (e) {
+ if (e.unauthorized) {
+ sessionStorage.removeItem(SECRET_KEY);
+ secret = '';
+ stopTimer();
+ showGate('That secret was rejected.');
+ } else {
+ $('ec-stamp').textContent = `refresh failed: ${e.message}`;
+ }
+ } finally {
+ inFlight = false;
+ $('ec-root').setAttribute('aria-busy', 'false');
+ }
+}
+
+function startTimer() {
+ stopTimer();
+ if (!paused) timer = setInterval(refresh, REFRESH_MS);
+}
+
+function stopTimer() {
+ if (timer) clearInterval(timer);
+ timer = null;
+}
+
+function showGate(message) {
+ $('ec-gate').hidden = false;
+ $('ec-panel').hidden = true;
+ $('ec-hint').hidden = true;
+ if (message) $('ec-gate-err').textContent = message;
+ $('ec-secret').focus();
+}
+
+function showPanel() {
+ $('ec-gate').hidden = true;
+ $('ec-panel').hidden = false;
+ $('ec-hint').hidden = false;
+ showSkeletons();
+ refresh();
+ startTimer();
+}
+
+function init() {
+ secret = sessionStorage.getItem(SECRET_KEY) || '';
+
+ $('ec-gate-form').addEventListener('submit', (e) => {
+ e.preventDefault();
+ const value = $('ec-secret').value.trim();
+ if (!value) {
+ $('ec-gate-err').textContent = 'Enter the operator secret.';
+ return;
+ }
+ secret = value;
+ sessionStorage.setItem(SECRET_KEY, value);
+ $('ec-secret').value = '';
+ showPanel();
+ });
+
+ $('ec-refresh').addEventListener('click', refresh);
+ $('ec-pause').addEventListener('click', () => {
+ paused = !paused;
+ $('ec-pause').textContent = paused ? 'Resume' : 'Pause';
+ $('ec-pause').setAttribute('aria-pressed', String(paused));
+ if (paused) stopTimer();
+ else startTimer();
+ });
+
+ document.addEventListener('keydown', (e) => {
+ if (e.target.matches('input, textarea')) return;
+ if (e.key === 'r') refresh();
+ if (e.key === 'p') $('ec-pause').click();
+ });
+
+ // Pause polling in a hidden tab: an ops page left open all day should not
+ // keep hitting the RPC-backed reads for nobody.
+ document.addEventListener('visibilitychange', () => {
+ if (document.hidden) stopTimer();
+ else if (!paused && !$('ec-panel').hidden) { refresh(); startTimer(); }
+ });
+
+ if (secret) showPanel();
+ else showGate();
+}
+
+if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', init);
+else init();
diff --git a/src/agent-screen-treasury-format.js b/src/agent-screen-treasury-format.js
index 9fc82107c..1ac5461c2 100644
--- a/src/agent-screen-treasury-format.js
+++ b/src/agent-screen-treasury-format.js
@@ -156,5 +156,5 @@ export function previewLine(result = {}) {
self_fund: 'Would pay compute costs',
buffer: 'Would top up the buffer',
}[result.kind] || 'Would run a treasury action';
- return usd ? `${verb} — ${usd}` : verb;
+ return usd ? `${verb}: ${usd}` : verb;
}
diff --git a/src/asl-alphabet-data.js b/src/asl-alphabet-data.js
new file mode 100644
index 000000000..b8f94d726
--- /dev/null
+++ b/src/asl-alphabet-data.js
@@ -0,0 +1,63 @@
+// The manual alphabet, described in words.
+// ========================================
+// The engine knows the HANDSHAPE for every letter (src/sign-handshapes.js);
+// this file is the human half: what a reader should look for, and the letters
+// each one is confused with. Descriptions follow the standard teaching
+// descriptions of the American manual alphabet, written for someone who has
+// never fingerspelled.
+//
+// `motion: true` marks the two letters that are traced rather than held (J and
+// Z), and `look` is the pairing note the page shows so a learner knows which
+// letters they will mix up.
+
+/** @type {Record<string, { hand: string, look?: string, motion?: boolean }>} */
+export const LETTER_NOTES = Object.freeze({
+ A: { hand: 'Closed fist, thumb resting straight along the side of the index finger.', look: 'Against S: the A thumb sits beside the fist, the S thumb crosses in front of it.' },
+ B: { hand: 'Flat hand, four fingers straight up and together, thumb folded across the palm.', look: 'Against 4: B tucks the thumb in, 4 leaves it out.' },
+ C: { hand: 'Fingers and thumb curved into the shape of the letter C, palm to the side.', look: 'Against O: C stays open, O closes the gap.' },
+ D: { hand: 'Index finger straight up; the other fingers meet the thumb in a circle beneath it.', look: 'Against 1: D adds the circle of fingers under the raised index.' },
+ E: { hand: 'Fingers curled down onto the flat thumb, fingertips touching it.', look: 'Against S and A: E shows curled fingertips rather than a solid fist.' },
+ F: { hand: 'Index finger and thumb touch in a circle; the other three fingers stand up.', look: 'Against 9: the same shape, so context tells them apart.' },
+ G: { hand: 'Index finger and thumb held parallel, pointing sideways, a small gap between them.', look: 'Against Q: G points sideways, Q points down.' },
+ H: { hand: 'Index and middle fingers together, pointing sideways.', look: 'Against U: H lies sideways, U points up.' },
+ I: { hand: 'Fist with only the little finger raised.', look: 'Against Y: I raises the pinky alone, Y adds the thumb.' },
+ J: { hand: 'The I handshape traces the letter J through the air.', look: 'The motion is the letter: without it, J reads as I.', motion: true },
+ K: { hand: 'Index and middle fingers up in a V, thumb pressed between them.', look: 'Against V: K sets the thumb into the fork.' },
+ L: { hand: 'Index finger up and thumb out, making a right angle.', look: 'Unmistakable, and the easiest letter to teach first.' },
+ M: { hand: 'Thumb tucked under the first three fingers, which fold over it.', look: 'Against N: M covers the thumb with three fingers, N with two.' },
+ N: { hand: 'Thumb tucked under the first two fingers, which fold over it.', look: 'Against M: count the fingers over the thumb.' },
+ O: { hand: 'Fingers and thumb curve together into a closed circle.', look: 'Against C: O closes, C leaves a gap.' },
+ P: { hand: 'The K handshape rotated to point down.', look: 'Against K: same fingers, different direction.' },
+ Q: { hand: 'The G handshape rotated to point down.', look: 'Against G: same fingers, different direction.' },
+ R: { hand: 'Index and middle fingers crossed, standing up.', look: 'Against U and V: R crosses the fingers instead of parting them.' },
+ S: { hand: 'Closed fist, thumb crossing in front of the folded fingers.', look: 'Against A: the thumb crosses the fingers rather than resting beside them.' },
+ T: { hand: 'Thumb tucked between the index and middle fingers of a fist.', look: 'Against N: T pushes the thumb up between the first two fingers.' },
+ U: { hand: 'Index and middle fingers straight up and together.', look: 'Against V: U keeps the fingers together, V spreads them.' },
+ V: { hand: 'Index and middle fingers straight up, spread apart.', look: 'Against U and 2: the shape is the same as 2, read from context.' },
+ W: { hand: 'Index, middle and ring fingers up and spread; thumb holds the little finger.', look: 'Against 6: the same shape, read from context.' },
+ X: { hand: 'Fist with the index finger raised and hooked.', look: 'Against 1: X hooks the finger instead of holding it straight.' },
+ Y: { hand: 'Fist with the thumb and little finger extended.', look: 'Against I: Y adds the thumb.' },
+ Z: { hand: 'The index finger draws the letter Z in the air.', look: 'The motion is the letter: without it, Z reads as 1.', motion: true },
+ 0: { hand: 'Fingers and thumb form a closed circle, palm forward.', look: 'Against O: the number faces the reader.' },
+ 1: { hand: 'Index finger straight up, the rest closed.', look: 'Against D and X: 1 keeps the finger straight and free.' },
+ 2: { hand: 'Index and middle fingers up and spread.', look: 'Shares its shape with V.' },
+ 3: { hand: 'Thumb, index and middle fingers extended.', look: 'Against 6 and W: count the extended fingers.' },
+ 4: { hand: 'Four fingers up and spread, thumb across the palm.', look: 'Against B: 4 spreads the fingers.' },
+ 5: { hand: 'All five fingers spread, palm forward.', look: 'The open hand: the shape most other letters start from.' },
+ 6: { hand: 'Little finger and thumb touch; the other three fingers stand up.', look: 'Shares its shape with W.' },
+ 7: { hand: 'Ring finger and thumb touch; the other fingers stand up.', look: 'Against 8: 7 uses the ring finger, 8 the middle.' },
+ 8: { hand: 'Middle finger and thumb touch; the other fingers stand up.', look: 'Against 7: check which finger meets the thumb.' },
+ 9: { hand: 'Index finger and thumb touch in a circle; the other fingers stand up.', look: 'Shares its shape with F.' },
+});
+
+/** Letters in the order the page lays them out. */
+export const LETTERS = Object.freeze('ABCDEFGHIJKLMNOPQRSTUVWXYZ'.split(''));
+
+/** Digits in the order the page lays them out. */
+export const DIGITS = Object.freeze('0123456789'.split(''));
+
+/** Words the practice mode draws from: short, common, and worth spelling. */
+export const PRACTICE_WORDS = Object.freeze([
+ 'HELLO', 'NAME', 'FRIEND', 'COFFEE', 'MUSIC', 'SUMMER', 'ORANGE', 'PLANET',
+ 'GARDEN', 'YELLOW', 'WINDOW', 'SILVER', 'PURPLE', 'CANDLE', 'MARKET', 'RIVER',
+]);
diff --git a/src/asl-alphabet-page.js b/src/asl-alphabet-page.js
new file mode 100644
index 000000000..abbda2380
--- /dev/null
+++ b/src/asl-alphabet-page.js
@@ -0,0 +1,424 @@
+// /asl-alphabet: the manual alphabet, on a live avatar.
+//
+// The reference half of the platform's signing work. /sign-language answers
+// "what can this do"; this page answers "how do I make an F, and why do I keep
+// confusing it with a 9". Every letter is signed on a real rig, described in
+// words, paired with the letters it is mistaken for, and drillable.
+//
+// The 3D + animation stack is the same PoseStage the studio and /sign-language
+// use, driven straight from src/fingerspelling.js so the letters here are the
+// exact letters an agent signs in chat.
+
+import { PoseStage } from './avatar-pose.js';
+import { buildFingerspellingClip, normalizeWord } from './fingerspelling.js';
+import { DIGITS, LETTERS, LETTER_NOTES, PRACTICE_WORDS } from './asl-alphabet-data.js';
+import { log } from './shared/log.js';
+
+// The same two rigs, and the same stored preferences, as /sign-language: a
+// left-handed signer who set that once should never set it again.
+const AVATARS = [
+ { id: 'classic', label: 'Classic', url: '/avatars/cz.glb' },
+ { id: 'expressive', label: 'Expressive face', url: '/avatars/default.glb' },
+];
+const PREFS_KEY = 'threews:sign-prefs';
+const SPEEDS = [
+ { label: '0.5×', rate: 0.5 },
+ { label: '0.75×', rate: 0.75 },
+ { label: '1×', rate: 1 },
+];
+
+function loadPrefs() {
+ try {
+ return JSON.parse(localStorage.getItem(PREFS_KEY)) || {};
+ } catch {
+ return {};
+ }
+}
+function savePrefs(prefs) {
+ try {
+ localStorage.setItem(PREFS_KEY, JSON.stringify(prefs));
+ } catch {
+ /* private mode: settings just don't persist */
+ }
+}
+
+const $ = (sel, root = document) => root.querySelector(sel);
+const CHARS = [...LETTERS, ...DIGITS];
+
+/** Scale every spelling duration so the whole word slows without losing shape. */
+function scaledTiming(rate) {
+ return {
+ holdSeconds: 0.5 / rate,
+ transitionSeconds: 0.22 / rate,
+ motionSeconds: 0.9 / rate,
+ leadSeconds: 0.35 / rate,
+ tailSeconds: 0.4 / rate,
+ };
+}
+
+async function boot() {
+ const stageHost = $('#aa-stage');
+ if (!stageHost) return;
+
+ const prefs = loadPrefs();
+ let avatar = AVATARS.find((a) => a.id === prefs.avatar) || AVATARS[0];
+ let rate = SPEEDS.some((s) => s.rate === prefs.rate) ? prefs.rate : 1;
+ let dominant = prefs.dominant === 'Left' ? 'Left' : 'Right';
+
+ let stage = null;
+ let canSign = false;
+ let playToken = 0;
+ let highlightTimers = [];
+ let current = null;
+
+ const statusEl = $('#aa-status');
+ const setStatus = (msg) => {
+ if (statusEl) statusEl.textContent = msg || '';
+ };
+
+ const reducedMotion = window.matchMedia?.('(prefers-reduced-motion: reduce)').matches ?? false;
+
+ // ── Stage ────────────────────────────────────────────────────────────────
+ const mountStage = async () => {
+ stage?.dispose();
+ stage = new PoseStage(stageHost, { glbUrl: avatar.url });
+ try {
+ const { supported } = await stage.mount();
+ stage.start();
+ canSign = !!supported;
+ if (!supported) setStatus('This avatar has no finger bones, so it cannot form handshapes. Every description below still applies.');
+ return canSign;
+ } catch (err) {
+ log.warn('[asl-alphabet] stage mount failed', err?.message);
+ canSign = false;
+ setStatus('Live preview unavailable. Every letter is still described below.');
+ return false;
+ }
+ };
+ await mountStage();
+
+ // ── Playing letters and words ────────────────────────────────────────────
+ const clearHighlights = () => {
+ highlightTimers.forEach((t) => clearTimeout(t));
+ highlightTimers = [];
+ document.querySelectorAll('.aa-key[data-live="true"]').forEach((el) => el.removeAttribute('data-live'));
+ };
+
+ /**
+ * Spell `text` on the avatar and light each key as the hand reaches it.
+ * Marks come from the clip builder itself, so the highlight is the real
+ * cadence rather than an animation guessed alongside it.
+ */
+ const play = async (text, { describe = true } = {}) => {
+ const letters = normalizeWord(text);
+ if (!letters) {
+ setStatus('Letters and numbers only: that is all the manual alphabet can spell.');
+ return null;
+ }
+ if (!stage?.anim || !canSign) {
+ setStatus('Live preview unavailable. Every letter is still described below.');
+ return null;
+ }
+ const token = ++playToken;
+ clearHighlights();
+ const marks = [];
+ let clip;
+ try {
+ clip = buildFingerspellingClip(letters, { ...scaledTiming(rate), dominant, marks });
+ } catch (err) {
+ setStatus(err?.message || 'Could not build that spelling.');
+ return null;
+ }
+ const name = `aa-${token}`;
+ stage.anim.injectClip(name, clip, { loop: false });
+ stage.anim.playOnce(name, {});
+
+ const startedAt = performance.now();
+ for (const mark of marks) {
+ if (mark.letter === ' ') continue;
+ highlightTimers.push(
+ window.setTimeout(() => {
+ if (token !== playToken) return;
+ clearHighlightsOnly();
+ const key = document.querySelector(`.aa-key[data-char="${mark.letter}"]`);
+ key?.setAttribute('data-live', 'true');
+ if (describe) showLetter(mark.letter, { quiet: true });
+ }, Math.max(0, mark.start * 1000 - (performance.now() - startedAt))),
+ );
+ }
+ highlightTimers.push(
+ window.setTimeout(() => {
+ if (token === playToken) clearHighlightsOnly();
+ }, clip.duration * 1000),
+ );
+ return { clip, letters };
+ };
+
+ const clearHighlightsOnly = () => {
+ document.querySelectorAll('.aa-key[data-live="true"]').forEach((el) => el.removeAttribute('data-live'));
+ };
+
+ // ── The letter detail card ───────────────────────────────────────────────
+ const bigEl = $('#aa-big');
+ const handEl = $('#aa-hand');
+ const lookEl = $('#aa-look');
+ const motionEl = $('#aa-motion');
+ const shareBtn = $('#aa-share');
+
+ const markSelected = (char) => {
+ document.querySelectorAll('.aa-key').forEach((el) => {
+ el.setAttribute('aria-pressed', String(el.dataset.char === char));
+ });
+ };
+
+ function showLetter(char, { quiet = false } = {}) {
+ const note = LETTER_NOTES[char];
+ if (!note) return;
+ current = char;
+ if (bigEl) bigEl.textContent = char;
+ if (handEl) handEl.textContent = note.hand;
+ if (lookEl) lookEl.textContent = note.look || '';
+ if (motionEl) motionEl.hidden = !note.motion;
+ markSelected(char);
+ if (shareBtn) shareBtn.hidden = false;
+ if (!quiet) setStatus(`${char}: ${note.hand}`);
+ }
+
+ const signLetter = async (char) => {
+ showLetter(char);
+ await play(char, { describe: false });
+ };
+
+ // ── The keyboard of letters ──────────────────────────────────────────────
+ const buildKeys = (hostSel, chars) => {
+ const host = $(hostSel);
+ if (!host) return;
+ for (const char of chars) {
+ const key = document.createElement('button');
+ key.type = 'button';
+ key.className = 'aa-key';
+ key.dataset.char = char;
+ key.textContent = char;
+ key.setAttribute('aria-pressed', 'false');
+ key.setAttribute('aria-label', `Sign the letter ${char}`);
+ key.title = LETTER_NOTES[char]?.hand || '';
+ key.addEventListener('click', () => signLetter(char));
+ host.appendChild(key);
+ }
+ };
+ buildKeys('#aa-letters', LETTERS);
+ buildKeys('#aa-digits', DIGITS);
+
+ // Typing a letter signs it: the fastest possible path from "what is a Q"
+ // to seeing a Q, with no pointer involved.
+ document.addEventListener('keydown', (e) => {
+ const typing = /^(input|textarea)$/i.test(e.target?.tagName || '');
+ if (typing || e.metaKey || e.ctrlKey || e.altKey) return;
+ const char = e.key.toUpperCase();
+ if (!CHARS.includes(char)) return;
+ e.preventDefault();
+ signLetter(char);
+ });
+
+ // ── Spell a word ─────────────────────────────────────────────────────────
+ const spellInput = $('#aa-spell-input');
+ const spellBtn = $('#aa-spell-btn');
+ const spellIt = async () => {
+ const raw = spellInput?.value?.trim();
+ if (!raw) {
+ setStatus('Type a word and the avatar spells it, letter by letter.');
+ spellInput?.focus();
+ return;
+ }
+ const normalized = normalizeWord(raw);
+ setStatus(`Spelling ${normalized.toLowerCase()}`);
+ if (shareBtn) {
+ shareBtn.hidden = false;
+ shareBtn.dataset.share = `${location.origin}/asl-alphabet?spell=${encodeURIComponent(normalized)}`;
+ }
+ await play(raw);
+ };
+ spellBtn?.addEventListener('click', spellIt);
+ spellInput?.addEventListener('keydown', (e) => {
+ if (e.key === 'Enter') {
+ e.preventDefault();
+ spellIt();
+ }
+ });
+
+ shareBtn?.addEventListener('click', async () => {
+ const url = shareBtn.dataset.share || `${location.origin}/asl-alphabet?letter=${encodeURIComponent(current || 'A')}`;
+ try {
+ await navigator.clipboard.writeText(url);
+ shareBtn.textContent = '🔗 Link copied';
+ setTimeout(() => {
+ shareBtn.textContent = '🔗 Share this';
+ }, 1600);
+ } catch {
+ setStatus(url);
+ }
+ });
+
+ // ── Practice ─────────────────────────────────────────────────────────────
+ // A drill, not a game: the avatar spells something, you write what you read,
+ // and the answer is checked against what was actually signed.
+ const practice = {
+ answer: '',
+ streak: 0,
+ best: Number(loadPrefs().aslBest || 0),
+ active: false,
+ };
+ const practiceEl = $('#aa-practice');
+ const practiceInput = $('#aa-practice-input');
+ const practiceFeedback = $('#aa-practice-feedback');
+ const streakEl = $('#aa-streak');
+ const bestEl = $('#aa-best');
+ const startBtn = $('#aa-practice-start');
+ const replayBtn = $('#aa-practice-replay');
+ const revealBtn = $('#aa-practice-reveal');
+ const modeInputs = document.querySelectorAll('input[name="aa-mode"]');
+
+ const renderScore = () => {
+ if (streakEl) streakEl.textContent = String(practice.streak);
+ if (bestEl) bestEl.textContent = String(practice.best);
+ };
+ renderScore();
+
+ const currentMode = () => [...modeInputs].find((i) => i.checked)?.value || 'letters';
+
+ const nextRound = async () => {
+ if (!canSign) {
+ setStatus('Practice needs the live avatar, which could not load here.');
+ return;
+ }
+ practice.active = true;
+ practice.answer =
+ currentMode() === 'words'
+ ? PRACTICE_WORDS[Math.floor(Math.random() * PRACTICE_WORDS.length)]
+ : CHARS[Math.floor(Math.random() * CHARS.length)];
+ if (practiceFeedback) {
+ practiceFeedback.textContent = 'Watch, then type what it spelled.';
+ practiceFeedback.dataset.state = 'asking';
+ }
+ if (practiceInput) {
+ practiceInput.value = '';
+ practiceInput.disabled = false;
+ practiceInput.focus();
+ }
+ if (replayBtn) replayBtn.hidden = false;
+ if (revealBtn) revealBtn.hidden = false;
+ if (startBtn) startBtn.textContent = 'Skip to the next one';
+ // The whole point is to read it, so the keys must not give it away.
+ await play(practice.answer, { describe: false });
+ };
+
+ const checkAnswer = () => {
+ if (!practice.active) return;
+ const guess = normalizeWord(practiceInput?.value || '').replace(/\s+/g, '');
+ if (!guess) return;
+ const right = guess === practice.answer;
+ practice.streak = right ? practice.streak + 1 : 0;
+ if (practice.streak > practice.best) {
+ practice.best = practice.streak;
+ savePrefs({ ...loadPrefs(), aslBest: practice.best });
+ }
+ renderScore();
+ if (practiceFeedback) {
+ practiceFeedback.textContent = right
+ ? `Correct: ${practice.answer}. Next one is coming.`
+ : `That was ${practice.answer}, not ${guess}. Watch it again.`;
+ practiceFeedback.dataset.state = right ? 'right' : 'wrong';
+ }
+ practice.active = false;
+ if (right) setTimeout(nextRound, 1200);
+ };
+
+ startBtn?.addEventListener('click', nextRound);
+ replayBtn?.addEventListener('click', () => play(practice.answer, { describe: false }));
+ revealBtn?.addEventListener('click', () => {
+ if (practiceFeedback) {
+ practiceFeedback.textContent = `It spelled ${practice.answer}.`;
+ practiceFeedback.dataset.state = 'shown';
+ }
+ practice.active = false;
+ });
+ practiceInput?.addEventListener('keydown', (e) => {
+ if (e.key === 'Enter') {
+ e.preventDefault();
+ checkAnswer();
+ }
+ });
+ $('#aa-practice-check')?.addEventListener('click', checkAnswer);
+ if (practiceEl && !canSign) practiceEl.dataset.disabled = 'true';
+
+ // ── Settings ─────────────────────────────────────────────────────────────
+ const buildOptions = (hostSel, options, pressed, onPick) => {
+ const host = $(hostSel);
+ if (!host) return;
+ for (const option of options) {
+ const btn = document.createElement('button');
+ btn.type = 'button';
+ btn.className = 'aa-opt';
+ btn.textContent = option.label;
+ btn.setAttribute('aria-pressed', String(pressed(option)));
+ btn.addEventListener('click', () => {
+ host.querySelectorAll('.aa-opt').forEach((b) => b.setAttribute('aria-pressed', 'false'));
+ btn.setAttribute('aria-pressed', 'true');
+ onPick(option);
+ });
+ host.appendChild(btn);
+ }
+ };
+
+ const persist = () => savePrefs({ ...loadPrefs(), rate, dominant, avatar: avatar.id });
+
+ buildOptions('#aa-speed', SPEEDS, (s) => s.rate === rate, (s) => {
+ rate = s.rate;
+ persist();
+ if (current) play(current, { describe: false });
+ });
+ buildOptions(
+ '#aa-hand',
+ [
+ { label: 'Right-handed', side: 'Right' },
+ { label: 'Left-handed', side: 'Left' },
+ ],
+ (o) => o.side === dominant,
+ (o) => {
+ dominant = o.side;
+ persist();
+ if (current) play(current, { describe: false });
+ },
+ );
+ let switchingRig = false;
+ buildOptions('#aa-rig', AVATARS, (a) => a.id === avatar.id, async (picked) => {
+ if (switchingRig || picked.id === avatar.id) return;
+ switchingRig = true;
+ avatar = picked;
+ persist();
+ setStatus('Loading avatar…');
+ const ok = await mountStage();
+ switchingRig = false;
+ if (ok && current) play(current, { describe: false });
+ });
+
+ // ── Deep links ───────────────────────────────────────────────────────────
+ const params = new URLSearchParams(location.search);
+ const wanted = (params.get('letter') || '').toUpperCase().slice(0, 1);
+ const wantedWord = params.get('spell') || '';
+ if (wantedWord && normalizeWord(wantedWord)) {
+ if (spellInput) spellInput.value = wantedWord.slice(0, 24);
+ if (!reducedMotion) spellIt();
+ else setStatus(`Ready to spell ${normalizeWord(wantedWord).toLowerCase()}. Press Spell it.`);
+ } else if (CHARS.includes(wanted)) {
+ showLetter(wanted);
+ if (!reducedMotion) signLetter(wanted);
+ } else {
+ showLetter('A');
+ if (!reducedMotion && canSign) signLetter('A');
+ else setStatus('Pick a letter, or press any letter key.');
+ }
+}
+
+if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', boot);
+else boot();
diff --git a/src/docs-world/main.js b/src/docs-world/main.js
index 14865470f..ed04c05ea 100644
--- a/src/docs-world/main.js
+++ b/src/docs-world/main.js
@@ -31,10 +31,25 @@ import { log } from '../shared/log.js';
const $ = (id) => document.getElementById(id);
-function showFallback(message) {
- const el = $('dw-fallback');
+/**
+ * Show the designed no-world state.
+ *
+ * @param {{ title?: string, message?: string, retry?: boolean }} [opts]
+ * `retry` marks the failure recoverable (a dropped manifest fetch, an offline
+ * moment) and reveals a reload button. A device with no WebGL gets no retry:
+ * reloading cannot grow it a GPU, and a button that reproduces the same dead
+ * end is worse than none.
+ */
+function showFallback({ title, message, retry = false } = {}) {
+ if (title) $('dw-fallback-title').textContent = title;
if (message) $('dw-fallback-sub').textContent = message;
- el.hidden = false;
+ const retryBtn = $('dw-fallback-retry');
+ retryBtn.hidden = !retry;
+ if (retry) {
+ retryBtn.onclick = () => location.reload();
+ retryBtn.focus({ preventScroll: true });
+ }
+ $('dw-fallback').hidden = false;
$('dw-loading').hidden = true;
}
@@ -53,7 +68,12 @@ async function boot() {
if (!sections.length) throw new Error('empty manifest');
} catch (err) {
log.warn('[docs-world] nav manifest failed', err?.message);
- showFallback('The docs manifest could not be loaded. The classic docs below always work.');
+ showFallback({
+ title: 'The world could not load its map',
+ message:
+ 'The docs index (/docs/nav.json) did not arrive, so there are no pavilions to build. This is usually a dropped connection: try again, or read the same pages in the classic docs.',
+ retry: true,
+ });
return;
}
diff --git a/src/docs-world/player.js b/src/docs-world/player.js
index 3c74f1970..224c5f8d8 100644
--- a/src/docs-world/player.js
+++ b/src/docs-world/player.js
@@ -88,7 +88,7 @@ export function createPlayer(scene, renderer, { avatarUrl = DEFAULT_BODY_GLB } =
// lens while the pavilions are 24m out, so it reads as a slab impaling the
// avatar and its welcome sign covers the pavilion labels behind it. Standing
// the player to one side puts the beacon beside them instead of through them.
- root.position.set(3.4, 0, 3.4);
+ root.position.set(2.4, 0, 3.4);
root.rotation.y = Math.PI;
scene.add(root);
diff --git a/src/docs-world/world.js b/src/docs-world/world.js
index d19c9fba7..21799cf21 100644
--- a/src/docs-world/world.js
+++ b/src/docs-world/world.js
@@ -358,8 +358,19 @@ export function createDocsWorld(canvas, sections, { reducedMotion = false } = {}
'#8b5cf6',
BEACON_LABEL_SCALE,
);
- // Clear of the ring labels (which sit at y 3.6) so the two never stack.
- beaconLabel.position.y = 5.4;
+ // Height is set against the spawn camera, not against the ring labels' own y.
+ // The sign sits ~5m from the lens while the pavilions are 24m out, so its
+ // screen position is dominated by proximity: clearing the ring labels in
+ // world space (y 5.4) threw it off the top of the frame entirely. Just above
+ // the pillar's 3.4m crown keeps it legible on spawn and low enough to read
+ // against the empty plaza rather than across the pavilion label band.
+ //
+ // Below the pillar's crown rather than above it: the spawn camera pitches
+ // down about 24 degrees, which collapses everything at plaza height onto the
+ // same screen band as the 24m ring labels no matter how the sign is nudged
+ // around that height. Hanging it on the post instead drops it clear onto the
+ // dark plaza floor, and reads as a signpost rather than a floating card.
+ beaconLabel.position.y = 2.4;
beacon.add(beaconLabel);
scene.add(beacon);
diff --git a/src/fingerspelling.js b/src/fingerspelling.js
index 6a6962683..343aacd7f 100644
--- a/src/fingerspelling.js
+++ b/src/fingerspelling.js
@@ -161,10 +161,14 @@ function readyPose(base, dominant) {
* `lead: false` starts with the hand already up in signing space and
* `settle: false` leaves it there: what a word in the MIDDLE of a sentence
* needs, since a signer does not lower their arm between words.
+ * `marks` is an array this fills with `{ letter, start, end }` in seconds, so
+ * a UI can follow along letter by letter without re-deriving the cadence
+ * (the alphabet page highlights the letter the hand is actually on).
* @returns {object} clip document, ready for THREE.AnimationClip.parse + retarget
*/
export function buildFingerspellingClip(word, opts = {}) {
const timing = { ...DEFAULT_TIMING, ...opts };
+ const marks = Array.isArray(opts.marks) ? opts.marks : null;
const letters = normalizeWord(word);
if (!letters) throw new Error('word has no spellable characters (A-Z, 0-9)');
@@ -179,10 +183,12 @@ export function buildFingerspellingClip(word, opts = {}) {
let prev = null;
for (const ch of letters) {
+ const startedAt = tl.time;
if (ch === ' ') {
// A word break is a small drop and re-set of the hand, not a pause.
tl.to(readyPose(base, dominant), timing.transitionSeconds, { ease: 'smooth' });
tl.hold(timing.holdSeconds * 0.5);
+ if (marks) marks.push({ letter: ch, start: startedAt, end: tl.time });
prev = null;
continue;
}
@@ -203,6 +209,7 @@ export function buildFingerspellingClip(word, opts = {}) {
tl.to(letterPose(ch, { dominant }, base), timing.transitionSeconds, { ease: 'smooth' });
tl.hold(timing.holdSeconds);
}
+ if (marks) marks.push({ letter: ch, start: startedAt, end: tl.time });
prev = ch;
}
diff --git a/src/master-wallet.js b/src/master-wallet.js
new file mode 100644
index 000000000..60c3268f1
--- /dev/null
+++ b/src/master-wallet.js
@@ -0,0 +1,730 @@
+/**
+ * Your master wallet (/wallet) — page controller.
+ *
+ * The per-user custodial hub described in docs/user-wallet.md. Until this page
+ * existed the four /api/user/wallet endpoints were reachable only by curl, so
+ * no account had ever provisioned a wallet. This is the surface that makes the
+ * feature real for a person instead of a script.
+ *
+ * Not to be confused with src/wallet.js, which connects an EXTERNAL wallet
+ * (Phantom, or the Seed Vault on Solana Mobile). This file never touches a
+ * browser wallet: the keys here are platform-custodied and server-side, and the
+ * page only ever asks the API to act on them.
+ *
+ * Page states, all designed, none of them a blank screen:
+ * loading skeleton matching the final layout, so nothing jumps
+ * signed out an explanation plus a sign-in link that returns here
+ * no wallet the invitation to provision, with what actually gets created
+ * ready balances, addresses, and the three actions
+ * error what failed, in plain words, with a retry that re-runs the read
+ *
+ * Money movement is deliberately two-step. Send prices the transfer first
+ * through the server's simulate path (real balance, rent and fee checks, signs
+ * nothing), then shows recipient, amount, asset and network for explicit
+ * confirmation before anything is broadcast. No amount leaves this page
+ * without the user reading it back.
+ */
+
+import {
+ fetchWallet,
+ createWallet,
+ fetchHistory,
+ previewSend,
+ send as sendFunds,
+ fetchMyAgents,
+ fundAgent,
+} from './wallet-api.js';
+
+const root = document.getElementById('wlt-root');
+const USDC_MINT = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
+
+/** Live page state. Re-rendered wholesale; small enough that diffing is noise. */
+const state = {
+ phase: 'loading', // loading | anon | empty | ready | error
+ wallet: null,
+ error: null,
+ tab: 'send', // send | fund | history
+ history: { status: 'idle', items: [], error: null },
+ agents: { status: 'idle', items: [], error: null },
+ pending: null, // a priced, unconfirmed transfer awaiting the user's yes
+ busy: false,
+ notice: null, // { kind: 'ok' | 'err', title, body, href, hrefLabel }
+};
+
+function esc(s) {
+ return String(s ?? '').replace(
+ /[&<>"']/g,
+ (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' })[c],
+ );
+}
+
+/** Middle-truncate an address: enough head and tail to verify by eye. */
+function shortAddr(a, head = 6, tail = 6) {
+ const s = String(a || '');
+ return s.length <= head + tail + 1 ? s : `${s.slice(0, head)}…${s.slice(-tail)}`;
+}
+
+/**
+ * Format a token amount without lying about precision. Balances arrive as
+ * floats; nine decimals of SOL is noise and two hides dust, so scale the
+ * decimals to the magnitude and mark a non-zero amount that would otherwise
+ * round away to nothing.
+ */
+function fmtAmount(n, maxDecimals = 6) {
+ if (n == null || !Number.isFinite(n)) return null;
+ if (n === 0) return '0';
+ if (Math.abs(n) < 10 ** -maxDecimals) return `<${10 ** -maxDecimals}`;
+ const decimals = Math.abs(n) >= 1000 ? 2 : Math.abs(n) >= 1 ? 4 : maxDecimals;
+ return n.toLocaleString(undefined, { maximumFractionDigits: decimals });
+}
+
+function fmtUsd(n) {
+ if (n == null || !Number.isFinite(n)) return null;
+ return n.toLocaleString(undefined, {
+ style: 'currency',
+ currency: 'USD',
+ maximumFractionDigits: 2,
+ });
+}
+
+function fmtWhen(unixSeconds) {
+ if (!unixSeconds) return 'pending confirmation';
+ const then = new Date(unixSeconds * 1000);
+ const secs = Math.round((Date.now() - then.getTime()) / 1000);
+ if (secs < 60) return 'just now';
+ if (secs < 3600) return `${Math.floor(secs / 60)}m ago`;
+ if (secs < 86400) return `${Math.floor(secs / 3600)}h ago`;
+ if (secs < 604800) return `${Math.floor(secs / 86400)}d ago`;
+ return then.toLocaleDateString(undefined, { month: 'short', day: 'numeric' });
+}
+
+/**
+ * Human copy for the API's machine codes. A raw `insufficient_sol_for_fees`
+ * tells the user nothing about what to do next; these say what to do next.
+ */
+const ERROR_COPY = {
+ invalid_destination: 'That is not a valid Solana address. Check it and try again.',
+ invalid_amount: 'Enter an amount greater than zero.',
+ invalid_asset: 'That token mint could not be read on Solana.',
+ insufficient_balance: 'Your balance is too low for that amount.',
+ insufficient_sol_for_fees:
+ 'You need a little more SOL to cover the network fee. Around 0.01 SOL is enough.',
+ no_agent_wallet: 'That agent has no Solana wallet yet. Open the agent and provision one first.',
+ forbidden: 'That agent is not yours.',
+ rpc_error: 'Solana did not answer in time. Nothing was sent. Try again in a moment.',
+ send_failed: 'The network rejected the transaction. Nothing was charged.',
+ rate_limited: 'Too many requests. Wait a few seconds and try again.',
+ not_found: 'No master wallet yet. Create one first.',
+ network_error: 'You appear to be offline. Nothing was sent.',
+};
+
+function humanError(res) {
+ return ERROR_COPY[res?.code] || res?.message || 'Something went wrong.';
+}
+
+// ── Rendering ────────────────────────────────────────────────────────────────
+
+function skeleton() {
+ return `
+ <div class="wlt-skel" aria-busy="true" aria-label="Loading your wallet">
+ <div class="wlt-skel-hero"></div>
+ <div class="wlt-skel-row">
+ <div class="wlt-skel-card"></div>
+ <div class="wlt-skel-card"></div>
+ <div class="wlt-skel-card"></div>
+ <div class="wlt-skel-card"></div>
+ </div>
+ <div class="wlt-skel-panel"></div>
+ </div>`;
+}
+
+function anonState() {
+ const next = encodeURIComponent(location.pathname);
+ return `
+ <section class="wlt-hero">
+ <span class="wlt-eyebrow">Master wallet</span>
+ <h1 class="wlt-hero-title">One wallet for your account</h1>
+ <p class="wlt-hero-sub">
+ Separate from your agents' wallets. Fund it once, then top up any agent you
+ own, send SOL or USDC to any Solana address, and read its on-chain history.
+ </p>
+ <div class="wlt-hero-actions">
+ <a class="wlt-btn wlt-btn--primary wlt-btn--lg" href="/login?next=${next}">Sign in to continue</a>
+ <a class="wlt-btn wlt-btn--lg" href="/docs/user-wallet">How it works</a>
+ </div>
+ </section>`;
+}
+
+function errorState() {
+ return `
+ <section class="wlt-msg" role="alert">
+ <h1 class="wlt-msg-title">We could not load your wallet</h1>
+ <p class="wlt-msg-body">${esc(state.error || 'Unknown error.')}</p>
+ <div class="wlt-hero-actions">
+ <button class="wlt-btn wlt-btn--primary" type="button" data-act="reload">Try again</button>
+ <a class="wlt-btn" href="/docs/user-wallet">Read the docs</a>
+ </div>
+ </section>`;
+}
+
+function emptyState() {
+ return `
+ <section class="wlt-hero">
+ <span class="wlt-eyebrow">Master wallet</span>
+ <h1 class="wlt-hero-title">You do not have a master wallet yet</h1>
+ <p class="wlt-hero-sub">
+ Creating one generates a Solana keypair and an EVM keypair, held by the
+ platform for your account and encrypted at rest with AES-256-GCM. There is
+ no seed phrase to write down, and no funds move until you send them.
+ </p>
+ <ul class="wlt-bullets">
+ <li><strong>Fund your agents</strong> without touching an external wallet.</li>
+ <li><strong>Send SOL or any SPL token</strong> to any Solana address.</li>
+ <li><strong>Hold USDC on Solana and Base</strong> in one place.</li>
+ </ul>
+ <div class="wlt-hero-actions">
+ <button class="wlt-btn wlt-btn--primary wlt-btn--lg" type="button" data-act="create" ${state.busy ? 'disabled' : ''}>
+ ${state.busy ? 'Creating your wallet…' : 'Create my master wallet'}
+ </button>
+ <a class="wlt-btn wlt-btn--lg" href="/docs/user-wallet">How it works</a>
+ </div>
+ </section>`;
+}
+
+function balanceCards(b) {
+ const cards = [
+ { label: 'Total value', value: fmtUsd(b?.total_usd), sub: 'Solana + Base', accent: true },
+ { label: 'SOL', value: fmtAmount(b?.sol, 6), sub: 'Solana' },
+ { label: 'USDC', value: fmtAmount(b?.sol_usdc, 2), sub: 'Solana' },
+ { label: 'USDC', value: fmtAmount(b?.evm_usdc, 2), sub: 'Base' },
+ ];
+ return cards
+ .map(
+ (c) => `
+ <div class="wlt-bal${c.accent ? ' wlt-bal--accent' : ''}">
+ <span class="wlt-bal-label">${esc(c.label)}</span>
+ <span class="wlt-bal-value">${
+ c.value == null
+ ? '<span class="wlt-bal-na" title="This balance could not be read just now">unavailable</span>'
+ : esc(c.value)
+ }</span>
+ <span class="wlt-bal-sub">${esc(c.sub)}</span>
+ </div>`,
+ )
+ .join('');
+}
+
+function addressRow(label, address, explorer) {
+ if (!address) return '';
+ return `
+ <div class="wlt-addr">
+ <span class="wlt-addr-label">${esc(label)}</span>
+ <code class="wlt-addr-value" title="${esc(address)}">${esc(shortAddr(address, 10, 10))}</code>
+ <button class="wlt-icon-btn" type="button" data-act="copy" data-copy="${esc(address)}"
+ aria-label="Copy ${esc(label)} address">Copy</button>
+ <a class="wlt-icon-btn" href="${esc(explorer)}" target="_blank" rel="noopener noreferrer"
+ aria-label="View ${esc(label)} address on the block explorer">Explorer</a>
+ </div>`;
+}
+
+function tabButton(id, label) {
+ const on = state.tab === id;
+ return `<button class="wlt-tab${on ? ' is-active' : ''}" type="button" role="tab"
+ aria-selected="${on}" aria-controls="wlt-panel" id="wlt-tab-${id}"
+ tabindex="${on ? '0' : '-1'}" data-act="tab" data-tab="${id}">${esc(label)}</button>`;
+}
+
+/** The priced, unconfirmed transfer. Nothing is signed until Confirm is hit. */
+function confirmPanel() {
+ const p = state.pending;
+ const usd = fmtUsd(p.usdValue);
+ return `
+ <div class="wlt-confirm" role="group" aria-labelledby="wlt-confirm-title">
+ <h3 class="wlt-confirm-title" id="wlt-confirm-title">Confirm this transfer</h3>
+ <p class="wlt-confirm-note">Checked against the chain. Nothing has been signed or sent yet.</p>
+ <dl class="wlt-confirm-rows">
+ <div>
+ <dt>Amount</dt>
+ <dd class="wlt-confirm-amount">${esc(fmtAmount(p.humanAmount, 9) ?? p.amount)} ${esc(p.assetLabel)}${
+ usd ? ` <span class="wlt-confirm-usd">${esc(usd)}</span>` : ''
+ }</dd>
+ </div>
+ <div>
+ <dt>${p.kind === 'fund' ? 'To agent' : 'To address'}</dt>
+ <dd><code>${esc(p.kind === 'fund' ? p.agentName : p.destination)}</code></dd>
+ </div>
+ ${
+ p.kind === 'fund'
+ ? `<div><dt>Agent wallet</dt><dd><code>${esc(shortAddr(p.destination, 8, 8))}</code></dd></div>`
+ : ''
+ }
+ <div><dt>Network</dt><dd>Solana mainnet</dd></div>
+ </dl>
+ <div class="wlt-confirm-actions">
+ <button class="wlt-btn wlt-btn--primary" type="button" data-act="confirm" ${state.busy ? 'disabled' : ''}>
+ ${state.busy ? 'Sending…' : 'Confirm and send'}
+ </button>
+ <button class="wlt-btn" type="button" data-act="cancel" ${state.busy ? 'disabled' : ''}>Cancel</button>
+ </div>
+ </div>`;
+}
+
+function sendPanel() {
+ if (state.pending?.kind === 'send') return confirmPanel();
+ return `
+ <form class="wlt-form" data-form="send" novalidate>
+ <div class="wlt-field">
+ <label for="wlt-dest">Destination address</label>
+ <input class="wlt-input" id="wlt-dest" name="destination" type="text" required
+ spellcheck="false" autocomplete="off"
+ placeholder="A Solana address" aria-describedby="wlt-dest-help" />
+ <p class="wlt-help" id="wlt-dest-help">Solana mainnet only. Check it carefully: a transfer cannot be reversed.</p>
+ </div>
+ <div class="wlt-field-row">
+ <div class="wlt-field">
+ <label for="wlt-asset">Asset</label>
+ <select class="wlt-input" id="wlt-asset" name="asset">
+ <option value="SOL">SOL</option>
+ <option value="${USDC_MINT}">USDC</option>
+ </select>
+ </div>
+ <div class="wlt-field">
+ <label for="wlt-amount">Amount</label>
+ <input class="wlt-input" id="wlt-amount" name="amount" type="text" required
+ spellcheck="false" autocomplete="off" inputmode="decimal" placeholder="0.0" />
+ <p class="wlt-help">Type an amount, or <button class="wlt-linkbtn" type="button" data-act="max">send max</button>.</p>
+ </div>
+ </div>
+ <button class="wlt-btn wlt-btn--primary" type="submit" ${state.busy ? 'disabled' : ''}>
+ ${state.busy ? 'Checking…' : 'Review transfer'}
+ </button>
+ </form>`;
+}
+
+function fundPanel() {
+ if (state.pending?.kind === 'fund') return confirmPanel();
+ const { status, items, error } = state.agents;
+ if (status === 'loading' || status === 'idle') {
+ return `<div class="wlt-inline-skel" aria-busy="true" aria-label="Loading your agents"></div>`;
+ }
+ if (status === 'error') {
+ return `
+ <div class="wlt-msg wlt-msg--inline" role="alert">
+ <p class="wlt-msg-body">${esc(error)}</p>
+ <button class="wlt-btn" type="button" data-act="reload-agents">Try again</button>
+ </div>`;
+ }
+ const fundable = items.filter((a) => a.solana_address);
+ if (!fundable.length) {
+ return `
+ <div class="wlt-empty">
+ <h3>No agent to fund yet</h3>
+ <p>${
+ items.length
+ ? 'Your agents do not have Solana wallets yet. Open an agent to provision one, then come back.'
+ : 'Once you create an agent, you can top up its wallet from here in one step.'
+ }</p>
+ <a class="wlt-btn wlt-btn--primary" href="${items.length ? '/agents' : '/create'}">
+ ${items.length ? 'Open my agents' : 'Create an agent'}
+ </a>
+ </div>`;
+ }
+ return `
+ <form class="wlt-form" data-form="fund" novalidate>
+ <div class="wlt-field">
+ <label for="wlt-agent">Agent</label>
+ <select class="wlt-input" id="wlt-agent" name="agent_id" required>
+ ${fundable
+ .map(
+ (a) =>
+ `<option value="${esc(a.id)}">${esc(a.name || 'Untitled agent')} · ${esc(shortAddr(a.solana_address, 4, 4))}</option>`,
+ )
+ .join('')}
+ </select>
+ <p class="wlt-help">Only agents you own appear here, and the server checks ownership again before sending.</p>
+ </div>
+ <div class="wlt-field-row">
+ <div class="wlt-field">
+ <label for="wlt-fund-asset">Asset</label>
+ <select class="wlt-input" id="wlt-fund-asset" name="asset">
+ <option value="USDC">USDC</option>
+ <option value="SOL">SOL</option>
+ </select>
+ </div>
+ <div class="wlt-field">
+ <label for="wlt-fund-amount">Amount</label>
+ <input class="wlt-input" id="wlt-fund-amount" name="amount" type="text" required
+ spellcheck="false" autocomplete="off" inputmode="decimal" placeholder="0.0" />
+ </div>
+ </div>
+ <button class="wlt-btn wlt-btn--primary" type="submit" ${state.busy ? 'disabled' : ''}>
+ ${state.busy ? 'Checking…' : 'Review top-up'}
+ </button>
+ </form>`;
+}
+
+function historyPanel() {
+ const { status, items, error } = state.history;
+ if (status === 'loading' || status === 'idle') {
+ return `<div class="wlt-inline-skel" aria-busy="true" aria-label="Loading transaction history"></div>`;
+ }
+ if (status === 'error') {
+ return `
+ <div class="wlt-msg wlt-msg--inline" role="alert">
+ <p class="wlt-msg-body">${esc(error)}</p>
+ <button class="wlt-btn" type="button" data-act="reload-history">Try again</button>
+ </div>`;
+ }
+ if (!items.length) {
+ return `
+ <div class="wlt-empty">
+ <h3>No transactions yet</h3>
+ <p>Once you fund this wallet or send from it, every transaction appears here, read straight from Solana.</p>
+ </div>`;
+ }
+ return `
+ <ul class="wlt-tx-list">
+ ${items
+ .map((t) => {
+ const delta = t.lamport_delta == null ? null : t.lamport_delta / 1e9;
+ const dir = delta == null || delta === 0 ? 'neutral' : delta > 0 ? 'in' : 'out';
+ const amount =
+ delta == null || delta === 0
+ ? null
+ : `${delta > 0 ? '+' : '−'}${fmtAmount(Math.abs(delta), 6)} SOL`;
+ return `
+ <li class="wlt-tx${t.success ? '' : ' wlt-tx--failed'}">
+ <span class="wlt-tx-dot wlt-tx-dot--${t.success ? dir : 'failed'}" aria-hidden="true"></span>
+ <span class="wlt-tx-main">
+ <span class="wlt-tx-summary">${esc(t.summary || 'Transaction')}</span>
+ <span class="wlt-tx-meta">${esc(fmtWhen(t.block_time))}${t.success ? '' : ' · failed'}</span>
+ </span>
+ ${amount ? `<span class="wlt-tx-amount wlt-tx-amount--${dir}">${esc(amount)}</span>` : ''}
+ <a class="wlt-tx-link" href="${esc(t.explorer)}" target="_blank" rel="noopener noreferrer"
+ aria-label="View transaction ${esc(shortAddr(t.signature))} on Solscan">View</a>
+ </li>`;
+ })
+ .join('')}
+ </ul>`;
+}
+
+function noticeBanner() {
+ const n = state.notice;
+ if (!n) return '';
+ return `
+ <div class="wlt-notice wlt-notice--${n.kind === 'ok' ? 'ok' : 'err'}" role="${n.kind === 'ok' ? 'status' : 'alert'}">
+ <div class="wlt-notice-text">
+ <strong>${esc(n.title)}</strong>
+ ${n.body ? `<span>${esc(n.body)}</span>` : ''}
+ </div>
+ ${
+ n.href
+ ? `<a class="wlt-btn wlt-btn--sm" href="${esc(n.href)}" target="_blank" rel="noopener noreferrer">${esc(n.hrefLabel || 'View')}</a>`
+ : ''
+ }
+ <button class="wlt-icon-btn" type="button" data-act="dismiss" aria-label="Dismiss this message">Dismiss</button>
+ </div>`;
+}
+
+function readyState() {
+ const w = state.wallet;
+ const panels = { send: sendPanel, fund: fundPanel, history: historyPanel };
+ return `
+ <header class="wlt-head">
+ <div>
+ <span class="wlt-eyebrow">Master wallet</span>
+ <h1 class="wlt-title">Your wallet</h1>
+ </div>
+ <button class="wlt-btn wlt-btn--sm" type="button" data-act="refresh" ${state.busy ? 'disabled' : ''}>
+ Refresh balances
+ </button>
+ </header>
+
+ ${noticeBanner()}
+
+ <section class="wlt-balances" aria-label="Balances">
+ ${balanceCards(w.balances)}
+ </section>
+
+ <section class="wlt-addresses" aria-label="Wallet addresses">
+ ${addressRow('Solana', w.solana_address, `https://solscan.io/account/${w.solana_address}`)}
+ ${addressRow('Base', w.evm_address, `https://basescan.org/address/${w.evm_address}`)}
+ <p class="wlt-addr-note">Fund this wallet by sending SOL or SPL tokens to the Solana address, or USDC on Base to the Base address.</p>
+ </section>
+
+ <section class="wlt-actions">
+ <div class="wlt-tabs" role="tablist" aria-label="Wallet actions">
+ ${tabButton('send', 'Send')}
+ ${tabButton('fund', 'Fund an agent')}
+ ${tabButton('history', 'History')}
+ </div>
+ <div class="wlt-panel" id="wlt-panel" role="tabpanel" aria-labelledby="wlt-tab-${state.tab}" tabindex="0">
+ ${panels[state.tab]()}
+ </div>
+ </section>`;
+}
+
+function render() {
+ const views = {
+ loading: skeleton,
+ anon: anonState,
+ empty: emptyState,
+ error: errorState,
+ ready: readyState,
+ };
+ root.innerHTML = (views[state.phase] || skeleton)();
+}
+
+// ── Data loading ─────────────────────────────────────────────────────────────
+
+async function loadWallet() {
+ state.phase = 'loading';
+ render();
+ const res = await fetchWallet();
+ if (!res.ok) {
+ if (res.status === 401) {
+ state.phase = 'anon';
+ } else {
+ state.phase = 'error';
+ state.error = humanError(res);
+ }
+ render();
+ return;
+ }
+ if (!res.data?.wallet) {
+ state.phase = 'empty';
+ render();
+ return;
+ }
+ state.wallet = res.data.wallet;
+ state.phase = 'ready';
+ render();
+}
+
+async function loadHistory() {
+ state.history = { status: 'loading', items: [], error: null };
+ if (state.phase === 'ready' && state.tab === 'history') render();
+ const res = await fetchHistory(20);
+ state.history = res.ok
+ ? { status: 'ready', items: res.data?.history || [], error: null }
+ : { status: 'error', items: [], error: humanError(res) };
+ if (state.phase === 'ready' && state.tab === 'history') render();
+}
+
+async function loadAgents() {
+ state.agents = { status: 'loading', items: [], error: null };
+ if (state.phase === 'ready' && state.tab === 'fund') render();
+ const res = await fetchMyAgents();
+ state.agents = res.ok
+ ? { status: 'ready', items: res.data?.agents || [], error: null }
+ : { status: 'error', items: [], error: humanError(res) };
+ if (state.phase === 'ready' && state.tab === 'fund') render();
+}
+
+// ── Actions ──────────────────────────────────────────────────────────────────
+
+async function onCreate() {
+ state.busy = true;
+ render();
+ const res = await createWallet();
+ state.busy = false;
+ if (!res.ok) {
+ state.phase = 'error';
+ state.error = humanError(res);
+ render();
+ return;
+ }
+ state.notice = {
+ kind: 'ok',
+ title: 'Your master wallet is ready.',
+ body: 'Send SOL or USDC to the Solana address below to fund it.',
+ };
+ await loadWallet();
+}
+
+/**
+ * Price a send. The server does the arithmetic against real balances, rent and
+ * fees, so the confirmation shows chain truth rather than a browser estimate.
+ */
+async function onReviewSend(form) {
+ const destination = form.destination.value.trim();
+ const asset = form.asset.value;
+ const amount = form.amount.value.trim();
+ if (!destination || !amount) {
+ state.notice = { kind: 'err', title: 'Fill in a destination and an amount.' };
+ render();
+ return;
+ }
+ state.busy = true;
+ state.notice = null;
+ render();
+ const res = await previewSend({ destination, asset, amount });
+ state.busy = false;
+ if (!res.ok) {
+ state.notice = { kind: 'err', title: 'That transfer was not accepted.', body: humanError(res) };
+ render();
+ return;
+ }
+ const sim = res.data?.simulation || {};
+ state.pending = {
+ kind: 'send',
+ destination: sim.destination || destination,
+ asset,
+ assetLabel: asset === 'SOL' ? 'SOL' : asset === USDC_MINT ? 'USDC' : shortAddr(asset),
+ amount,
+ humanAmount: sim.human_amount,
+ usdValue: sim.usd_value,
+ };
+ render();
+}
+
+function onReviewFund(form) {
+ const agentId = form.agent_id.value;
+ const asset = form.asset.value;
+ const amount = form.amount.value.trim();
+ if (!agentId || !amount) {
+ state.notice = { kind: 'err', title: 'Pick an agent and enter an amount.' };
+ render();
+ return;
+ }
+ const isMax = amount === 'max' || amount === 'MAX';
+ const n = isMax ? null : Number(amount);
+ if (!isMax && (!Number.isFinite(n) || n <= 0)) {
+ state.notice = { kind: 'err', title: 'Enter an amount greater than zero.' };
+ render();
+ return;
+ }
+ const agent = state.agents.items.find((a) => a.id === agentId);
+ // fund-agent has no simulate path, so this confirmation is built from the
+ // user's own input plus the agent record. The server re-validates ownership,
+ // balance, rent and fees before it signs anything.
+ state.notice = null;
+ state.pending = {
+ kind: 'fund',
+ agentId,
+ agentName: agent?.name || 'Your agent',
+ destination: agent?.solana_address || '',
+ asset,
+ assetLabel: asset,
+ amount,
+ humanAmount: n,
+ usdValue: asset === 'USDC' ? n : null,
+ };
+ render();
+}
+
+async function onConfirm() {
+ const p = state.pending;
+ if (!p) return;
+ state.busy = true;
+ render();
+ const res =
+ p.kind === 'fund'
+ ? await fundAgent({ agentId: p.agentId, asset: p.asset, amount: p.amount })
+ : await sendFunds({ destination: p.destination, asset: p.asset, amount: p.amount });
+ state.busy = false;
+ state.pending = null;
+ if (!res.ok) {
+ state.notice = { kind: 'err', title: 'The transfer did not go through.', body: humanError(res) };
+ render();
+ return;
+ }
+ const sent = res.data || {};
+ state.notice = {
+ kind: 'ok',
+ title: `Sent ${fmtAmount(sent.human_amount, 9) ?? p.amount} ${p.assetLabel}.`,
+ body:
+ p.kind === 'fund'
+ ? `${p.agentName} has been topped up.`
+ : `Delivered to ${shortAddr(p.destination)}.`,
+ href: sent.explorer,
+ hrefLabel: 'View on Solscan',
+ };
+ // Balances and history both moved; re-read rather than guess the new numbers.
+ await loadWallet();
+ if (state.history.status !== 'idle') loadHistory();
+}
+
+async function onCopy(text, btn) {
+ try {
+ await navigator.clipboard.writeText(text);
+ const prev = btn.textContent;
+ btn.textContent = 'Copied';
+ btn.classList.add('is-copied');
+ setTimeout(() => {
+ btn.textContent = prev;
+ btn.classList.remove('is-copied');
+ }, 1400);
+ } catch {
+ state.notice = {
+ kind: 'err',
+ title: 'Could not copy automatically.',
+ body: 'Select the address and copy it manually.',
+ };
+ render();
+ }
+}
+
+function switchTab(tab) {
+ if (state.tab === tab) return;
+ state.tab = tab;
+ state.pending = null;
+ render();
+ if (tab === 'history' && state.history.status === 'idle') loadHistory();
+ if (tab === 'fund' && state.agents.status === 'idle') loadAgents();
+}
+
+// ── Wiring ───────────────────────────────────────────────────────────────────
+
+root.addEventListener('click', (e) => {
+ const el = e.target.closest('[data-act]');
+ if (!el) return;
+ const act = el.dataset.act;
+ if (act === 'create') return void onCreate();
+ if (act === 'reload' || act === 'refresh') return void loadWallet();
+ if (act === 'reload-history') return void loadHistory();
+ if (act === 'reload-agents') return void loadAgents();
+ if (act === 'tab') return switchTab(el.dataset.tab);
+ if (act === 'copy') return void onCopy(el.dataset.copy, el);
+ if (act === 'confirm') return void onConfirm();
+ if (act === 'cancel') {
+ state.pending = null;
+ render();
+ return;
+ }
+ if (act === 'dismiss') {
+ state.notice = null;
+ render();
+ return;
+ }
+ if (act === 'max') {
+ const input = root.querySelector('#wlt-amount');
+ if (input) {
+ input.value = 'max';
+ input.focus();
+ }
+ }
+});
+
+root.addEventListener('submit', (e) => {
+ const form = e.target.closest('form[data-form]');
+ if (!form) return;
+ e.preventDefault();
+ if (state.busy) return;
+ if (form.dataset.form === 'send') return void onReviewSend(form);
+ if (form.dataset.form === 'fund') return onReviewFund(form);
+});
+
+// Arrow-key navigation across the tablist, per the WAI-ARIA tabs pattern.
+root.addEventListener('keydown', (e) => {
+ if (!e.target.classList?.contains('wlt-tab')) return;
+ if (e.key !== 'ArrowRight' && e.key !== 'ArrowLeft') return;
+ e.preventDefault();
+ const order = ['send', 'fund', 'history'];
+ const i = order.indexOf(state.tab);
+ const next = order[(i + (e.key === 'ArrowRight' ? 1 : order.length - 1)) % order.length];
+ switchTab(next);
+ root.querySelector(`#wlt-tab-${next}`)?.focus();
+});
+
+loadWallet();
diff --git a/src/runtime/animation-slots.js b/src/runtime/animation-slots.js
index 6e84b3076..9298e5166 100644
--- a/src/runtime/animation-slots.js
+++ b/src/runtime/animation-slots.js
@@ -2,11 +2,11 @@
//
// Two layers live here:
//
-// 1. SLOTS + DEFAULT_ANIMATION_MAP — the slot names an agent may override
+// 1. SLOTS + DEFAULT_ANIMATION_MAP: the slot names an agent may override
// (meta.edits.animations) and the clip each one resolves to by default.
// Every value is a real baked clip in public/animations/manifest.json;
// tests/animation-slots.test.js fails the build if one drifts.
-// 2. HINT_ALIASES + resolveHint — the skill-side vocabulary. Skills declare
+// 2. HINT_ALIASES + resolveHint: the skill-side vocabulary. Skills declare
// `animationHint: '<name>'` (src/agent-skills*.js) and the avatar plays
// the matching slot. Hints that are not slot names (the `gesture-*`
// family) alias onto one, so a hint can never resolve to nothing.
diff --git a/src/trading-hub.css b/src/trading-hub.css
new file mode 100644
index 000000000..ba8764982
--- /dev/null
+++ b/src/trading-hub.css
@@ -0,0 +1,568 @@
+/* /trading, the autonomous-trading control room.
+ *
+ * Layered on /src/coin-pages.css (which supplies .cv-container, .cv-h1, .cv-sub,
+ * .cv-section, .cv-crumbs). Everything here is namespaced .th-* so it cannot
+ * leak into the shared coin-page surfaces.
+ *
+ * Colour, spacing, radius and type values come from public/tokens.css per
+ * docs/DESIGN-TOKENS.md. The only literals are alpha overlays derived from
+ * currentColor and geometry that has no token (sparkline box, grid tracks).
+ */
+
+.th-page {
+ --th-gap: var(--space-5);
+}
+
+/* hero */
+
+.th-hero {
+ padding: var(--space-6) 0 var(--space-5);
+ border-bottom: 1px solid var(--color-hairline);
+}
+
+.th-hero-copy {
+ max-width: 68ch;
+}
+
+.th-hero .cv-h1 {
+ margin: var(--space-3) 0 var(--space-3);
+}
+
+.th-hero-actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: var(--space-3);
+ margin-top: var(--space-5);
+}
+
+.th-btn {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ padding: var(--space-3) var(--space-5);
+ border-radius: var(--radius-control);
+ font-family: var(--font-body);
+ font-size: var(--text-ui);
+ font-weight: 600;
+ text-decoration: none;
+ border: 1px solid transparent;
+ transition:
+ background-color var(--duration-fast) var(--ease-standard),
+ border-color var(--duration-fast) var(--ease-standard),
+ transform var(--duration-fast) var(--ease-standard);
+}
+
+.th-btn:hover {
+ transform: translateY(-1px);
+}
+
+.th-btn:active {
+ transform: translateY(0);
+}
+
+.th-btn:focus-visible {
+ outline: 2px solid var(--focus-ring-color);
+ outline-offset: 2px;
+}
+
+.th-btn-primary {
+ background: var(--accent);
+ color: var(--btn-primary-fg);
+}
+
+.th-btn-primary:hover {
+ background: var(--btn-primary-bg-hover);
+}
+
+.th-btn-secondary {
+ background: var(--surface-2);
+ color: var(--color-text-bright);
+ border-color: var(--color-border);
+}
+
+.th-btn-secondary:hover {
+ background: var(--btn-secondary-bg-hover);
+ border-color: var(--color-border-strong);
+}
+
+/* status pill */
+
+.th-pill {
+ display: inline-flex;
+ align-items: center;
+ gap: var(--space-2);
+ padding: var(--space-2) var(--space-3);
+ border-radius: var(--radius-pill);
+ border: 1px solid var(--color-border);
+ background: var(--surface-2);
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
+ letter-spacing: 0.04em;
+ text-transform: uppercase;
+ color: var(--color-text-dim);
+}
+
+.th-dot {
+ width: 0.5rem;
+ height: 0.5rem;
+ border-radius: var(--radius-full);
+ background: currentColor;
+ flex: none;
+}
+
+.th-pill-live {
+ color: var(--color-success);
+ border-color: color-mix(in srgb, var(--color-success) 40%, transparent);
+}
+
+.th-pill-live .th-dot {
+ animation: th-pulse 2s var(--ease-standard) infinite;
+}
+
+.th-pill-warn {
+ color: var(--color-warning);
+ border-color: color-mix(in srgb, var(--color-warning) 40%, transparent);
+}
+
+.th-pill-down {
+ color: var(--color-danger);
+ border-color: color-mix(in srgb, var(--color-danger) 40%, transparent);
+}
+
+.th-pill-muted,
+.th-pill-unknown,
+.th-pill-loading {
+ color: var(--color-text-faint);
+}
+
+@keyframes th-pulse {
+ 0%,
+ 100% {
+ opacity: 1;
+ }
+ 50% {
+ opacity: 0.35;
+ }
+}
+
+/* section furniture */
+
+.th-h2 {
+ font-family: var(--font-display);
+ font-size: var(--text-xl);
+ margin: 0;
+ color: var(--color-text-bright);
+}
+
+.th-section-sub {
+ margin: var(--space-2) 0 var(--space-5);
+ max-width: 62ch;
+ color: var(--color-text-dim);
+ font-size: var(--text-base);
+ line-height: 1.6;
+}
+
+.th-section-head {
+ display: flex;
+ align-items: flex-start;
+ justify-content: space-between;
+ gap: var(--space-4);
+ flex-wrap: wrap;
+}
+
+.th-more {
+ color: var(--color-accent);
+ font-size: var(--text-ui);
+ text-decoration: none;
+ white-space: nowrap;
+ border-bottom: 1px solid transparent;
+}
+
+.th-more:hover {
+ border-bottom-color: currentColor;
+}
+
+.th-more:focus-visible {
+ outline: 2px solid var(--focus-ring-color);
+ outline-offset: 2px;
+}
+
+/* vitals */
+
+.th-vitals {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
+ gap: var(--th-gap);
+}
+
+.th-vital {
+ padding: var(--space-4);
+ border: 1px solid var(--color-hairline);
+ border-radius: var(--radius-card);
+ background: var(--surface-2);
+ min-height: 6.5rem;
+}
+
+.th-vital-label {
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
+ text-transform: uppercase;
+ letter-spacing: 0.06em;
+ color: var(--color-text-faint);
+}
+
+.th-vital-value {
+ font-family: var(--font-display);
+ font-size: var(--text-lg);
+ color: var(--color-text-bright);
+ margin: var(--space-2) 0 var(--space-1);
+}
+
+.th-vital-sub {
+ font-size: var(--text-sm);
+ color: var(--color-text-dim);
+ line-height: 1.45;
+}
+
+.th-vital-live .th-vital-value {
+ color: var(--color-success);
+}
+
+.th-vital-warn .th-vital-value {
+ color: var(--color-warning);
+}
+
+.th-vital-down .th-vital-value {
+ color: var(--color-danger);
+}
+
+/* scoreboard */
+
+.th-board {
+ display: flex;
+ flex-direction: column;
+ gap: var(--space-3);
+}
+
+.th-row {
+ display: grid;
+ grid-template-columns: 2rem 1fr 7.5rem auto;
+ align-items: center;
+ gap: var(--space-4);
+ padding: var(--space-4);
+ border: 1px solid var(--color-hairline);
+ border-radius: var(--radius-card);
+ background: var(--surface-2);
+ min-height: 5rem;
+ transition: border-color var(--duration-fast) var(--ease-standard);
+}
+
+.th-row:hover {
+ border-color: var(--color-border-strong);
+}
+
+.th-row-rank {
+ font-family: var(--font-mono);
+ font-size: var(--text-md);
+ color: var(--color-text-faint);
+ text-align: center;
+}
+
+.th-row-name {
+ font-family: var(--font-display);
+ font-size: var(--text-base);
+ margin: 0;
+ color: var(--color-text-bright);
+}
+
+.th-row-meta {
+ margin: var(--space-1) 0 0;
+ font-size: var(--text-sm);
+ color: var(--color-text-dim);
+}
+
+.th-row-spark svg {
+ width: 100%;
+ height: 2rem;
+ display: block;
+}
+
+.th-row-spark path {
+ fill: none;
+ stroke: var(--color-text-faint);
+ stroke-width: 1.5;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+}
+
+.th-row-up .th-row-spark path {
+ stroke: var(--color-success);
+}
+
+.th-row-down .th-row-spark path {
+ stroke: var(--color-danger);
+}
+
+.th-row-pnl {
+ text-align: right;
+}
+
+.th-row-pnl-value {
+ font-family: var(--font-mono);
+ font-size: var(--text-base);
+ color: var(--color-text-bright);
+}
+
+.th-row-up .th-row-pnl-value {
+ color: var(--color-success);
+}
+
+.th-row-down .th-row-pnl-value {
+ color: var(--color-danger);
+}
+
+.th-row-pnl-sub {
+ font-size: var(--text-sm);
+ color: var(--color-text-dim);
+ margin-top: var(--space-1);
+}
+
+/* pipeline */
+
+.th-pipeline {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
+ gap: var(--th-gap);
+}
+
+.th-step {
+ padding: var(--space-4);
+ border: 1px solid var(--color-hairline);
+ border-radius: var(--radius-card);
+ background: var(--surface-2);
+ position: relative;
+}
+
+.th-step-n {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ width: 1.75rem;
+ height: 1.75rem;
+ border-radius: var(--radius-full);
+ background: var(--surface-3);
+ color: var(--color-accent);
+ font-family: var(--font-mono);
+ font-size: var(--text-sm);
+}
+
+.th-step-h {
+ font-family: var(--font-display);
+ font-size: var(--text-base);
+ margin: var(--space-3) 0 var(--space-2);
+ color: var(--color-text-bright);
+}
+
+.th-step p {
+ margin: 0;
+ font-size: var(--text-md);
+ line-height: 1.6;
+ color: var(--color-text-dim);
+}
+
+/* card directories */
+
+.th-cards {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
+ gap: var(--th-gap);
+}
+
+.th-cards-compact {
+ grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
+}
+
+.th-card {
+ display: flex;
+ flex-direction: column;
+ gap: var(--space-2);
+ padding: var(--space-4);
+ border: 1px solid var(--color-hairline);
+ border-radius: var(--radius-card);
+ background: var(--surface-2);
+ text-decoration: none;
+ transition:
+ border-color var(--duration-fast) var(--ease-standard),
+ background-color var(--duration-fast) var(--ease-standard),
+ transform var(--duration-fast) var(--ease-standard);
+}
+
+.th-card:hover {
+ border-color: var(--color-border-strong);
+ background: var(--surface-3);
+ transform: translateY(-2px);
+}
+
+.th-card:active {
+ transform: translateY(0);
+}
+
+.th-card:focus-visible {
+ outline: 2px solid var(--focus-ring-color);
+ outline-offset: 2px;
+}
+
+.th-card-kicker {
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
+ text-transform: uppercase;
+ letter-spacing: 0.06em;
+ color: var(--color-accent);
+}
+
+.th-card-title {
+ font-family: var(--font-display);
+ font-size: var(--text-base);
+ color: var(--color-text-bright);
+}
+
+.th-card-body {
+ font-size: var(--text-md);
+ line-height: 1.55;
+ color: var(--color-text-dim);
+}
+
+/* safety rails */
+
+.th-rails {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
+ gap: var(--th-gap);
+}
+
+.th-rails li {
+ padding-left: var(--space-4);
+ border-left: 2px solid var(--color-border);
+}
+
+.th-rails h3 {
+ font-family: var(--font-display);
+ font-size: var(--text-base);
+ margin: 0 0 var(--space-2);
+ color: var(--color-text-bright);
+}
+
+.th-rails p {
+ margin: 0;
+ font-size: var(--text-md);
+ line-height: 1.6;
+ color: var(--color-text-dim);
+}
+
+.th-rails a {
+ color: var(--color-accent);
+}
+
+/* states */
+
+.th-state {
+ padding: var(--space-6) var(--space-5);
+ border: 1px dashed var(--color-border);
+ border-radius: var(--radius-card);
+ background: var(--surface-1);
+ text-align: center;
+}
+
+.th-state h3 {
+ font-family: var(--font-display);
+ font-size: var(--text-base);
+ margin: 0 0 var(--space-2);
+ color: var(--color-text-bright);
+}
+
+.th-state p {
+ margin: 0 auto var(--space-2);
+ max-width: 52ch;
+ font-size: var(--text-md);
+ line-height: 1.6;
+ color: var(--color-text-dim);
+}
+
+.th-state a {
+ color: var(--color-accent);
+}
+
+.th-state-error {
+ border-color: color-mix(in srgb, var(--color-danger) 45%, transparent);
+}
+
+.th-skeleton {
+ position: relative;
+ overflow: hidden;
+ background: var(--surface-2);
+ border-color: transparent;
+}
+
+.th-skeleton::after {
+ content: '';
+ position: absolute;
+ inset: 0;
+ background: linear-gradient(
+ 90deg,
+ transparent,
+ color-mix(in srgb, currentColor 8%, transparent),
+ transparent
+ );
+ transform: translateX(-100%);
+ animation: th-shimmer 1.4s var(--ease-standard) infinite;
+}
+
+@keyframes th-shimmer {
+ 100% {
+ transform: translateX(100%);
+ }
+}
+
+/* responsive */
+
+@media (max-width: 640px) {
+ .th-row {
+ grid-template-columns: 1.5rem 1fr auto;
+ }
+
+ /* The sparkline is decorative; drop it before the numbers get cramped. */
+ .th-row-spark {
+ display: none;
+ }
+
+ .th-hero {
+ padding-top: var(--space-5);
+ }
+
+ .th-btn {
+ flex: 1 1 100%;
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .th-btn,
+ .th-card {
+ transition: none;
+ }
+
+ .th-btn:hover,
+ .th-card:hover {
+ transform: none;
+ }
+
+ .th-pill-live .th-dot,
+ .th-skeleton::after {
+ animation: none;
+ }
+}
diff --git a/tests/admin-economy-core.test.js b/tests/admin-economy-core.test.js
new file mode 100644
index 000000000..fb4f1958e
--- /dev/null
+++ b/tests/admin-economy-core.test.js
@@ -0,0 +1,204 @@
+// The /admin/economy verdict has to be trustworthy, because its whole purpose is
+// letting an operator skip the hours of manual endpoint-walking that diagnosing
+// the 2026-07-30 flatline actually took.
+//
+// The cases below are the real ones. The hard part is that several distinct
+// faults present identically from the outside (a busy activity feed, a healthy
+// action count) and have opposite remediations, so the ORDER of the rules is
+// itself the thing under test.
+
+import { describe, it, expect } from 'vitest';
+import {
+ diagnose, chainLinks, totalDeficit, linkState, linkFill,
+ fmtSol, fmtUsd, attemptsFor, firstProblem, PAID_KINDS,
+} from '../src/admin-economy-core.js';
+
+/** A healthy-looking payload; individual tests break one thing at a time. */
+const healthy = () => ({
+ stats: { volume_24h: { sol: 0.297, usd: 24.88 }, trades_24h: 500, snipes_24h: 4, tips_24h: { count: 8, sol: 0.027 }, active_wallets_24h: 31 },
+ health: {
+ config: { enabled: true, treasury_configured: true, pool_target: 14, actions_per_tick: 4 },
+ pool_size: 112,
+ liveness: { stale: false, minutes_since: 0, actions_1h: 180, actions_24h: 5068 },
+ fuel: { caps: { per_run_usd: 5, daily_usd: 150, target_sol: 0.15 }, today_usd: 5, recent: [] },
+ window_24h: {
+ by_kind: {
+ tip: { ok: 8, skipped: 0, error: 0, last_problem: null },
+ payment: { ok: 559, skipped: 2, error: 0, last_problem: null },
+ trade: { ok: 12, skipped: 1, error: 0, last_problem: null },
+ launch: { ok: 1, skipped: 0, error: 0, last_problem: null },
+ },
+ },
+ },
+ topup: { master_sol: 0.42, master_operating_sol: 0.15, reserve_sol: 0.02, master_deficit_sol: 0, targets: [], fuel: { reason: 'not_needed', usdcAvailable: 46.24 } },
+});
+
+describe('diagnose', () => {
+ it('reports healthy when money is moving and the chain is above its floors', () => {
+ const v = diagnose(healthy());
+ expect(v.level).toBe('good');
+ expect(v.title).toMatch(/healthy/i);
+ expect(v.detail).toContain('$24.88');
+ });
+
+ it('catches the flatline signature: free lanes alive, paid lanes never planned', () => {
+ const d = healthy();
+ // Exactly what production looked like: reviews and trials still running,
+ // every paid lane at zero ATTEMPTS because the governor cut the budget.
+ d.health.window_24h.by_kind = {
+ review: { ok: 2001, skipped: 0, error: 0 },
+ trial: { ok: 309, skipped: 2756, error: 0 },
+ tip: { ok: 0, skipped: 0, error: 0 },
+ payment: { ok: 0, skipped: 0, error: 0 },
+ trade: { ok: 0, skipped: 0, error: 0 },
+ launch: { ok: 0, skipped: 0, error: 0 },
+ };
+ const v = diagnose(d);
+ expect(v.level).toBe('bad');
+ expect(v.title).toMatch(/never ran/i);
+ // It must point at funding, not at the lanes themselves.
+ expect(v.detail).toMatch(/treasury|reserve|budget/i);
+ });
+
+ it('ranks an unreadable USDC balance above the budget verdict', () => {
+ const d = healthy();
+ d.topup.fuel = { reason: 'usdc_read_failed', usdcAvailable: 0 };
+ d.health.window_24h.by_kind = { tip: { ok: 0, skipped: 0, error: 0 } };
+ const v = diagnose(d);
+ expect(v.level).toBe('bad');
+ expect(v.title).toMatch(/unreadable/i);
+ // The operative distinction: do NOT send money to fix an RPC fault.
+ expect(v.detail).toMatch(/UNKNOWN, not zero/);
+ expect(v.detail).toMatch(/do not send funds/i);
+ });
+
+ it('separates a genuinely dry chain from an unreadable one', () => {
+ const d = healthy();
+ d.topup.master_deficit_sol = 0.9;
+ d.topup.fuel = { reason: 'no_spare_usdc', usdcAvailable: 0 };
+ const v = diagnose(d);
+ expect(v.level).toBe('bad');
+ expect(v.title).toMatch(/genuinely dry/i);
+ // This is the ONLY verdict that should ask the owner for money.
+ expect(v.detail).toMatch(/send funds/i);
+ });
+
+ it('treats a spent daily cap as a pause, not a failure', () => {
+ const d = healthy();
+ d.topup.master_deficit_sol = 0.4;
+ d.topup.fuel = { reason: 'daily_cap_reached' };
+ const v = diagnose(d);
+ expect(v.level).toBe('warn');
+ expect(v.title).toMatch(/daily cap/i);
+ });
+
+ it('names the individual stalled lanes when others are settling', () => {
+ const d = healthy();
+ d.health.window_24h.by_kind.trade = { ok: 0, skipped: 9, error: 0, last_problem: 'still short on $THREE after top-up buy' };
+ const v = diagnose(d);
+ expect(v.level).toBe('warn');
+ expect(v.title).toContain('trade');
+ expect(v.detail).toContain('still short on $THREE');
+ });
+
+ it('puts a stale tick above every downstream reading', () => {
+ const d = healthy();
+ d.health.liveness = { stale: true, minutes_since: 47 };
+ // Even with a broken fuel lane below it, a dead cron wins: nothing else
+ // can be trusted while the engine is not running.
+ d.topup.fuel = { reason: 'usdc_read_failed' };
+ const v = diagnose(d);
+ expect(v.level).toBe('bad');
+ expect(v.title).toContain('47');
+ expect(v.detail).toMatch(/cron|scheduler/i);
+ });
+
+ it('distinguishes "switched off" from "broken"', () => {
+ const d = healthy();
+ d.health.config.enabled = false;
+ const v = diagnose(d);
+ expect(v.level).toBe('bad');
+ expect(v.detail).toMatch(/inert by design|nothing is broken/i);
+ });
+
+ it('degrades honestly when health cannot be read', () => {
+ const v = diagnose({ stats: null, health: null, topup: null });
+ expect(v.level).toBe('warn');
+ expect(v.detail).toMatch(/incomplete/i);
+ });
+
+ it('reports self-heal in progress rather than alarming on a covered deficit', () => {
+ const d = healthy();
+ d.topup.master_deficit_sol = 0.3;
+ d.topup.fuel = { reason: 'dry_run' };
+ const v = diagnose(d);
+ expect(v.level).toBe('warn');
+ expect(v.title).toMatch(/self-heal/i);
+ expect(v.detail).toMatch(/No action needed/i);
+ });
+});
+
+describe('funding chain', () => {
+ it('always leads with the master and ends with the USDC reserve', () => {
+ const links = chainLinks(healthy());
+ expect(links[0].id).toBe('master');
+ expect(links[links.length - 1].id).toBe('usdc');
+ });
+
+ it('includes each under-floor engine with its own refill target', () => {
+ const d = healthy();
+ d.topup.targets = [{ name: 'circulation-treasury', pubkey: 'abc', currentSol: 0.012, refillToSol: 1 }];
+ const links = chainLinks(d);
+ const engine = links.find((l) => l.label === 'circulation-treasury');
+ expect(engine).toBeTruthy();
+ expect(engine.floor).toBe(1);
+ expect(engine.state).toBe('dry');
+ });
+
+ it('shows an unreadable USDC balance as dry rather than as a real zero', () => {
+ const d = healthy();
+ d.topup.fuel = { reason: 'usdc_read_failed', usdcAvailable: 0 };
+ const usdc = chainLinks(d).find((l) => l.id === 'usdc');
+ expect(usdc.state).toBe('dry');
+ expect(usdc.note).toMatch(/not the same as empty/i);
+ });
+
+ it('sums the master shortfall and every engine shortfall', () => {
+ const d = healthy();
+ d.topup.master_deficit_sol = 0.1;
+ d.topup.targets = [
+ { name: 'a', currentSol: 0.2, refillToSol: 1 },
+ { name: 'b', currentSol: 0, refillToSol: 0.5 },
+ ];
+ expect(totalDeficit(d)).toBeCloseTo(0.1 + 0.8 + 0.5, 6);
+ });
+});
+
+describe('formatters and helpers', () => {
+ it('keeps dust legible instead of collapsing it to zero', () => {
+ expect(fmtSol(0.000123)).toBe('0.000123');
+ expect(fmtSol(0)).toBe('0');
+ expect(fmtUsd(0.004)).toBe('<$0.01');
+ expect(fmtUsd(24.88)).toBe('$24.88');
+ });
+
+ it('grades a balance against its floor', () => {
+ expect(linkState(1, 1)).toBe('ok');
+ expect(linkState(0.7, 1)).toBe('low');
+ expect(linkState(0.2, 1)).toBe('dry');
+ expect(linkFill(0.5, 1)).toBe(0.5);
+ expect(linkFill(9, 1)).toBe(1);
+ });
+
+ it('counts attempts across ok, skipped and error', () => {
+ const byKind = { trade: { ok: 1, skipped: 2, error: 3 } };
+ expect(attemptsFor(byKind, 'trade')).toBe(6);
+ expect(attemptsFor(byKind, 'missing')).toBe(0);
+ });
+
+ it('finds the first real problem across the paid lanes', () => {
+ const byKind = { tip: { last_problem: null }, trade: { last_problem: 'quote failed' } };
+ expect(firstProblem(byKind, PAID_KINDS)).toEqual({ kind: 'trade', problem: 'quote failed' });
+ expect(firstProblem({}, PAID_KINDS)).toBeNull();
+ });
+});
diff --git a/tests/animation-slots.test.js b/tests/animation-slots.test.js
index 90e80cd23..ff6796173 100644
--- a/tests/animation-slots.test.js
+++ b/tests/animation-slots.test.js
@@ -1,6 +1,6 @@
/**
* Regression guard for the fixed agent animation-slot vocabulary
- * (src/runtime/animation-slots.js). Pins two contracts:
+ * (src/runtime/animation-slots.js). Pins three contracts:
*
* 1. every slot in SLOTS has a DEFAULT_ANIMATION_MAP entry.
* 2. every DEFAULT_ANIMATION_MAP value names a clip that actually exists in
@@ -9,20 +9,52 @@
* public/animations/registry.json known_issues: broken-fidget-slot)
* silently no-ops the gesture on every agent that hits it instead of
* failing loudly.
+ * 3. every `animationHint` a skill declares anywhere in src/ resolves through
+ * resolveHint() to a slot, and that slot resolves to a baked clip. This is
+ * the guard for the whole class of bug that made `inspect`, `gesture`,
+ * `present`, `sign`, `curiosity` and `patience` no-op: a hint nobody wired
+ * up reads exactly like a working one at the call site.
*/
import { describe, it, expect } from 'vitest';
-import { readFileSync } from 'node:fs';
+import { readdirSync, readFileSync } from 'node:fs';
import { fileURLToPath } from 'node:url';
-import { dirname, resolve } from 'node:path';
-import { SLOTS, DEFAULT_ANIMATION_MAP, resolveSlot } from '../src/runtime/animation-slots.js';
+import { dirname, join, resolve } from 'node:path';
+import {
+ SLOTS,
+ DEFAULT_ANIMATION_MAP,
+ HINT_ALIASES,
+ resolveSlot,
+ resolveHint,
+} from '../src/runtime/animation-slots.js';
const __dirname = dirname(fileURLToPath(import.meta.url));
+const SRC_DIR = resolve(__dirname, '../src');
const manifest = JSON.parse(
readFileSync(resolve(__dirname, '../public/animations/manifest.json'), 'utf8'),
);
const CLIP_NAMES = new Set(manifest.map((c) => c.name));
+/** Every `animationHint: '<name>'` literal declared under src/, with its file. */
+function collectDeclaredHints(dir = SRC_DIR, out = new Map()) {
+ for (const entry of readdirSync(dir, { withFileTypes: true })) {
+ const path = join(dir, entry.name);
+ if (entry.isDirectory()) {
+ collectDeclaredHints(path, out);
+ continue;
+ }
+ if (!entry.name.endsWith('.js')) continue;
+ // The vocabulary's own module documents the field shape (`'<name>'`); it
+ // declares no hints.
+ if (path === resolve(SRC_DIR, 'runtime/animation-slots.js')) continue;
+ const src = readFileSync(path, 'utf8');
+ for (const m of src.matchAll(/animationHint:\s*'([^']+)'/g)) {
+ if (!out.has(m[1])) out.set(m[1], entry.name);
+ }
+ }
+ return out;
+}
+
describe('animation-slots', () => {
it('every declared slot has a default clip mapping', () => {
for (const slot of SLOTS) {
@@ -36,6 +68,20 @@ describe('animation-slots', () => {
}
});
+ it('the map has no entry for a slot outside the vocabulary', () => {
+ for (const slot of Object.keys(DEFAULT_ANIMATION_MAP)) {
+ expect(SLOTS, `"${slot}" is mapped but not declared in SLOTS`).toContain(slot);
+ }
+ });
+
+ it('the slots with a dedicated clip of the same name use it', () => {
+ // These five borrowed `reaction`/`pray`/`defeated` until their own clips
+ // were baked, then kept borrowing. Pin the fix.
+ for (const slot of ['wave', 'nod', 'point', 'think', 'shrug']) {
+ expect(DEFAULT_ANIMATION_MAP[slot], `slot "${slot}" should play its own clip`).toBe(slot);
+ }
+ });
+
it('resolveSlot prefers an agent override over the default map', () => {
expect(resolveSlot('wave', { wave: 'av-joy' })).toBe('av-joy');
expect(resolveSlot('wave', null)).toBe(DEFAULT_ANIMATION_MAP.wave);
@@ -46,3 +92,44 @@ describe('animation-slots', () => {
expect(resolveSlot('not-a-real-slot', null)).toBe('not-a-real-slot');
});
});
+
+describe('animation hints', () => {
+ const declared = collectDeclaredHints();
+
+ it('finds the skill hints in the source tree', () => {
+ // Sanity check on the scanner itself: if the regex ever stops matching,
+ // every assertion below would pass vacuously.
+ expect(declared.size).toBeGreaterThan(5);
+ expect([...declared.keys()]).toContain('inspect');
+ });
+
+ it('every hint a skill declares resolves to a slot with a baked clip', () => {
+ for (const [hint, file] of declared) {
+ const slot = resolveHint(hint);
+ expect(slot, `hint "${hint}" (${file}) resolves to no slot`).toBeTruthy();
+ const clip = resolveSlot(slot, null);
+ expect(CLIP_NAMES.has(clip), `hint "${hint}" → slot "${slot}" → "${clip}" missing from manifest`).toBe(true);
+ }
+ });
+
+ it('every alias target is a real slot', () => {
+ for (const [hint, slot] of Object.entries(HINT_ALIASES)) {
+ expect(SLOTS, `alias "${hint}" → unknown slot "${slot}"`).toContain(slot);
+ }
+ });
+
+ it('slot names pass through unchanged and are case/space tolerant', () => {
+ expect(resolveHint('wave')).toBe('wave');
+ expect(resolveHint(' Celebrate ')).toBe('celebrate');
+ });
+
+ it('an unknown hint in a known family falls back to that family', () => {
+ expect(resolveHint('gesture-something-new')).toBe(HINT_ALIASES.gesture);
+ });
+
+ it('returns null rather than guessing for an unrelated hint', () => {
+ expect(resolveHint('teleport')).toBe(null);
+ expect(resolveHint('')).toBe(null);
+ expect(resolveHint(null)).toBe(null);
+ });
+});
diff --git a/tests/audit-guards.test.js b/tests/audit-guards.test.js
new file mode 100644
index 000000000..75a15c06a
--- /dev/null
+++ b/tests/audit-guards.test.js
@@ -0,0 +1,329 @@
+import { describe, it, expect, beforeAll, afterAll } from 'vitest';
+import { execFileSync } from 'node:child_process';
+import { mkdtempSync, rmSync, writeFileSync, mkdirSync, copyFileSync, readFileSync } from 'node:fs';
+import { tmpdir } from 'node:os';
+import { join, resolve, dirname } from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+// Guards the guard. audit-guards is the only thing standing between
+// data/guards.json and quiet fiction, and it is rendered in two public places
+// (docs/guards.md and /guards), so a false claim there misleads every reader
+// rather than just failing a build.
+//
+// The claim most likely to rot is the stage column. A guard can be dropped from
+// the gate chain in a one-word edit while its registry entry still says "gate",
+// and nothing about the repo looks wrong afterwards: the script exists, the npm
+// script exists, the docs render. Only comparing the claim against the real npm
+// chain catches it, so that case is covered from both directions here.
+//
+// Each test builds a complete miniature repo rather than mutating the real one,
+// because the real registry is supposed to stay green and a test that edits it
+// would race every other agent working in this worktree.
+
+const repoRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..');
+const auditor = join(repoRoot, 'scripts', 'audit-guards.mjs');
+
+let sandbox;
+
+/**
+ * Build a miniature repo: the auditor, a package.json, a data/guards.json, and
+ * a stub file for every script the registry mentions.
+ */
+function makeRepo(name, { guards, exempt = [], stages, scripts, extraScripts = [], hookTemplate }) {
+ const dir = join(sandbox, name);
+ mkdirSync(join(dir, 'scripts'), { recursive: true });
+ mkdirSync(join(dir, 'data'), { recursive: true });
+ copyFileSync(auditor, join(dir, 'scripts', 'audit-guards.mjs'));
+
+ for (const g of guards) {
+ if (g.script && g.__skipFile !== true) {
+ writeFileSync(join(dir, g.script), '#!/usr/bin/env node\n');
+ }
+ }
+ for (const rel of extraScripts) writeFileSync(join(dir, rel), '#!/usr/bin/env node\n');
+ if (hookTemplate !== undefined) writeFileSync(join(dir, 'scripts', 'setup-git-hooks.mjs'), hookTemplate);
+
+ writeFileSync(join(dir, 'package.json'), JSON.stringify({ name: 'fixture', scripts }, null, 2));
+ writeFileSync(
+ join(dir, 'data', 'guards.json'),
+ JSON.stringify(
+ {
+ updated: '2026-07-30',
+ summary: 'fixture',
+ stages: stages ?? [
+ { id: 'prebuild', title: 'Prebuild', when: 'x', description: 'y' },
+ { id: 'gate', title: 'Gate', when: 'x', description: 'y' },
+ { id: 'build:gcp', title: 'Deploy build', when: 'x', description: 'y' },
+ { id: 'pre-push', title: 'Pre-push', when: 'x', description: 'y' },
+ { id: 'manual', title: 'On demand', when: 'x', description: 'y' },
+ ],
+ guards: guards.map(({ __skipFile, ...g }) => g),
+ // Every fixture necessarily contains a copy of the auditor, which the
+ // reverse check would otherwise report as an unregistered guard. The
+ // real repo registers it properly instead of exempting it.
+ exempt: [...exempt, { pattern: 'scripts/audit-guards.mjs', reason: 'the auditor under test' }],
+ },
+ null,
+ 2,
+ ),
+ );
+ return dir;
+}
+
+function run(dir) {
+ try {
+ return { code: 0, out: execFileSync('node', [join(dir, 'scripts', 'audit-guards.mjs')], { encoding: 'utf8' }) };
+ } catch (err) {
+ return { code: err.status, out: `${err.stdout || ''}${err.stderr || ''}` };
+ }
+}
+
+/** A registry entry that passes every check, used as the baseline to break. */
+const goodGuard = {
+ id: 'check-thing',
+ script: 'scripts/check-thing.mjs',
+ npm: 'check:thing',
+ title: 'A thing',
+ protects: 'The thing.',
+ why: 'Because the thing broke once.',
+ stages: ['gate'],
+ needs: 'none',
+};
+const goodScripts = { 'check:thing': 'node scripts/check-thing.mjs', gate: 'npm run check:thing' };
+
+beforeAll(() => {
+ sandbox = mkdtempSync(join(tmpdir(), 'guard-registry-'));
+});
+
+afterAll(() => {
+ rmSync(sandbox, { recursive: true, force: true });
+});
+
+describe('audit-guards', () => {
+ it('passes on a registry that tells the truth', () => {
+ const dir = makeRepo('good', { guards: [goodGuard], scripts: goodScripts });
+ const { code, out } = run(dir);
+ expect(code).toBe(0);
+ expect(out).toContain('1 guards registered');
+ expect(out).toContain('gate:1');
+ });
+
+ it('fails when a registered script does not exist', () => {
+ const dir = makeRepo('missing-script', {
+ guards: [{ ...goodGuard, __skipFile: true }],
+ scripts: goodScripts,
+ });
+ const { code, out } = run(dir);
+ expect(code).toBe(1);
+ expect(out).toContain('does not exist');
+ });
+
+ it('fails when the npm script it claims is missing', () => {
+ const dir = makeRepo('missing-npm', {
+ guards: [goodGuard],
+ scripts: { gate: 'npm run check:thing' },
+ });
+ const { code, out } = run(dir);
+ expect(code).toBe(1);
+ expect(out).toContain('missing from package.json');
+ });
+
+ it('fails when the npm script does not actually run the guard', () => {
+ // The subtle one: the name exists, so a naive check passes, but it was
+ // repointed at a different script during a rename.
+ const dir = makeRepo('npm-mismatch', {
+ guards: [goodGuard],
+ scripts: { 'check:thing': 'node scripts/check-other.mjs', gate: 'npm run check:thing' },
+ extraScripts: ['scripts/check-other.mjs'],
+ exempt: [{ pattern: 'scripts/check-other.mjs', reason: 'fixture' }],
+ });
+ const { code, out } = run(dir);
+ expect(code).toBe(1);
+ expect(out).toContain('does not actually run');
+ });
+
+ it('fails when a guard claims a stage it is not wired into', () => {
+ // The claim most likely to rot: dropped from the chain, still advertised.
+ const dir = makeRepo('stage-lie', {
+ guards: [goodGuard],
+ scripts: { 'check:thing': 'node scripts/check-thing.mjs', gate: 'npm run something-else' },
+ });
+ const { code, out } = run(dir);
+ expect(code).toBe(1);
+ expect(out).toContain('claims it runs in `gate`');
+ expect(out).toContain('not in the gate chain');
+ });
+
+ it('does not confuse a prefix for a real gate entry', () => {
+ // `npm run check:thing-extra` must not satisfy a claim for `check:thing`.
+ const dir = makeRepo('prefix-trap', {
+ guards: [goodGuard],
+ scripts: {
+ 'check:thing': 'node scripts/check-thing.mjs',
+ 'check:thing-extra': 'node scripts/check-thing.mjs',
+ gate: 'npm run check:thing-extra',
+ },
+ });
+ const { code, out } = run(dir);
+ expect(code).toBe(1);
+ expect(out).toContain('claims it runs in `gate`');
+ });
+
+ it('verifies a prebuild claim against the raw node call, not an npm name', () => {
+ const base = { ...goodGuard, stages: ['prebuild'] };
+ const wired = makeRepo('prebuild-ok', {
+ guards: [base],
+ scripts: { 'check:thing': 'node scripts/check-thing.mjs', prebuild: 'node scripts/check-thing.mjs' },
+ });
+ expect(run(wired).code).toBe(0);
+
+ const unwired = makeRepo('prebuild-lie', {
+ guards: [base],
+ scripts: { 'check:thing': 'node scripts/check-thing.mjs', prebuild: 'node scripts/build-something.mjs' },
+ });
+ const { code, out } = run(unwired);
+ expect(code).toBe(1);
+ expect(out).toContain('the prebuild chain');
+ });
+
+ it('verifies a pre-push claim against the installed hook template', () => {
+ const base = { ...goodGuard, stages: ['pre-push'] };
+ const wired = makeRepo('hook-ok', {
+ guards: [base],
+ scripts: goodScripts,
+ hookTemplate: 'node scripts/check-thing.mjs --base "$remote_sha"',
+ });
+ expect(run(wired).code).toBe(0);
+
+ const unwired = makeRepo('hook-lie', {
+ guards: [base],
+ scripts: goodScripts,
+ hookTemplate: 'echo "no guards here"',
+ });
+ const { code, out } = run(unwired);
+ expect(code).toBe(1);
+ expect(out).toContain('the pre-push hook template');
+ });
+
+ it('accepts an alias name when the gate runs the variant', () => {
+ // check-cron-drift is registered under its primary name but the gate runs
+ // its --offline variant, which is a different npm script.
+ const dir = makeRepo('alias', {
+ guards: [{ ...goodGuard, npmAliases: ['check:thing-offline'] }],
+ scripts: {
+ 'check:thing': 'node scripts/check-thing.mjs',
+ 'check:thing-offline': 'node scripts/check-thing.mjs --offline',
+ gate: 'npm run check:thing-offline',
+ },
+ });
+ expect(run(dir).code).toBe(0);
+ });
+
+ it('fails when a guard on disk is not registered at all', () => {
+ const dir = makeRepo('unregistered', {
+ guards: [goodGuard],
+ scripts: goodScripts,
+ extraScripts: ['scripts/audit-secret.mjs'],
+ });
+ const { code, out } = run(dir);
+ expect(code).toBe(1);
+ expect(out).toContain('audit-secret.mjs');
+ expect(out).toContain('not in data/guards.json');
+ });
+
+ it('accepts an unregistered script that matches an exempt pattern', () => {
+ const dir = makeRepo('exempt-ok', {
+ guards: [goodGuard],
+ scripts: goodScripts,
+ extraScripts: ['scripts/verify-vendor.mjs', 'scripts/audit-thing.mjs'],
+ exempt: [
+ { pattern: 'scripts/verify-*.mjs', reason: 'vendor integration check' },
+ { pattern: 'scripts/audit-thing.mjs', reason: 'fixture' },
+ ],
+ });
+ expect(run(dir).code).toBe(0);
+ });
+
+ it('does not let an exempt glob leak across directories', () => {
+ // `scripts/*` must not match `scripts/nested/x.mjs`; the auditor only reads
+ // the top level, but the pattern itself must stay tight.
+ const dir = makeRepo('glob-tight', {
+ guards: [goodGuard],
+ scripts: goodScripts,
+ extraScripts: ['scripts/audit-loose.mjs'],
+ exempt: [{ pattern: 'scripts/check-*.mjs', reason: 'only checks' }],
+ });
+ const { code, out } = run(dir);
+ expect(code).toBe(1);
+ expect(out).toContain('audit-loose.mjs');
+ });
+
+ it('rejects an exempt pattern with no reason', () => {
+ const dir = makeRepo('exempt-no-reason', {
+ guards: [goodGuard],
+ scripts: goodScripts,
+ extraScripts: ['scripts/audit-thing.mjs'],
+ exempt: [{ pattern: 'scripts/audit-thing.mjs', reason: '' }],
+ });
+ const { code, out } = run(dir);
+ expect(code).toBe(1);
+ expect(out).toContain('gives no reason');
+ });
+
+ it('requires the fields the docs and the page render', () => {
+ const dir = makeRepo('missing-copy', {
+ guards: [{ ...goodGuard, why: '' }],
+ scripts: goodScripts,
+ });
+ const { code, out } = run(dir);
+ expect(code).toBe(1);
+ expect(out).toContain('missing `why`');
+ });
+
+ it('rejects an unknown stage rather than silently ignoring it', () => {
+ const dir = makeRepo('bad-stage', {
+ guards: [{ ...goodGuard, stages: ['someday'] }],
+ scripts: goodScripts,
+ });
+ const { code, out } = run(dir);
+ expect(code).toBe(1);
+ expect(out).toContain('unknown stage');
+ });
+
+ it('flags a verifiable stage the registry never describes for readers', () => {
+ const dir = makeRepo('undescribed-stage', {
+ guards: [goodGuard],
+ scripts: goodScripts,
+ stages: [{ id: 'gate', title: 'Gate', when: 'x', description: 'y' }],
+ });
+ const { code, out } = run(dir);
+ expect(code).toBe(1);
+ expect(out).toContain('never describes it for readers');
+ });
+});
+
+describe('this repository', () => {
+ it('has a registry that passes its own audit', () => {
+ const { code, out } = (() => {
+ try {
+ return { code: 0, out: execFileSync('node', [auditor], { cwd: repoRoot, encoding: 'utf8' }) };
+ } catch (err) {
+ return { code: err.status, out: `${err.stdout || ''}${err.stderr || ''}` };
+ }
+ })();
+ expect(code, out).toBe(0);
+ });
+
+ it('registers every guard the gate actually runs', () => {
+ // The gate is the chain a human is told to run before calling work done,
+ // so anything in it must be explainable from the registry.
+ const pkg = JSON.parse(readFileSync(join(repoRoot, 'package.json'), 'utf8'));
+ const registry = JSON.parse(readFileSync(join(repoRoot, 'data', 'guards.json'), 'utf8'));
+ const known = new Set(registry.guards.flatMap((g) => [g.npm, ...(g.npmAliases || [])].filter(Boolean)));
+ // Test stages are covered by the test files themselves, not by this registry.
+ const notGuards = new Set(['test:gate', 'test:gate-3d']);
+ const gateSteps = [...pkg.scripts.gate.matchAll(/npm run ([a-z0-9:._-]+)/g)].map((m) => m[1]);
+ const unexplained = gateSteps.filter((s) => !known.has(s) && !notGuards.has(s));
+ expect(unexplained, `gate steps missing from data/guards.json: ${unexplained.join(', ')}`).toEqual([]);
+ });
+});
diff --git a/tests/branding-allowlist.json b/tests/branding-allowlist.json
index e70859419..fd5b613ca 100644
--- a/tests/branding-allowlist.json
+++ b/tests/branding-allowlist.json
@@ -443,5 +443,15 @@
"pattern": "| Avaturn | Avaturn |",
"file": "docs/avatar-engines.md",
"reason": "Factual row in the Avatar Engines Atlas interop table. Same reference-not-endorsement scope as the Ready Player Me row above."
+ },
+ {
+ "pattern": "avaturn",
+ "file": "docs/avatar-cli.md",
+ "reason": "CLI reference for `--skeleton`: `avaturn` is a literal accepted value of the flag (and its default), so the doc has to name it exactly or it stops describing the CLI."
+ },
+ {
+ "pattern": "Avaturn",
+ "file": "docs/tutorials/explore-docs-world.md",
+ "reason": "Names the upstream rig conventions whose bone names are mapped automatically, same scope as the docs/animations.md exemption."
}
]
diff --git a/tests/fingerspelling.test.js b/tests/fingerspelling.test.js
index 83c8bba6b..b36e99c12 100644
--- a/tests/fingerspelling.test.js
+++ b/tests/fingerspelling.test.js
@@ -218,4 +218,26 @@ describe('buildFingerspellingClip', () => {
expect(() => buildFingerspellingClip('')).toThrow();
expect(buildFingerspellingClip('42').duration).toBeGreaterThan(0);
});
+
+ it('reports when each letter is on screen, in order and inside the clip', () => {
+ const marks = [];
+ const clip = buildFingerspellingClip('HELLO', { marks });
+ expect(marks.map((m) => m.letter).join('')).toBe('HELLO');
+ let previousEnd = 0;
+ for (const mark of marks) {
+ expect(mark.start).toBeGreaterThanOrEqual(previousEnd - 1e-9);
+ expect(mark.end).toBeGreaterThan(mark.start);
+ expect(mark.end).toBeLessThanOrEqual(clip.duration + 1e-9);
+ previousEnd = mark.end;
+ }
+ // The doubled L bounces, so it takes longer than a single letter.
+ const [, , firstL, secondL] = marks;
+ expect(secondL.end - secondL.start).toBeGreaterThan(firstL.end - firstL.start);
+ });
+
+ it('marks the word breaks too, so a phrase can be followed letter by letter', () => {
+ const marks = [];
+ buildFingerspellingClip('HI YOU', { marks });
+ expect(marks.map((m) => m.letter).join('')).toBe('HI YOU');
+ });
});
diff --git a/tests/payment-session-governor.test.js b/tests/payment-session-governor.test.js
index 622f189e0..14c5dc906 100644
--- a/tests/payment-session-governor.test.js
+++ b/tests/payment-session-governor.test.js
@@ -1,5 +1,5 @@
/**
- * Agent Payment Sessions — the spend governor, pinned.
+ * Agent Payment Sessions: the spend governor, pinned.
*
* A payment session is the only thing standing between an autonomous agent and a
* funded wallet: the agent holds a bearer token, never a key, and every payment it
diff --git a/vercel.json b/vercel.json
index 87d2ec3ed..7a09cec85 100644
--- a/vercel.json
+++ b/vercel.json
@@ -254,6 +254,14 @@
"src": "/agent-wallet/",
"dest": "/agent-wallet.html"
},
+ {
+ "src": "/wallet",
+ "dest": "/wallet.html"
+ },
+ {
+ "src": "/wallet/",
+ "dest": "/wallet.html"
+ },
{
"src": "/viability",
"dest": "/viability.html"
@@ -310,6 +318,14 @@
"src": "/admin/seeder/",
"dest": "/admin/seeder.html"
},
+ {
+ "src": "/admin/economy",
+ "dest": "/admin/economy.html"
+ },
+ {
+ "src": "/admin/economy/",
+ "dest": "/admin/economy.html"
+ },
{
"src": "/admin/ring",
"dest": "/admin/ring.html"
@@ -954,6 +970,10 @@
"src": "/trades/?",
"dest": "/trades.html"
},
+ {
+ "src": "/trading/?",
+ "dest": "/trading.html"
+ },
{
"src": "/claim-wallet/?",
"dest": "/claim-wallet.html"
@@ -1286,6 +1306,10 @@
"src": "/play/arena/?",
"dest": "/play/arena.html"
},
+ {
+ "src": "/play/economy/?",
+ "dest": "/play/economy.html"
+ },
{
"src": "/sniper/experiments/?",
"dest": "/sniper-experiments.html"
@@ -1536,6 +1560,10 @@
"src": "/galaxy/?",
"dest": "/galaxy.html"
},
+ {
+ "src": "/examples/?",
+ "dest": "/examples.html"
+ },
{
"src": "/lipsync/mic/?",
"dest": "/demos/lipsync-mic.html"
@@ -3996,6 +4024,10 @@
"src": "/sign-language/?",
"dest": "/sign-language.html"
},
+ {
+ "src": "/asl-alphabet/?",
+ "dest": "/asl-alphabet.html"
+ },
{
"src": "/objects/?",
"dest": "/objects.html"
@@ -4928,6 +4960,14 @@
"src": "/agent-identities/",
"dest": "/agent-identities.html"
},
+ {
+ "src": "/mcp-tools",
+ "dest": "/mcp-tools.html"
+ },
+ {
+ "src": "/mcp-tools/",
+ "dest": "/mcp-tools.html"
+ },
{
"src": "/features",
"dest": "/features.html"
diff --git a/vite.config.js b/vite.config.js
index cc9236141..b9b1ef822 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -363,6 +363,7 @@ const appConfig = {
concierge: resolve(__dirname, 'pages/concierge.html'),
'tour-builder': resolve(__dirname, 'pages/tour-builder.html'),
'agent-identities': resolve(__dirname, 'pages/agent-identities.html'),
+ 'mcp-tools': resolve(__dirname, 'pages/mcp-tools.html'),
pitch: resolve(__dirname, 'pages/pitch.html'),
timeline: resolve(__dirname, 'pages/timeline.html'),
tracker: resolve(__dirname, 'pages/tracker.html'),
@@ -446,6 +447,7 @@ const appConfig = {
'agent-screen': resolve(__dirname, 'pages/agent-screen.html'),
'agents-live': resolve(__dirname, 'pages/agents-live.html'),
'agent-wallet': resolve(__dirname, 'pages/agent-wallet.html'),
+ wallet: resolve(__dirname, 'pages/wallet.html'),
guardian: resolve(__dirname, 'pages/guardian.html'),
launches: resolve(__dirname, 'pages/launches.html'),
minted: resolve(__dirname, 'pages/minted.html'),
@@ -461,6 +463,7 @@ const appConfig = {
'admin-launcher': resolve(__dirname, 'pages/admin/launcher.html'),
'admin-seeder': resolve(__dirname, 'pages/admin/seeder.html'),
'admin-ring': resolve(__dirname, 'pages/admin/ring.html'),
+ 'admin-economy': resolve(__dirname, 'pages/admin/economy.html'),
'admin-ops': resolve(__dirname, 'pages/admin/ops.html'),
'admin-irl-analytics': resolve(__dirname, 'pages/admin/irl-analytics.html'),
launcher: resolve(__dirname, 'pages/launcher.html'),
@@ -481,6 +484,7 @@ const appConfig = {
signals: resolve(__dirname, 'pages/signals.html'),
'signal-detail': resolve(__dirname, 'pages/signal-detail.html'),
trades: resolve(__dirname, 'pages/trades.html'),
+ trading: resolve(__dirname, 'pages/trading.html'),
'claim-wallet': resolve(__dirname, 'pages/claim-wallet.html'),
'meta-allocator': resolve(__dirname, 'pages/meta-allocator.html'),
'clip-director': resolve(__dirname, 'pages/clip-director.html'),
@@ -580,6 +584,7 @@ const appConfig = {
cosmos: resolve(__dirname, 'pages/cosmos.html'),
voice: resolve(__dirname, 'pages/voice.html'),
galaxy: resolve(__dirname, 'pages/galaxy.html'),
+ examples: resolve(__dirname, 'pages/examples.html'),
genome: resolve(__dirname, 'pages/genome.html'),
'ar-page': resolve(__dirname, 'pages/ar.html'),
pricing: resolve(__dirname, 'pages/pricing.html'),
@@ -608,6 +613,7 @@ const appConfig = {
'play-agent-wallet': resolve(__dirname, 'pages/play/agent-wallet.html'),
'play-arena': resolve(__dirname, 'pages/play/arena.html'),
'play-ufo': resolve(__dirname, 'pages/play/ufo.html'),
+ 'play-economy': resolve(__dirname, 'pages/play/economy.html'),
agi: resolve(__dirname, 'pages/agi.html'),
arena: resolve(__dirname, 'pages/arena.html'),
'smart-money': resolve(__dirname, 'pages/smart-money.html'),
@@ -616,6 +622,7 @@ const appConfig = {
animations: resolve(__dirname, 'pages/animations.html'),
'character-library': resolve(__dirname, 'pages/character-library.html'),
'sign-language': resolve(__dirname, 'pages/sign-language.html'),
+ 'asl-alphabet': resolve(__dirname, 'pages/asl-alphabet.html'),
objects: resolve(__dirname, 'pages/objects.html'),
forged: resolve(__dirname, 'pages/forged.html'),
wardrobe: resolve(__dirname, 'pages/wardrobe.html'),
@@ -1089,6 +1096,8 @@ support: resolve(__dirname, 'pages/support.html'),
'/admin/launcher/': resolve(root, 'pages/admin/launcher.html'),
'/admin/seeder': resolve(root, 'pages/admin/seeder.html'),
'/admin/seeder/': resolve(root, 'pages/admin/seeder.html'),
+ '/admin/economy': resolve(root, 'pages/admin/economy.html'),
+ '/admin/economy/': resolve(root, 'pages/admin/economy.html'),
'/admin/ring': resolve(root, 'pages/admin/ring.html'),
'/admin/ring/': resolve(root, 'pages/admin/ring.html'),
'/admin/ops': resolve(root, 'pages/admin/ops.html'),
@@ -1131,6 +1140,8 @@ support: resolve(__dirname, 'pages/support.html'),
'/signals/': resolve(root, 'pages/signals.html'),
'/trades': resolve(root, 'pages/trades.html'),
'/trades/': resolve(root, 'pages/trades.html'),
+ '/trading': resolve(root, 'pages/trading.html'),
+ '/trading/': resolve(root, 'pages/trading.html'),
'/terminal': resolve(root, 'pages/terminal.html'),
'/terminal/': resolve(root, 'pages/terminal.html'),
'/claim-wallet': resolve(root, 'pages/claim-wallet.html'),
@@ -1317,6 +1328,8 @@ support: resolve(__dirname, 'pages/support.html'),
// instead of 404ing.
'/galaxy': resolve(root, 'pages/galaxy.html'),
'/galaxy/': resolve(root, 'pages/galaxy.html'),
+ '/examples': resolve(root, 'pages/examples.html'),
+ '/examples/': resolve(root, 'pages/examples.html'),
'/constellation': resolve(root, 'pages/constellation.html'),
'/constellation/': resolve(root, 'pages/constellation.html'),
'/voice': resolve(root, 'pages/voice.html'),