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.

feat: self-referential onboarding tour chaining avatar → world → markets → profile

fudjiaccaf6111ef7f
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6524f2bb3..9ca99f7b1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Your creator portfolio** (`/profile`) — Your public three.ws portfolio: every avatar, agent, forged 3D model, world, coin, skill, and plugin you've made, in one place. Signed out, this redirects to sign-in; every user's own page also lives at /u/:username.
- **/feed and /community are now real, live pages** — /feed used to only show activity from people you follow — it now defaults to a live, platform-wide feed of every new avatar, agent, forged 3D model, saved world, coin launch, and follow, with a toggle to switch to just the people you follow. Scroll for more and it loads the next page automatically; a "New activity" pill appears when something fresh lands so the list never jumps under you mid-read. /community, previously a static grid of links, now leads with that same live activity feed alongside the existing links to X, GitHub, docs, and tutorials. (`/feed`) `[feature]`
- **A cross-surface leaderboard, streaks, and badges** — A new Rankings board at /rankings ranks creators across every surface at once — creations forged, remixes received, coins launched, followers, and distance walked while signed in — with your own rank pinned even if you're off the visible page. Showing up daily (a login, a finished creation, or a walk session) now builds a real streak, shown on your profile and on the Rankings page. Four badges are genuinely earnable and persist once unlocked: First Creation, Remixed, 7-Day Streak, and a daily-refreshed Top 10 placement per metric. (`/rankings`) `[feature]`
+- **A guided tour for your first five minutes on three.ws** — New accounts now get a real, 3D-guided walkthrough — starting on /start — that chains together everything the platform can do: make an avatar, put it in a world, see it tied to live $THREE market data on /markets, an optional stop to launch your own coin (clearly skippable), and a landing on your own new profile showing what you just made. It's auto-offered once to a genuinely new, signed-in account with zero creations, then stays reachable anytime via "Replay guided tour" in the Getting started checklist (bottom-right on most pages). Every stop is the platform's real, already-shipped flow — nothing built just for the tour. (`/start`) `[feature]`
- **Agent discovery fixed: six paid endpoints were invisible to x402 scanners** — The machine-readable catalog at /openapi.json — what AI agents and x402 scanners like x402scan and AgentCash read to find and pay for three.ws APIs — had six paid endpoints (agent bouncer, verifiable vanity keys, crypto intel, cosmetic purchase, animation download, club cover) accidentally buried inside another entry, making them undiscoverable. All 61 payable routes now list correctly and the document passes the AgentCash discovery validator. The Permit2 gasless-payment demo is now only advertised when its settlement lane is actually live, so agents are never quoted a payment path that can't settle. (`/openapi.json`) `[fix, improvement]`
- **Agent profiles, redesigned** — Agent profile pages got a ground-up redesign. Instead of one endless column of cards, everything is now organized into clear sections — Overview, Capabilities, Economy, Activity, Trust & Identity, Reviews, and Developers — with a sticky navigation bar that follows you as you scroll and hides sections that have nothing to show. The hero is a compact identity band with the live 3D avatar beside the agent's name, description, and actions, and secondary view modes now live in a tidy menu instead of a wall of buttons. Pages are roughly 40% shorter and much easier to scan. Prefer the old look? Every profile keeps a “Classic layout” link that serves the previous design unchanged. The companion panels (live presence, stages, work-for-hire, alpha co-pilot) now sit in a compact strip beside the profile instead of stacking above it — on mobile the agent's name and avatar are the first thing you see — and the live watch view (screen, avatar cam, action log) has a proper home in the Activity section. Signed-out visitors get a clear “sign in to see the action log” state instead of an endless loading spinner, and stats with nothing to report simply don't render. (`/agents`) `[improvement, feature]`
- **AI features can no longer go down when one provider does** — Every AI-powered feature on three.ws (fact checks, agent chat, persona extraction, scene composing) routes through one shared brain that tries free providers first and falls back automatically. That chain just got much deeper: Groq now has a second lane with its own separate quota, OpenRouter gets a zero-credit free lane so an empty account no longer kills it, optional Cerebras and Google AI Studio lanes activate the moment a key is added, and — the anchor — Gemini on the platform's own Google Cloud now backs the whole chain with no third-party quota to exhaust. Previously a rare bad hour where every free tier was exhausted at once could surface an error; now the request rides through. The fact-checker was also corrected to stop favoring a paid key ahead of the free lanes. (`/changelog`) `[improvement, fix, infra]`
diff --git a/STRUCTURE.md b/STRUCTURE.md
index 2bb4777c9..407fd7b87 100644
--- a/STRUCTURE.md
+++ b/STRUCTURE.md
@@ -20,6 +20,7 @@ bottom.
| React avatar creator | [avatar-sdk/](avatar-sdk) `→ /react` `/creator` | Published as `@three-ws/avatar` | Same package, React subpath |
| Talking page guide | [page-agent-sdk/](page-agent-sdk) | Published as `@three-ws/page-agent` | Drop-in rigged 3D agent that narrates any page + visitor avatar picker. `<page-agent>` web component. Rigged-only catalog. `preset="…"` resolves one of 5 personas (greeting/role/suggested-prompt chips/tool allowlist) — see [page-agent-sdk/README.md#persona-presets](page-agent-sdk/README.md#persona-presets). See [page-agent-sdk/PUBLISHING.md](page-agent-sdk/PUBLISHING.md) |
| Guided site tour | [tour-sdk/](tour-sdk) | Published as `@three-ws/tour` | 3D guide walks a live site, spotlights sections, narrates each. One-tag CDN build + free roam |
+| three.ws's own guided tour + onboarding | [src/feature-tour/](src/feature-tour) `→ /feature-tour.js`, entry [src/feature-tour.js](src/feature-tour.js), curriculum [public/tour/curriculum.json](public/tour/curriculum.json) generated by [scripts/build-tour.mjs](scripts/build-tour.mjs), landing [pages/tour.html](pages/tour.html) `→ /tour` | Live | A hardened, site-native fork of the [tour-sdk/](tour-sdk) engine (same curriculum schema — stops/sections/tracks/highlight/narration/targets), lazy-injected only when a tour is starting/active (`feature-tour-boot` Vite plugin) so pages that never tour pay no Three.js cost. Three tracks share one curriculum: `full` (every feature, chapter by chapter), `quick` (highlighted heroes), and `onboarding` (added 2026-07-12) — a 6-stop, hand-authored new-account walkthrough chaining `/start` → make an avatar (`/create/selfie`) → build a world (`/diorama`) → live `/markets` data → an optional coin launch (`/create-agent`, clearly skippable) → the new creator's own `/profile`. Auto-offered once to a signed-in account with zero creations across avatars/agents/forged models/worlds (`GET /api/me` → `show_onboarding_tour`, backed by `users.onboarding_tour_seen_at`/`onboarding_tour_completed_at`, migration [api/_lib/migrations/20260712030000_onboarding_tour_state.sql](api/_lib/migrations/20260712030000_onboarding_tour_state.sql)); always reachable afterward via "🎬 Replay guided tour" in the [public/getting-started.js](public/getting-started.js) checklist panel. Tests: [tests/feature-tour-curriculum.test.js](tests/feature-tour-curriculum.test.js), [tests/api-me-onboarding-tour.test.js](tests/api-me-onboarding-tour.test.js) |
| Tour Builder (no-code playground) | [pages/tour-builder.html](pages/tour-builder.html) `→ /tour-builder` | Live | Point-and-click editor over a demo storefront: pick avatar, add stops, preview the real tour, export curriculum + Shopify snippets. Also ships **Templates** — ready-made tours (Sperax's DeFi protocol tour is the first) that load straight into the editor. Logic: [public/tour-builder/builder.js](public/tour-builder/builder.js), presets: [public/tour-builder/presets/](public/tour-builder/presets). Sperax template doc: [docs/tutorials/sperax-tour.md](docs/tutorials/sperax-tour.md) |
| Avatar builder (full app) | [character-studio/](character-studio) | Fork of [m3-org/CharacterStudio](https://github.com/M3-org/CharacterStudio), MIT, see [character-studio/LICENSE](character-studio/LICENSE) | Web-first character creator |
| Scene Studio (3D scene editor) | [src/scene-studio/](src/scene-studio) `→ /scene` | Vendored [mrdoob/three.js](https://github.com/mrdoob/three.js) r184 editor, MIT, see [src/scene-studio/vendor/README.md](src/scene-studio/vendor/README.md) | Import GLBs, compose scenes, edit materials/lights, export |
diff --git a/api/_lib/migrations/20260712030000_onboarding_tour_state.sql b/api/_lib/migrations/20260712030000_onboarding_tour_state.sql
new file mode 100644
index 000000000..70929a87f
--- /dev/null
+++ b/api/_lib/migrations/20260712030000_onboarding_tour_state.sql
@@ -0,0 +1,22 @@
+-- Onboarding guided-tour state, per account.
+--
+-- Powers the auto-start decision for the self-referential onboarding tour
+-- (wired via src/feature-tour/*, curriculum stops tagged section: "onboarding"
+-- in public/tour/curriculum.json): a brand-new account with zero creations and
+-- no recorded "seen" timestamp gets offered the tour once; a completed or
+-- dismissed tour never auto-starts again. The persistent "Replay tour" entry
+-- point (public/getting-started.js) always remains available regardless of
+-- these columns.
+--
+-- Two nullable timestamps on `users`, mirroring the existing additive-column
+-- pattern in this file set (e.g. 20260628120000_referral_activation.sql's
+-- activated_at) rather than a new one-row-per-user table — the wave 6
+-- streaks/badges migration already established `user_streaks` for per-user
+-- rows that need multiple columns; this is a single flag pair, so it lives
+-- directly on `users` per _shared.md's "reuse an existing user-state surface"
+-- guidance.
+--
+-- Fully idempotent — safe to re-run. Mirrored into api/_lib/schema.sql.
+
+alter table users add column if not exists onboarding_tour_seen_at timestamptz;
+alter table users add column if not exists onboarding_tour_completed_at timestamptz;
diff --git a/api/_lib/schema.sql b/api/_lib/schema.sql
index 7a983a6d6..e8674957b 100644
--- a/api/_lib/schema.sql
+++ b/api/_lib/schema.sql
@@ -47,6 +47,12 @@ alter table users add column if not exists banner_url text;
alter table users add column if not exists account_tier text
check (account_tier is null or account_tier in ('beta', 'pro', 'three-dimensional'));
+-- Onboarding guided-tour state (api/_lib/migrations/20260712030000_onboarding_tour_state.sql).
+-- seen_at = offered/started at least once (auto-start suppressed after this);
+-- completed_at = finished the onboarding track end to end.
+alter table users add column if not exists onboarding_tour_seen_at timestamptz;
+alter table users add column if not exists onboarding_tour_completed_at timestamptz;
+
-- ── user_follows — the social graph ──────────────────────────────────────────
-- A directed follow edge: follower_id follows following_id. Composite PK makes
-- a follow idempotent (one edge per pair) and the toggle a single upsert/delete.
diff --git a/api/me.js b/api/me.js
index cd8ae6e1b..03808ad5d 100644
--- a/api/me.js
+++ b/api/me.js
@@ -6,6 +6,16 @@
// Distinct from /api/auth/me (full session bootstrap) and /api/threews/me
// (subdomain claim widget): this is a tiny, stable, CORS-friendly identity
// endpoint the extension can call with the token it minted at sign-in.
+//
+// Also carries onboarding-tour state (api/_lib/migrations/
+// 20260712030000_onboarding_tour_state.sql): `show_onboarding_tour` is the
+// single source of truth the site's homepage/dashboard bootstrap reads to
+// decide whether to auto-offer the guided onboarding tour — true only for an
+// account that has never been offered the tour (onboarding_tour_seen_at is
+// null) AND has zero creations across every creation surface (avatars,
+// agents, forge_creations, dioramas). POST this same route with
+// { onboarding_tour: 'seen' | 'completed' } to record the corresponding
+// timestamp (see src/feature-tour/onboarding.js, which drives both ends).
import { getSessionUser, authenticateBearer, extractBearer } from './_lib/auth.js';
import { sql } from './_lib/db.js';
@@ -13,6 +23,18 @@ import { cors, error, json, method, wrap, rateLimited } from './_lib/http.js';
import { limits, clientIp } from './_lib/rate-limit.js';
import { thumbnailUrl } from './_lib/r2.js';
+function readRawBody(req) {
+ return new Promise((resolve, reject) => {
+ let data = '';
+ req.on('data', (c) => {
+ data += c;
+ if (data.length > 16 * 1024) reject(new Error('request body too large'));
+ });
+ req.on('end', () => resolve(data));
+ req.on('error', reject);
+ });
+}
+
async function resolveAuth(req) {
const session = await getSessionUser(req);
if (session) return { userId: session.id };
@@ -22,8 +44,8 @@ async function resolveAuth(req) {
}
export default wrap(async (req, res) => {
- if (cors(req, res, { methods: 'GET,OPTIONS', credentials: true })) return;
- if (!method(req, res, ['GET'])) return;
+ if (cors(req, res, { methods: 'GET,POST,OPTIONS', credentials: true })) return;
+ if (!method(req, res, ['GET', 'POST'])) return;
const rl = await limits.authedReadIp(clientIp(req));
if (!rl.success) return rateLimited(res, rl);
@@ -31,9 +53,41 @@ export default wrap(async (req, res) => {
const auth = await resolveAuth(req);
if (!auth) return error(res, 401, 'unauthorized', 'sign in required');
+ if (req.method === 'POST') {
+ let body;
+ try {
+ body = typeof req.body === 'object' && req.body ? req.body : JSON.parse((await readRawBody(req)) || '{}');
+ } catch {
+ return error(res, 400, 'invalid_body', 'invalid JSON body');
+ }
+ const flag = body.onboarding_tour;
+ if (flag !== 'seen' && flag !== 'completed') {
+ return error(res, 400, 'validation_error', 'onboarding_tour must be "seen" or "completed"');
+ }
+ // "completed" implies "seen" — a completed tour was necessarily offered.
+ const [row] = await sql`
+ UPDATE users
+ SET onboarding_tour_seen_at = COALESCE(onboarding_tour_seen_at, now()),
+ onboarding_tour_completed_at = CASE WHEN ${flag} = 'completed' THEN now() ELSE onboarding_tour_completed_at END,
+ updated_at = now()
+ WHERE id = ${auth.userId} AND deleted_at IS NULL
+ RETURNING onboarding_tour_seen_at, onboarding_tour_completed_at
+ `;
+ if (!row) return error(res, 404, 'not_found', 'user not found');
+ return json(res, 200, {
+ onboarding_tour_seen_at: row.onboarding_tour_seen_at,
+ onboarding_tour_completed_at: row.onboarding_tour_completed_at,
+ });
+ }
+
const [user] = await sql`
SELECT u.id, u.username, u.display_name, u.created_at,
- a.thumbnail_key
+ u.onboarding_tour_seen_at, u.onboarding_tour_completed_at,
+ a.thumbnail_key,
+ (SELECT count(*) FROM avatars WHERE owner_id = u.id AND deleted_at IS NULL) AS avatars_count,
+ (SELECT count(*) FROM agent_identities WHERE user_id = u.id AND deleted_at IS NULL) AS agents_count,
+ (SELECT count(*) FROM forge_creations WHERE user_id = u.id AND status = 'done') AS forge_count,
+ (SELECT count(*) FROM dioramas WHERE user_id = u.id) AS diorama_count
FROM users u
LEFT JOIN LATERAL (
SELECT thumbnail_key
@@ -48,6 +102,13 @@ export default wrap(async (req, res) => {
if (!user) return error(res, 404, 'not_found', 'user not found');
const handle = user.username || null;
+ const creationsCount =
+ Number(user.avatars_count || 0) +
+ Number(user.agents_count || 0) +
+ Number(user.forge_count || 0) +
+ Number(user.diorama_count || 0);
+ const showOnboardingTour = !user.onboarding_tour_seen_at && creationsCount === 0;
+
return json(res, 200, {
user: {
id: user.id,
@@ -56,6 +117,10 @@ export default wrap(async (req, res) => {
handle: handle ? `@${handle}` : (user.display_name || 'signed in'),
avatar_url: thumbnailUrl(user.thumbnail_key),
created_at: user.created_at,
+ creations_count: creationsCount,
+ onboarding_tour_seen_at: user.onboarding_tour_seen_at,
+ onboarding_tour_completed_at: user.onboarding_tour_completed_at,
+ show_onboarding_tour: showOnboardingTour,
},
});
});
diff --git a/data/changelog.json b/data/changelog.json
index 95ef4372e..0be40d170 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,15 @@
{
"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-07-12",
+ "title": "A guided tour for your first five minutes on three.ws",
+ "summary": "New accounts now get a real, 3D-guided walkthrough — starting on /start — that chains together everything the platform can do: make an avatar, put it in a world, see it tied to live $THREE market data on /markets, an optional stop to launch your own coin (clearly skippable), and a landing on your own new profile showing what you just made. It's auto-offered once to a genuinely new, signed-in account with zero creations, then stays reachable anytime via \"Replay guided tour\" in the Getting started checklist (bottom-right on most pages). Every stop is the platform's real, already-shipped flow — nothing built just for the tour.",
+ "tags": [
+ "feature"
+ ],
+ "link": "/start"
+ },
{
"date": "2026-07-12",
"title": "New: one search across avatars, agents, models, worlds, and coins",
diff --git a/pages/create-agent.html b/pages/create-agent.html
index 0c77d2378..b38bdc5da 100644
--- a/pages/create-agent.html
+++ b/pages/create-agent.html
@@ -1783,6 +1783,9 @@
<a class="btn btn--ghost btn--lg" href="/create-agent"
>Create another</a
>
+ <a class="btn btn--ghost btn--lg" href="/profile"
+ >View my profile</a
+ >
</div>
</section>
</div>
diff --git a/pages/create-next.html b/pages/create-next.html
index d7e9e1f46..fe46bbdc2 100644
--- a/pages/create-next.html
+++ b/pages/create-next.html
@@ -400,6 +400,22 @@
</div>
<div class="cn-step-arrow">→</div>
</a>
+ <a class="cn-step optional" id="cnStep4" href="/diorama" style="animation-delay:.27s">
+ <div class="cn-step-num">4</div>
+ <div class="cn-step-body">
+ <div class="cn-step-title">Put it in a world <span class="cn-opt-pill">Optional</span></div>
+ <div class="cn-step-desc">Turn one sentence into a 3D scene and drop your new avatar into it.</div>
+ </div>
+ <div class="cn-step-arrow">→</div>
+ </a>
+ <a class="cn-step" id="cnStep5" href="/profile" style="animation-delay:.34s">
+ <div class="cn-step-num">5</div>
+ <div class="cn-step-body">
+ <div class="cn-step-title">See your profile</div>
+ <div class="cn-step-desc">Your creator portfolio — everything you make from here shows up here.</div>
+ </div>
+ <div class="cn-step-arrow">→</div>
+ </a>
</div>
<div class="cn-footer">
diff --git a/public/changelog.json b/public/changelog.json
index d47738f30..970008af8 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-12T16:59:04.940Z",
+ "generated_at": "2026-07-12T17:21:15.952Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -76,6 +76,16 @@
"feature"
]
},
+ {
+ "date": "2026-07-12",
+ "type": "update",
+ "title": "A guided tour for your first five minutes on three.ws",
+ "summary": "New accounts now get a real, 3D-guided walkthrough — starting on /start — that chains together everything the platform can do: make an avatar, put it in a world, see it tied to live $THREE market data on /markets, an optional stop to launch your own coin (clearly skippable), and a landing on your own new profile showing what you just made. It's auto-offered once to a genuinely new, signed-in account with zero creations, then stays reachable anytime via \"Replay guided tour\" in the Getting started checklist (bottom-right on most pages). Every stop is the platform's real, already-shipped flow — nothing built just for the tour.",
+ "link": "/start",
+ "tags": [
+ "feature"
+ ]
+ },
{
"date": "2026-07-12",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index d0c947635..ec6ce9b4b 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -62,6 +62,14 @@
<category>feature</category>
<description>A new Rankings board at /rankings ranks creators across every surface at once — creations forged, remixes received, coins launched, followers, and distance walked while signed in — with your own rank pinned even if you're off the visible page. Showing up daily (a login, a finished creation, or a walk session) now builds a real streak, shown on your profile and on the Rankings page. Four badges are genuinely earnable and persist once unlocked: First Creation, Remixed, 7-Day Streak, and a daily-refreshed Top 10 placement per metric.</description>
</item>
+ <item>
+ <title>A guided tour for your first five minutes on three.ws</title>
+ <link>https://three.ws/start</link>
+ <guid isPermaLink="false">2026-07-12:A guided tour for your first five minutes on three.ws</guid>
+ <pubDate>Sun, 12 Jul 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>New accounts now get a real, 3D-guided walkthrough — starting on /start — that chains together everything the platform can do: make an avatar, put it in a world, see it tied to live $THREE market data on /markets, an optional stop to launch your own coin (clearly skippable), and a landing on your own new profile showing what you just made. It's auto-offered once to a genuinely new, signed-in account with zero creations, then stays reachable anytime via &quot;Replay guided tour&quot; in the Getting started checklist (bottom-right on most pages). Every stop is the platform's real, already-shipped flow — nothing built just for the tour.</description>
+ </item>
<item>
<title>Agent discovery fixed: six paid endpoints were invisible to x402 scanners</title>
<link>https://three.ws/openapi.json</link>
diff --git a/public/features.json b/public/features.json
index 838c86140..71e92f804 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-12T16:59:04.926Z",
+ "generated_at": "2026-07-12T17:21:15.938Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/public/getting-started.js b/public/getting-started.js
index 336470597..a06ce930c 100644
--- a/public/getting-started.js
+++ b/public/getting-started.js
@@ -241,6 +241,11 @@
var foot = el('div', 'twg-foot');
foot.appendChild(el('span', 'twg-foot-note', '~5 min · no wallet needed'));
+ var replay = el('button', 'twg-link', '🎬 Replay guided tour');
+ replay.type = 'button';
+ replay.title = 'Walk avatar → world → markets → profile again, with a 3D guide';
+ replay.addEventListener('click', replayOnboardingTour);
+ foot.appendChild(replay);
var dismiss = el('button', 'twg-link', 'Hide this');
dismiss.type = 'button';
dismiss.addEventListener('click', hideForever);
@@ -418,6 +423,49 @@
overlay.addEventListener('click', function (e) { if (e.target === overlay) close(); });
}
+ // ── Onboarding guided tour (src/feature-tour/*, section: "onboarding") ──────
+ // A short, self-driving 3D-guide walkthrough chaining avatar → world →
+ // markets → profile, distinct from this checklist. Auto-offered once to a
+ // genuinely new, signed-in account (zero creations, server-confirmed via
+ // GET /api/me `show_onboarding_tour`) landing on a top-level entry route;
+ // always reachable afterward via the "Replay guided tour" link above.
+ var ONBOARDING_TOUR_ROUTES = ['/', '/home', '/dashboard', '/start'];
+ var ONBOARDING_TOUR_URL = '/start?tour=start&track=onboarding';
+
+ function isTourAlreadyActive() {
+ try {
+ var raw = sessionStorage.getItem('tws:tour:state');
+ return !!(raw && JSON.parse(raw).active === true);
+ } catch (_) { return false; }
+ }
+
+ function isOnboardingEligibleRoute() {
+ var p = currentPath();
+ for (var i = 0; i < ONBOARDING_TOUR_ROUTES.length; i++) {
+ if (p === ONBOARDING_TOUR_ROUTES[i]) return true;
+ }
+ return false;
+ }
+
+ function replayOnboardingTour() {
+ location.href = ONBOARDING_TOUR_URL;
+ }
+
+ // Best-effort, silent on any failure (signed out → 401, offline, etc.) —
+ // this must never block or error the page it runs on.
+ function maybeOfferOnboardingTour() {
+ if (hidden || !isAuthed() || isTourAlreadyActive() || !isOnboardingEligibleRoute()) return;
+ if (new URLSearchParams(location.search).get('tour')) return; // a tour deep-link is already in flight
+ fetch('/api/me', { credentials: 'include' })
+ .then(function (res) { return res.ok ? res.json() : null; })
+ .then(function (data) {
+ if (data && data.user && data.user.show_onboarding_tour) {
+ location.href = ONBOARDING_TOUR_URL;
+ }
+ })
+ .catch(function () {});
+ }
+
// Pull in the shared corner-stack wherever this widget runs — some pages
// include us directly without nav.js (which normally loads it). The stack
// adopts our tagged orphan when it initialises, so order doesn't matter.
@@ -464,6 +512,7 @@
close: collapse,
progress: function () { return Object.assign({}, progress); },
isComplete: allCoreDone,
+ replayOnboardingTour: replayOnboardingTour,
};
// React to precise completion signals fired by other modules.
@@ -479,6 +528,7 @@
if (!hidden && !isExcludedRoute()) {
mount();
}
+ maybeOfferOnboardingTour();
}
if (document.readyState === 'loading') {
diff --git a/public/llms-full.txt b/public/llms-full.txt
index 5c17630dd..f2857067e 100644
--- a/public/llms-full.txt
+++ b/public/llms-full.txt
@@ -536,6 +536,12 @@ URL: https://three.ws/labs
A curated gallery of three.ws's most powerful — and most hidden — features. Find and try things you didn't know existed.
+### Rankings
+
+URL: https://three.ws/rankings
+
+The cross-surface three.ws leaderboard — creators ranked by real creations, remixes received, coin launches, followers, and distance walked. Track your streak and earn badges for showing up.
+
### Walk Leaderboard
URL: https://three.ws/walk-leaderboard
diff --git a/public/llms.txt b/public/llms.txt
index 747e4096b..dfb9f18e2 100644
--- a/public/llms.txt
+++ b/public/llms.txt
@@ -103,6 +103,7 @@ Experimental features actively shipping. Expect fast iteration.
- [Spatial MCP — reference renderer](https://three.ws/spatial-mcp): The open standard for returning a live, interactive 3D scene as a first-class MCP tool result, with a framework-free reference renderer that displays any conformant artifact — including ones transformed from other tools.
- [Playground](https://three.ws/playground): Sandbox for experimenting with agents, prompts, and 3D scenes.
- [Labs Showcase](https://three.ws/labs): A curated gallery of three.ws's most powerful — and most hidden — features. Find and try things you didn't know existed.
+- [Rankings](https://three.ws/rankings): The cross-surface three.ws leaderboard — creators ranked by real creations, remixes received, coin launches, followers, and distance walked. Track your streak and earn badges for showing up.
- [Walk Leaderboard](https://three.ws/walk-leaderboard): Global leaderboard for the walking avatar — distance walked, sites visited, and time, ranked daily, weekly, and all-time.
## Crypto
diff --git a/public/sitemap/index.html b/public/sitemap/index.html
index 46f641d95..6b2b10c07 100644
--- a/public/sitemap/index.html
+++ b/public/sitemap/index.html
@@ -65,7 +65,7 @@
<main class="sm-wrap">
<div class="sm-hero">
<h1>Sitemap</h1>
- <p>All 427 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>
+ <p>All 428 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>
@@ -77,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 427 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />
+ <input id="sm-filter-input" type="search" placeholder="Filter 428 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>
@@ -646,7 +646,7 @@
<section class="sm-section" id="labs">
<header>
- <h2>Labs<span class="sm-count" data-count>10</span></h2>
+ <h2>Labs<span class="sm-count" data-count>11</span></h2>
<p class="sm-section-desc">Experimental features actively shipping. Expect fast iteration.</p>
</header>
<ul class="sm-list">
@@ -713,6 +713,13 @@
<span class="sm-desc">A curated gallery of three.ws's most powerful — and most hidden — features. Find and try things you didn't know existed.</span>
</a>
</li>
+ <li>
+ <a href="/rankings">
+ <span class="sm-title">Rankings</span>
+ <span class="sm-path">/rankings</span>
+ <span class="sm-desc">The cross-surface three.ws leaderboard — creators ranked by real creations, remixes received, coin launches, followers, and distance walked. Track your streak and earn badges for showing up.</span>
+ </a>
+ </li>
<li>
<a href="/walk-leaderboard">
<span class="sm-title">Walk Leaderboard</span>
diff --git a/public/tour/curriculum.json b/public/tour/curriculum.json
index 6c7255208..4c6201cae 100644
--- a/public/tour/curriculum.json
+++ b/public/tour/curriculum.json
@@ -1,18 +1,18 @@
{
"version": 2,
- "generatedAt": "2026-07-09T21:20:51.347Z",
+ "generatedAt": "2026-07-12T17:16:09.990Z",
"generatedBy": "scripts/build-tour.mjs from data/pages.json",
"title": "The three.ws Guided Tour",
"tagline": "A 3D guide walks you through every feature, live, on the real site.",
- "estimatedMinutes": 64,
- "stopCount": 167,
+ "estimatedMinutes": 69,
+ "stopCount": 185,
"tracks": [
{
"id": "full",
"title": "Full tour",
"description": "Every feature, chapter by chapter.",
- "stopCount": 167,
- "estimatedMinutes": 64
+ "stopCount": 179,
+ "estimatedMinutes": 69
},
{
"id": "quick",
@@ -20,6 +20,13 @@
"description": "The best of every chapter, in a few minutes.",
"stopCount": 18,
"estimatedMinutes": 7
+ },
+ {
+ "id": "onboarding",
+ "title": "Getting started",
+ "description": "Avatar → world → markets → your profile, in about five minutes.",
+ "stopCount": 6,
+ "estimatedMinutes": 3
}
],
"sections": [
@@ -52,6 +59,11 @@
"id": "learn",
"title": "Learn",
"intro": "And when you're ready to go deeper on your own, here's where the documentation, guides, and tutorials live. That's the whole tour — let's wrap up."
+ },
+ {
+ "id": "onboarding",
+ "title": "Getting started",
+ "intro": "Welcome — I'm your guide. Let's get you from a blank account to your first real creation in about five minutes."
}
],
"stops": [
@@ -97,12 +109,20 @@
".card, .grid, [data-skill], main"
]
},
+ {
+ "id": "search",
+ "path": "/search",
+ "section": "main",
+ "title": "Search",
+ "narration": "Now, Search. One search across every creation type on three.ws — avatars, agents, 3D models, worlds, and coins — with remixable models remixable straight from the results.",
+ "highlight": false
+ },
{
"id": "agenc-embodied",
"path": "/agenc/embodied",
"section": "main",
"title": "AgenC · Embodied",
- "narration": "Now, AgenC · Embodied. Watch two AI agents negotiate and coordinate a task, embodied as 3D characters — the AgenC coordination protocol made visible.",
+ "narration": "Let's visit AgenC · Embodied. Watch two AI agents negotiate and coordinate a task, embodied as 3D characters — the AgenC coordination protocol made visible.",
"highlight": false
},
{
@@ -110,7 +130,7 @@
"path": "/agenc/room",
"section": "main",
"title": "AgenC · Task Room",
- "narration": "Let's visit AgenC · Task Room. A live room where autonomous agents discover open work, bid for it, and settle on-chain — the labor market up close.",
+ "narration": "Over here is AgenC · Task Room. A live room where autonomous agents discover open work, bid for it, and settle on-chain — the labor market up close.",
"highlight": false
},
{
@@ -118,7 +138,7 @@
"path": "/autopilot",
"section": "main",
"title": "Coin Autopilot",
- "narration": "Over here is Coin Autopilot. A hands-off token cockpit: set the rules — buys, sells, and guardrails — and let your agent run the coin autonomously.",
+ "narration": "Here's Coin Autopilot. A hands-off token cockpit: set the rules — buys, sells, and guardrails — and let your agent run the coin autonomously.",
"highlight": false
},
{
@@ -126,7 +146,7 @@
"path": "/diorama",
"section": "main",
"title": "Diorama",
- "narration": "Here's Diorama. Speak a little world into being — describe a scene and watch it assemble into an explorable 3D diorama you can walk through, then take it into AR.",
+ "narration": "Meet Diorama. Speak a little world into being — describe a scene and watch it assemble into an explorable 3D diorama you can walk through, then take it into AR.",
"highlight": false
},
{
@@ -134,7 +154,7 @@
"path": "/mocap-studio",
"section": "main",
"title": "Mocap Studio",
- "narration": "Meet Mocap Studio. Drive a 3D avatar with your webcam — real-time facial motion capture in the browser, no rig and no download.",
+ "narration": "And this — Mocap Studio. Drive a 3D avatar with your webcam — real-time facial motion capture in the browser, no rig and no download.",
"highlight": false
},
{
@@ -142,7 +162,7 @@
"path": "/create/video",
"section": "main",
"title": "Talking Avatar Video",
- "narration": "And this — Talking Avatar Video. Turn a three.ws avatar into a talking-head video: type a script, pick a voice, and export a lip-synced clip.",
+ "narration": "Check out Talking Avatar Video. Turn a three.ws avatar into a talking-head video: type a script, pick a voice, and export a lip-synced clip.",
"highlight": false
},
{
@@ -150,7 +170,7 @@
"path": "/partners",
"section": "main",
"title": "Partner Ecosystem",
- "narration": "Check out Partner Ecosystem. three.ws partner ecosystem — AWS, IBM, Google Cloud, Alibaba Cloud, Intel, NVIDIA, Microsoft, Oracle. The cloud and AI platforms powering 3D AI agents at enterprise scale.",
+ "narration": "This one is Partner Ecosystem. three.ws partner ecosystem — AWS, IBM, Google Cloud, Alibaba Cloud, Intel, NVIDIA, Microsoft, Oracle. The cloud and AI platforms powering 3D AI agents at enterprise scale.",
"highlight": false
},
{
@@ -158,7 +178,7 @@
"path": "/alpha-copilot",
"section": "main",
"title": "Alpha Co-pilot — your agent narrates its own alpha",
- "narration": "This one is Alpha Co-pilot — your agent narrates its own alpha. Your 3D agent reads a real pump.fun launch in character — grounded in live liquidity, holder, and smart-money data — and speaks its verdict aloud. Fabricated figures are rejected, never voiced; the owner can act on the call only within hard, server-enforced spend limits.",
+ "narration": "Here we have Alpha Co-pilot — your agent narrates its own alpha. Your 3D agent reads a real pump.fun launch in character — grounded in live liquidity, holder, and smart-money data — and speaks its verdict aloud. Fabricated figures are rejected, never voiced; the owner can act on the call only within hard, server-enforced spend limits.",
"highlight": false
},
{
@@ -166,7 +186,7 @@
"path": "/world-lines",
"section": "main",
"title": "World Lines — agent proof-of-presence quests",
- "narration": "Here we have World Lines — agent proof-of-presence quests. Walk to an AI agent's real-world spot, complete its AR challenge, and earn a cryptographically real, agent-signed proof of presence. Privacy-preserving (only a ~1 km area is ever recorded), independently verifiable, and ownable.",
+ "narration": "Next up, World Lines — agent proof-of-presence quests. Walk to an AI agent's real-world spot, complete its AR challenge, and earn a cryptographically real, agent-signed proof of presence. Privacy-preserving (only a ~1 km area is ever recorded), independently verifiable, and ownable.",
"highlight": false
},
{
@@ -174,7 +194,7 @@
"path": "/pitch",
"section": "main",
"title": "Pitch Deck",
- "narration": "Next up, Pitch Deck. The three.ws story as a presentable slide deck: one platform that gives any AI a real-time 3D body you can embed anywhere in one line. Arrow-key navigation, a live in-browser 3D character, and one-click export to PDF.",
+ "narration": "This is Pitch Deck. The three.ws story as a presentable slide deck: one platform that gives any AI a real-time 3D body you can embed anywhere in one line. Arrow-key navigation, a live in-browser 3D character, and one-click export to PDF.",
"highlight": false
},
{
@@ -182,7 +202,7 @@
"path": "/feed",
"section": "main",
"title": "Feed",
- "narration": "This is Feed. Recent activity from the people and agents you follow on three.ws.",
+ "narration": "Take a look at Feed. Live avatars, agents, 3D models, worlds, and launches across three.ws — filter to everyone or just the people you follow.",
"highlight": false
},
{
@@ -190,7 +210,7 @@
"path": "/walk",
"section": "main",
"title": "Walk Anywhere on the Web",
- "narration": "Take a look at Walk Anywhere on the Web. Your 3D avatar walks anywhere on the web. Live demos across six environments, a Chrome extension, one-tag embeds, and a global distance leaderboard.",
+ "narration": "Now, Walk Anywhere on the Web. Your 3D avatar walks anywhere on the web. Live demos across six environments, a Chrome extension, one-tag embeds, and a global distance leaderboard.",
"highlight": false
},
{
@@ -198,7 +218,7 @@
"path": "/animations",
"section": "main",
"title": "Animation Gallery",
- "narration": "Now, Animation Gallery. Browse and preview public animations authored by the three.ws community. Apply any clip to your avatar in the Animation Studio.",
+ "narration": "Let's visit Animation Gallery. Browse and preview public animations authored by the three.ws community. Apply any clip to your avatar in the Animation Studio.",
"highlight": false
},
{
@@ -206,7 +226,7 @@
"path": "/irl-privacy",
"section": "main",
"title": "How location works on IRL",
- "narration": "Let's visit How location works on IRL. Placed agents are private by location: they appear only to people physically standing near them, never on a map or a list. What's shared, what isn't, and how your camera, motion, and location are used.",
+ "narration": "Over here is How location works on IRL. Placed agents are private by location: they appear only to people physically standing near them, never on a map or a list. What's shared, what isn't, and how your camera, motion, and location are used.",
"highlight": false
},
{
@@ -214,7 +234,7 @@
"path": "/collection",
"section": "main",
"title": "My Collection",
- "narration": "Over here is My Collection. View all the skills and subscriptions you've unlocked on three.ws.",
+ "narration": "Here's My Collection. View all the skills and subscriptions you've unlocked on three.ws.",
"highlight": false
},
{
@@ -222,7 +242,7 @@
"path": "/irl",
"section": "main",
"title": "IRL",
- "narration": "Here's IRL. Place a 3D avatar in your real environment. Camera AR passthrough, joystick movement, and tap-to-place 3D objects on your floor.",
+ "narration": "Meet IRL. Place a 3D avatar in your real environment. Camera AR passthrough, joystick movement, and tap-to-place 3D objects on your floor.",
"highlight": false
},
{
@@ -230,7 +250,7 @@
"path": "/skills",
"section": "main",
"title": "Skills Marketplace",
- "narration": "Meet Skills Marketplace. Browse, search, and install agent skills — tool packs, knowledge bases, and capabilities that make AI agents smarter.",
+ "narration": "And this — Skills Marketplace. Browse, search, and install agent skills — tool packs, knowledge bases, and capabilities that make AI agents smarter.",
"highlight": false
},
{
@@ -238,7 +258,7 @@
"path": "/characters",
"section": "main",
"title": "Characters",
- "narration": "And this — Characters. Discover AI characters on three.ws. Chat, trade, and create.",
+ "narration": "Check out Characters. Discover AI characters on three.ws. Chat, trade, and create.",
"highlight": false
},
{
@@ -246,7 +266,7 @@
"path": "/gallery",
"section": "main",
"title": "Avatar Gallery",
- "narration": "Check out Avatar Gallery. Every public 3D avatar in the system, browsable as a grid.",
+ "narration": "This one is Avatar Gallery. Every public 3D avatar in the system, browsable as a grid.",
"highlight": false
},
{
@@ -254,7 +274,7 @@
"path": "/temporary",
"section": "main",
"title": "Drive Your Avatar",
- "narration": "This one is Drive Your Avatar. Drive a 3D avatar around with a joystick or WASD, then toggle the back camera for AR-style passthrough on your phone.",
+ "narration": "Here we have Drive Your Avatar. Drive a 3D avatar around with a joystick or WASD, then toggle the back camera for AR-style passthrough on your phone.",
"highlight": false
},
{
@@ -262,7 +282,7 @@
"path": "/community",
"section": "main",
"title": "Community",
- "narration": "Here we have Community. Featured creators, builds, and conversations from the three.ws community.",
+ "narration": "Next up, Community. Live platform activity plus where to follow, contribute, and connect with three.ws creators.",
"highlight": false
},
{
@@ -270,7 +290,7 @@
"path": "/create-agent",
"section": "build",
"title": "Create an Agent",
- "narration": "Next up, Create an Agent. Step-by-step wizard to create a 3D AI agent: name, 3D body, skills, personality, voice, and on-chain identity.",
+ "narration": "This is Create an Agent. Step-by-step wizard to create a 3D AI agent: name, 3D body, skills, personality, voice, and on-chain identity.",
"highlight": true,
"sectionIntro": "Now the fun part — building. This is where you give your AI a body: a 3D avatar, a brain, a voice, and the studios to shape all of it.",
"targets": [
@@ -282,7 +302,7 @@
"path": "/forge",
"section": "build",
"title": "Forge — Text to 3D",
- "narration": "This is Forge — Text to 3D. Type a prompt — or drop in photos or a sketch — and get a downloadable textured 3D model (GLB). Pick from multiple generation engines with live health status.",
+ "narration": "Take a look at Forge — Text to 3D. Type a prompt — or drop in photos or a sketch — and get a downloadable textured 3D model (GLB). Pick from multiple generation engines with live health status.",
"highlight": true,
"targets": [
"textarea, input[type=\"text\"], .prompt-input, form"
@@ -293,7 +313,7 @@
"path": "/scan",
"section": "build",
"title": "3D Scanner — Scan Yourself into 3D",
- "narration": "Take a look at 3D Scanner — Scan Yourself into 3D. Point your camera at your face, hold still, and walk away with a rigged 3D avatar — reconstruction runs in about a minute, free, in your browser.",
+ "narration": "Now, 3D Scanner — Scan Yourself into 3D. Point your camera at your face, hold still, and walk away with a rigged 3D avatar — reconstruction runs in about a minute, free, in your browser.",
"highlight": true,
"targets": [
"button, .scan-start, video, .camera"
@@ -304,7 +324,7 @@
"path": "/pose",
"section": "build",
"title": "Animation Studio",
- "narration": "Now, Animation Studio. Pose any three.ws avatar or the built-in mannequin with FK/IK, keyframe a timeline, and preview the motion live. Export an animated GLB or clip JSON, save animations to your account, play them back across the platform, and sell them for USDC.",
+ "narration": "Let's visit Animation Studio. Pose any three.ws avatar or the built-in mannequin with FK/IK, keyframe a timeline, and preview the motion live. Export an animated GLB or clip JSON, save animations to your account, play them back across the platform, and sell them for USDC.",
"highlight": false,
"targets": [
"canvas, .timeline, .pose-controls"
@@ -315,7 +335,7 @@
"path": "/voice",
"section": "build",
"title": "Voice Lab",
- "narration": "Let's visit Voice Lab. Clone your voice from a short recording, then use it for TTS or give it to your agent. Side-by-side comparison of voice models.",
+ "narration": "Over here is Voice Lab. Clone your voice from a short recording, then use it for TTS or give it to your agent. Side-by-side comparison of voice models.",
"highlight": false,
"targets": [
"button, .record, audio"
@@ -326,7 +346,7 @@
"path": "/restyle",
"section": "build",
"title": "Restyle Studio — material presets, AI restyle & variants",
- "narration": "Over here is Restyle Studio — material presets, AI restyle & variants. Re-skin any 3D model in the browser: apply PBR material presets (chrome, gold, glass, wood…), restyle from a plain-language AI instruction, fan out seeded colorway variants as durable versions, fine-tune metalness and roughness live, and export a validated GLB — non-destructively, with a real revertable version lineage.",
+ "narration": "Here's Restyle Studio — material presets, AI restyle & variants. Re-skin any 3D model in the browser: apply PBR material presets (chrome, gold, glass, wood…), restyle from a plain-language AI instruction, fan out seeded colorway variants as durable versions, fine-tune metalness and roughness live, and export a validated GLB — non-destructively, with a real revertable version lineage.",
"highlight": false
},
{
@@ -334,7 +354,7 @@
"path": "/agents-live",
"section": "build",
"title": "Live Agents",
- "narration": "Here's Live Agents. Mission control — real-time grid of all AI agents with active screen streams. Watch their screens and avatar feeds live.",
+ "narration": "Meet Live Agents. Mission control — real-time grid of all AI agents with active screen streams. Watch their screens and avatar feeds live.",
"highlight": false
},
{
@@ -342,7 +362,7 @@
"path": "/capture",
"section": "build",
"title": "Scene Capture — Video to 3D Point Cloud",
- "narration": "Meet Scene Capture — Video to 3D Point Cloud. Turn a phone video of any space into an explorable 3D point cloud. Streaming feed-forward reconstruction (LingBot-Map Geometric Context Transformer) fuses the frames into a coloured .ply, rendered live in the browser with WebGL. Or load a point cloud you already have.",
+ "narration": "And this — Scene Capture — Video to 3D Point Cloud. Turn a phone video of any space into an explorable 3D point cloud. Streaming feed-forward reconstruction (LingBot-Map Geometric Context Transformer) fuses the frames into a coloured .ply, rendered live in the browser with WebGL. Or load a point cloud you already have.",
"highlight": false
},
{
@@ -350,7 +370,7 @@
"path": "/avatar-engines",
"section": "build",
"title": "Avatar Engines Atlas",
- "narration": "And this — Avatar Engines Atlas. A curated, factual atlas of the open-source and commercial engines that build high-quality and photoreal 3D human avatars — Gaussian-splat heads, single-photo humans, text→avatar generators, and the rigs three.ws already animates. Technique, license, compute, and integration status for each.",
+ "narration": "Check out Avatar Engines Atlas. A curated, factual atlas of the open-source and commercial engines that build high-quality and photoreal 3D human avatars — Gaussian-splat heads, single-photo humans, text→avatar generators, and the rigs three.ws already animates. Technique, license, compute, and integration status for each.",
"highlight": false
},
{
@@ -358,7 +378,7 @@
"path": "/integrations",
"section": "build",
"title": "Integrations",
- "narration": "Check out Integrations. Drop-in 3D agents, chat widgets, walk companions, and live token embeds for any site. One script tag. Powered by three.ws.",
+ "narration": "This one is Integrations. Drop-in 3D agents, chat widgets, walk companions, and live token embeds for any site. One script tag. Powered by three.ws.",
"highlight": false
},
{
@@ -366,7 +386,7 @@
"path": "/splat",
"section": "build",
"title": "Splat Viewer — Photoreal Gaussian Avatars",
- "narration": "This one is Splat Viewer — Photoreal Gaussian Avatars. Render Gaussian-splat and radiance-field avatars in the browser — the photoreal output of engines like GaussianAvatars and HumanGaussian. Load a .ply / .splat / .ksplat by URL or upload; decoding runs entirely client-side.",
+ "narration": "Here we have Splat Viewer — Photoreal Gaussian Avatars. Render Gaussian-splat and radiance-field avatars in the browser — the photoreal output of engines like GaussianAvatars and HumanGaussian. Load a .ply / .splat / .ksplat by URL or upload; decoding runs entirely client-side.",
"highlight": false
},
{
@@ -374,7 +394,7 @@
"path": "/agora",
"section": "build",
"title": "Agora — the Commons",
- "narration": "Here we have Agora — the Commons. A watchable 3D world where AI agent and human citizens live, work, and earn $THREE. Walk the square, inspect any citizen's passport, and watch the economy come alive.",
+ "narration": "Next up, Agora — the Commons. A watchable 3D world where AI agent and human citizens live, work, and earn $THREE. Walk the square, inspect any citizen's passport, and watch the economy come alive.",
"highlight": false
},
{
@@ -382,7 +402,7 @@
"path": "/genome",
"section": "build",
"title": "Agent Genome — breed two agents",
- "narration": "Next up, Agent Genome — breed two agents. Breed two AI agents into a provably-inherited offspring. The child inherits a recombination of both parents' brain, voice, body, and on-chain skill licenses — each breeding event seed-recorded so the lineage is re-derivable and forgery-detectable, with a verifiable family tree on every parent and child.",
+ "narration": "This is Agent Genome — breed two agents. Breed two AI agents into a provably-inherited offspring. The child inherits a recombination of both parents' brain, voice, body, and on-chain skill licenses — each breeding event seed-recorded so the lineage is re-derivable and forgery-detectable, with a verifiable family tree on every parent and child.",
"highlight": false
},
{
@@ -390,7 +410,7 @@
"path": "/ca2x402",
"section": "build",
"title": "CA → x402",
- "narration": "This is CA → x402. Paste any token contract address and get a live, agent-payable x402 endpoint for its market intel — price, momentum, and a bullish/bearish signal — for $0.01 USDC, discoverable in the x402 bazaar.",
+ "narration": "Take a look at CA → x402. Paste any token contract address and get a live, agent-payable x402 endpoint for its market intel — price, momentum, and a bullish/bearish signal — for $0.01 USDC, discoverable in the x402 bazaar.",
"highlight": false
},
{
@@ -398,7 +418,7 @@
"path": "/cosmos",
"section": "build",
"title": "Cosmos — Living Worlds",
- "narration": "Take a look at Cosmos — Living Worlds. Bring your avatar to life: type a world and NVIDIA Cosmos renders a living, photoreal scene that plays behind your 3D avatar. Generate, preview, and download a short cinematic clip.",
+ "narration": "Now, Cosmos — Living Worlds. Bring your avatar to life: type a world and NVIDIA Cosmos renders a living, photoreal scene that plays behind your 3D avatar. Generate, preview, and download a short cinematic clip.",
"highlight": false
},
{
@@ -406,7 +426,7 @@
"path": "/forge-nim",
"section": "build",
"title": "Forge · NIM — Self-Hosted Image to 3D",
- "narration": "Now, Forge · NIM — Self-Hosted Image to 3D. Drive a self-hosted TRELLIS NIM (nvcr.io/nim/microsoft/trellis) directly: drop a photo, hit /v1/infer, and get the textured GLB back synchronously as base64 — rendered live and downloadable.",
+ "narration": "Let's visit Forge · NIM — Self-Hosted Image to 3D. Drive a self-hosted TRELLIS NIM (nvcr.io/nim/microsoft/trellis) directly: drop a photo, hit /v1/infer, and get the textured GLB back synchronously as base64 — rendered live and downloadable.",
"highlight": false
},
{
@@ -414,7 +434,7 @@
"path": "/genesis",
"section": "build",
"title": "Instant Agent Genesis",
- "narration": "Let's visit Instant Agent Genesis. A prompt or a selfie becomes a rigged 3D AI agent with its own custodial Solana + EVM wallet and a verifiable on-chain identity — in under a minute, owned by you.",
+ "narration": "Over here is Instant Agent Genesis. A prompt or a selfie becomes a rigged 3D AI agent with its own custodial Solana + EVM wallet and a verifiable on-chain identity — in under a minute, owned by you.",
"highlight": false
},
{
@@ -422,7 +442,7 @@
"path": "/forge-spark",
"section": "build",
"title": "Text → 3D — Nemotron → FLUX → TRELLIS",
- "narration": "Over here is Text → 3D — Nemotron → FLUX → TRELLIS. Describe an object and watch it become a textured 3D mesh: Nemotron sharpens the prompt, FLUX paints a clean reference, and TRELLIS reconstructs the model — served on NVIDIA NIM, quiet and always on.",
+ "narration": "Here's Text → 3D — Nemotron → FLUX → TRELLIS. Describe an object and watch it become a textured 3D mesh: Nemotron sharpens the prompt, FLUX paints a clean reference, and TRELLIS reconstructs the model — served on NVIDIA NIM, quiet and always on.",
"highlight": false
},
{
@@ -430,7 +450,7 @@
"path": "/dad",
"section": "build",
"title": "Make Dad a 3D Avatar",
- "narration": "Here's Make Dad a 3D Avatar. Turn one photo of your dad into a recognizable, rigged, animated 3D avatar — it idles, walks, and waves — then share a permalink.",
+ "narration": "Meet Make Dad a 3D Avatar. Turn one photo of your dad into a recognizable, rigged, animated 3D avatar — it idles, walks, and waves — then share a permalink.",
"highlight": false
},
{
@@ -438,7 +458,7 @@
"path": "/forge-studio",
"section": "build",
"title": "Studio — Object + Avatar from text",
- "narration": "Meet Studio — Object + Avatar from text. One canvas for both text-to-3D pipelines: forge a textured object (GLB) in the Object tab, or describe a character and get a rigged avatar in the Avatar tab.",
+ "narration": "And this — Studio — Object + Avatar from text. One canvas for both text-to-3D pipelines: forge a textured object (GLB) in the Object tab, or describe a character and get a rigged avatar in the Avatar tab.",
"highlight": false
},
{
@@ -446,7 +466,7 @@
"path": "/compose",
"section": "build",
"title": "Scene Composer",
- "narration": "And this — Scene Composer. Real-time 3D scene composer: forge items from text, attach them to your avatar's skeleton bones, arrange and scale freely, then export your creation or save it as an outfit.",
+ "narration": "Check out Scene Composer. Real-time 3D scene composer: forge items from text, attach them to your avatar's skeleton bones, arrange and scale freely, then export your creation or save it as an outfit.",
"highlight": false
},
{
@@ -454,7 +474,7 @@
"path": "/scene",
"section": "build",
"title": "Scene Studio",
- "narration": "Check out Scene Studio. Full 3D scene editor in the browser — import GLB models, arrange them with transform gizmos, edit materials and lights, and export complete scenes.",
+ "narration": "This one is Scene Studio. Full 3D scene editor in the browser — import GLB models, arrange them with transform gizmos, edit materials and lights, and export complete scenes.",
"highlight": false
},
{
@@ -462,7 +482,7 @@
"path": "/create/prompt",
"section": "build",
"title": "Describe it to 3D",
- "narration": "This one is Describe it to 3D. Type a description. About a minute later: a rigged 3D avatar you can animate and download.",
+ "narration": "Here we have Describe it to 3D. Type a description. About a minute later: a rigged 3D avatar you can animate and download.",
"highlight": false
},
{
@@ -470,7 +490,7 @@
"path": "/create/selfie",
"section": "build",
"title": "Selfie to Avatar",
- "narration": "Here we have Selfie to Avatar. One selfie. About a minute. A rigged 3D avatar that works everywhere.",
+ "narration": "Next up, Selfie to Avatar. One selfie. About a minute. A rigged 3D avatar that works everywhere.",
"highlight": false
},
{
@@ -478,7 +498,7 @@
"path": "/studio",
"section": "build",
"title": "Widget Studio",
- "narration": "Next up, Widget Studio. Pick an avatar, configure embed options, copy a one-line snippet for your site.",
+ "narration": "This is Widget Studio. Pick an avatar, configure embed options, copy a one-line snippet for your site.",
"highlight": false
},
{
@@ -486,7 +506,7 @@
"path": "/hydrate",
"section": "build",
"title": "Hydrate",
- "narration": "This is Hydrate. Take an existing on-chain agent (ERC-8004 / Solana) and attach a 3D body, voice, and skills.",
+ "narration": "Take a look at Hydrate. Take an existing on-chain agent (ERC-8004 / Solana) and attach a 3D body, voice, and skills.",
"highlight": false
},
{
@@ -494,7 +514,7 @@
"path": "/app",
"section": "build",
"title": "Viewer",
- "narration": "Take a look at Viewer. Drag-and-drop glTF/GLB viewer for inspecting 3D models in the browser.",
+ "narration": "Now, Viewer. Drag-and-drop glTF/GLB viewer for inspecting 3D models in the browser.",
"highlight": false
},
{
@@ -502,7 +522,7 @@
"path": "/widgets",
"section": "build",
"title": "Widgets Gallery",
- "narration": "Now, Widgets Gallery. Pre-built chat, voice, and 3D-avatar widgets you can drop into any page.",
+ "narration": "Let's visit Widgets Gallery. Pre-built chat, voice, and 3D-avatar widgets you can drop into any page.",
"highlight": false
},
{
@@ -510,7 +530,7 @@
"path": "/features",
"section": "build",
"title": "Features",
- "narration": "Let's visit Features. Full feature overview of the three.ws platform: avatars, agents, on-chain identity, x402 payments, and embedding.",
+ "narration": "Over here is Features. Full feature overview of the three.ws platform: avatars, agents, on-chain identity, x402 payments, and embedding.",
"highlight": false
},
{
@@ -518,7 +538,7 @@
"path": "/pay",
"section": "crypto",
"title": "Pay (x402)",
- "narration": "Over here is Pay (x402). Pay-per-call gateway: invoke any x402-protocol paid API with a USDC micro-transaction.",
+ "narration": "Here's Pay (x402). Pay-per-call gateway: invoke any x402-protocol paid API with a USDC micro-transaction.",
"highlight": true,
"sectionIntro": "Here's what makes three.ws agents truly autonomous — they can hold a wallet and move real money. Let me show you the on-chain side: payments, launches, and live market intelligence.",
"targets": [
@@ -530,7 +550,7 @@
"path": "/x402/studio",
"section": "crypto",
"title": "x402 Studio — the Stripe of x402",
- "narration": "Here's x402 Studio — the Stripe of x402. Merchant console to run a paid x402 business: products and pricing, payout and agent wallets, a real USDC send/receive with SNS .sol resolution, a drag-and-drop storefront, an embeddable pay-button builder, charity and round-up giving, CORS and security.",
+ "narration": "Meet x402 Studio — the Stripe of x402. Merchant console to run a paid x402 business: products and pricing, payout and agent wallets, a real USDC send/receive with SNS .sol resolution, a drag-and-drop storefront, an embeddable pay-button builder, charity and round-up giving, CORS and security.",
"highlight": true,
"targets": [
".console, nav, form, button"
@@ -541,7 +561,7 @@
"path": "/launch",
"section": "crypto",
"title": "Launch a Coin",
- "narration": "Meet Launch a Coin. Mint a coin for your 3D AI agent in one flow — pick an agent, set the name, symbol, and image, then launch on pump.fun straight from your wallet with an optional three.ws-branded vanity mint.",
+ "narration": "And this — Launch a Coin. Mint a coin for your 3D AI agent in one flow — pick an agent, set the name, symbol, and image, then launch on pump.fun straight from your wallet with an optional three.ws-branded vanity mint.",
"highlight": true,
"targets": [
"form, input, button"
@@ -552,7 +572,7 @@
"path": "/oracle",
"section": "crypto",
"title": "Oracle — AI Conviction Engine",
- "narration": "And this — Oracle — AI Conviction Engine. A fused AI conviction engine for every pump.fun launch: pedigree (who's buying), structure (bundle vs organic), narrative (what story is it riding), and momentum — fused into a single 0–100 conviction score with transparent pillar reasoning.",
+ "narration": "Check out Oracle — AI Conviction Engine. A fused AI conviction engine for every pump.fun launch: pedigree (who's buying), structure (bundle vs organic), narrative (what story is it riding), and momentum — fused into a single 0–100 conviction score with transparent pillar reasoning.",
"highlight": false,
"targets": [
".score, canvas, .conviction, h1"
@@ -563,12 +583,100 @@
"path": "/vanity-wallet",
"section": "crypto",
"title": "Solana Vanity Wallet",
- "narration": "Check out Solana Vanity Wallet. Grind a Solana address with a custom prefix — entirely in your browser, across your CPU cores.",
+ "narration": "This one is Solana Vanity Wallet. Grind a Solana address with a custom prefix — entirely in your browser, across your CPU cores. Also send sealed wallet gifts: fund a fresh (optionally vanity-ground) wallet and wrap it in an end-to-end sealed claim link only the recipient can open.",
"highlight": false,
"targets": [
"input, button, .grinder"
]
},
+ {
+ "id": "markets-robinhood",
+ "path": "/markets/robinhood",
+ "section": "crypto",
+ "title": "Robinhood Chain",
+ "narration": "Here we have Robinhood Chain. The 24/7 tokenized-equity board for Robinhood Chain (4663): live Chainlink NAV vs DEX premium for every Stock Token, a memecoin screener across NOXA and The Odyssey launchpads, recent launches, and chain TVL — plus a real wallet-connect buy flow for its coins.",
+ "highlight": false
+ },
+ {
+ "id": "hacks",
+ "path": "/hacks",
+ "section": "crypto",
+ "title": "DeFi Hacks Database",
+ "narration": "Next up, DeFi Hacks Database. A searchable database of every major DeFi exploit — amount stolen, classification, technique, chains affected, whether it was a bridge hack, and the source, with all-time and trailing-12-month totals. Live from DeFiLlama.",
+ "highlight": false
+ },
+ {
+ "id": "yields",
+ "path": "/yields",
+ "section": "crypto",
+ "title": "DeFi Yields Explorer",
+ "narration": "This is DeFi Yields Explorer. Explore roughly 15,000 live DeFi yield pools across every chain and protocol — filter by chain, project, stablecoin exposure, and minimum TVL, sort by APY or TVL, and open any pool to see its full APY and TVL history. Live from DeFiLlama, no key required.",
+ "highlight": false
+ },
+ {
+ "id": "dex-volumes",
+ "path": "/dex-volumes",
+ "section": "crypto",
+ "title": "DEX Volume Leaderboard",
+ "narration": "Take a look at DEX Volume Leaderboard. Every decentralized exchange ranked by trading volume, with 24h and 7d totals, 7-day change, and market share, plus an aggregate volume history chart. Live from DeFiLlama.",
+ "highlight": false
+ },
+ {
+ "id": "fees",
+ "path": "/fees",
+ "section": "crypto",
+ "title": "Protocol Fees & Revenue",
+ "narration": "Now, Protocol Fees & Revenue. Fees paid by users and revenue kept by protocols across all of DeFi, ranked with 24h/7d/30d totals and an aggregate history chart. Toggle between fees and revenue; each protocol links to its detail page. Live from DeFiLlama.",
+ "highlight": false
+ },
+ {
+ "id": "markets-trending",
+ "path": "/markets/trending",
+ "section": "crypto",
+ "title": "Trending Crypto",
+ "narration": "Let's visit Trending Crypto. The most-searched coins, categories, and NFTs on CoinGecko over the last 24 hours — trending rank, price, 24h change, market cap, and volume, each coin and category linking to its detail page. Auto-refreshing.",
+ "highlight": false
+ },
+ {
+ "id": "markets-news",
+ "path": "/markets/news",
+ "section": "crypto",
+ "title": "Crypto News",
+ "narration": "Over here is Crypto News. Live crypto news aggregated natively from 192 publisher feeds in 18 languages — filter by category (Bitcoin, DeFi, security, regulation, and more), pick a language, search headlines, and open any story in a rich reader with summary, key points, sentiment, and related coverage.",
+ "highlight": false
+ },
+ {
+ "id": "markets-archive",
+ "path": "/markets/archive",
+ "section": "crypto",
+ "title": "Crypto News Archive",
+ "narration": "Here's Crypto News Archive. The largest open crypto-news archive: 660,000+ articles from September 2017 to today, refreshed hourly from the live feed, in English and Chinese — searchable by keyword, ticker, source, sentiment, date, and language.",
+ "highlight": false
+ },
+ {
+ "id": "markets-digest",
+ "path": "/markets/digest",
+ "section": "crypto",
+ "title": "Crypto News Digest",
+ "narration": "Meet Crypto News Digest. The day's crypto news grouped into the handful of stories that actually matter — each with a plain-language summary, a market stance, the tickers involved, and every outlet that covered it. Clustered from 38 live publisher feeds.",
+ "highlight": false
+ },
+ {
+ "id": "markets-news-article",
+ "path": "/markets/news/article",
+ "section": "crypto",
+ "title": "Crypto News Reader",
+ "narration": "And this — Crypto News Reader. Rich article reader for crypto news — full story extraction with AI summary, key points, sentiment, detected tickers, and related coverage from across the industry.",
+ "highlight": false
+ },
+ {
+ "id": "markets",
+ "path": "/markets",
+ "section": "crypto",
+ "title": "Markets Hub",
+ "narration": "Check out Markets Hub. The three.ws markets hub — live global stats, the top 100 coins, breaking crypto news from 192 publisher feeds, a 662k-article news archive, and hero links to the full markets toolset.",
+ "highlight": false
+ },
{
"id": "chains",
"path": "/chains",
@@ -733,8 +841,8 @@
"id": "coins",
"path": "/coins",
"section": "crypto",
- "title": "Markets — Live Crypto Prices",
- "narration": "Here's Markets — Live Crypto Prices. 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.",
+ "title": "Coins — Live Prices & Market Caps",
+ "narration": "Here's Coins — Live Prices & Market Caps. 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.",
"highlight": false
},
{
@@ -782,7 +890,7 @@
"path": "/launcher",
"section": "crypto",
"title": "Memetic Launcher",
- "narration": "Next up, Memetic Launcher. Design your personal autonomous coin launcher — set your mode (trend, meme, hybrid, random), pick trend sources, tune your cadence, and preview exactly what your agents would mint next. Preview mode: no SOL moves until you fund a live launch.",
+ "narration": "Next up, Memetic Launcher. Your personal autonomous coin launcher — set your mode (trend, meme, hybrid, random), pick trend sources, tune your cadence, preview what your agents would mint, then go live: real pump.fun launches on your schedule, self-funded from your own agents' wallets under a hard daily SOL cap.",
"highlight": false
},
{
@@ -1270,20 +1378,28 @@
"narration": "Here we have Labs Showcase. A curated gallery of three.ws's most powerful — and most hidden — features. Find and try things you didn't know existed.",
"highlight": true
},
+ {
+ "id": "rankings",
+ "path": "/rankings",
+ "section": "labs",
+ "title": "Rankings",
+ "narration": "Next up, Rankings. The cross-surface three.ws leaderboard — creators ranked by real creations, remixes received, coin launches, followers, and distance walked. Track your streak and earn badges for showing up.",
+ "highlight": true
+ },
{
"id": "viewer",
"path": "/viewer",
"section": "labs",
"title": "glTF / GLB Viewer",
- "narration": "Next up, glTF / GLB Viewer. Paste any public glTF/GLB URL and preview it inline — the lightweight, unauthenticated model viewer every 3D Studio tool's shared asset link opens.",
- "highlight": true
+ "narration": "This is glTF / GLB Viewer. Paste any public glTF/GLB URL and preview it inline — the lightweight, unauthenticated model viewer every 3D Studio tool's shared asset link opens.",
+ "highlight": false
},
{
"id": "spatial-mcp",
"path": "/spatial-mcp",
"section": "labs",
"title": "Spatial MCP — reference renderer",
- "narration": "This is Spatial MCP — reference renderer. The open standard for returning a live, interactive 3D scene as a first-class MCP tool result, with a framework-free reference renderer that displays any conformant artifact — including ones transformed from other tools.",
+ "narration": "Take a look at Spatial MCP — reference renderer. The open standard for returning a live, interactive 3D scene as a first-class MCP tool result, with a framework-free reference renderer that displays any conformant artifact — including ones transformed from other tools.",
"highlight": false
},
{
@@ -1291,7 +1407,7 @@
"path": "/walk-leaderboard",
"section": "labs",
"title": "Walk Leaderboard",
- "narration": "Take a look at Walk Leaderboard. Global leaderboard for the walking avatar — distance walked, sites visited, and time, ranked daily, weekly, and all-time.",
+ "narration": "Now, Walk Leaderboard. Global leaderboard for the walking avatar — distance walked, sites visited, and time, ranked daily, weekly, and all-time.",
"highlight": false
},
{
@@ -1299,7 +1415,7 @@
"path": "/playground",
"section": "labs",
"title": "Playground",
- "narration": "Now, Playground. Sandbox for experimenting with agents, prompts, and 3D scenes.",
+ "narration": "Let's visit Playground. Sandbox for experimenting with agents, prompts, and 3D scenes.",
"highlight": false
},
{
@@ -1307,7 +1423,7 @@
"path": "/launchpad",
"section": "labs",
"title": "Launchpad Studio",
- "narration": "Let's visit Launchpad Studio. Build a hosted 3D launchpad, token page, concierge, or showroom on a three.ws subdomain.",
+ "narration": "Over here is Launchpad Studio. Build a hosted 3D launchpad, token page, concierge, or showroom on a three.ws subdomain.",
"highlight": false
},
{
@@ -1315,7 +1431,7 @@
"path": "/lipsync/mic",
"section": "labs",
"title": "Lipsync (Mic)",
- "narration": "Over here is Lipsync (Mic). Feed live mic audio through the viseme analyser and watch the avatar's mouth track your voice in real time.",
+ "narration": "Here's Lipsync (Mic). Feed live mic audio through the viseme analyser and watch the avatar's mouth track your voice in real time.",
"highlight": false
},
{
@@ -1323,7 +1439,7 @@
"path": "/lipsync",
"section": "labs",
"title": "Lipsync (TTS)",
- "narration": "Here's Lipsync (TTS). Type text, stream it through the avatar's voice, and the mouth animates in real time via wawa-lipsync viseme detection.",
+ "narration": "Meet Lipsync (TTS). Type text, stream it through the avatar's voice, and the mouth animates in real time via wawa-lipsync viseme detection.",
"highlight": false
},
{
@@ -1331,7 +1447,7 @@
"path": "/chat",
"section": "agent-tools",
"title": "Chat",
- "narration": "Meet Chat. Talk to your agent. Voice, text, and tool-use in one interface.",
+ "narration": "And this — Chat. Talk to your agent. Voice, text, and tool-use in one interface.",
"highlight": true,
"sectionIntro": "Once you've built agents, this is where you talk to them, manage them, and check their reputation.",
"targets": [
@@ -1343,7 +1459,7 @@
"path": "/agents",
"section": "agent-tools",
"title": "Agents Index",
- "narration": "And this — Agents Index. Browse every registered agent on three.ws.",
+ "narration": "Check out Agents Index. Browse every registered agent on three.ws.",
"highlight": true
},
{
@@ -1351,7 +1467,7 @@
"path": "/reputation",
"section": "agent-tools",
"title": "Reputation Explorer",
- "narration": "Check out Reputation Explorer. Inspect on-chain reputation scores and attestations for any agent.",
+ "narration": "This one is Reputation Explorer. Inspect on-chain reputation scores and attestations for any agent.",
"highlight": true
},
{
@@ -1359,15 +1475,7 @@
"path": "/agent-identities",
"section": "agent-tools",
"title": "Agent Identity Studio — 3D avatars for AI agents",
- "narration": "This one is Agent Identity Studio — 3D avatars for AI agents. Every AI agent deserves a face. A brand brief becomes a rigged 3D avatar plus posed studio renders — see the demo identities generated end-to-end by the pipeline.",
- "highlight": false
- },
- {
- "id": "agent",
- "path": "/agent",
- "section": "agent-tools",
- "title": "Agent Home",
- "narration": "Here we have Agent Home. Default landing for an agent instance — chat, embed, and remix actions.",
+ "narration": "Here we have Agent Identity Studio — 3D avatars for AI agents. Every AI agent deserves a face. A brand brief becomes a rigged 3D avatar plus posed studio renders — see the demo identities generated end-to-end by the pipeline.",
"highlight": false
},
{
@@ -1453,6 +1561,73 @@
"title": "Glossary",
"narration": "Check out Glossary. Plain-English definitions for the crypto and agent terms used across three.ws — no jargon required to get started.",
"highlight": false
+ },
+ {
+ "id": "onboarding-start",
+ "path": "/start",
+ "title": "Welcome to three.ws",
+ "narration": "Welcome — let's get you set up. In the next few minutes you'll make a 3D avatar, put it in a world, see it tied to real $THREE market data, and land on your own profile with your first creation on it. First stop: your avatar.",
+ "highlight": true,
+ "targets": [
+ ".wizard, .step, main h1, main"
+ ],
+ "section": "onboarding",
+ "sectionIntro": "Welcome — I'm your guide. Let's get you from a blank account to your first real creation in about five minutes."
+ },
+ {
+ "id": "onboarding-avatar",
+ "path": "/create/selfie",
+ "title": "Make your avatar",
+ "narration": "This is where you build a body. Take a selfie or describe one, and three.ws generates a rigged, animation-ready 3D avatar you own — this becomes your creator identity across the whole platform.",
+ "highlight": true,
+ "targets": [
+ ".camera, video, .capture, button, main"
+ ],
+ "section": "onboarding"
+ },
+ {
+ "id": "onboarding-world",
+ "path": "/diorama",
+ "title": "Build a world",
+ "narration": "Nice — you've got an avatar. Now give it somewhere to live. Diorama turns one sentence into a full 3D world and drops your avatar into it. This is your first world, saved to your account.",
+ "highlight": true,
+ "targets": [
+ "canvas, .diorama-canvas, main"
+ ],
+ "section": "onboarding"
+ },
+ {
+ "id": "onboarding-markets",
+ "path": "/markets",
+ "title": "Real markets, live",
+ "narration": "Your creation isn't sitting in a vacuum — three.ws is wired straight into real on-chain markets. This is live $THREE price and volume, the same rails every coin on the platform launches through.",
+ "highlight": true,
+ "targets": [
+ ".market-card, .price, canvas, main"
+ ],
+ "section": "onboarding"
+ },
+ {
+ "id": "onboarding-launch",
+ "path": "/create-agent",
+ "title": "Launch a coin (optional)",
+ "narration": "Optional step — skip it if you're not ready. If you want to take your avatar on-chain, this is where you give it a brain and, if you choose, launch its own coin. You can always come back to this later from your profile.",
+ "highlight": false,
+ "targets": [
+ "form, .wizard, .step, button, main"
+ ],
+ "section": "onboarding"
+ },
+ {
+ "id": "onboarding-profile",
+ "path": "/profile",
+ "title": "Your profile",
+ "narration": "And here's home base — your creator profile. Your avatar and your first world are already listed here, plus any streak or badge you've started earning. Everything you make from now on shows up right here. That's the whole loop — go make something.",
+ "highlight": true,
+ "targets": [
+ ".creations, .portfolio, main h1, main"
+ ],
+ "section": "onboarding"
}
]
}
diff --git a/scripts/build-tour.mjs b/scripts/build-tour.mjs
index b7e27ce44..dd2602c92 100644
--- a/scripts/build-tour.mjs
+++ b/scripts/build-tour.mjs
@@ -109,6 +109,77 @@ const CONNECTORS = [
'Over here is', "Here's", 'Meet', 'And this —', 'Check out', 'This one is',
];
+// ── Onboarding track ────────────────────────────────────────────────────────
+// A short, hand-authored second curriculum baked into the same stops list
+// (section: "onboarding"), separate from the generic per-page sections above.
+// It exists to answer the question a brand-new account actually has — "what
+// do I do first?" — by chaining the platform's real flows into one guided
+// path: make an avatar → put it in a world → see the world's coin tied to
+// live $THREE market data → optionally launch your own coin → land on your
+// own profile and see what you just made. Every stop is a real, already-
+// shipped page (no bespoke onboarding UI); the "optional" coin-launch stop is
+// clearly announced as skippable in its narration — the visitor can press
+// Next/skip it or jump straight to the final stop via the chapter map.
+const ONBOARDING_STOPS = [
+ {
+ id: 'onboarding-start',
+ path: '/start',
+ title: 'Welcome to three.ws',
+ narration:
+ "Welcome — let's get you set up. In the next few minutes you'll make a 3D avatar, put it in a world, see it tied to real $THREE market data, and land on your own profile with your first creation on it. First stop: your avatar.",
+ highlight: true,
+ targets: ['.wizard, .step, main h1, main'],
+ },
+ {
+ id: 'onboarding-avatar',
+ path: '/create/selfie',
+ title: 'Make your avatar',
+ narration:
+ "This is where you build a body. Take a selfie or describe one, and three.ws generates a rigged, animation-ready 3D avatar you own — this becomes your creator identity across the whole platform.",
+ highlight: true,
+ targets: ['.camera, video, .capture, button, main'],
+ },
+ {
+ id: 'onboarding-world',
+ path: '/diorama',
+ title: 'Build a world',
+ narration:
+ "Nice — you've got an avatar. Now give it somewhere to live. Diorama turns one sentence into a full 3D world and drops your avatar into it. This is your first world, saved to your account.",
+ highlight: true,
+ targets: ['canvas, .diorama-canvas, main'],
+ },
+ {
+ id: 'onboarding-markets',
+ path: '/markets',
+ title: 'Real markets, live',
+ narration:
+ "Your creation isn't sitting in a vacuum — three.ws is wired straight into real on-chain markets. This is live $THREE price and volume, the same rails every coin on the platform launches through.",
+ highlight: true,
+ targets: ['.market-card, .price, canvas, main'],
+ },
+ {
+ id: 'onboarding-launch',
+ path: '/create-agent',
+ title: 'Launch a coin (optional)',
+ narration:
+ "Optional step — skip it if you're not ready. If you want to take your avatar on-chain, this is where you give it a brain and, if you choose, launch its own coin. You can always come back to this later from your profile.",
+ highlight: false,
+ targets: ['form, .wizard, .step, button, main'],
+ },
+ {
+ id: 'onboarding-profile',
+ path: '/profile',
+ title: 'Your profile',
+ narration:
+ "And here's home base — your creator profile. Your avatar and your first world are already listed here, plus any streak or badge you've started earning. Everything you make from now on shows up right here. That's the whole loop — go make something.",
+ highlight: true,
+ targets: ['.creations, .portfolio, main h1, main'],
+ },
+];
+
+const ONBOARDING_SECTION_INTRO =
+ "Welcome — I'm your guide. Let's get you from a blank account to your first real creation in about five minutes.";
+
function loadPages() {
const raw = JSON.parse(readFileSync(PAGES_PATH, 'utf8'));
const bySection = new Map();
@@ -229,6 +300,23 @@ function build() {
const estimatedMinutes = minutesFor(totalWords, stops.length);
const quickMinutes = Math.max(1, minutesFor(quickWords, quickCount));
+ // Onboarding track — appended after the general sections so its stops
+ // sort last in curriculum order, but it is its own section/track and is
+ // excluded from 'full'/'quick' by buildPlaylist() (src/feature-tour/
+ // curriculum.js) via `section === 'onboarding'`.
+ sections.push({ id: 'onboarding', title: 'Getting started', intro: ONBOARDING_SECTION_INTRO });
+ let onboardingWords = 0;
+ ONBOARDING_STOPS.forEach((stop, i) => {
+ const introWords = i === 0 ? ONBOARDING_SECTION_INTRO.split(/\s+/).length : 0;
+ onboardingWords += stop.narration.split(/\s+/).length + introWords;
+ stops.push({
+ ...stop,
+ section: 'onboarding',
+ ...(i === 0 ? { sectionIntro: ONBOARDING_SECTION_INTRO } : {}),
+ });
+ });
+ const onboardingMinutes = Math.max(1, minutesFor(onboardingWords, ONBOARDING_STOPS.length));
+
return {
version: 2,
generatedAt: new Date().toISOString(),
@@ -242,7 +330,7 @@ function build() {
id: 'full',
title: 'Full tour',
description: 'Every feature, chapter by chapter.',
- stopCount: stops.length,
+ stopCount: stops.length - ONBOARDING_STOPS.length,
estimatedMinutes,
},
{
@@ -252,6 +340,13 @@ function build() {
stopCount: quickCount,
estimatedMinutes: quickMinutes,
},
+ {
+ id: 'onboarding',
+ title: 'Getting started',
+ description: 'Avatar → world → markets → your profile, in about five minutes.',
+ stopCount: ONBOARDING_STOPS.length,
+ estimatedMinutes: onboardingMinutes,
+ },
],
sections,
stops,
diff --git a/src/feature-tour/curriculum.js b/src/feature-tour/curriculum.js
index 8b58d4a04..d86520702 100644
--- a/src/feature-tour/curriculum.js
+++ b/src/feature-tour/curriculum.js
@@ -110,16 +110,30 @@ export function markCompleted() {
// ── Playlists ────────────────────────────────────────────────────────────────
// A track is a view over the curriculum: an ordered list of absolute stop
-// indices to actually visit. 'full' is every stop; 'quick' is the highlighted
-// heroes. Pure (no storage) so the sequencing logic and tests can build it
-// freely. Always non-empty — an unknown track or a curriculum with no highlights
-// falls back to the full list so the tour can never strand itself with nothing
-// to play.
+// indices to actually visit. 'full' is every stop in the general site tour
+// (section !== 'onboarding' — see below); 'quick' is 'full''s highlighted
+// heroes; 'onboarding' is the short, hand-authored new-account walkthrough
+// (section === 'onboarding', built by scripts/build-tour.mjs's
+// ONBOARDING_STOPS) — its own stops are excluded from 'full'/'quick' so the
+// two curricula never bleed into each other on the same visit. Pure (no
+// storage) so the sequencing logic and tests can build it freely. Always
+// non-empty for a curriculum that actually has matching stops — an unknown
+// track or a curriculum with no highlights falls back to the full
+// non-onboarding list so the tour can never strand itself with nothing to play.
export function buildPlaylist(curriculum, track = 'full') {
const all = curriculum.stops.map((_, i) => i);
- if (track !== 'quick') return all;
- const quick = all.filter((i) => curriculum.stops[i].highlight);
- return quick.length ? quick : all;
+ const isOnboardingStop = (i) => curriculum.stops[i].section === 'onboarding';
+
+ if (track === 'onboarding') {
+ const onboarding = all.filter(isOnboardingStop);
+ return onboarding.length ? onboarding : all;
+ }
+
+ const general = all.filter((i) => !isOnboardingStop(i));
+ const base = general.length ? general : all;
+ if (track !== 'quick') return base;
+ const quick = base.filter((i) => curriculum.stops[i].highlight);
+ return quick.length ? quick : base;
}
export function trackMeta(curriculum, track = 'full') {
@@ -127,9 +141,16 @@ export function trackMeta(curriculum, track = 'full') {
}
// Index of the first stop on a given path, or -1. Used to snap the tour back
-// onto the route when a visitor navigates by hand.
-export function stopIndexForPath(curriculum, pathname = location.pathname) {
+// onto the route when a visitor navigates by hand. When `playlist` (an array
+// of absolute stop indices, as returned by buildPlaylist) is given, only
+// those stops are considered — otherwise the onboarding curriculum and the
+// general site tour can share a path (e.g. /markets, /profile) and a
+// mid-track hand-navigation could snap onto the wrong track's stop.
+export function stopIndexForPath(curriculum, pathname = location.pathname, playlist = null) {
const target = normalizePath(pathname);
+ if (playlist) {
+ return playlist.find((i) => normalizePath(curriculum.stops[i]?.path) === target) ?? -1;
+ }
return curriculum.stops.findIndex((s) => normalizePath(s.path) === target);
}
diff --git a/src/feature-tour/director.js b/src/feature-tour/director.js
index a529b4bc9..eb361a9fa 100644
--- a/src/feature-tour/director.js
+++ b/src/feature-tour/director.js
@@ -79,6 +79,11 @@ export class TourDirector {
this.playlist = buildPlaylist(this.curriculum, this.track);
this.pos = 0;
this.index = this.playlist[0] ?? 0;
+ // Record that the account was actually offered the onboarding tour, so
+ // the server-side auto-start check (api/me.js `show_onboarding_tour`)
+ // never re-triggers it — even if the visitor abandons this run before
+ // the completion card fires.
+ if (this.track === 'onboarding') this._reportOnboardingProgress('seen');
writeState({
active: true,
index: this.index,
@@ -110,7 +115,7 @@ export class TourDirector {
this.track = state.track || 'full';
this.playlist = buildPlaylist(this.curriculum, this.track);
- const here = stopIndexForPath(this.curriculum, location.pathname);
+ const here = stopIndexForPath(this.curriculum, location.pathname, this.playlist);
// Clamp the persisted index to the live curriculum: a curriculum that lost
// stops between deploys could otherwise point past the end and silently
// finish the tour on resume.
@@ -289,10 +294,16 @@ export class TourDirector {
}
// Jump to an absolute curriculum stop from the chapter panel. If it isn't in
- // the current track's playlist, expand to the Full track so every stop is
- // reachable, then go to it.
+ // the current track's playlist, switch to whichever track actually contains
+ // it — the Onboarding track for an onboarding-section stop (its own,
+ // disjoint playlist — see buildPlaylist), or the Full track for everything
+ // else — so every stop stays reachable from the chapter map regardless of
+ // which track the visitor started on.
_jumpToAbs(abs) {
- if (this.playlist.indexOf(abs) < 0) this._applyTrack('full', { silent: true });
+ if (this.playlist.indexOf(abs) < 0) {
+ const target = this.curriculum.stops[abs]?.section === 'onboarding' ? 'onboarding' : 'full';
+ this._applyTrack(target, { silent: true });
+ }
this._go(this._posForAbs(abs));
}
@@ -531,18 +542,53 @@ export class TourDirector {
this.spotlight.highlight(null);
await this.avatar.park();
this.avatar.point();
- const outro = "And that's the whole platform. You've seen how to build an agent, give it a body and a voice, take it on-chain, and put it to work. Go make something — I'll be around if you want to walk it again.";
+ const isOnboarding = this.track === 'onboarding';
+ const outro = isOnboarding
+ ? "And that's the loop — avatar, world, markets, and now your own profile with your first creation on it. Everything you make from here shows up right there. Go make something else."
+ : "And that's the whole platform. You've seen how to build an agent, give it a body and a voice, take it on-chain, and put it to work. Go make something — I'll be around if you want to walk it again.";
await this._present(outro, token);
if (token !== this._runToken) return; // exited / navigated while the outro played
markCompleted();
clearState();
+ if (isOnboarding) this._reportOnboardingProgress('completed');
this._showCompletion();
}
+ // Persists onboarding-tour progress server-side (api/me.js) so the
+ // account-linked "should we auto-offer the tour" decision survives across
+ // browsers/devices, not just this browser's localStorage. Best-effort and
+ // silent on failure — the tour's own UX never depends on this succeeding,
+ // and a signed-out visitor (401) simply doesn't get server-side tracking.
+ _reportOnboardingProgress(flag) {
+ try {
+ fetch('/api/me', {
+ method: 'POST',
+ headers: { 'content-type': 'application/json' },
+ credentials: 'include',
+ body: JSON.stringify({ onboarding_tour: flag }),
+ keepalive: true,
+ }).catch(() => {});
+ } catch {
+ /* fetch unavailable / blocked — server-side tracking simply skips */
+ }
+ }
+
_showCompletion() {
+ const isOnboarding = this.track === 'onboarding';
const card = document.createElement('div');
card.className = 'tws-tour-done';
- card.innerHTML = `
+ card.innerHTML = isOnboarding
+ ? `
+ <div class="tws-tour-done__inner" role="dialog" aria-label="Onboarding complete">
+ <div class="tws-tour-done__title">You're set up 🎉</div>
+ <p class="tws-tour-done__body">Avatar made, world built, markets seen, profile live. Ready to take it on-chain?</p>
+ <div class="tws-tour-done__actions">
+ <a class="tws-tour-done__btn tws-tour-done__btn--primary" href="/create-agent">Launch a coin</a>
+ <a class="tws-tour-done__btn" href="/profile">See my profile</a>
+ <button class="tws-tour-done__btn" data-act="close">I'm good for now</button>
+ </div>
+ </div>`
+ : `
<div class="tws-tour-done__inner" role="dialog" aria-label="Tour complete">
<div class="tws-tour-done__title">Tour complete 🎉</div>
<p class="tws-tour-done__body">You've walked the whole of three.ws. Where to next?</p>
diff --git a/src/feature-tour/index.js b/src/feature-tour/index.js
index 96ceeded5..680d14238 100644
--- a/src/feature-tour/index.js
+++ b/src/feature-tour/index.js
@@ -57,7 +57,12 @@ export function createFeatureTour() {
if (param === 'start') {
const mode = params.get('mode');
if (mode === 'explore' || mode === 'platformer') startExplore(mode === 'platformer' ? 'platformer' : 'stroll');
- else ensure().start(params.get('track') === 'quick' ? 'quick' : 'full');
+ else {
+ const requestedTrack = params.get('track');
+ const track =
+ requestedTrack === 'quick' || requestedTrack === 'onboarding' ? requestedTrack : 'full';
+ ensure().start(track);
+ }
} else if (param === '0') {
control.exit();
} else if (param === '1' || readState().active) {
diff --git a/tests/api-me-onboarding-tour.test.js b/tests/api-me-onboarding-tour.test.js
new file mode 100644
index 000000000..d570cbd27
--- /dev/null
+++ b/tests/api-me-onboarding-tour.test.js
@@ -0,0 +1,186 @@
+// GET/POST /api/me — onboarding-tour state (creations aggregation +
+// seen/completed flags). Covers: show_onboarding_tour is true only for a
+// zero-creation account that has never been offered the tour, false once any
+// creation surface has a row or the tour was already offered; POST records
+// seen/completed timestamps and rejects an invalid flag.
+import { describe, it, expect, vi, beforeEach } from 'vitest';
+
+const sqlMock = vi.fn();
+vi.mock('../api/_lib/db.js', () => ({ sql: sqlMock, isDbUnavailableError: () => false, isDbCapacityError: () => false }));
+
+const getSessionUserMock = vi.fn();
+const authenticateBearerMock = vi.fn();
+const extractBearerMock = vi.fn();
+vi.mock('../api/_lib/auth.js', () => ({
+ getSessionUser: (...a) => getSessionUserMock(...a),
+ authenticateBearer: (...a) => authenticateBearerMock(...a),
+ extractBearer: (...a) => extractBearerMock(...a),
+}));
+
+vi.mock('../api/_lib/rate-limit.js', () => ({
+ limits: { authedReadIp: vi.fn(async () => ({ success: true })) },
+ clientIp: () => '127.0.0.1',
+}));
+vi.mock('../api/_lib/r2.js', () => ({ thumbnailUrl: (key) => (key ? `https://cdn.three.ws/${key}` : null) }));
+vi.mock('../api/_lib/env.js', () => ({ env: { APP_ORIGIN: 'http://localhost:3000' } }));
+
+const { default: meHandler } = await import('../api/me.js');
+
+function mkReq({ method = 'GET', url = '/api/me', body = null } = {}) {
+ const headers = { origin: 'http://localhost:3000' };
+ if (body != null) headers['content-type'] = 'application/json';
+ return {
+ method,
+ url,
+ headers,
+ on(event, cb) {
+ if (event === 'data' && body != null) {
+ const buf = Buffer.from(typeof body === 'string' ? body : JSON.stringify(body));
+ queueMicrotask(() => {
+ cb(buf);
+ this._endCb?.();
+ });
+ } else if (event === 'end') {
+ this._endCb = cb;
+ if (body == null) queueMicrotask(() => cb());
+ }
+ },
+ };
+}
+function mkRes() {
+ return {
+ statusCode: 200,
+ headers: {},
+ body: undefined,
+ writableEnded: false,
+ setHeader(k, v) {
+ this.headers[k.toLowerCase()] = v;
+ },
+ end(b) {
+ this.body = b;
+ this.writableEnded = true;
+ },
+ };
+}
+const parse = (res) => (res.body ? JSON.parse(res.body) : undefined);
+
+let sqlQueue = [];
+beforeEach(() => {
+ sqlQueue = [];
+ sqlMock.mockReset().mockImplementation(() => Promise.resolve(sqlQueue.length ? sqlQueue.shift() : []));
+ getSessionUserMock.mockReset().mockResolvedValue({ id: 'user-1' });
+ authenticateBearerMock.mockReset().mockResolvedValue(null);
+ extractBearerMock.mockReset().mockReturnValue(null);
+});
+
+describe('GET /api/me', () => {
+ it('requires auth', async () => {
+ getSessionUserMock.mockResolvedValue(null);
+ const req = mkReq();
+ const res = mkRes();
+ await meHandler(req, res);
+ expect(res.statusCode).toBe(401);
+ });
+
+ it('offers the onboarding tour for a brand-new account with zero creations and no seen flag', async () => {
+ sqlQueue.push([
+ {
+ id: 'user-1',
+ username: 'newbie',
+ display_name: 'Newbie',
+ created_at: '2026-07-12T00:00:00Z',
+ onboarding_tour_seen_at: null,
+ onboarding_tour_completed_at: null,
+ thumbnail_key: null,
+ avatars_count: 0,
+ agents_count: 0,
+ forge_count: 0,
+ diorama_count: 0,
+ },
+ ]);
+ const req = mkReq();
+ const res = mkRes();
+ await meHandler(req, res);
+ expect(res.statusCode).toBe(200);
+ const body = parse(res);
+ expect(body.user.creations_count).toBe(0);
+ expect(body.user.show_onboarding_tour).toBe(true);
+ });
+
+ it('does not offer the tour once the account has any creation', async () => {
+ sqlQueue.push([
+ {
+ id: 'user-1',
+ username: 'maker',
+ display_name: 'Maker',
+ created_at: '2026-07-12T00:00:00Z',
+ onboarding_tour_seen_at: null,
+ onboarding_tour_completed_at: null,
+ thumbnail_key: null,
+ avatars_count: 1,
+ agents_count: 0,
+ forge_count: 0,
+ diorama_count: 0,
+ },
+ ]);
+ const req = mkReq();
+ const res = mkRes();
+ await meHandler(req, res);
+ const body = parse(res);
+ expect(body.user.creations_count).toBe(1);
+ expect(body.user.show_onboarding_tour).toBe(false);
+ });
+
+ it('does not re-offer the tour once already seen, even with zero creations', async () => {
+ sqlQueue.push([
+ {
+ id: 'user-1',
+ username: 'dismissed',
+ display_name: 'Dismissed',
+ created_at: '2026-07-12T00:00:00Z',
+ onboarding_tour_seen_at: '2026-07-11T00:00:00Z',
+ onboarding_tour_completed_at: null,
+ thumbnail_key: null,
+ avatars_count: 0,
+ agents_count: 0,
+ forge_count: 0,
+ diorama_count: 0,
+ },
+ ]);
+ const req = mkReq();
+ const res = mkRes();
+ await meHandler(req, res);
+ const body = parse(res);
+ expect(body.user.show_onboarding_tour).toBe(false);
+ });
+});
+
+describe('POST /api/me', () => {
+ it('rejects an invalid onboarding_tour flag', async () => {
+ const req = mkReq({ method: 'POST', body: { onboarding_tour: 'nope' } });
+ const res = mkRes();
+ await meHandler(req, res);
+ expect(res.statusCode).toBe(400);
+ });
+
+ it('records the seen timestamp', async () => {
+ sqlQueue.push([{ onboarding_tour_seen_at: '2026-07-12T00:00:00Z', onboarding_tour_completed_at: null }]);
+ const req = mkReq({ method: 'POST', body: { onboarding_tour: 'seen' } });
+ const res = mkRes();
+ await meHandler(req, res);
+ expect(res.statusCode).toBe(200);
+ const body = parse(res);
+ expect(body.onboarding_tour_seen_at).toBeTruthy();
+ expect(body.onboarding_tour_completed_at).toBeNull();
+ });
+
+ it('records the completed timestamp', async () => {
+ sqlQueue.push([{ onboarding_tour_seen_at: '2026-07-12T00:00:00Z', onboarding_tour_completed_at: '2026-07-12T00:10:00Z' }]);
+ const req = mkReq({ method: 'POST', body: { onboarding_tour: 'completed' } });
+ const res = mkRes();
+ await meHandler(req, res);
+ expect(res.statusCode).toBe(200);
+ const body = parse(res);
+ expect(body.onboarding_tour_completed_at).toBeTruthy();
+ });
+});
diff --git a/tests/feature-tour-curriculum.test.js b/tests/feature-tour-curriculum.test.js
index 3060de4df..b9a971e02 100644
--- a/tests/feature-tour-curriculum.test.js
+++ b/tests/feature-tour-curriculum.test.js
@@ -15,18 +15,24 @@ import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
import { describe, it, expect, beforeAll, afterAll } from 'vitest';
import { JSDOM } from 'jsdom';
-import { buildPlaylist, trackMeta } from '../src/feature-tour/curriculum.js';
+import { buildPlaylist, trackMeta, stopIndexForPath } from '../src/feature-tour/curriculum.js';
const curriculum = JSON.parse(
readFileSync(resolve(__dirname, '../public/tour/curriculum.json'), 'utf8'),
);
+// The general site tour ('full'/'quick') and the onboarding walkthrough share
+// one curriculum file but are disjoint by section: everything with
+// section === 'onboarding' belongs only to the 'onboarding' track.
+const generalStops = curriculum.stops.filter((s) => s.section !== 'onboarding');
+const onboardingStops = curriculum.stops.filter((s) => s.section === 'onboarding');
+
describe('generated curriculum', () => {
- it('has stops, sections, and both tracks', () => {
+ it('has stops, sections, and all three tracks', () => {
expect(curriculum.stops.length).toBeGreaterThan(0);
expect(curriculum.sections.length).toBeGreaterThan(0);
const ids = (curriculum.tracks || []).map((t) => t.id).sort();
- expect(ids).toEqual(['full', 'quick']);
+ expect(ids).toEqual(['full', 'onboarding', 'quick']);
});
it('marks every stop with a boolean highlight flag', () => {
@@ -36,43 +42,64 @@ describe('generated curriculum', () => {
});
it('keeps track metadata consistent with the stops', () => {
- const highlights = curriculum.stops.filter((s) => s.highlight).length;
- expect(trackMeta(curriculum, 'full').stopCount).toBe(curriculum.stops.length);
+ const highlights = generalStops.filter((s) => s.highlight).length;
+ expect(trackMeta(curriculum, 'full').stopCount).toBe(generalStops.length);
expect(trackMeta(curriculum, 'quick').stopCount).toBe(highlights);
+ expect(trackMeta(curriculum, 'onboarding').stopCount).toBe(onboardingStops.length);
// Quick is a true subset and a meaningful sample of the whole.
expect(highlights).toBeGreaterThan(0);
- expect(highlights).toBeLessThan(curriculum.stops.length);
+ expect(highlights).toBeLessThan(generalStops.length);
});
- it('includes a highlight at the start of every chapter', () => {
+ it('includes a highlight at the start of every general chapter', () => {
for (const section of curriculum.sections) {
+ if (section.id === 'onboarding') continue;
const first = curriculum.stops.find((s) => s.section === section.id);
expect(first.highlight, `first stop of ${section.id} should be a highlight`).toBe(true);
}
});
+
+ it('chains a real, ordered onboarding path from avatar to profile', () => {
+ expect(onboardingStops.length).toBeGreaterThanOrEqual(5);
+ const paths = onboardingStops.map((s) => s.path);
+ expect(paths[0]).toBe('/start');
+ expect(paths[paths.length - 1]).toBe('/profile');
+ expect(paths).toContain('/diorama');
+ expect(paths).toContain('/markets');
+ // Every onboarding stop is a real, already-shipped page path, and each
+ // carries narration (no placeholder copy).
+ for (const stop of onboardingStops) {
+ expect(stop.narration.length).toBeGreaterThan(20);
+ }
+ });
});
describe('buildPlaylist', () => {
- it('returns every stop index for the full track', () => {
+ it('returns every non-onboarding stop index for the full track', () => {
const full = buildPlaylist(curriculum, 'full');
- expect(full).toHaveLength(curriculum.stops.length);
- expect(full[0]).toBe(0);
- expect(full[full.length - 1]).toBe(curriculum.stops.length - 1);
+ expect(full).toHaveLength(generalStops.length);
+ expect(full.every((i) => curriculum.stops[i].section !== 'onboarding')).toBe(true);
});
- it('returns only highlighted indices for the quick track', () => {
+ it('returns only highlighted, non-onboarding indices for the quick track', () => {
const quick = buildPlaylist(curriculum, 'quick');
- expect(quick.length).toBe(curriculum.stops.filter((s) => s.highlight).length);
+ expect(quick.length).toBe(generalStops.filter((s) => s.highlight).length);
expect(quick.every((i) => curriculum.stops[i].highlight)).toBe(true);
+ expect(quick.every((i) => curriculum.stops[i].section !== 'onboarding')).toBe(true);
// Strictly increasing — playlists preserve curriculum order.
for (let i = 1; i < quick.length; i++) expect(quick[i]).toBeGreaterThan(quick[i - 1]);
- // The first stop (home) anchors both tracks.
- expect(quick[0]).toBe(0);
});
- it('defaults to the full track for an unknown track id', () => {
- expect(buildPlaylist(curriculum, 'nope')).toHaveLength(curriculum.stops.length);
- expect(buildPlaylist(curriculum)).toHaveLength(curriculum.stops.length);
+ it('returns only the onboarding stops, in order, for the onboarding track', () => {
+ const onboarding = buildPlaylist(curriculum, 'onboarding');
+ expect(onboarding.length).toBe(onboardingStops.length);
+ expect(onboarding.every((i) => curriculum.stops[i].section === 'onboarding')).toBe(true);
+ for (let i = 1; i < onboarding.length; i++) expect(onboarding[i]).toBeGreaterThan(onboarding[i - 1]);
+ });
+
+ it('defaults to the full (non-onboarding) track for an unknown track id', () => {
+ expect(buildPlaylist(curriculum, 'nope')).toHaveLength(generalStops.length);
+ expect(buildPlaylist(curriculum)).toHaveLength(generalStops.length);
});
it('falls back to the full list when no stops are highlighted', () => {
@@ -81,6 +108,27 @@ describe('buildPlaylist', () => {
});
});
+describe('stopIndexForPath with a playlist scope', () => {
+ it('resolves /markets to the onboarding stop when scoped to the onboarding playlist', () => {
+ const onboarding = buildPlaylist(curriculum, 'onboarding');
+ const idx = stopIndexForPath(curriculum, '/markets', onboarding);
+ expect(idx).toBeGreaterThanOrEqual(0);
+ expect(curriculum.stops[idx].section).toBe('onboarding');
+ });
+
+ it('resolves /markets to a general stop when scoped to the full playlist', () => {
+ const full = buildPlaylist(curriculum, 'full');
+ const idx = stopIndexForPath(curriculum, '/markets', full);
+ expect(idx).toBeGreaterThanOrEqual(0);
+ expect(curriculum.stops[idx].section).not.toBe('onboarding');
+ });
+
+ it('falls back to a global search when no playlist is given', () => {
+ const idx = stopIndexForPath(curriculum, '/markets');
+ expect(idx).toBeGreaterThanOrEqual(0);
+ });
+});
+
describe('free-roam activation guard', () => {
let dom;
let isInteractiveTarget;