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
feat(tour-sdk): add one-tag install for 3D store guide on Shopify
fudjia1f54cb8ec717
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 56b98fb27..b7afa0d99 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,14 +7,17 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr## 2026-07-04- **Markets — Live Crypto Prices** (`/coins`) — Live global cryptocurrency market data: total market cap, dominance, Fear & Greed, and the top coins with prices, 24h/7d moves, and 7d sparklines. Every coin links to a rich /coin/:id detail page with an interactive chart, market stats, related news, and official links.+- **Tutorial · 3D Store Guide for Shopify** (`/tutorials/shopify-store-guide`) — A guide avatar walks your Shopify storefront, spotlights the hero, bestsellers, and reviews, and narrates each one — two script tags in theme.liquid, free roam included.- **3D avatars load about 4x faster - and reliably everywhere** — Seven of the heaviest built-in avatars were compressed from a combined 42 MB down to under 10 MB (76% smaller), so avatar pickers, NPC scenes, and the walk companion appear much sooner - especially on slower connections. Along the way we fixed a loading bug: a few pages, including the live agent-to-agent trade demo, could silently show placeholder capsule figures instead of the real 3D avatars. Every 3D surface on the site now decodes compressed avatars correctly. `[improvement, fix]`- **A little Fourth of July on the homepage** — For Independence Day (July 1–5) the homepage wears a touch of red, white, and blue: a soft ribbon glow along the top of the page and real launch-and-burst fireworks that rise and shower over the hero. It's sparse and tasteful, respects your reduced-motion setting, pauses when the tab is in the background, and retires itself automatically once the holiday passes. (`/`) `[improvement]`- **A little Fourth of July on the homepage** — Visit the homepage this week and you'll catch some quiet Independence Day touches: a thin red-white-and-blue line across the top of the page and the occasional tiny firework sparkling in the hero. Nothing loud — it keeps the site clean, respects reduced-motion settings, works in both light and dark themes, and retires itself automatically after July 5. (`/`) `[improvement]`- **Deploys restored — the platform ships again, and builds are 4× lighter** — three.ws was briefly unreachable while production moved to new infrastructure: every deploy was timing out at the build platform's 45-minute ceiling. The root cause is fixed — a monitoring SDK was being baked into every one of the platform's ~800 API functions, inflating the deploy payload to 2.3 GB; it now loads only where it is actually enabled, cutting that to 540 MB. Two smaller deploy blockers found along the way (a build-order race and two missing packages) are fixed too. The site is back, deploys complete with time to spare, and nothing about how you use the platform changes. `[infra, fix]`- **Four gestures return to the walk companion — nod, shrug, jog, celebrate** — The gesture wheel regained four expressive moves that had been silently dropped: nod (a quick upper-body affirm), shrug, jog (a full-body run loop), and celebrate (a whole-body cheer). Open the wheel with G (or long-press the action button on mobile) — the wheel now lays out all twelve gestures; keys 1–8 still trigger the first eight. Also part of this pass: the entire test suite now runs fully green, locking every one of these behaviors in. (`/walk`) `[fix]`-- **Fourth of July avatar presets in the create flow** — The Independence Day moment now reaches avatar creation, not just the homepage. For July 1–5, the prompt page offers a set of festive one-tap presets — Uncle Sam, a bald-eagle mascot, a hero take on Lady Liberty, and a glowing red-white-and-blue firework sprite — so you can spin up a themed 3D avatar in a click. They retire themselves automatically once the holiday passes. (`/create/prompt`) `[improvement]`+- **Fourth of July presets across the create + forge flows** — The Independence Day moment now reaches the creation tools, not just the homepage. For July 1–5, the avatar prompt page offers festive one-tap presets — Uncle Sam, a bald-eagle mascot, a hero take on Lady Liberty, and a glowing red-white-and-blue firework sprite — and the Forge adds matching props you can generate in a click: a bald-eagle statue, a rippling flag, a cracked liberty bell, and a firework rocket. On the Forge they stay pinned while 'More ideas' shuffles the regular prompts, and everything retires itself automatically once the holiday passes. (`/create/prompt`) `[improvement]`- **Global markets — live prices and a rich detail page for every coin** — three.ws now covers the whole market, not just pump.fun launches. The new Markets page shows global market cap, dominance, the Fear & Greed index, and the top coins with live prices, 24h/7d moves, and 7-day sparklines — sortable, searchable, and paginated. Click any coin (or visit /coin/<id> directly) for a rich profile: interactive price chart across five time ranges, full market stats including all-time high and low, related news from live sources, a plain-language about section, official links, and contract addresses. Solana coins cross-link straight into Alpha Copilot and the live trade feed. (`/coins`) `[feature]`- **Light off your own fireworks on the homepage** — The Fourth of July fireworks over the homepage hero are now yours to fire. Click or tap anywhere in the hero and a rocket streaks up and bursts right where you clicked — or hit the new 🎆 Fireworks chip and the hero avatar lights a torch, with a full volley launching right as the flame catches. Fireworks you set off get a quiet, real-time synthesized boom (mute it with the 🔊 chip; your choice is remembered), while the ambient show stays silent. Two torch-lighting animations joined the avatar motion library, bringing it past 100 clips. Visitors with reduced motion enabled skip the ambient show but can still fire their own — an explicit click is always honored. The whole display packs itself away after July 5. (`/`) `[feature]`+- **Put a 3D store guide on your Shopify shop — one-tag tour SDK release** — The guided-tour engine now installs on any external site with a single script tag. @three-ws/tour 0.2.0 ships a self-contained CDN build (tour.global.js) that auto-starts from data attributes — point it at a curriculum JSON and your storefront gets an avatar that walks the page, spotlights sections, narrates each one, and offers free roam. @three-ws/walk 0.1.1 fixes cross-origin animation loading so avatars animate correctly when assets are served from the three.ws CDN onto another domain. A new step-by-step tutorial shows the full Shopify install: theme.liquid tags, a store curriculum, a Take-the-tour button, and the optional docked page narrator. (`/tutorials/shopify-store-guide`) `[sdk, feature, docs]`+- **Soldier, X Bot, and Michelle animations no longer float away** — Eleven animation clips baked from centimeter-scale source models (the Soldier idle/run/walk set, the full X Bot set, and Michelle's samba) carried hip positions about 100× too large, which could send an avatar drifting far above the ground when one of them played directly. The animation build pipeline now detects centimeter-authored skeletons from the data itself instead of guessing from the file type, and all eleven clips have been rebaked at true meter scale. `[fix]`- **The agent economy now runs from a single always-on heartbeat** — The live agent-to-agent economy - ring settlements, x402 micropayments, the Money Pulse feed, and the Labor Market - used to stall for hours at a time because it depended on schedulers that were silently not firing. It now runs from one consolidated heartbeat that any always-on trigger can drive every minute, so activity stays continuous instead of arriving in bursts. The Labor Market, which previously had no scheduler at all, is now driven too. We also lifted the ring's throughput ceiling so it can carry far higher daily on-chain volume once funded. `[improvement, infra]`- **The hero avatar is back on the homepage** — Since the July 4th fireworks went live, the 3D avatar in the homepage hero could stay invisible — the page was waiting to fade the avatar in, but the fireworks chip arriving first made it stop listening a moment too early, so the avatar loaded fully and then never appeared. The fade-in is now wired directly to the avatar itself, so it can't miss its cue. Fireworks and avatar now share the stage the way they were meant to. `[fix]`- **The whole agent economy now ticks every minute** — The minute heartbeat that drives the agent-to-agent economy was itself never being scheduled - it sat past the platform's scheduled-job limit, so the economy only moved when a deploy happened to nudge it. It's now pinned to run every minute, and it drives the full economy in one pass: agent tips and payouts, x402 payments, autonomous coin launches on pump.fun, copy/signal/strategy and DCA trading, subscriptions and royalties, $THREE buybacks, and treasury funding and reconciliation. Each engine self-paces to its own cadence, so nothing over-fires - but nothing sits idle waiting for a scheduler that never comes. The result: continuous activity instead of dead stretches. `[improvement, infra]`diff --git a/data/changelog.json b/data/changelog.jsonindex ce78e03e2..4bd2781da 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -3,8 +3,19 @@"entries": [{"date": "2026-07-04",- "title": "Fourth of July avatar presets in the create flow",- "summary": "The Independence Day moment now reaches avatar creation, not just the homepage. For July 1–5, the prompt page offers a set of festive one-tap presets — Uncle Sam, a bald-eagle mascot, a hero take on Lady Liberty, and a glowing red-white-and-blue firework sprite — so you can spin up a themed 3D avatar in a click. They retire themselves automatically once the holiday passes.",+ "title": "Put a 3D store guide on your Shopify shop — one-tag tour SDK release",+ "summary": "The guided-tour engine now installs on any external site with a single script tag. @three-ws/tour 0.2.0 ships a self-contained CDN build (tour.global.js) that auto-starts from data attributes — point it at a curriculum JSON and your storefront gets an avatar that walks the page, spotlights sections, narrates each one, and offers free roam. @three-ws/walk 0.1.1 fixes cross-origin animation loading so avatars animate correctly when assets are served from the three.ws CDN onto another domain. A new step-by-step tutorial shows the full Shopify install: theme.liquid tags, a store curriculum, a Take-the-tour button, and the optional docked page narrator.",+ "tags": [+ "sdk",+ "feature",+ "docs"+ ],+ "link": "/tutorials/shopify-store-guide"+ },+ {+ "date": "2026-07-04",+ "title": "Fourth of July presets across the create + forge flows",+ "summary": "The Independence Day moment now reaches the creation tools, not just the homepage. For July 1–5, the avatar prompt page offers festive one-tap presets — Uncle Sam, a bald-eagle mascot, a hero take on Lady Liberty, and a glowing red-white-and-blue firework sprite — and the Forge adds matching props you can generate in a click: a bald-eagle statue, a rippling flag, a cracked liberty bell, and a firework rocket. On the Forge they stay pinned while 'More ideas' shuffles the regular prompts, and everything retires itself automatically once the holiday passes.","tags": ["improvement"],@@ -11152,6 +11163,14 @@"tags": ["fix"]+ },+ {+ "date": "2026-07-04",+ "title": "Soldier, X Bot, and Michelle animations no longer float away",+ "summary": "Eleven animation clips baked from centimeter-scale source models (the Soldier idle/run/walk set, the full X Bot set, and Michelle's samba) carried hip positions about 100× too large, which could send an avatar drifting far above the ground when one of them played directly. The animation build pipeline now detects centimeter-authored skeletons from the data itself instead of guessing from the file type, and all eleven clips have been rebaked at true meter scale.",+ "tags": [+ "fix"+ ]}]}diff --git a/data/pages.json b/data/pages.jsonindex 9eeaa0525..f2793a75b 100644--- a/data/pages.json+++ b/data/pages.json@@ -1779,6 +1779,14 @@"description": "Read a Solana agent's A–D trust grade and the attestations behind it, then leave your own on-chain vouch.","added": "2026-06-22"},+ {+ "path": "/tutorials/shopify-store-guide",+ "title": "Tutorial · 3D Store Guide for Shopify",+ "description": "A guide avatar walks your Shopify storefront, spotlights the hero, bestsellers, and reviews, and narrates each one — two script tags in theme.liquid, free roam included.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-07-04"+ },{"path": "/status","title": "Status",diff --git a/docs/tutorials/shopify-store-guide.md b/docs/tutorials/shopify-store-guide.mdnew file mode 100644index 000000000..ca7ec1aaf--- /dev/null+++ b/docs/tutorials/shopify-store-guide.md@@ -0,0 +1,151 @@+# Add a 3D Store Guide to Your Shopify Theme++By the end of this tutorial your Shopify store has a **3D guide that walks across your actual storefront** — it strolls from your hero to your bestsellers, spotlights each section, points at it, and narrates a line about it. Visitors can take the guided tour, switch to **free roam** and drag the guide anywhere on the page, or let a docked narrator read the page to them out loud. All of it runs on your live theme — no app install, no iframe, no code beyond two script tags in `theme.liquid`.++**What you'll build:**+- A guided store tour: the avatar physically walks your homepage, spotlighting the hero, the featured collection, reviews, and your shipping policies+- Free roam: visitors click anywhere and the guide walks there+- An optional docked page narrator that reads your headings and product copy aloud+- A "Take the tour" button anywhere in your theme++**Prerequisites:** a Shopify store where you can edit theme code (Online Store → Themes → Edit code), and 20 minutes. No bundler, no npm, no Shopify app — everything loads from a CDN.++---++## Why this can't be an iframe (and why that's fine)++A guide that walks *on your sections* has to know where your sections are. It reads your page's real DOM — `h1`s, product grids, buttons — and measures their positions to walk to them. An iframe is sandboxed away from your page and can see none of that, so this integration is a **script tag in your theme**, not an embed frame. The avatar itself is a small transparent WebGL canvas that never blocks clicks (`pointer-events: none` during the tour), so your store keeps working exactly as before — Add to Cart included.++This runs on your **storefront** pages. Shopify's checkout is locked to custom scripts, and the guide deliberately never mounts there.++---++## Step 1 — Describe your tour (the curriculum)++The tour is driven by a small JSON file listing what the guide visits and what it says at each stop. Write one for your store — here's a complete example for a typical homepage:++```json+{+ "title": "Store tour",+ "tracks": [{ "id": "full", "title": "Full tour" }],+ "sections": [+ { "id": "store", "title": "The store", "intro": "Welcome — let me show you around." }+ ],+ "stops": [+ {+ "path": "/",+ "section": "store",+ "title": "Welcome",+ "highlight": true,+ "narration": "Welcome to the store. This button takes you to the full collection.",+ "targets": ["a.button", ".hero a"]+ },+ {+ "path": "/",+ "section": "store",+ "title": "Featured products",+ "highlight": true,+ "narration": "These are the pieces everyone is loving right now.",+ "targets": ["#featured-collection", ".collection .grid"]+ },+ {+ "path": "/",+ "section": "store",+ "title": "Reviews",+ "narration": "Real reviews from real customers.",+ "targets": ["#reviews", ".testimonials"]+ }+ ]+}+```++Each stop:+- **`path`** — the page the stop lives on (`"/"` for the homepage; multi-page tours work too — the tour survives navigation).+- **`narration`** — what the guide says, as spoken captions.+- **`targets`** — CSS selectors for the element to spotlight, in preference order; the first visible match wins. Don't know your theme's selectors? Right-click the section → Inspect, or just add `data-tour-target` to any element in the section's Liquid and leave `targets` out — tagged elements are found automatically. If nothing matches, the guide falls back to the page's main heading.++**Upload it:** in the Shopify admin go to **Content → Files**, upload `curriculum.json`, and copy the CDN URL Shopify gives you (it looks like `https://cdn.shopify.com/s/files/.../curriculum.json`).++---++## Step 2 — Add the tour to `theme.liquid`++Online Store → Themes → **⋯ → Edit code** → `layout/theme.liquid`. Paste this immediately before `</body>`:++```html+<script src="https://unpkg.com/@three-ws/[email protected]/dist/tour.global.js"+ data-tour+ data-curriculum="https://cdn.shopify.com/s/files/YOUR/PATH/curriculum.json"+ defer></script>+```++That's the whole install. The script:+- auto-creates the tour from the tag's `data-*` attributes,+- loads avatar models and animations from the three.ws CDN (override with `data-asset-base` / `data-manifest-url` if you self-host),+- exposes the controller as `window.__featureTour`,+- honours deep links: sharing `yourstore.com/?tour=start` begins the tour on arrival.++Optional attributes:++| Attribute | Default | What it does |+|---|---|---|+| `data-avatar` | `realistic-female` | Which guide walks the store (any `@three-ws/walk` roster id) |+| `data-autostart` | off | `full` or `quick` — start the tour on page load |+| `data-tts-endpoint` | off | POST endpoint returning audio for spoken narration; without it, narration is paced captions |++---++## Step 3 — Add a "Take the tour" button++Any element with `data-tour-start` becomes a start button automatically — including ones added later by theme sections. In any section's Liquid (or a Custom Liquid block in the theme editor):++```html+<button data-tour-start class="button">✨ Take the store tour</button>+```++`data-tour-start="quick"` starts the shorter Quick track (the stops you marked `"highlight": true`).++Save, open your storefront, click the button. The page dims, your hero gets a spotlight ring, and the guide walks over and starts talking. The playback bar at the bottom gives visitors prev/next, speed, mute, and a chapter map. Press **R** (or the bar's roam button) for **free roam** — visitors click anywhere and the guide walks there, or drag it around directly.++---++## Step 4 (optional) — The docked page narrator++If you also want a narrator that reads the page aloud — product descriptions, headings, policies — add the page-agent tag next to the tour tag:++```html+<script src="https://unpkg.com/@three-ws/[email protected]/dist/page-agent.global.js"+ data-page-agent data-avatar="sol" defer></script>+```++A rigged avatar docks in the corner with a built-in picker. It auto-discovers your `h1/h2/h3` headings and the copy under them, scrolls to each, highlights it, and speaks it with the browser's Web Speech API — no backend, no API key. To control exactly what gets read (or fix the order), add `data-narrate="What to say instead"` or `data-narrate-order="1"` to elements in your Liquid.++Use the tour for the guided pitch, the narrator for accessibility and browsing — they coexist fine; the tour stands the companion down while it's running.++---++## Step 5 — Verify++1. Open your storefront in a normal browser tab (not the theme-editor preview — its own frame counts as an embed and the guide intentionally never mounts inside frames).+2. Click your tour button. Watch the network tab: avatar GLBs and animation clips load from `three.ws` (CORS is open — `access-control-allow-origin: *`).+3. Confirm clicks still work everywhere while the tour runs — the overlay is `pointer-events: none`.+4. Test on mobile: the playback bar and captions are responsive, and `prefers-reduced-motion` is honoured (no walk glide, instant spotlight).++**If the styles look stripped:** a rare few themes ship a strict `Content-Security-Policy` with a `style-src` that lacks `'unsafe-inline'`. The tour injects its styles at runtime, so that policy blocks them. Either add `'unsafe-inline'` to `style-src`, or add `https://unpkg.com` + `https://three.ws` to `script-src`/`connect-src` while you're in there. Stock Shopify themes (Dawn included) need no CSP changes.++---++## How it works under the hood++The guide's body is a ~170×240 px transparent WebGL canvas positioned in screen space and stepped frame-by-frame, so it reads as walking across your page. Targets are found with `document.querySelector` against your live DOM and measured with `getBoundingClientRect()` — which is why the tour keeps working when your theme changes, as long as the selectors (or `data-tour-target` tags) still match. Tour state lives in `sessionStorage`, so a stop on `/collections/all` after a stop on `/` survives the page navigation and resumes exactly where it left off.++The engine is three published open-source packages — [`@three-ws/tour`](https://www.npmjs.com/package/@three-ws/tour), [`@three-ws/walk`](https://www.npmjs.com/package/@three-ws/walk), and [`@three-ws/page-agent`](https://www.npmjs.com/package/@three-ws/page-agent) (Apache-2.0) — the same engine behind the guided tour on [three.ws](https://three.ws).++---++## Beyond the homepage++- **Multi-page tours:** add stops with `"path": "/collections/bestsellers"` or `/pages/about` — the guide navigates there and picks up where it left off.+- **Product-page narration:** the page narrator already reads product titles and descriptions; tag your buy button's section with `data-narrate` for a spoken pitch.+- **A talking assistant too?** Pair the guide with a [talking agent widget](/tutorials/embed-on-website) trained on your store's FAQ and policies for questions the tour doesn't answer.+- **Not on Shopify?** The same two tags work on any site you can edit — see [Add the Walk Companion to your site](/tutorials/walk-companion) and [Embed on your website](/tutorials/embed-on-website).diff --git a/pages/coins.html b/pages/coins.htmlindex ad98c1733..f6e80a07c 100644--- a/pages/coins.html+++ b/pages/coins.html@@ -17,7 +17,7 @@property="og:description"content="Live cryptocurrency market data — prices, trends, and a global overview for the top digital assets."/>- <meta property="og:image" content="https://three.ws/og-image.png" />+ <meta property="og:image" content="https://three.ws/api/page-og?s=crypto&t=Markets+%E2%80%94+Live+Crypto+Prices&d=Live+global+cryptocurrency+market+data%3A+total+market+cap%2C+dominance%2C+Fear+%26+Greed%2C+and+the+top+coins+with+prices%2C+24h%2F7d+moves%2C+and+7d+sparklines.+Every+coin+li&p=%2Fcoins" /><meta property="og:image:width" content="1200" /><meta property="og:image:height" content="630" /><meta name="twitter:card" content="summary_large_image" />@@ -27,7 +27,7 @@name="twitter:description"content="Live cryptocurrency market data — prices, trends, and a global overview for the top digital assets."/>- <meta name="twitter:image" content="https://three.ws/og-image.png" />+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&t=Markets+%E2%80%94+Live+Crypto+Prices&d=Live+global+cryptocurrency+market+data%3A+total+market+cap%2C+dominance%2C+Fear+%26+Greed%2C+and+the+top+coins+with+prices%2C+24h%2F7d+moves%2C+and+7d+sparklines.+Every+coin+li&p=%2Fcoins" /><meta name="theme-color" content="#09090b" /><link rel="icon" href="/favicon.ico" sizes="any" /><link rel="icon" type="image/svg+xml" href="/favicon.svg" />@@ -38,7 +38,12 @@<link rel="stylesheet" href="/src/coin-pages.css" /><link rel="stylesheet" href="/footer.css" /><link rel="canonical" href="https://three.ws/coins" />- </head>++ <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="Markets — Live Crypto Prices — three.ws">+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Markets — Live Crypto Prices","description":"Live global cryptocurrency market data: total market cap, dominance, Fear & Greed, and the top coins with prices, 24h/7d moves, and 7d sparklines. Every coin links to a rich /coin/:id detail page with an interactive chart, market stats, related news, and official links.","url":"https://three.ws/coins","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=crypto&t=Markets+%E2%80%94+Live+Crypto+Prices&d=Live+global+cryptocurrency+market+data%3A+total+market+cap%2C+dominance%2C+Fear+%26+Greed%2C+and+the+top+coins+with+prices%2C+24h%2F7d+moves%2C+and+7d+sparklines.+Every+coin+li&p=%2Fcoins"}]}</script>+</head><body><header><div id="nav-container"></div></header><script src="/nav.js"></script>diff --git a/pages/home.html b/pages/home.htmlindex 49612ac0b..cb31629fc 100644--- a/pages/home.html+++ b/pages/home.html@@ -5360,6 +5360,25 @@if (!glb) throw new Error('no renderable avatar found');return glb;}+ function showHeroFallback(heroInner) {+ heroInner.innerHTML = '<div class="hero-stage-fallback" role="status">'+ + '<p>The live preview couldn’t load right now.</p>'+ + '<button type="button" class="btn btn--sm" id="hero-retry">Retry</button></div>';+ heroInner.querySelector('#hero-retry')?.addEventListener('click', () => {+ heroInner.innerHTML = '';+ bootHeroAvatar();+ });+ }+ // The <agent-3d> loader is a separate CDN script — if it fails (network+ // blip, missing local dist-lib build in dev), the element never upgrades+ // and the stage would sit silently black. Surface the designed fallback+ // instead of nothing.+ function agentElementDefined(timeoutMs) {+ return Promise.race([+ customElements.whenDefined('agent-3d').then(() => true),+ new Promise((res) => setTimeout(() => res(false), timeoutMs)),+ ]);+ }async function bootHeroAvatar() {const heroInner = document.getElementById('hero-stage-inner');try {@@ -5370,6 +5389,9 @@glb = await resolveFeaturedGlb();}if (heroInner) {+ if (!(await agentElementDefined(15000))) {+ throw new Error('agent-3d element never registered — loader script failed');+ }heroInner.innerHTML = '';const heroEl = spawnAgent(glb);// Fade the hero in on agent:ready. Attached before the element is@@ -5384,15 +5406,7 @@}} catch (e) {console.warn('[home] avatar boot failed', e);- if (heroInner) {- heroInner.innerHTML = '<div class="hero-stage-fallback" role="status">'- + '<p>The live preview couldn’t load right now.</p>'- + '<button type="button" class="btn btn--sm" id="hero-retry">Retry</button></div>';- heroInner.querySelector('#hero-retry')?.addEventListener('click', () => {- heroInner.innerHTML = '';- bootHeroAvatar();- });- }+ if (heroInner) showHeroFallback(heroInner);}}bootHeroAvatar();diff --git a/public/changelog.json b/public/changelog.jsonindex 0898892cc..009b80c8d 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-04T09:20:20.794Z",+ "generated_at": "2026-07-04T09:29:09.609Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -16,6 +16,16 @@"launch"]},+ {+ "date": "2026-07-04",+ "type": "launch",+ "title": "Tutorial · 3D Store Guide for Shopify",+ "summary": "A guide avatar walks your Shopify storefront, spotlights the hero, bestsellers, and reviews, and narrates each one — two script tags in theme.liquid, free roam included.",+ "link": "/tutorials/shopify-store-guide",+ "tags": [+ "launch"+ ]+ },{"date": "2026-07-04","type": "update",@@ -71,8 +81,8 @@{"date": "2026-07-04","type": "update",- "title": "Fourth of July avatar presets in the create flow",- "summary": "The Independence Day moment now reaches avatar creation, not just the homepage. For July 1–5, the prompt page offers a set of festive one-tap presets — Uncle Sam, a bald-eagle mascot, a hero take on Lady Liberty, and a glowing red-white-and-blue firework sprite — so you can spin up a themed 3D avatar in a click. They retire themselves automatically once the holiday passes.",+ "title": "Fourth of July presets across the create + forge flows",+ "summary": "The Independence Day moment now reaches the creation tools, not just the homepage. For July 1–5, the avatar prompt page offers festive one-tap presets — Uncle Sam, a bald-eagle mascot, a hero take on Lady Liberty, and a glowing red-white-and-blue firework sprite — and the Forge adds matching props you can generate in a click: a bald-eagle statue, a rippling flag, a cracked liberty bell, and a firework rocket. On the Forge they stay pinned while 'More ideas' shuffles the regular prompts, and everything retires itself automatically once the holiday passes.","link": "/create/prompt","tags": ["improvement"@@ -98,6 +108,28 @@"feature"]},+ {+ "date": "2026-07-04",+ "type": "update",+ "title": "Put a 3D store guide on your Shopify shop — one-tag tour SDK release",+ "summary": "The guided-tour engine now installs on any external site with a single script tag. @three-ws/tour 0.2.0 ships a self-contained CDN build (tour.global.js) that auto-starts from data attributes — point it at a curriculum JSON and your storefront gets an avatar that walks the page, spotlights sections, narrates each one, and offers free roam. @three-ws/walk 0.1.1 fixes cross-origin animation loading so avatars animate correctly when assets are served from the three.ws CDN onto another domain. A new step-by-step tutorial shows the full Shopify install: theme.liquid tags, a store curriculum, a Take-the-tour button, and the optional docked page narrator.",+ "link": "/tutorials/shopify-store-guide",+ "tags": [+ "sdk",+ "feature",+ "docs"+ ]+ },+ {+ "date": "2026-07-04",+ "type": "update",+ "title": "Soldier, X Bot, and Michelle animations no longer float away",+ "summary": "Eleven animation clips baked from centimeter-scale source models (the Soldier idle/run/walk set, the full X Bot set, and Michelle's samba) carried hip positions about 100× too large, which could send an avatar drifting far above the ground when one of them played directly. The animation build pipeline now detects centimeter-authored skeletons from the data itself instead of guessing from the file type, and all eleven clips have been rebaked at true meter scale.",+ "link": null,+ "tags": [+ "fix"+ ]+ },{"date": "2026-07-04","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 4d5396e12..4db1c9188 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -14,6 +14,14 @@<category>launch</category><description>Live global cryptocurrency market data: total market cap, dominance, Fear & Greed, and the top coins with prices, 24h/7d moves, and 7d sparklines. Every coin links to a rich /coin/:id detail page with an interactive chart, market stats, related news, and official links.</description></item>+ <item>+ <title>Tutorial · 3D Store Guide for Shopify</title>+ <link>https://three.ws/tutorials/shopify-store-guide</link>+ <guid isPermaLink="false">2026-07-04:Tutorial · 3D Store Guide for Shopify</guid>+ <pubDate>Sat, 04 Jul 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>A guide avatar walks your Shopify storefront, spotlights the hero, bestsellers, and reviews, and narrates each one — two script tags in theme.liquid, free roam included.</description>+ </item><item><title>3D avatars load about 4x faster - and reliably everywhere</title><link>https://three.ws/changelog</link>@@ -55,12 +63,12 @@<description>The gesture wheel regained four expressive moves that had been silently dropped: nod (a quick upper-body affirm), shrug, jog (a full-body run loop), and celebrate (a whole-body cheer). Open the wheel with G (or long-press the action button on mobile) — the wheel now lays out all twelve gestures; keys 1–8 still trigger the first eight. Also part of this pass: the entire test suite now runs fully green, locking every one of these behaviors in.</description></item><item>- <title>Fourth of July avatar presets in the create flow</title>+ <title>Fourth of July presets across the create + forge flows</title><link>https://three.ws/create/prompt</link>- <guid isPermaLink="false">2026-07-04:Fourth of July avatar presets in the create flow</guid>+ <guid isPermaLink="false">2026-07-04:Fourth of July presets across the create + forge flows</guid><pubDate>Sat, 04 Jul 2026 12:00:00 GMT</pubDate><category>improvement</category>- <description>The Independence Day moment now reaches avatar creation, not just the homepage. For July 1–5, the prompt page offers a set of festive one-tap presets — Uncle Sam, a bald-eagle mascot, a hero take on Lady Liberty, and a glowing red-white-and-blue firework sprite — so you can spin up a themed 3D avatar in a click. They retire themselves automatically once the holiday passes.</description>+ <description>The Independence Day moment now reaches the creation tools, not just the homepage. For July 1–5, the avatar prompt page offers festive one-tap presets — Uncle Sam, a bald-eagle mascot, a hero take on Lady Liberty, and a glowing red-white-and-blue firework sprite — and the Forge adds matching props you can generate in a click: a bald-eagle statue, a rippling flag, a cracked liberty bell, and a firework rocket. On the Forge they stay pinned while 'More ideas' shuffles the regular prompts, and everything retires itself automatically once the holiday passes.</description></item><item><title>Global markets — live prices and a rich detail page for every coin</title>@@ -78,6 +86,22 @@<category>feature</category><description>The Fourth of July fireworks over the homepage hero are now yours to fire. Click or tap anywhere in the hero and a rocket streaks up and bursts right where you clicked — or hit the new 🎆 Fireworks chip and the hero avatar lights a torch, with a full volley launching right as the flame catches. Fireworks you set off get a quiet, real-time synthesized boom (mute it with the 🔊 chip; your choice is remembered), while the ambient show stays silent. Two torch-lighting animations joined the avatar motion library, bringing it past 100 clips. Visitors with reduced motion enabled skip the ambient show but can still fire their own — an explicit click is always honored. The whole display packs itself away after July 5.</description></item>+ <item>+ <title>Put a 3D store guide on your Shopify shop — one-tag tour SDK release</title>+ <link>https://three.ws/tutorials/shopify-store-guide</link>+ <guid isPermaLink="false">2026-07-04:Put a 3D store guide on your Shopify shop — one-tag tour SDK release</guid>+ <pubDate>Sat, 04 Jul 2026 12:00:00 GMT</pubDate>+ <category>sdk</category>+ <description>The guided-tour engine now installs on any external site with a single script tag. @three-ws/tour 0.2.0 ships a self-contained CDN build (tour.global.js) that auto-starts from data attributes — point it at a curriculum JSON and your storefront gets an avatar that walks the page, spotlights sections, narrates each one, and offers free roam. @three-ws/walk 0.1.1 fixes cross-origin animation loading so avatars animate correctly when assets are served from the three.ws CDN onto another domain. A new step-by-step tutorial shows the full Shopify install: theme.liquid tags, a store curriculum, a Take-the-tour button, and the optional docked page narrator.</description>+ </item>+ <item>+ <title>Soldier, X Bot, and Michelle animations no longer float away</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-07-04:Soldier, X Bot, and Michelle animations no longer float away</guid>+ <pubDate>Sat, 04 Jul 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>Eleven animation clips baked from centimeter-scale source models (the Soldier idle/run/walk set, the full X Bot set, and Michelle's samba) carried hip positions about 100× too large, which could send an avatar drifting far above the ground when one of them played directly. The animation build pipeline now detects centimeter-authored skeletons from the data itself instead of guessing from the file type, and all eleven clips have been rebaked at true meter scale.</description>+ </item><item><title>The agent economy now runs from a single always-on heartbeat</title><link>https://three.ws/changelog</link>diff --git a/public/features.json b/public/features.jsonindex e0f87101e..b9117cefe 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-04T09:20:20.769Z",+ "generated_at": "2026-07-04T09:29:09.597Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",@@ -2247,6 +2247,16 @@"tags": [],"showcase": false},+ {+ "path": "/tutorials/shopify-store-guide",+ "title": "Tutorial · 3D Store Guide for Shopify",+ "description": "A guide avatar walks your Shopify storefront, spotlights the hero, bestsellers, and reviews, and narrates each one — two script tags in theme.liquid, free roam included.",+ "added": "2026-07-04",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },{"path": "/status","title": "Status",diff --git a/public/llms-full.txt b/public/llms-full.txtindex 0fe03eadb..b11f60dae 100644--- a/public/llms-full.txt+++ b/public/llms-full.txt@@ -1372,6 +1372,12 @@ URL: https://three.ws/tutorials/solana-agent-reputationRead a Solana agent's A–D trust grade and the attestations behind it, then leave your own on-chain vouch.+### Tutorial · 3D Store Guide for Shopify++URL: https://three.ws/tutorials/shopify-store-guide++A guide avatar walks your Shopify storefront, spotlights the hero, bestsellers, and reviews, and narrates each one — two script tags in theme.liquid, free roam included.+### StatusURL: https://three.ws/statusdiff --git a/public/llms.txt b/public/llms.txtindex 9ef57b6b6..e4645b5fd 100644--- a/public/llms.txt+++ b/public/llms.txt@@ -249,6 +249,7 @@ Docs, tutorials, and reference.- [Tutorial · Generate 3D Models from Code](https://three.ws/tutorials/generate-3d-api): Use the Forge as a plain HTTP API: submit prompts, poll jobs, download GLBs, batch asset packs, and pay per call with x402.- [Tutorial · Read an agent's reputation](https://three.ws/tutorials/agent-reputation): Read any registered agent's ERC-8004 reputation from the UI, the REST API, the MCP tool, the SDK, or the contract.- [Tutorial · Read a Solana agent's reputation](https://three.ws/tutorials/solana-agent-reputation): Read a Solana agent's A–D trust grade and the attestations behind it, then leave your own on-chain vouch.+- [Tutorial · 3D Store Guide for Shopify](https://three.ws/tutorials/shopify-store-guide): A guide avatar walks your Shopify storefront, spotlights the hero, bestsellers, and reviews, and narrates each one — two script tags in theme.liquid, free roam included.- [Status](https://three.ws/status): Live operational status and 90-day uptime history for the platform, API, and x402 surfaces — probed every 5 minutes.- [Glossary](https://three.ws/glossary): Plain-English definitions for the crypto and agent terms used across three.ws — no jargon required to get started.- [Support](https://three.ws/support): Get help with three.ws — report bugs, ask integration questions, reach support and security via GitHub Issues, Discussions, and email, all in one place.diff --git a/public/sitemap/index.html b/public/sitemap/index.htmlindex 44244cb3c..76363cf00 100644--- a/public/sitemap/index.html+++ b/public/sitemap/index.html@@ -56,25 +56,6 @@.sm-brand img { width: 24px; height: 24px; border-radius: 5px; }.sm-brand:hover { text-decoration: none; }</style>-- <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">- <meta property="og:type" content="website">- <meta property="og:site_name" content="three.ws">- <meta property="og:locale" content="en_US">- <meta property="og:title" content="Sitemap · three.ws">- <meta property="og:description" content="Human-readable index of every page on three.ws.">- <meta property="og:url" content="https://three.ws/sitemap">- <meta property="og:image" content="https://three.ws/api/page-og?s=main&t=Sitemap&d=Human-readable+index+of+every+page+on+three.ws.&p=%2Fsitemap">- <meta property="og:image:width" content="1200">- <meta property="og:image:height" content="630">- <meta property="og:image:type" content="image/png">- <meta property="og:image:alt" content="Sitemap — three.ws">- <meta name="twitter:card" content="summary_large_image">- <meta name="twitter:site" content="@trythreews">- <meta name="twitter:title" content="Sitemap · three.ws">- <meta name="twitter:description" content="Human-readable index of every page on three.ws.">- <meta name="twitter:image" content="https://three.ws/api/page-og?s=main&t=Sitemap&d=Human-readable+index+of+every+page+on+three.ws.&p=%2Fsitemap">- <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Sitemap","description":"Human-readable index of every page on three.ws.","url":"https://three.ws/sitemap","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=main&t=Sitemap&d=Human-readable+index+of+every+page+on+three.ws.&p=%2Fsitemap"}]}</script></head><body><header class="sm-topbar">@@ -84,7 +65,7 @@<main class="sm-wrap"><div class="sm-hero"><h1>Sitemap</h1>- <p>All 376 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>+ <p>All 377 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>@@ -96,7 +77,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 376 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />+ <input id="sm-filter-input" type="search" placeholder="Filter 377 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>@@ -1408,7 +1389,7 @@<section class="sm-section" id="learn"><header>- <h2>Learn<span class="sm-count" data-count>50</span></h2>+ <h2>Learn<span class="sm-count" data-count>51</span></h2><p class="sm-section-desc">Docs, tutorials, and reference.</p></header><ul class="sm-list">@@ -1706,6 +1687,13 @@<span class="sm-desc">Read a Solana agent's A–D trust grade and the attestations behind it, then leave your own on-chain vouch.</span></a></li>+ <li>+ <a href="/tutorials/shopify-store-guide">+ <span class="sm-title">Tutorial · 3D Store Guide for Shopify</span>+ <span class="sm-path">/tutorials/shopify-store-guide</span>+ <span class="sm-desc">A guide avatar walks your Shopify storefront, spotlights the hero, bestsellers, and reviews, and narrates each one — two script tags in theme.liquid, free roam included.</span>+ </a>+ </li><li><a href="/status"><span class="sm-title">Status</span>diff --git a/public/tutorials-manifest.js b/public/tutorials-manifest.jsindex 7b0e60633..ab1d9956f 100644--- a/public/tutorials-manifest.js+++ b/public/tutorials-manifest.js@@ -150,6 +150,16 @@previewModel: '/animations/soldier.glb',ctaPrimary: { label: 'Open Walk', href: '/walk' },},+ {+ slug: 'shopify-store-guide',+ tier: 'easy',+ title: 'Add a 3D store guide to your Shopify theme',+ blurb: 'A guide avatar walks your storefront, spotlights the hero, bestsellers, and reviews, and narrates each one — two script tags in theme.liquid, free roam included.',+ builds: 'A 3D guided tour + page narrator running on your live Shopify store',+ time: '20 min',+ previewModel: '/avatars/realistic-female.glb',+ ctaPrimary: { label: 'Read the tour SDK docs', href: 'https://www.npmjs.com/package/@three-ws/tour' },+ },/* ────────────────────────── MIDDLE ────────────────────────── */{diff --git a/tour-sdk/README.md b/tour-sdk/README.mdindex 3cf2b1ac3..42ca0a2a2 100644--- a/tour-sdk/README.md+++ b/tour-sdk/README.md@@ -15,7 +15,42 @@ This is the engine behind the guided tour on [three.ws](https://three.ws).----## Install+## One-tag install (CDN)++No bundler, no import map — one script tag on any site you can edit+(including a Shopify `theme.liquid`, a WordPress theme, or plain HTML):++```html+<script src="https://unpkg.com/@three-ws/tour/dist/tour.global.js"+ data-tour+ data-curriculum="https://your-cdn.example.com/tour/curriculum.json"+ defer></script>+```++`tour.global.js` is a self-contained IIFE (Three.js and `@three-ws/walk`+inlined) exposed as `window.ThreeWsTour`. With `data-tour` it auto-creates a+tour from the tag's attributes, exposes it as `window.__featureTour`, calls+`bootstrap()` (so `?tour=start` deep links work), and turns every+`[data-tour-start]` element on the page into a start button+(`data-tour-start="quick"` for the Quick track) — including elements added+after load.++| Attribute | Default | Maps to |+| --- | --- | --- |+| `data-curriculum` | — (required) | `curriculum` URL |+| `data-avatar` | `realistic-female` | `guideAvatarId` |+| `data-asset-base` | `https://three.ws` | `assetBase` |+| `data-manifest-url` | `https://three.ws/animations/manifest.json` | `manifestUrl` |+| `data-tts-endpoint` | off (paced captions) | `ttsEndpoint` |+| `data-autostart` | off | `full` \| `quick` — start on load |++Asset defaults point at the three.ws CDN, so the tag works with zero+configuration. Building a store tour? See the step-by-step Shopify guide:+[three.ws/tutorials/shopify-store-guide](https://three.ws/tutorials/shopify-store-guide).++---++## Install (npm)```bashnpm install @three-ws/tour @three-ws/walk threediff --git a/tour-sdk/build.mjs b/tour-sdk/build.mjsindex 099647baa..6291efac3 100644--- a/tour-sdk/build.mjs+++ b/tour-sdk/build.mjs@@ -39,6 +39,27 @@ const result = await build({logLevel: 'info',});+// Standalone IIFE for a plain CDN <script> — three and @three-ws/walk inlined+// (walk resolved from the monorepo source so fixes ship together), exposed as+// window.ThreeWsTour, with data-attribute auto-init (see src/global.js).+await build({+ entryPoints: [resolve(here, 'src/global.js')],+ bundle: true,+ format: 'iife',+ globalName: 'ThreeWsTour',+ minify: true,+ sourcemap: true,+ platform: 'browser',+ target: 'es2020',+ alias: { '@three-ws/walk': resolve(here, '../walk-sdk/src/index.js') },+ // import.meta doesn't exist in an IIFE — pin the dev flag off explicitly.+ define: { 'import.meta.env.DEV': 'false' },+ outfile: resolve(outDir, 'tour.global.js'),+ legalComments: 'none',+ logLevel: 'info',+ footer: { js: 'if(typeof window!=="undefined"){window.createFeatureTour=ThreeWsTour.createFeatureTour;}' },+});+writeFileSync(resolve(outDir, 'style.css'),'/* @three-ws/tour — styles are injected at runtime by the tour director and its UI modules. */\n',@@ -47,4 +68,4 @@ writeFileSync(const out = Object.keys(result.metafile.outputs).map((p) => p.replace(/^.*tour-sdk\//, '')).sort();-console.log('[tour-sdk] built:\n ' + out.join('\n '));+console.log('[tour-sdk] built:\n ' + out.join('\n ') + '\n dist/tour.global.js');diff --git a/tour-sdk/package.json b/tour-sdk/package.jsonindex e4352784b..1aa019537 100644--- a/tour-sdk/package.json+++ b/tour-sdk/package.json@@ -1,6 +1,6 @@{"name": "@three-ws/tour",- "version": "0.1.0",+ "version": "0.2.0","description": "A 3D guide avatar that walks across your live site, spotlights real features, points at them, and narrates each one — a guided product tour that runs on the real DOM, not a slideshow. Powered by Three.js and @three-ws/walk.","keywords": ["3d",@@ -65,7 +65,7 @@"prepublishOnly": "npm run build"},"peerDependencies": {- "@three-ws/walk": ">=0.1.0",+ "@three-ws/walk": ">=0.1.1","three": ">=0.150.0"},"devDependencies": {@@ -76,5 +76,7 @@},"publishConfig": {"access": "public"- }+ },+ "unpkg": "./dist/tour.global.js",+ "jsdelivr": "./dist/tour.global.js"}diff --git a/tour-sdk/src/global.js b/tour-sdk/src/global.jsnew file mode 100644index 000000000..9e37a437f--- /dev/null+++ b/tour-sdk/src/global.js@@ -0,0 +1,80 @@+// @three-ws/tour — CDN <script> entry (dist/tour.global.js).+// ============================================================+// The one-tag install: an IIFE with three + @three-ws/walk inlined, exposed as+// `window.ThreeWsTour`. Dropping the script with `data-tour` auto-creates a+// tour from the tag's data-* attributes — no bundler, no import map:+//+// <script src="https://unpkg.com/@three-ws/tour/dist/tour.global.js"+// data-tour+// data-curriculum="https://cdn.example.com/tour/curriculum.json"+// data-avatar="realistic-female"+// defer></script>+//+// Attributes → options:+// data-curriculum curriculum URL (required for auto-init)+// data-avatar guideAvatarId (default 'realistic-female')+// data-asset-base avatar GLB origin (default 'https://three.ws')+// data-manifest-url animation manifest (default 'https://three.ws/animations/manifest.json')+// data-tts-endpoint optional TTS endpoint — omit for paced captions+// data-autostart 'full' | 'quick' — start immediately on load+//+// Any element with [data-tour-start] becomes a start button+// (data-tour-start="quick" for the Quick track). The controller is exposed as+// window.__featureTour, matching the documented app-style global.+//+// Sites that bundle keep using the side-effect-free ESM entry (./index.js);+// this module is only ever the IIFE's entry point.++import { createFeatureTour } from './index.js';++export * from './index.js';++const CDN_ASSET_BASE = 'https://three.ws';+const CDN_MANIFEST = 'https://three.ws/animations/manifest.json';++function autoInit() {+ if (window.__featureTour) return; // idempotent — first tagged script wins+ const tag = document.currentScript || document.querySelector('script[data-tour]');+ if (!tag || !tag.hasAttribute('data-tour')) return;++ const d = tag.dataset;+ if (!d.curriculum) {+ console.warn('[three-ws/tour] <script data-tour> needs data-curriculum="<url>"');+ return;+ }++ const tour = createFeatureTour({+ curriculum: d.curriculum,+ guideAvatarId: d.avatar || 'realistic-female',+ assetBase: d.assetBase || CDN_ASSET_BASE,+ manifestUrl: d.manifestUrl || CDN_MANIFEST,+ ttsEndpoint: d.ttsEndpoint || null,+ });+ window.__featureTour = tour;+ tour.bootstrap();++ // Wire every [data-tour-start] element as a start button, including ones+ // added later (themes and section editors inject markup after load).+ const wire = (root) => {+ for (const el of root.querySelectorAll('[data-tour-start]')) {+ if (el.__twsTourWired) continue;+ el.__twsTourWired = true;+ el.addEventListener('click', (e) => {+ e.preventDefault();+ tour.start(el.getAttribute('data-tour-start') === 'quick' ? 'quick' : 'full');+ });+ }+ };+ wire(document);+ new MutationObserver(() => wire(document)).observe(document.body, { childList: true, subtree: true });++ if (d.autostart) tour.start(d.autostart === 'quick' ? 'quick' : 'full');+}++if (typeof window !== 'undefined') {+ if (document.readyState === 'loading') {+ document.addEventListener('DOMContentLoaded', autoInit, { once: true });+ } else {+ autoInit();+ }+}diff --git a/tour-sdk/src/index.js b/tour-sdk/src/index.jsindex 8600f5f08..7280e97ca 100644--- a/tour-sdk/src/index.js+++ b/tour-sdk/src/index.js@@ -28,7 +28,7 @@ import { TourDirector } from './director.js';import { resolveTourConfig } from './config.js';import { createTourState } from './curriculum.js';-export const VERSION = '0.1.0';+export const VERSION = '0.2.0';/*** Create a tour controller. Returns a small object the host drives:diff --git a/walk-sdk/README.md b/walk-sdk/README.mdindex a87b58349..6f0dcf1df 100644--- a/walk-sdk/README.md+++ b/walk-sdk/README.md@@ -37,6 +37,12 @@ You also need to serve two sets of assets from your origin (or a CDN you point> The defaults match the three.ws asset layout. Override them with `assetBase`,> `apiBase`, and `manifestUrl`, or pass your own `avatars` roster.+Don't want to host the assets? Point both at the three.ws CDN —+`assetBase: 'https://three.ws'` and+`manifestUrl: 'https://three.ws/animations/manifest.json'` (CORS is open).+Relative clip URLs inside the manifest resolve against the **manifest's**+origin, so a cross-origin manifest just works (v0.1.1+).+---## Quick startdiff --git a/walk-sdk/package.json b/walk-sdk/package.jsonindex 50a52e730..387fe60f2 100644--- a/walk-sdk/package.json+++ b/walk-sdk/package.json@@ -1,6 +1,6 @@{"name": "@three-ws/walk",- "version": "0.1.0",+ "version": "0.1.1","description": "A diverse, animated 3D avatar that walks and talks over your web pages — corner companion + full-page playground, with a built-in avatar picker. Powered by Three.js.","keywords": ["3d",diff --git a/walk-sdk/src/internal/load-avatar.js b/walk-sdk/src/internal/load-avatar.jsindex a85ea4cb0..4d929b92c 100644--- a/walk-sdk/src/internal/load-avatar.js+++ b/walk-sdk/src/internal/load-avatar.js@@ -18,6 +18,7 @@ import { AnimationMixer, LoopOnce, LoopRepeat } from 'three';import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';import { getMeshoptDecoder } from './meshopt.js';import { AnimationManager } from './runtime.js';+import { resolveClipUrls } from './manifest.js';import { log } from './log.js';import { resolveAvatarUrl, DEFAULT_SHARED_CLIPS } from '../roster.js';@@ -267,7 +268,7 @@ async function buildSharedController(model, clips, { manifestUrl, waveMs }) {const manifest = await fetch(manifestUrl, { cache: 'force-cache' }).then((r) => {if (!r.ok) throw new Error(`HTTP ${r.status} fetching animation manifest`);return r.json();- });+ }).then((defs) => resolveClipUrls(defs, manifestUrl));const available = new Set(manifest.map((d) => d.name));// Resolve each requested clip to one that actually exists; unknown names falldiff --git a/walk-sdk/src/internal/manifest.js b/walk-sdk/src/internal/manifest.jsnew file mode 100644index 000000000..f024826f6--- /dev/null+++ b/walk-sdk/src/internal/manifest.js@@ -0,0 +1,30 @@+/**+ * @three-ws/walk — animation-manifest URL resolution.+ * ====================================================+ * The shared animation manifest lists clip URLs as root-relative paths+ * (`/animations/clips/idle.json`) because that matches the three.ws asset+ * layout. When a host page on another origin points `manifestUrl` at a CDN+ * (e.g. `https://three.ws/animations/manifest.json`), those paths must be+ * resolved against the MANIFEST's origin — not the host page's — or every+ * clip fetch 404s on the host domain and shared-rig avatars lose locomotion.+ *+ * Pure logic so `node --test` can cover it without touching the DOM.+ */++/**+ * Resolve each clip def's `url` against the manifest's own URL, so relative+ * clip paths always load from wherever the manifest itself was served.+ *+ * @param {Array<{name:string, url?:string}>} defs parsed manifest entries+ * @param {string} manifestUrl the URL the manifest was fetched from (may be+ * relative — it is resolved against `baseHref` first)+ * @param {string} [baseHref] document base; defaults to `location.href`+ * @returns {Array} defs with absolute clip URLs (entries without a url pass through)+ */+export function resolveClipUrls(defs, manifestUrl, baseHref) {+ const base = new URL(+ manifestUrl,+ baseHref || (typeof location !== 'undefined' ? location.href : 'http://localhost/'),+ );+ return defs.map((d) => (d && typeof d.url === 'string' ? { ...d, url: new URL(d.url, base).href } : d));+}diff --git a/walk-sdk/test/manifest.test.mjs b/walk-sdk/test/manifest.test.mjsnew file mode 100644index 000000000..5ad9412ce--- /dev/null+++ b/walk-sdk/test/manifest.test.mjs@@ -0,0 +1,64 @@+// @three-ws/walk — manifest clip-URL resolution.+// ===============================================+// Clip URLs in the shared animation manifest are root-relative. When the+// manifest is served from another origin (a host site pointing at the+// three.ws CDN), each clip must resolve against the MANIFEST's origin, not+// the host page's — otherwise every clip fetch 404s on the host domain.+// Pure logic; `node --test`.++import { test } from 'node:test';+import assert from 'node:assert/strict';+import { resolveClipUrls } from '../src/internal/manifest.js';++const HOST = 'https://example-store.myshopify.com/products/mug';++test('root-relative clip urls resolve against a cross-origin manifest', () => {+ const out = resolveClipUrls(+ [{ name: 'idle', url: '/animations/clips/idle.json' }],+ 'https://three.ws/animations/manifest.json',+ HOST,+ );+ assert.equal(out[0].url, 'https://three.ws/animations/clips/idle.json');+});++test('same-origin relative manifestUrl keeps clips on the host origin', () => {+ const out = resolveClipUrls(+ [{ name: 'idle', url: '/animations/clips/idle.json' }],+ '/animations/manifest.json',+ HOST,+ );+ assert.equal(out[0].url, 'https://example-store.myshopify.com/animations/clips/idle.json');+});++test('document-relative clip urls resolve against the manifest directory', () => {+ const out = resolveClipUrls(+ [{ name: 'walk', url: 'clips/walk.json' }],+ 'https://cdn.example.com/anim/manifest.json',+ HOST,+ );+ assert.equal(out[0].url, 'https://cdn.example.com/anim/clips/walk.json');+});++test('already-absolute clip urls pass through untouched', () => {+ const abs = 'https://assets.example.com/idle.json';+ const out = resolveClipUrls(+ [{ name: 'idle', url: abs }],+ 'https://three.ws/animations/manifest.json',+ HOST,+ );+ assert.equal(out[0].url, abs);+});++test('entries without a url and non-url metadata pass through unchanged', () => {+ const defs = [+ { name: 'idle', url: '/animations/clips/idle.json', label: 'Idle', icon: '🧍', loop: true },+ { name: 'meta-only' },+ ];+ const out = resolveClipUrls(defs, 'https://three.ws/animations/manifest.json', HOST);+ assert.equal(out[0].label, 'Idle');+ assert.equal(out[0].icon, '🧍');+ assert.equal(out[0].loop, true);+ assert.deepEqual(out[1], { name: 'meta-only' });+ // input defs are not mutated+ assert.equal(defs[0].url, '/animations/clips/idle.json');+});