Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
docs(demos): re-verify the demo route inventory and coin pages against production
nirholasda36581fec04
diff --git a/docs/coin-pages.md b/docs/coin-pages.mdindex cab96e456..d7a0692e9 100644--- a/docs/coin-pages.md+++ b/docs/coin-pages.md@@ -5,7 +5,9 @@ three.ws has always had deep coverage of pump.fun launches (`/launches`,crypto market: a CoinGecko-style index of the top assets, and a rich,shareable detail page for every coin. The design is adopted from the[cryptocurrency.cv](https://github.com/nirholas/cryptocurrency.cv) coin pages —-editorial serif headings, hairline borders, mono numerals, light/dark themes.+editorial headings, hairline borders, mono numerals, light/dark themes (the+port's Source Serif 4 headings were retired 2026-07 for the sitewide Space+Grotesk display face).## The pages@@ -72,7 +74,8 @@ editorial serif headings, hairline borders, mono numerals, light/dark themes.live trade page on that venue), price, spread, +2% / −2% order-book depth,24h volume, and a color-coded trust rating. Stale/anomalous rows are dimmed.- **Related news** — live articles mentioning the coin, from the native- three.ws aggregator (192 publisher feeds, `api/_lib/news.js`).+ three.ws aggregator (`api/_lib/news.js`; 191 publisher feeds in the+ `api/_lib/news-sources.js` registry).- **About + links** — plain-text description, official site / social /explorer pills, plus whitepaper, forum, chat, announcement, and extra-repolinks, and per-chain contract addresses with one-click copy.@@ -429,8 +432,9 @@ with serve-stale-on-error, so one dead feed never blanks the page.Opens any story with server-side extraction (`/api/news/article`): fullparagraphs, publisher metadata, an AI summary + key points via the platform-LLM chain (Groq → OpenRouter) with an extractive fallback when no provider key-is present, bullish/bearish/neutral sentiment, detected tickers, and a+LLM chain (`api/_lib/llm.js`, free providers first, paid keys only as a tail+backstop) with an extractive fallback when no provider is reachable,+bullish/bearish/neutral sentiment, detected tickers, and arelated-coverage rail. Publishers that block server fetches degrade through anhonest ladder: page extraction → the publisher's own feed body(`content:encoded`) → a labelled preview with a read-at-source CTA. Never a@@ -481,6 +485,7 @@ All data is real and fetched at runtime — nothing is hardcoded or sampled:| `/api/coin/detail` | CoinGecko `/coins/{id}` or `/coins/solana/contract/{mint}` (with community + developer blocks) | 60 s || `/api/coin/tickers` | CoinGecko `/coins/{id}/tickers` (exchange listings, ±2% depth) | 120 s || `/api/coin/ohlc` | CoinGecko `/coins/{id}/market_chart` | 120 s |+| `/api/coin/pool` | GeckoTerminal top-pool lookup by token address (feeds the GeckoTerminal chart embed) | 60 s + 300 s CDN || `/api/coin/markets` | CoinGecko `/coins/markets` (optional `category=`), `/search` | 60 s / 300 s || `/api/coin/categories` | CoinGecko `/coins/categories` | 300 s || `/api/coin/category` | CoinGecko `/coins/categories` (one category + rank + neighbours) | 600 s |@@ -502,9 +507,9 @@ All data is real and fetched at runtime — nothing is hardcoded or sampled:| `/api/coin/global` | CoinGecko `/global` + alternative.me Fear & Greed | 120 s || `/api/coin/fear-greed` | alternative.me `/fng` (current + history) | 300 s || `/api/coin/gas` | public Ethereum RPC `eth_feeHistory` + CoinGecko ETH price | 15 s |-| `/api/coin/news` | native aggregator (`api/_lib/news.js`, 192 publisher feeds) | 300 s |-| `/api/news/feed` | native aggregator — 38 publisher RSS/Atom feeds, per-source cache + serve-stale | 120 s |-| `/api/news/article` | publisher page fetch (SSRF-guarded) → publisher feed body → preview; LLM analysis via Groq/OpenRouter with extractive fallback | 1800 s |+| `/api/coin/news` | native aggregator (`api/_lib/news.js`, 191 publisher feeds) | 300 s |+| `/api/news/feed` | native aggregator: 191 publisher RSS/Atom feeds (`api/_lib/news-sources.js`), per-source cache + serve-stale | 120 s |+| `/api/news/article` | publisher page fetch (SSRF-guarded) → publisher feed body → preview; LLM analysis via the platform chain (`api/_lib/llm.js`) with extractive fallback | 1800 s || `/api/news/archive` | `gs://three-ws-news-archive` (662k-article JSONL corpus + indexes on GCS) | 300 s / 3600 s || `/api/coin/liquidations`| `services/liquidation-collector` (Binance/Bybit/OKX public liquidation WebSocket streams) | 15 s, `503` no-fallback offline |@@ -542,13 +547,14 @@ text before they reach the client.| Trending | [`pages/markets-trending.html`](../pages/markets-trending.html) + `src/markets-trending.js`, API [`api/coin/trending.js`](../api/coin/trending.js) || Markets hub | [`pages/markets.html`](../pages/markets.html) + [`src/markets-page.js`](../src/markets-page.js) || Crypto news | [`pages/markets-news.html`](../pages/markets-news.html) + [`src/markets-news.js`](../src/markets-news.js) |+| News digest | [`pages/news-digest.html`](../pages/news-digest.html) + [`src/news-digest.js`](../src/news-digest.js), API [`api/news/digest.js`](../api/news/digest.js) || Article reader | [`pages/news-article.html`](../pages/news-article.html) + [`src/news-article.js`](../src/news-article.js) || News archive | [`pages/news-archive.html`](../pages/news-archive.html) + [`src/news-archive.js`](../src/news-archive.js) || News engine + sources | [`api/_lib/news.js`](../api/_lib/news.js) + [`api/_lib/news-sources.js`](../api/_lib/news-sources.js), endpoints in [`api/news/`](../api/news) || Shared news renderers | [`src/shared/news-render.js`](../src/shared/news-render.js); table primitives in [`src/shared/market-table.js`](../src/shared/market-table.js) |-| Shared design system | [`src/coin-pages.css`](../src/coin-pages.css) (Source Serif 4 self-hosted in `public/fonts/`) |+| Shared design system | [`src/coin-pages.css`](../src/coin-pages.css) (Inter, Space Grotesk, JetBrains Mono self-hosted in `public/fonts/`) || Shared formatters | [`src/shared/coin-format.js`](../src/shared/coin-format.js) — unit-tested in [`tests/coin-format.test.js`](../tests/coin-format.test.js) |-| API proxies | [`api/coin/`](../api/coin) — `detail.js`, `ohlc.js`, `markets.js`, `global.js`, `fear-greed.js`, `gas.js`, `news.js`, `liquidations.js` |+| API proxies | [`api/coin/`](../api/coin): one file per `/api/coin/*` endpoint in the table above (`detail.js`, `ohlc.js`, `pool.js`, `markets.js`, `tickers.js`, `categories.js`, `category.js`, `exchanges.js`, `exchange.js`, `derivatives.js`, `rates.js`, `trending.js`, `global.js`, `fear-greed.js`, `gas.js`, `news.js`, `liquidations.js`) || Liquidations collector | [`services/liquidation-collector/`](../services/liquidation-collector) — standalone always-on Node service (not a Vercel function) |Routing: `vercel.json` rewrites `/coins`, `/coin/<id>`, `/heatmap`,diff --git a/docs/demo-routes.md b/docs/demo-routes.mdindex df4835384..d68701548 100644--- a/docs/demo-routes.md+++ b/docs/demo-routes.md@@ -1,7 +1,7 @@# Demo routesThe canonical map of every `/demo/*` and `/demos/*` route as of-2026-06-08. Update whenever a route is added, removed, or moved.+2026-08-05. Update whenever a route is added, removed, or moved.The demo namespace splits in two:@@ -17,9 +17,9 @@ Production routing is in [vercel.json](../vercel.json); the matchingVite dev-server middleware is in [vite.config.js](../vite.config.js).Both must be kept in sync.-Every row below was verified against the live Vite dev server-(`npm run dev`, port 3000) with `curl -sIL`, not read from config alone.-See [Verification notes](#verification-notes-2026-06-08) at the end.+Every row below was verified against production (`https://three.ws`)+with `curl -sIL`, not read from config alone.+See [Verification notes](#verification-notes-2026-08-05) at the end.## Routes@@ -34,6 +34,7 @@ See [Verification notes](#verification-notes-2026-06-08) at the end.| `/demo/avatar-os/combined.html` | `public/demo/avatar-os/combined.html` | Studio + selfie shown side-by-side. || `/demos/` | `public/demos/index.html` | Index of all lab demos. || `/demos/3d-home` | `public/demos/3d-home.html` | "Give your AI a body" homepage demo. |+| `/demos/audio2face` | `public/demos/audio2face.html` | NVIDIA Audio2Face-3D lipsync: type text, hear it in NVIDIA Magpie's voice, watch the avatar's face animate via ARKit blendshapes. || `/demos/avatar-sdk` | `public/demos/avatar-sdk.html` | `@three-ws/avatar` SDK walkthrough. || `/demos/bonding-curve` | `public/demos/bonding-curve.html` | Bonding curve simulator. || `/demos/brain` | `public/demos/brain.html` | Multi-LLM brain router. |@@ -64,37 +65,43 @@ See [Verification notes](#verification-notes-2026-06-08) at the end.page, not a content demo — the `/demos/` index also embeds it as ahidden empty-state. It is intentionally omitted from the table above.-The legacy `/lipsync`, `/lipsync/mic` shortcuts in `vercel.json` still-resolve to the `/demos/lipsync-*.html` files above. They predate the-`/demos/` namespace and are kept for backward compatibility — prefer the-`/demos/<slug>` form for new links.+The legacy `/lipsync`, `/lipsync/mic`, and `/audio2face` shortcuts in+`vercel.json` still resolve to the `/demos/lipsync-*.html` and+`/demos/audio2face.html` files above. They predate the+`/demos/` namespace and are kept for backward compatibility (prefer the+`/demos/<slug>` form for new links).### Agent interaction lab — `/demos/agents/*`Single-purpose demos of an avatar reacting to the page. Index hub is`/demos/agents/` (`public/demos/agents/index.html`), linked from the main`/demos/` index. Each page lives at `public/demos/agents/<slug>.html` and-is served by the `/demos/agents/<slug>` rewrite.+is served straight from the filesystem at that `.html` path; the+extensionless `/demos/agents/<slug>` form is a dev-only convenience+(`vite.config.js` middleware). `vercel.json` has no `/demos/agents/*`+rewrite, so in production the `.html` form (the one the hub links) is the+only one that resolves; extensionless agent URLs 404. The routes below+use the canonical `.html` form.| Route | Page file | What it does ||---|---|---|-| `/demos/agents/auto-rig` | `public/demos/agents/auto-rig.html` | Auto-rigging an imported mesh. |-| `/demos/agents/builds-button` | `public/demos/agents/builds-button.html` | Agent assembles a CTA button. |-| `/demos/agents/climb-title` | `public/demos/agents/climb-title.html` | Agent climbs the page title. |-| `/demos/agents/cursor-follower` | `public/demos/agents/cursor-follower.html` | Agent tracks the cursor. |-| `/demos/agents/face-mocap` | `public/demos/agents/face-mocap.html` | Webcam face mocap drives the avatar. |-| `/demos/agents/fall-from-top` | `public/demos/agents/fall-from-top.html` | Agent drops in from the top of the viewport. |-| `/demos/agents/falls-asleep` | `public/demos/agents/falls-asleep.html` | Idle agent falls asleep. |-| `/demos/agents/gemini-live` | `public/demos/agents/gemini-live.html` | Live conversation via Gemini. |-| `/demos/agents/high-five` | `public/demos/agents/high-five.html` | Agent high-fives on click. |-| `/demos/agents/holds-cta` | `public/demos/agents/holds-cta.html` | Agent holds up the call-to-action. |-| `/demos/agents/pickup-drop` | `public/demos/agents/pickup-drop.html` | Pick up and drop the agent. |-| `/demos/agents/scroll-inertia` | `public/demos/agents/scroll-inertia.html` | Agent reacts to scroll inertia. |-| `/demos/agents/sit-in-body` | `public/demos/agents/sit-in-body.html` | Agent sits inside body copy. |-| `/demos/agents/skateboard` | `public/demos/agents/skateboard.html` | Agent skateboards across the page. |-| `/demos/agents/trampoline` | `public/demos/agents/trampoline.html` | Agent bounces on a trampoline. |-| `/demos/agents/walks-gutter` | `public/demos/agents/walks-gutter.html` | Agent walks the page gutter. |-| `/demos/agents/wrecking-ball` | `public/demos/agents/wrecking-ball.html` | Wrecking-ball physics demo. |+| `/demos/agents/auto-rig.html` | `public/demos/agents/auto-rig.html` | Auto-rigging an imported mesh. |+| `/demos/agents/builds-button.html` | `public/demos/agents/builds-button.html` | Agent assembles a CTA button. |+| `/demos/agents/climb-title.html` | `public/demos/agents/climb-title.html` | Agent climbs the page title. |+| `/demos/agents/cursor-follower.html` | `public/demos/agents/cursor-follower.html` | Agent tracks the cursor. |+| `/demos/agents/face-mocap.html` | `public/demos/agents/face-mocap.html` | Webcam face mocap drives the avatar. |+| `/demos/agents/fall-from-top.html` | `public/demos/agents/fall-from-top.html` | Agent drops in from the top of the viewport. |+| `/demos/agents/falls-asleep.html` | `public/demos/agents/falls-asleep.html` | Idle agent falls asleep. |+| `/demos/agents/gemini-live.html` | `public/demos/agents/gemini-live.html` | Live conversation via Gemini. |+| `/demos/agents/high-five.html` | `public/demos/agents/high-five.html` | Agent high-fives on click. |+| `/demos/agents/holds-cta.html` | `public/demos/agents/holds-cta.html` | Agent holds up the call-to-action. |+| `/demos/agents/pickup-drop.html` | `public/demos/agents/pickup-drop.html` | Pick up and drop the agent. |+| `/demos/agents/scroll-inertia.html` | `public/demos/agents/scroll-inertia.html` | Agent reacts to scroll inertia. |+| `/demos/agents/sit-in-body.html` | `public/demos/agents/sit-in-body.html` | Agent sits inside body copy. |+| `/demos/agents/skateboard.html` | `public/demos/agents/skateboard.html` | Agent skateboards across the page. |+| `/demos/agents/trampoline.html` | `public/demos/agents/trampoline.html` | Agent bounces on a trampoline. |+| `/demos/agents/walks-gutter.html` | `public/demos/agents/walks-gutter.html` | Agent walks the page gutter. |+| `/demos/agents/wrecking-ball.html` | `public/demos/agents/wrecking-ball.html` | Wrecking-ball physics demo. |## Related demo pages (outside `/demo` and `/demos`)@@ -104,11 +111,11 @@ live at their own top-level URLs:| Route | Page file | What it does ||---|---|---|| `/coin3d` | `pages/coin3d.html` | Token-in-3D visualizer. |-| `/app-demo` | `pages/app-demo.html` | Viewer with the studio skin (studio-skin demo). || `/embed-demo` | `pages/embed-demo.html` | Avatar embed demo. |-| `/avatar-studio-demo` | `pages/avatar-studio-demo.html` | Avatar Studio demo. |-| `/lipsync` | `public/demos/lipsync-tts.html` | Alias into the lab — TTS-driven lipsync. |-| `/lipsync/mic` | `public/demos/lipsync-mic.html` | Alias into the lab — mic/audio-driven lipsync. |+| `/hero-demo` | `pages/hero-demo.html` | Cinematic 3D hero stage: a lit avatar over glowing rings and a starfield, with pointer parallax. |+| `/lipsync` | `public/demos/lipsync-tts.html` | Alias into the lab: TTS-driven lipsync. |+| `/lipsync/mic` | `public/demos/lipsync-mic.html` | Alias into the lab: mic/audio-driven lipsync. |+| `/audio2face` | `public/demos/audio2face.html` | Alias into the lab: NVIDIA Audio2Face-3D lipsync. |## Legacy redirects@@ -117,7 +124,7 @@ live at their own top-level URLs:| `/coin` | `/demo/coin` | `vercel.json` (301), mirrored in `vite.config.js` middleware for dev. || `/coin/` | `/demo/coin` | `vercel.json` (301), mirrored in `vite.config.js` middleware for dev. |-Both redirects land on a `200` (`/demo/coin/`) after following the+Both redirects land on a `200` (`/demo/coin`) after following the30x. The legacy `pages/pump-coin-page.html` has been removed —`/pump-coin-page` now `404`s and `/demo/coin` is the only coin demo URL.@@ -153,25 +160,30 @@ Both redirects land on a `200` (`/demo/coin/`) after following theThe route must return `200` (or `301` → 200 for a documentedlegacy redirect).-## Verification notes (2026-06-08)+## Verification notes (2026-08-05)-Verified on the live Vite dev server (`npm run dev`, port 3000):+Re-verified against production (`https://three.ws`) with `curl -sIL`:- Every route in the tables above returns **200**. `/coin` and `/coin/`- return **301 → `/demo/coin/` → 200**.-- All 27 `/demos/<slug>` pages and all 17 `/demos/agents/<slug>` pages- return 200 (extensionless and `.html` forms both resolve; in-page links- use `.html`).-- Each page renders a real, non-placeholder `<title>` and loads its JS- modules with **200** responses.-- `/_vercel/insights/script.js` 404s on the dev server on every page — it- is a leftover Vercel Web Analytics path from the Vercel era. Production- moved to Google Cloud Run (2026-07-07), which does not serve or inject it- either, so the 404 is expected in both environments and is not a route- regression.-- `/demo/avatar-os/studio` (no `.html`) 404s in dev and is **not** a- supported URL — the avatar-os hub links its sub-pages with the `.html`+ return **301 → `/demo/coin` → 200**.+- All 27 `/demos/<slug>` pages return 200 in the extensionless form (the+ `vercel.json` rewrite) and the `.html` form; in-page links use `.html`.+- All 17 `/demos/agents/<slug>.html` pages return 200. The extensionless+ form 404s in production (dev-only, see the agents section above).+- **Known production gap:** `/demos/agents` and `/demos/agents/` both+ 404 in production. The generic `/demos/([^/.]+)` rewrite maps+ `/demos/agents` to the nonexistent `/demos/agents.html`, and the+ trailing-slash form is 301-normalized to the slashless one before the+ directory index can resolve. Only `/demos/agents/index.html` serves the+ hub, yet the `/demos/` index links `/demos/agents/`. The dev server+ serves both forms (explicit `fileMap` entries in `vite.config.js`), so+ the breakage is invisible in dev.+- Directory URLs with a trailing slash (`/demos/`, `/demo/`,+ `/demo/avatar-os/`) return **301** to the slashless form, which serves+ the index with 200.+- `/demo/avatar-os/studio` (no `.html`) 404s and is **not** a+ supported URL: the avatar-os hub links its sub-pages with the `.html`extension, which is the canonical form. Same for the other avatar-ossub-pages.-- No `vercel.json` or `vite.config.js` changes were needed; all routes- were already wired correctly.+- `/app-demo` and `/avatar-studio-demo` have been removed (pages and+ routes are gone; both 404) and no longer appear in the tables above.