Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

docs(walk): publish /docs/walk-embed-api + /docs/walk routes; remove shipped specs

miniaturizationff74f93782b2
diff --git a/public/changelog.json b/public/changelog.json
index 20783e931..8fcdb1448 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-21T06:48:55.133Z",
+ "generated_at": "2026-06-21T06:55:54.110Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
diff --git a/public/docs/walk/changelog.html b/public/docs/walk/changelog.html
new file mode 100644
index 000000000..f11bb1f10
--- /dev/null
+++ b/public/docs/walk/changelog.html
@@ -0,0 +1,173 @@
+<!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 http-equiv="X-UA-Compatible" content="IE=edge" />
+ <title>Changelog — Walk docs — three.ws</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
+ <meta name="description" content="Walk system changelog — real, dated entries pulled live from the three.ws public changelog feed." />
+ <meta name="theme-color" content="#0a0a0a" />
+ <link rel="canonical" href="https://three.ws/docs/walk/changelog" />
+ <link rel="shortcut icon" href="/favicon.ico" />
+ <link rel="stylesheet" href="/fonts/fonts.css" />
+ <link rel="stylesheet" href="/style.css" />
+ <link rel="stylesheet" href="/footer.css" />
+ <link rel="stylesheet" href="/nav.css" />
+ <link rel="stylesheet" href="/docs/walk/docs.css" />
+ <style>
+ .wd-cl { display: flex; flex-direction: column; gap: var(--space-3); margin: 0 0 var(--space-lg); max-width: 46rem; }
+ .wd-cl-item { border: 1px solid var(--stroke); border-radius: var(--radius-lg); background: var(--surface-glass); padding: var(--space-4); }
+ .wd-cl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }
+ .wd-cl-date { font: var(--weight-semibold) var(--text-sm) var(--font-mono); color: var(--ink-dim); }
+ .wd-cl-tag { font: var(--weight-semibold) var(--text-2xs) var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; padding: var(--space-3xs) var(--space-2); border-radius: var(--radius-pill); border: 1px solid var(--stroke-strong); color: var(--ink-bright); background: var(--surface-2); }
+ .wd-cl-item h3 { margin: 0 0 var(--space-1); }
+ .wd-cl-item p { margin: 0 0 var(--space-2); color: var(--ink-dim); }
+ .wd-cl-item p:last-child { margin-bottom: 0; }
+ .wd-cl-state { color: var(--ink-dim); font: var(--weight-regular) var(--text-base) var(--font-body); }
+ .wd-skel { height: 6.5rem; border: 1px solid var(--stroke); border-radius: var(--radius-lg); background: linear-gradient(100deg, var(--surface-1) 30%, var(--surface-2) 50%, var(--surface-1) 70%); background-size: 200% 100%; animation: wd-shimmer 1.4s var(--ease-standard) infinite; }
+ @keyframes wd-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
+ @media (prefers-reduced-motion: reduce) { .wd-skel { animation: none; } }
+ </style>
+ </head>
+ <body>
+ <a class="wd-skip" href="#wd-main">Skip to content</a>
+ <header><div id="nav-container"></div></header>
+ <script src="/nav.js"></script>
+
+ <div class="wd-shell">
+ <button class="wd-side-toggle" type="button" aria-expanded="false" aria-controls="wd-side">
+ <span>Documentation menu</span><span aria-hidden="true">☰</span>
+ </button>
+ <aside class="wd-side" id="wd-side" aria-label="Walk documentation">
+ <h2>Walk docs</h2>
+ <nav aria-label="Walk documentation pages">
+ <a href="/docs/walk">Overview</a>
+ <a href="/docs/walk/getting-started">Getting started</a>
+ </nav>
+ <h2>Use it</h2>
+ <nav aria-label="Using Walk">
+ <a href="/docs/walk/walk-page">The walk page</a>
+ <a href="/docs/walk/companion-mode">Companion mode</a>
+ <a href="/docs/walk/chrome-extension">Chrome extension</a>
+ </nav>
+ <h2>Build with it</h2>
+ <nav aria-label="Building with Walk">
+ <a href="/docs/walk/embed-iframe">Iframe embed</a>
+ <a href="/docs/walk/embed-sdk">JavaScript SDK</a>
+ <a href="/docs/walk/postmessage-events">postMessage events</a>
+ <a href="/docs/walk/analytics">Analytics</a>
+ </nav>
+ <h2>Reference</h2>
+ <nav aria-label="Reference"><a href="/docs/walk/changelog" aria-current="page">Changelog</a></nav>
+ </aside>
+
+ <main class="wd-main" id="wd-main">
+ <p class="wd-crumbs"><a href="/docs">Docs</a> / <a href="/docs/walk">Walk</a> / Changelog</p>
+ <h1>Changelog</h1>
+ <p class="wd-lede">
+ Walk-related entries from the three.ws public changelog, loaded live. For the
+ full platform history, RSS, and JSON feeds, see
+ <a href="/changelog">three.ws/changelog</a>.
+ </p>
+
+ <div class="wd-cl" id="wd-changelog" aria-live="polite" aria-busy="true">
+ <div class="wd-skel" aria-hidden="true"></div>
+ <div class="wd-skel" aria-hidden="true"></div>
+ <div class="wd-skel" aria-hidden="true"></div>
+ </div>
+
+ <div class="wd-pagefoot">
+ <a class="wd-edit" href="https://github.com/nirholas/three.ws/edit/main/public/docs/walk/changelog.html" rel="noopener"><span aria-hidden="true">✎</span> Edit this page on GitHub</a>
+ <div class="wd-nextprev">
+ <a href="/docs/walk/chrome-extension"><span>Previous</span>← Chrome extension</a>
+ <a href="/docs/walk"><span>Next</span>Overview →</a>
+ </div>
+ </div>
+ </main>
+ </div>
+
+ <div id="footer-container"></div>
+ <script src="/footer.js"></script>
+ <script src="/brand.js" defer></script>
+ <script type="module" src="/docs/walk/docs.js"></script>
+ <script type="module">
+ // Pull the real, dated changelog from the platform feed and surface the
+ // walk-related entries. No hand-written version history: if the feed has
+ // nothing about walk, we say so and link to the full changelog.
+ const host = document.getElementById('wd-changelog');
+
+ function esc(s) {
+ return String(s == null ? '' : s).replace(/[&<>"']/g, (c) =>
+ ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }[c]));
+ }
+
+ function isWalk(entry) {
+ // Match the Walk PRODUCT, not the verb. The link or title must name a
+ // walk surface, OR the text must use a walk-system product term — this
+ // keeps out unrelated entries that merely contain the word "walk"
+ // (e.g. "walks into range", "idle/walk animation library").
+ const link = String(entry.link || '').toLowerCase();
+ const text = `${String(entry.title || '')} ${String(entry.summary || '')}`.toLowerCase();
+ // Strongest signal: the entry links to a Walk product surface.
+ if (/^\/(walk|features\/walk|dashboard\/walk)(\b|-|\/|$)/.test(link)) return true;
+ // Otherwise require an explicit Walk-system product phrase, so the verb
+ // "walk" alone (e.g. "walk into the club", "walk up to them") doesn't match.
+ return /walk page|walk hub|walk-embed|walk sdk|walk mode|walk playground|walk companion|companion mode|walking avatar|walk avatar|walk scene|walk leaderboard|walk analytics/.test(text);
+ }
+
+ function fmtDate(iso) {
+ const d = new Date(iso);
+ if (Number.isNaN(d.getTime())) return esc(iso);
+ return d.toLocaleDateString(undefined, { year: 'numeric', month: 'short', day: 'numeric' });
+ }
+
+ function render(entries) {
+ if (!entries.length) {
+ host.innerHTML =
+ '<p class="wd-cl-state">No walk-specific entries in the changelog yet. See the ' +
+ '<a href="/changelog">full three.ws changelog</a> for the latest platform updates.</p>';
+ return;
+ }
+ host.innerHTML = entries
+ .map((e) => {
+ const tags = (e.tags || [])
+ .map((t) => `<span class="wd-cl-tag">${esc(t)}</span>`)
+ .join('');
+ const title = e.link
+ ? `<a href="${esc(e.link)}">${esc(e.title)}</a>`
+ : esc(e.title);
+ return (
+ '<article class="wd-cl-item">' +
+ `<div class="wd-cl-meta"><span class="wd-cl-date">${fmtDate(e.date)}</span>${tags}</div>` +
+ `<h3>${title}</h3>` +
+ (e.summary ? `<p>${esc(e.summary)}</p>` : '') +
+ '</article>'
+ );
+ })
+ .join('');
+ }
+
+ async function load() {
+ try {
+ const res = await fetch('/changelog.json', { headers: { accept: 'application/json' } });
+ if (!res.ok) throw new Error(`HTTP ${res.status}`);
+ const data = await res.json();
+ const all = Array.isArray(data.entries) ? data.entries : [];
+ const walk = all
+ .filter(isWalk)
+ .sort((a, b) => String(b.date).localeCompare(String(a.date)));
+ render(walk);
+ } catch (err) {
+ host.innerHTML =
+ '<p class="wd-cl-state">Couldn\'t load the changelog right now. ' +
+ 'Read it directly at <a href="/changelog">three.ws/changelog</a>.</p>';
+ } finally {
+ host.setAttribute('aria-busy', 'false');
+ }
+ }
+
+ load();
+ </script>
+ </body>
+</html>
diff --git a/public/features.json b/public/features.json
index 89a44dfcd..7ba76ff0d 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-21T06:48:55.119Z",
+ "generated_at": "2026-06-21T06:55:54.099Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/tasks/CLEANUP-MANIFEST.md b/tasks/CLEANUP-MANIFEST.md
index b2f398af9..fdbfc159e 100644
--- a/tasks/CLEANUP-MANIFEST.md
+++ b/tasks/CLEANUP-MANIFEST.md
@@ -155,3 +155,11 @@ Retired (feature verified shipped):
| tasks/walk/40-walk-analytics-dashboard.md | DELETE | Built: api/walk/analytics.js (owner-gated) + pages/walk-analytics.html (routed /walk-analytics) + window.ThreeWalkAvatar.track() in src/walk.js. Shipped in commit a06ea92aa. |
| tasks/walk/46-walk-landing-marketing-page.md | DELETE | Built: pages/walk-landing.html (routed /walk; app at /walk/app) + data/walk-social.json/public/walk-social.json; live embeds, real leaderboard teaser fetch, all states. Shipped in commit a06ea92aa. |
| tasks/walk/33-walk-aware-page-transitions.md | DELETE | Built: src/walk-companion-transitions.js (6 route presets, WAAPI, reduced-motion) wired into src/walk-companion.js with persisted toggle. Shipped in commit a06ea92aa. |
+
+## 2026-06-21 built-and-shipped (walk batch 2)
+
+| spec file | decision | evidence |
+|---|---|---|
+| tasks/walk/48-walk-postmessage-events-spec.md | DELETE | Built: src/walk-embed-events.js full contract + installEmbedBridge, pages/walk-embed.html wiring, public/walk-embed-sdk.js host SDK (embed().on/goto/gesture/say/setEnv/...), public/docs/walk-embed-api.html. Shipped in commit 9746b744a. |
+| tasks/walk/47-walk-api-programmatic-control.md | DELETE | Built: api/walk/control/[action].js (session/move/gesture/say/env/poll/state/contract) + migration 20260621160000_walk_control.sql + src/walk.js control poller. Shipped in commit 9746b744a. |
+| tasks/walk/49-walk-documentation-page.md | DELETE | Built: public/docs/walk/* hub (index, getting-started, walk-page, embed-iframe, embed-sdk, postmessage-events, companion-mode, analytics, chrome-extension, changelog) routed at /docs/walk/*; rest-api page intentionally omitted-then-superseded by control API. |
diff --git a/tasks/walk/47-walk-api-programmatic-control.md b/tasks/walk/47-walk-api-programmatic-control.md
deleted file mode 100644
index 8877ed8a4..000000000
--- a/tasks/walk/47-walk-api-programmatic-control.md
+++ /dev/null
@@ -1,46 +0,0 @@
-# Task 47 — Walk API: Programmatic Control Endpoint
-
-## Priority: MEDIUM
-
-## Objective
-Expose a REST + WebSocket API so external systems — other agents, CI bots, webhooks — can programmatically control a running walk session: move the avatar, trigger gestures, speak text, change environments.
-
-## Scope
-- New Vercel function group: `api/walk/control/`
- - `POST /api/walk/control/session` — create a named session `{ avatarId, env, roomCode? }` → returns `{ sessionId, controlToken }`
- - `POST /api/walk/control/:sessionId/move` — `{ x, z, speed? }` → avatar walks to that world position
- - `POST /api/walk/control/:sessionId/gesture` — `{ gesture: 'wave' | 'dance' | ... }`
- - `POST /api/walk/control/:sessionId/say` — `{ text, voice?: boolean }`
- - `POST /api/walk/control/:sessionId/env` — `{ env: 'beach' }` swaps environment live
- - `GET /api/walk/control/:sessionId/state` — returns current position, animation, env
- - All endpoints require `Authorization: Bearer <controlToken>` header
-- Wire control commands into the walk page:
- - Walk page polls `GET /api/walk/control/:sessionId/commands?since=<ts>` every 500ms (or uses SSE endpoint for push)
- - Received command → executes against local scene state
-- Documentation: `public/docs/walk-api.html` — full API reference with cURL examples, JS fetch examples, WebSocket example
-- Rate limits: 60 commands/min per session (enforced with KV or the existing rate-limiter pattern in `api/`)
-
-## Definition of Done
-- `curl -X POST /api/walk/control/session -d '{"avatarId":"..."}' -H 'Authorization: Bearer ...'` creates a session
-- Follow-up `POST /move` makes the avatar move on the walk page within 1s
-- `POST /say` triggers real TTS + bubble
-- State endpoint returns live position
-- API docs page is complete with working examples
-- Rate limiter enforced (verified by sending 61 requests)
-
-## Rules
-Complete 100%. No stubs. No fake data. Real REST API, real command execution, real rate limiting. Wire end-to-end.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/walk/47-walk-api-programmatic-control.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/tasks/walk/48-walk-postmessage-events-spec.md b/tasks/walk/48-walk-postmessage-events-spec.md
deleted file mode 100644
index 82dfbfd33..000000000
--- a/tasks/walk/48-walk-postmessage-events-spec.md
+++ /dev/null
@@ -1,55 +0,0 @@
-# Task 48 — Walk postMessage Events: Full Spec & Implementation
-
-## Priority: MEDIUM
-
-## Objective
-Define, implement, and document a complete bi-directional postMessage contract between the walk-embed iframe and host pages. This is the integration API that makes the embed programmable from any host site.
-
-## Scope
-- Module: `src/walk-embed-events.js` (imported by `pages/walk-embed.html`)
-- **Outbound events** (iframe → host):
- - `{ type: 'walk:ready', avatarId, env }` — fired on full init
- - `{ type: 'walk:position', x, z, heading }` — fired at 10 Hz while moving
- - `{ type: 'walk:gesture', gesture }` — fired when gesture plays
- - `{ type: 'walk:speak', text, durationMs }` — fired when avatar starts speaking
- - `{ type: 'walk:env', env }` — fired when environment changes
- - `{ type: 'walk:error', code, message }` — any error
-- **Inbound commands** (host → iframe via `iframe.contentWindow.postMessage`):
- - `{ type: 'walk:goto', x, z }` — walk to position
- - `{ type: 'walk:gesture', gesture }` — play gesture
- - `{ type: 'walk:say', text, voice }` — speak
- - `{ type: 'walk:env', env }` — change environment
- - `{ type: 'walk:avatar', avatarId }` — swap avatar
- - `{ type: 'walk:config', speed?, bg?, controls? }` — update runtime config
-- Security:
- - Validate `event.origin` against allowlist for inbound commands (default: any origin allowed; tighten per embed config)
- - Never expose session tokens or internal state via postMessage
-- JS helper library:
- - `public/walk-embed-sdk.js` (from task 04) wraps all of this into a clean API: `avatar.on('position', cb)`, `avatar.goto(x, z)`, etc.
-- Documentation:
- - `public/docs/walk-embed-api.html` — event reference, code examples for React, Vue, Vanilla JS
- - Interactive playground on the doc page: live iframe + code editor (CodeMirror) where devs can send commands and watch results
-
-## Definition of Done
-- All outbound events fire correctly (verified by `window.addEventListener('message', ...)` on a host page)
-- All inbound commands execute within 100ms
-- Security: foreign origin can send commands; test that session state is not leaked
-- Doc page interactive playground works
-- No console errors
-
-## Rules
-Complete 100%. No stubs. No fake data. Real events, real security, real docs with working interactive playground. Wire end-to-end.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/walk/48-walk-postmessage-events-spec.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/tasks/walk/49-walk-documentation-page.md b/tasks/walk/49-walk-documentation-page.md
deleted file mode 100644
index a7bcee23a..000000000
--- a/tasks/walk/49-walk-documentation-page.md
+++ /dev/null
@@ -1,55 +0,0 @@
-# Task 49 — Walk Documentation: Full Developer & User Docs
-
-## Priority: MEDIUM
-
-## Objective
-Write and publish complete documentation for the entire walking avatar system — user guides, developer integration docs, API reference, and the Chrome extension guide — all at `https://three.ws/docs/walk`.
-
-## Scope
-- New files under `public/docs/walk/`:
- - `index.html` — overview + navigation sidebar
- - `getting-started.html` — "Walk your first avatar in 5 minutes"
- - `walk-page.html` — controls, camera modes, environments, multiplayer, AR
- - `embed-iframe.html` — iframe embed guide with live preview
- - `embed-sdk.html` — JS SDK reference (`window.ThreeWalkAvatar` API)
- - `postmessage-events.html` — full event spec (task 48)
- - `rest-api.html` — programmatic control API (task 47)
- - `chrome-extension.html` — install, configure, site list, TTS narration
- - `companion-mode.html` — site-wide walk mode on three.ws
- - `analytics.html` — embedding analytics dashboard
- - `changelog.html` — version history with real dates and feature descriptions
-
-- Each page:
- - Sidebar with active state tracking (highlight current page)
- - Code examples with syntax highlighting (Prism.js, vendored)
- - Copy button on every code block
- - Where applicable: embedded live demo (real iframe, not screenshot)
- - "Edit this page" link pointing to the real GitHub file (for open PRs)
-
-- Route `vercel.json`: `/docs/walk/*` → `public/docs/walk/$1.html`
-- Docs are indexed in `llms.txt` and `llms-full.txt` (already used by the repo for AI discoverability)
-
-## Definition of Done
-- All 11 pages exist and are complete (no "coming soon" sections)
-- Every code example is real, tested, copy-pasteable
-- Live demos on embed pages work
-- `/docs/walk` returns 200, sidebar navigation works
-- llms.txt updated to include walk docs
-- No console errors
-
-## Rules
-Complete 100%. No stubs. No "coming soon". Every example must be real and tested. Wire end-to-end.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/walk/49-walk-documentation-page.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/vercel.json b/vercel.json
index b77d24820..9175daa73 100644
--- a/vercel.json
+++ b/vercel.json
@@ -2729,6 +2729,22 @@
"src": "/docs/widgets",
"dest": "/docs-widgets.html"
},
+ {
+ "src": "/docs/walk",
+ "dest": "/docs/walk/index.html"
+ },
+ {
+ "src": "/docs/walk/",
+ "dest": "/docs/walk/index.html"
+ },
+ {
+ "src": "/docs/walk/([^./]+)",
+ "dest": "/docs/walk/$1.html"
+ },
+ {
+ "src": "/docs/walk-embed-api",
+ "dest": "/docs/walk-embed-api.html"
+ },
{
"src": "/docs/([^./]+)",
"dest": "/docs/index.html"