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: Update changelog with fixes for avatar profile pages and Coin Clash functionality

udvk075f7d86498f
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6d89871c5..e64186aac 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,8 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
## 2026-06-25
- **Avatar embodiment: expressions, lipsync, and expanded emotes** — Avatars on three.ws now feel alive. Facial expressions (happy, sad, surprised, angry, thinking, neutral) are driven by blendshapes or brow-bone fallback — every emotion is automatically matched to the right face and a body gesture. Audio-driven lipsync syncs mouth movement to speech in real time, with a text-envelope fallback when no audio is available. The animation library gained new emotes (nod, shrug, jog, celebrate) and the state machine adds listen and think postures for more natural conversational presence. All existing clip IDs and AnimationManager APIs are unchanged. (`/embodiment`) `[feature]`
+- **Avatar profile pages load again** — Every avatar page (three.ws/avatars/…) was failing to load its model and details because the underlying avatar endpoint wasn't wired up — the request fell through to a generic 404 instead of reaching the avatar service. The route is now connected, so avatar pages fetch the 3D model, metadata, and related avatars correctly again. `[fix]`
+- **Coin Clash is back online** — The Coin Clash arena couldn't load — round state, the live bracket, enlistment, rallying, and the leaderboard all failed because the backend routes weren't wired up. Every Clash endpoint now resolves correctly, so the page loads battles, lets you enlist and rally for your faction, and renders the leaderboard in real time again. (`/clash`) `[fix]`
- **Homepage live preview always renders a real agent** — The hero stage on the homepage no longer shows a "live preview couldn't load" card when a single avatar endpoint is unavailable. It now falls back through the live explore feed — which returns ready-to-render models directly — and finally to a bundled avatar, so the 3D agent on the landing page renders every time. `[fix]`
- **Pose studio: HumanIK rig support, 3 new poses, FK-verified preset geometry** — The universal rig canonicalizer now handles Autodesk HumanIK / MotionBuilder / Maya character namespaces (`Character1:Hips`, `subject:LeftArm`, nested `char:ns:Hips`) so mocap-exported avatars and Maya-rigged characters drive the animation library without any manual bone renaming. Three new poses land in the /pose studio and the get_pose_seed MCP tool — Salute (Standing), Fighting stance (Action), and Facepalm (Expressive) — each validated against real mannequin forward kinematics so the joint rotations are geometrically correct, not guessed. (`/pose`) `[feature, improvement]`
- **Production error sweep: tier page, image understanding, and on-chain indexing** — We pulled a full day of production logs and fixed what was actually failing. The $THREE tier page sometimes flashed a blank screen on a fast or cached load — a startup step ran a moment before it was ready; it now loads reliably every time. Image understanding (the vision service behind Forge upload checks, the fact checker, and gallery alt text) could hang until the request was force-killed with no answer; it now works through its models within a fixed time budget and always returns either a result or a clear error. Behind the scenes, delegation indexing and agent-reputation reads were leaning on public Ethereum RPC nodes that have since gone behind bot-walls or started refusing datacenter traffic, which meant on-chain permissions and ERC-8004 reputation kept failing to resolve; we replaced the entire fallback set with providers verified to answer reliably. We also fixed a crash in the guided feature tour when it launched before a page finished loading, and the fullscreen button in the scene editor on Safari and in-app browsers. No action needed. `[fix, infra]`
diff --git a/api/launchpad/list.js b/api/launchpad/list.js
new file mode 100644
index 000000000..a2cc17375
--- /dev/null
+++ b/api/launchpad/list.js
@@ -0,0 +1,97 @@
+// GET /api/launchpad/list?limit=24&offset=0[&template=token-launchpad]
+//
+// Public showcase feed of published Launchpad Studio pages — powers the
+// "Built on three.ws" gallery on /launchpad so the surface opens with real
+// proof instead of an empty editor. Read-only, no auth: every row is already
+// public (is_public = true) and served at /p/<slug>.
+//
+// Returns only the presentation-safe projection of each page's config (no
+// owner secret, no gated scene URL) plus the live view_count, so the gallery
+// can sort by "most viewed" without a second round trip. Cached briefly at the
+// edge — the showcase shifts slowly and many tabs hit it on page load.
+
+import { sql } from '../_lib/db.js';
+import { cors, error, json, method, wrap } from '../_lib/http.js';
+
+const TEMPLATES = ['token-launchpad', 'paid-concierge', 'gated-showroom'];
+
+// Map a stored page row to the public card projection the gallery renders.
+// Pulls a single representative image (token logo when present) and the brand
+// color so a card is never a blank rectangle even before the 3D avatar loads.
+function toCard(row) {
+ const c = row.config || {};
+ const identity = c.identity || {};
+ const copy = c.copy || {};
+ const token = c.token || {};
+ const monetize = c.monetize || {};
+ return {
+ slug: row.slug,
+ template: row.template,
+ url: `/p/${row.slug}`,
+ headline: copy.headline || token.name || row.slug,
+ tagline: copy.tagline || '',
+ brand: typeof identity.brand === 'string' ? identity.brand : '#ffffff',
+ theme: identity.theme === 'dark' ? 'dark' : 'light',
+ avatarSrc: c.avatar?.src || '',
+ image: token.imageUrl || '',
+ token: token.name || token.ticker
+ ? { name: token.name || '', ticker: token.ticker || '', mint: token.mint || '' }
+ : null,
+ price: Number(monetize.price) > 0
+ ? { amount: Number(monetize.price), currency: monetize.currency || '', chain: monetize.chain || '' }
+ : null,
+ viewCount: row.view_count || 0,
+ updatedAt: row.updated_at,
+ };
+}
+
+export default wrap(async (req, res) => {
+ if (cors(req, res, { methods: 'GET,OPTIONS', origins: '*' })) return;
+ if (!method(req, res, ['GET'])) return;
+
+ const url = new URL(req.url, 'http://x');
+ const limit = Math.min(Math.max(1, Number(url.searchParams.get('limit')) || 24), 60);
+ const offset = Math.max(0, Number(url.searchParams.get('offset')) || 0);
+ const template = url.searchParams.get('template') || '';
+ if (template && !TEMPLATES.includes(template)) {
+ return error(res, 400, 'validation_error', 'unknown template filter');
+ }
+
+ // Over-fetch one row to derive has_more without a count(*). Newest-updated
+ // first so freshly published pages lead the showcase. Token launchpads that
+ // have actually minted (token_mint set) and busy pages bubble up via the
+ // secondary view_count sort.
+ const rows = template
+ ? await sql`
+ SELECT slug, template, config, view_count, updated_at
+ FROM launchpad_pages
+ WHERE is_public = true AND template = ${template}
+ ORDER BY (token_mint IS NOT NULL) DESC, updated_at DESC
+ LIMIT ${limit + 1} OFFSET ${offset}
+ `
+ : await sql`
+ SELECT slug, template, config, view_count, updated_at
+ FROM launchpad_pages
+ WHERE is_public = true
+ ORDER BY (token_mint IS NOT NULL) DESC, updated_at DESC
+ LIMIT ${limit + 1} OFFSET ${offset}
+ `;
+
+ const hasMore = rows.length > limit;
+ const pages = rows.slice(0, limit).map(toCard);
+
+ // Cheap aggregate so the hero can show a real "N pages live" stat. Counts all
+ // public pages; harmless if it races slightly with the list above.
+ let total = null;
+ if (offset === 0) {
+ const [agg] = await sql`SELECT count(*)::int AS n FROM launchpad_pages WHERE is_public = true`;
+ total = agg?.n ?? null;
+ }
+
+ return json(
+ res,
+ 200,
+ { pages, has_more: hasMore, offset, limit, template: template || null, total },
+ { 'cache-control': 'public, s-maxage=30, stale-while-revalidate=300' },
+ );
+});
diff --git a/data/changelog.json b/data/changelog.json
index 2319730ac..3d2950820 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,19 @@
{
"$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-06-25",
+ "title": "Avatar profile pages load again",
+ "summary": "Every avatar page (three.ws/avatars/…) was failing to load its model and details because the underlying avatar endpoint wasn't wired up — the request fell through to a generic 404 instead of reaching the avatar service. The route is now connected, so avatar pages fetch the 3D model, metadata, and related avatars correctly again.",
+ "tags": ["fix"]
+ },
+ {
+ "date": "2026-06-25",
+ "title": "Coin Clash is back online",
+ "summary": "The Coin Clash arena couldn't load — round state, the live bracket, enlistment, rallying, and the leaderboard all failed because the backend routes weren't wired up. Every Clash endpoint now resolves correctly, so the page loads battles, lets you enlist and rally for your faction, and renders the leaderboard in real time again.",
+ "tags": ["fix"],
+ "link": "/clash"
+ },
{
"date": "2026-06-25",
"title": "Homepage live preview always renders a real agent",
diff --git a/package-lock.json b/package-lock.json
index ffaad9926..50e42ab0a 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1245,10 +1245,456 @@
"bin": {
"3d-agent-mcp": "src/index.js"
},
+ "devDependencies": {
+ "@modelcontextprotocol/ext-apps": "^1.7.4",
+ "esbuild": "^0.28.0"
+ },
"engines": {
"node": ">=20"
}
},
+ "mcp-server/node_modules/@esbuild/aix-ppc64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.1.tgz",
+ "integrity": "sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/android-arm": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.1.tgz",
+ "integrity": "sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/android-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.1.tgz",
+ "integrity": "sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/android-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.1.tgz",
+ "integrity": "sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/darwin-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.1.tgz",
+ "integrity": "sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/darwin-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.1.tgz",
+ "integrity": "sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.1.tgz",
+ "integrity": "sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/freebsd-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.1.tgz",
+ "integrity": "sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/linux-arm": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.1.tgz",
+ "integrity": "sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/linux-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.1.tgz",
+ "integrity": "sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/linux-ia32": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.1.tgz",
+ "integrity": "sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/linux-loong64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.1.tgz",
+ "integrity": "sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/linux-mips64el": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.1.tgz",
+ "integrity": "sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ==",
+ "cpu": [
+ "mips64el"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/linux-ppc64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.1.tgz",
+ "integrity": "sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/linux-riscv64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.1.tgz",
+ "integrity": "sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/linux-s390x": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.1.tgz",
+ "integrity": "sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/linux-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.1.tgz",
+ "integrity": "sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/netbsd-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.1.tgz",
+ "integrity": "sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/netbsd-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.1.tgz",
+ "integrity": "sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/openbsd-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.1.tgz",
+ "integrity": "sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/openbsd-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.1.tgz",
+ "integrity": "sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/openharmony-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.1.tgz",
+ "integrity": "sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/sunos-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.1.tgz",
+ "integrity": "sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/win32-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.1.tgz",
+ "integrity": "sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/win32-ia32": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.1.tgz",
+ "integrity": "sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "mcp-server/node_modules/@esbuild/win32-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.1.tgz",
+ "integrity": "sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
"mcp-server/node_modules/@ethereum-attestation-service/eas-sdk": {
"version": "0.29.1",
"resolved": "https://registry.npmjs.org/@ethereum-attestation-service/eas-sdk/-/eas-sdk-0.29.1.tgz",
@@ -1310,6 +1756,48 @@
"@ethersproject/wordlists": "5.8.0"
}
},
+ "mcp-server/node_modules/esbuild": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.1.tgz",
+ "integrity": "sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.28.1",
+ "@esbuild/android-arm": "0.28.1",
+ "@esbuild/android-arm64": "0.28.1",
+ "@esbuild/android-x64": "0.28.1",
+ "@esbuild/darwin-arm64": "0.28.1",
+ "@esbuild/darwin-x64": "0.28.1",
+ "@esbuild/freebsd-arm64": "0.28.1",
+ "@esbuild/freebsd-x64": "0.28.1",
+ "@esbuild/linux-arm": "0.28.1",
+ "@esbuild/linux-arm64": "0.28.1",
+ "@esbuild/linux-ia32": "0.28.1",
+ "@esbuild/linux-loong64": "0.28.1",
+ "@esbuild/linux-mips64el": "0.28.1",
+ "@esbuild/linux-ppc64": "0.28.1",
+ "@esbuild/linux-riscv64": "0.28.1",
+ "@esbuild/linux-s390x": "0.28.1",
+ "@esbuild/linux-x64": "0.28.1",
+ "@esbuild/netbsd-arm64": "0.28.1",
+ "@esbuild/netbsd-x64": "0.28.1",
+ "@esbuild/openbsd-arm64": "0.28.1",
+ "@esbuild/openbsd-x64": "0.28.1",
+ "@esbuild/openharmony-arm64": "0.28.1",
+ "@esbuild/sunos-x64": "0.28.1",
+ "@esbuild/win32-arm64": "0.28.1",
+ "@esbuild/win32-ia32": "0.28.1",
+ "@esbuild/win32-x64": "0.28.1"
+ }
+ },
"multiplayer": {
"name": "@three-ws/multiplayer",
"version": "0.1.0",
diff --git a/pages/coin-intel.html b/pages/coin-intel.html
index 468acd14c..ef8a6b3d1 100644
--- a/pages/coin-intel.html
+++ b/pages/coin-intel.html
@@ -640,9 +640,14 @@
state.coins = data.coins || [];
$('#cnt-radar').textContent = state.degraded ? '' : state.coins.length;
if (state.degraded || !state.coins.length) {
- grid.innerHTML = emptyState(state.degraded);
+ // Distinguish "filtered to nothing" from "the index is genuinely empty".
+ // With no active filters and zero coins, the engine simply hasn't
+ // observed anything yet — show the warming-up state, not a misleading
+ // "no coins match these filters" (there are no filters to loosen).
+ const hasFilters = !!(state.category || state.verdict || state.minq || state.q);
+ grid.innerHTML = emptyState(state.degraded || !hasFilters);
const rb = $('#ci-empty-retry');
- if (rb) rb.addEventListener('click', () => { if (!state.degraded) { state.category=state.verdict=state.minq=state.q=''; $('#ci-q').value=''; $('#ci-verdict').value=''; $('#ci-minq').value=''; renderCatChips(); } loadRadar(); });
+ if (rb) rb.addEventListener('click', () => { if (hasFilters && !state.degraded) { state.category=state.verdict=state.minq=state.q=''; $('#ci-q').value=''; $('#ci-verdict').value=''; $('#ci-minq').value=''; renderCatChips(); } loadRadar(); });
} else {
grid.innerHTML = '';
state.coins.forEach(c => grid.appendChild(coinCard(c)));
@@ -995,7 +1000,9 @@
$('#ci-stats').innerHTML = [
['Observed', cov.observed], ['Classified', cov.classified], ['Labeled', cov.labeled], ['Graduated', grad],
].map(([l,v]) => `<div class="ci-stat"><div class="v">${v}</div><div class="l">${l}</div></div>`).join('');
- $('#ci-hero').dataset.degraded = data.degraded ? '1' : '0';
+ // Amber pulse when the engine is degraded OR has observed nothing yet
+ // (worker not reporting) — never a false "all-green live" with no data.
+ $('#ci-hero').dataset.degraded = (data.degraded || cov.observed === 0) ? '1' : '0';
} catch { $('#ci-hero').dataset.degraded = '1'; }
}
diff --git a/public/changelog.json b/public/changelog.json
index bd1f77006..6f92e998b 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-25T23:38:47.439Z",
+ "generated_at": "2026-06-25T23:42:54.066Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -26,6 +26,26 @@
"feature"
]
},
+ {
+ "date": "2026-06-25",
+ "type": "update",
+ "title": "Avatar profile pages load again",
+ "summary": "Every avatar page (three.ws/avatars/…) was failing to load its model and details because the underlying avatar endpoint wasn't wired up — the request fell through to a generic 404 instead of reaching the avatar service. The route is now connected, so avatar pages fetch the 3D model, metadata, and related avatars correctly again.",
+ "link": null,
+ "tags": [
+ "fix"
+ ]
+ },
+ {
+ "date": "2026-06-25",
+ "type": "update",
+ "title": "Coin Clash is back online",
+ "summary": "The Coin Clash arena couldn't load — round state, the live bracket, enlistment, rallying, and the leaderboard all failed because the backend routes weren't wired up. Every Clash endpoint now resolves correctly, so the page loads battles, lets you enlist and rally for your faction, and renders the leaderboard in real time again.",
+ "link": "/clash",
+ "tags": [
+ "fix"
+ ]
+ },
{
"date": "2026-06-25",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 5289e6543..0fa7803b9 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -22,6 +22,22 @@
<category>feature</category>
<description>Avatars on three.ws now feel alive. Facial expressions (happy, sad, surprised, angry, thinking, neutral) are driven by blendshapes or brow-bone fallback — every emotion is automatically matched to the right face and a body gesture. Audio-driven lipsync syncs mouth movement to speech in real time, with a text-envelope fallback when no audio is available. The animation library gained new emotes (nod, shrug, jog, celebrate) and the state machine adds listen and think postures for more natural conversational presence. All existing clip IDs and AnimationManager APIs are unchanged.</description>
</item>
+ <item>
+ <title>Avatar profile pages load again</title>
+ <link>https://three.ws/changelog</link>
+ <guid isPermaLink="false">2026-06-25:Avatar profile pages load again</guid>
+ <pubDate>Thu, 25 Jun 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>Every avatar page (three.ws/avatars/…) was failing to load its model and details because the underlying avatar endpoint wasn't wired up — the request fell through to a generic 404 instead of reaching the avatar service. The route is now connected, so avatar pages fetch the 3D model, metadata, and related avatars correctly again.</description>
+ </item>
+ <item>
+ <title>Coin Clash is back online</title>
+ <link>https://three.ws/clash</link>
+ <guid isPermaLink="false">2026-06-25:Coin Clash is back online</guid>
+ <pubDate>Thu, 25 Jun 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>The Coin Clash arena couldn't load — round state, the live bracket, enlistment, rallying, and the leaderboard all failed because the backend routes weren't wired up. Every Clash endpoint now resolves correctly, so the page loads battles, lets you enlist and rally for your faction, and renders the leaderboard in real time again.</description>
+ </item>
<item>
<title>Homepage live preview always renders a real agent</title>
<link>https://three.ws/changelog</link>
diff --git a/public/features.json b/public/features.json
index 13cce28d9..fb525f490 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-25T23:22:57.464Z",
+ "generated_at": "2026-06-25T23:42:54.047Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/src/animation-library.js b/src/animation-library.js
index 00b30d29b..aa139a0e4 100644
--- a/src/animation-library.js
+++ b/src/animation-library.js
@@ -86,6 +86,14 @@ export class AnimationLibrary {
this._previewing = false;
this._state = 'loading';
+ // Resolves once mount() has finished loading the manifest (success or
+ // failure) — openByName() awaits this so a ?anim=<preset> deep-link works
+ // even before the gallery has rendered.
+ this._readyResolve = null;
+ this._ready = new Promise((resolve) => {
+ this._readyResolve = resolve;
+ });
+
// Text-to-animation job state (token-based abort like the forge panels).
this._genToken = 0;
this._genTimer = null;
@@ -114,9 +122,28 @@ export class AnimationLibrary {
} catch (err) {
log.warn('[AnimationLibrary] manifest load failed:', err.message);
this._setState('error-load');
+ } finally {
+ this._readyResolve?.();
}
}
+ /**
+ * Open a preset by its manifest name and play it on the current rig. This is
+ * the ?anim= deep-link path for built-in library clips (keyed by name, e.g.
+ * "idle" or "av-boxer-dance") — the counterpart to PoseLibrary.openById() for
+ * saved community clips, which are keyed by API UUID. Waits for the manifest
+ * to finish loading first. Throws if no preset carries that name; when no
+ * compatible rig is loaded, preview() surfaces its own "load an avatar"
+ * guidance rather than throwing.
+ * @param {string} name manifest clip name
+ */
+ async openByName(name) {
+ await this._ready;
+ const def = this._defs.find((d) => d.name === name);
+ if (!def) throw new Error(`No built-in animation named “${name}”`);
+ return this.preview(def);
+ }
+
/** Called by the host when the active rig changes (avatar load / mannequin). */
onRigChanged() {
this._genToken++; // a generation in flight was for the previous rig
diff --git a/src/launchpad/landing.js b/src/launchpad/landing.js
new file mode 100644
index 000000000..d4fbf4037
--- /dev/null
+++ b/src/launchpad/landing.js
@@ -0,0 +1,512 @@
+// Launchpad landing — the front door to three.ws/launchpad.
+//
+// Before this module, /launchpad dropped a cold visitor straight into a 3-pane
+// CMS editor with no context and no live data. This module makes the surface
+// "make sense": it opens with a real value prop, LIVE launches minted by
+// three.ws agents, social proof (a gallery of pages people actually built), and
+// a template chooser — then mounts the existing Launchpad Studio *in place* the
+// moment the visitor chooses to build. Deep links that target the editor
+// directly (?slug=, ?template=, ?wallet=, ?avatar=, ?build=, ?studio=) skip the
+// landing entirely so CMS edit + create-flow handoffs keep working unchanged.
+//
+// Public API: import { mountLaunchpadLanding } from '/src/launchpad/landing.js';
+// mountLaunchpadLanding(document.getElementById('root'));
+
+import { log } from '../shared/log.js';
+
+const TEMPLATES = [
+ {
+ id: 'token-launchpad',
+ label: 'Token Launchpad',
+ tagline: 'White-label Pump.fun launcher with a 3D avatar host',
+ blurb: 'A hosted page where visitors mint your coin in one click. Creator fees route straight to your wallet.',
+ icon: '◎',
+ accent: '#22c55e',
+ cta: 'Build a token page',
+ },
+ {
+ id: 'paid-concierge',
+ label: 'Paid Concierge',
+ tagline: '3D agent that answers questions for x402 USDC',
+ blurb: 'Charge per question. Visitors pay in USDC, settled instantly to you; the agent replies on the page.',
+ icon: '✦',
+ accent: '#6366f1',
+ cta: 'Build a concierge',
+ },
+ {
+ id: 'gated-showroom',
+ label: 'Gated 3D Showroom',
+ tagline: 'Pay-to-enter glTF gallery with an avatar greeter',
+ blurb: 'A one-time USDC pass unlocks a private 3D scene. For product reveals, premium models, NFT preview rooms.',
+ icon: '◆',
+ accent: '#ec4899',
+ cta: 'Build a showroom',
+ },
+];
+
+const TEMPLATE_BADGE = {
+ 'token-launchpad': { label: 'Token', accent: '#22c55e' },
+ 'paid-concierge': { label: 'Concierge', accent: '#6366f1' },
+ 'gated-showroom': { label: 'Showroom', accent: '#ec4899' },
+};
+
+const STUDIO_TRIGGER_PARAMS = ['slug', 'template', 'wallet', 'avatar', 'website', 'build', 'studio'];
+
+// ──────────────────────────────────────────────────────────────────────────
+// Helpers
+// ──────────────────────────────────────────────────────────────────────────
+const esc = (s) =>
+ String(s ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }[c]));
+
+function monogram(s) {
+ const t = String(s || '?').replace(/[^a-z0-9]/gi, '').slice(0, 3).toUpperCase();
+ return t || '?';
+}
+function timeAgo(iso) {
+ if (!iso) return '';
+ const then = new Date(iso).getTime();
+ if (!isFinite(then)) return '';
+ const s = Math.max(0, Math.floor((Date.now() - then) / 1000));
+ if (s < 60) return `${s}s ago`;
+ const m = Math.floor(s / 60);
+ if (m < 60) return `${m}m ago`;
+ const h = Math.floor(m / 60);
+ if (h < 24) return `${h}h ago`;
+ return `${Math.floor(h / 24)}d ago`;
+}
+function fmtCount(n) {
+ const v = Number(n) || 0;
+ if (v >= 1000) return `${(v / 1000).toFixed(v >= 10000 ? 0 : 1)}k`;
+ return String(v);
+}
+
+async function getJson(url, { timeout = 9000 } = {}) {
+ const ctrl = new AbortController();
+ const t = setTimeout(() => ctrl.abort(), timeout);
+ try {
+ const r = await fetch(url, { signal: ctrl.signal, credentials: 'include' });
+ if (!r.ok) throw new Error(`${url} → ${r.status}`);
+ return await r.json();
+ } finally {
+ clearTimeout(t);
+ }
+}
+
+// ──────────────────────────────────────────────────────────────────────────
+// Styles
+// ──────────────────────────────────────────────────────────────────────────
+const STYLE = `
+ .lp-land { --bg:#0b0d10; --panel:#0f1216; --line:#1c2128; --line2:#262b32;
+ --fg:#f4f4f5; --muted:#a1a1aa; --dim:#71717a; --accent:#ec4899;
+ min-height:100vh; background:var(--bg); color:var(--fg);
+ font:15px/1.5 system-ui,-apple-system,sans-serif; }
+ .lp-wrap { max-width:1160px; margin:0 auto; padding:0 24px; }
+
+ /* Hero */
+ .lp-hero { position:relative; overflow:hidden; padding:64px 0 44px; border-bottom:1px solid var(--line); }
+ .lp-hero::before { content:''; position:absolute; inset:-40% 0 auto 0; height:520px; pointer-events:none;
+ background:radial-gradient(60% 80% at 70% 0%, rgba(236,72,153,0.16), transparent 70%),
+ radial-gradient(50% 70% at 20% 10%, rgba(99,102,241,0.14), transparent 70%); }
+ .lp-hero-inner { position:relative; display:grid; grid-template-columns:1.15fr 0.85fr; gap:40px; align-items:center; }
+ .lp-eyebrow { display:inline-flex; align-items:center; gap:8px; padding:5px 12px; border-radius:999px;
+ font-size:12px; font-weight:600; letter-spacing:0.04em; text-transform:uppercase; color:#fbcfe8;
+ background:rgba(236,72,153,0.1); border:1px solid rgba(236,72,153,0.25); }
+ .lp-eyebrow .pulse { width:7px; height:7px; border-radius:50%; background:#ec4899; box-shadow:0 0 0 0 rgba(236,72,153,0.6);
+ animation:lp-pulse 1.8s infinite; }
+ @keyframes lp-pulse { 0%{box-shadow:0 0 0 0 rgba(236,72,153,0.5)} 70%{box-shadow:0 0 0 8px rgba(236,72,153,0)} 100%{box-shadow:0 0 0 0 rgba(236,72,153,0)} }
+ .lp-hero h1 { margin:18px 0 14px; font-size:clamp(34px,5vw,56px); line-height:1.04; letter-spacing:-0.03em; font-weight:800; }
+ .lp-hero h1 em { font-style:normal; background:linear-gradient(120deg,#fff,#ec4899 70%); -webkit-background-clip:text; background-clip:text; color:transparent; }
+ .lp-hero p.sub { margin:0 0 26px; font-size:18px; line-height:1.55; color:var(--muted); max-width:560px; }
+ .lp-cta-row { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
+ .lp-btn { display:inline-flex; align-items:center; gap:8px; padding:13px 22px; font:inherit; font-size:15px; font-weight:600;
+ border-radius:12px; cursor:pointer; text-decoration:none; border:1px solid transparent; transition:transform .12s,filter .12s,background .12s,border-color .12s; }
+ .lp-btn:active { transform:translateY(1px); }
+ .lp-btn.primary { color:#0b0d10; background:linear-gradient(120deg,#fff,#fce7f3); box-shadow:0 10px 30px -12px rgba(236,72,153,0.5); }
+ .lp-btn.primary:hover { filter:brightness(1.04); transform:translateY(-1px); }
+ .lp-btn.ghost { color:var(--fg); background:#16191f; border-color:var(--line2); }
+ .lp-btn.ghost:hover { background:#1c2027; border-color:#39414c; }
+ .lp-stats { display:flex; gap:26px; margin-top:30px; flex-wrap:wrap; }
+ .lp-stat .n { font-size:26px; font-weight:800; letter-spacing:-0.02em; }
+ .lp-stat .n .skl { display:inline-block; width:46px; height:24px; border-radius:6px; background:#1a1e24; vertical-align:middle; }
+ .lp-stat .l { font-size:12px; color:var(--dim); text-transform:uppercase; letter-spacing:0.05em; margin-top:2px; }
+
+ /* Hero live card */
+ .lp-hero-card { background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:16px; box-shadow:0 30px 60px -30px rgba(0,0,0,0.7); }
+ .lp-hc-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; padding:2px 4px; }
+ .lp-hc-head .t { font-size:12px; font-weight:600; letter-spacing:0.05em; text-transform:uppercase; color:var(--dim); display:flex; align-items:center; gap:8px; }
+ .lp-hc-head .t .dot { width:7px; height:7px; border-radius:50%; background:#22c55e; animation:lp-pulse 1.8s infinite; }
+ .lp-hc-head a { font-size:12px; color:var(--muted); text-decoration:none; }
+ .lp-hc-head a:hover { color:var(--fg); }
+ .lp-feed { display:flex; flex-direction:column; gap:6px; max-height:340px; overflow:hidden; }
+ .lp-coin { display:flex; align-items:center; gap:11px; padding:9px 10px; border-radius:11px; text-decoration:none; color:inherit;
+ border:1px solid transparent; transition:background .12s,border-color .12s; }
+ .lp-coin:hover { background:#16191f; border-color:var(--line2); }
+ .lp-coin .mono { flex:0 0 auto; width:38px; height:38px; border-radius:10px; display:grid; place-items:center;
+ font-size:13px; font-weight:800; letter-spacing:-0.02em; color:#0b0d10; background:linear-gradient(135deg,#e2e8f0,#94a3b8); overflow:hidden; }
+ .lp-coin .mono img { width:100%; height:100%; object-fit:cover; }
+ .lp-coin .meta { min-width:0; flex:1; }
+ .lp-coin .nm { font-weight:650; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
+ .lp-coin .nm .tk { color:var(--dim); font-weight:500; }
+ .lp-coin .by { font-size:12px; color:var(--dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
+ .lp-coin .rt { flex:0 0 auto; font-size:11px; color:var(--dim); text-align:right; }
+ .lp-tier { display:inline-block; font-size:10px; font-weight:700; padding:2px 6px; border-radius:6px; text-transform:uppercase; letter-spacing:0.04em; }
+ .lp-tier.prime { color:#fde68a; background:rgba(245,158,11,0.16); }
+ .lp-tier.strong { color:#86efac; background:rgba(34,197,94,0.14); }
+ .lp-tier.lean { color:#93c5fd; background:rgba(59,130,246,0.14); }
+ .lp-skel-row { height:56px; border-radius:11px; background:linear-gradient(90deg,#14171c 25%,#1b1f26 50%,#14171c 75%); background-size:200% 100%; animation:lp-sh 1.2s infinite; }
+ @keyframes lp-sh { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
+
+ /* Section scaffolding */
+ .lp-sec { padding:56px 0; border-bottom:1px solid var(--line); }
+ .lp-sec-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:26px; flex-wrap:wrap; }
+ .lp-sec-head h2 { margin:0; font-size:26px; font-weight:750; letter-spacing:-0.02em; }
+ .lp-sec-head p { margin:6px 0 0; color:var(--muted); font-size:15px; max-width:560px; }
+ .lp-sec-head a.more { font-size:14px; color:var(--muted); text-decoration:none; white-space:nowrap; }
+ .lp-sec-head a.more:hover { color:var(--fg); }
+
+ /* Template chooser */
+ .lp-tpl-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
+ .lp-tpl { text-align:left; display:flex; flex-direction:column; gap:10px; padding:22px; border-radius:16px; cursor:pointer;
+ background:var(--panel); border:1px solid var(--line); color:inherit; font:inherit; transition:transform .14s,border-color .14s,background .14s; }
+ .lp-tpl:hover { transform:translateY(-3px); border-color:var(--accent); background:#13161b; }
+ .lp-tpl .ic { width:44px; height:44px; border-radius:12px; display:grid; place-items:center; font-size:20px; color:#0b0d10; font-weight:800; }
+ .lp-tpl .lab { font-size:18px; font-weight:700; letter-spacing:-0.01em; }
+ .lp-tpl .tag { font-size:13px; color:var(--muted); font-weight:500; }
+ .lp-tpl .blurb { font-size:13px; color:var(--dim); line-height:1.5; flex:1; }
+ .lp-tpl .go { font-size:13px; font-weight:600; color:var(--fg); display:inline-flex; align-items:center; gap:6px; }
+ .lp-tpl .go .arrow { transition:transform .14s; }
+ .lp-tpl:hover .go .arrow { transform:translateX(3px); }
+
+ /* Showcase gallery */
+ .lp-gal { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
+ .lp-card { display:flex; flex-direction:column; border-radius:16px; overflow:hidden; text-decoration:none; color:inherit;
+ background:var(--panel); border:1px solid var(--line); transition:transform .14s,border-color .14s; }
+ .lp-card:hover { transform:translateY(-3px); border-color:var(--line2); }
+ .lp-card .top { position:relative; height:128px; display:grid; place-items:center; overflow:hidden; }
+ .lp-card .top img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
+ .lp-card .top .glyph { font-size:34px; font-weight:800; color:rgba(255,255,255,0.92); text-shadow:0 2px 12px rgba(0,0,0,0.35); }
+ .lp-card .tbadge { position:absolute; top:10px; left:10px; font-size:10px; font-weight:700; padding:3px 8px; border-radius:999px;
+ text-transform:uppercase; letter-spacing:0.04em; color:#fff; background:rgba(0,0,0,0.45); backdrop-filter:blur(6px); }
+ .lp-card .views { position:absolute; top:10px; right:10px; font-size:11px; font-weight:600; padding:3px 8px; border-radius:999px;
+ color:#e5e7eb; background:rgba(0,0,0,0.45); backdrop-filter:blur(6px); }
+ .lp-card .body { padding:14px 15px 15px; display:flex; flex-direction:column; gap:6px; flex:1; }
+ .lp-card .h { font-size:15px; font-weight:680; letter-spacing:-0.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
+ .lp-card .d { font-size:13px; color:var(--dim); line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
+ .lp-card .foot { margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12px; color:var(--dim); }
+ .lp-card .foot .slug { font-family:ui-monospace,monospace; color:var(--muted); }
+ .lp-card .foot .price { color:#86efac; font-weight:600; }
+ .lp-gal-skel { height:240px; border-radius:16px; background:linear-gradient(90deg,#14171c 25%,#1b1f26 50%,#14171c 75%); background-size:200% 100%; animation:lp-sh 1.2s infinite; }
+ .lp-empty { grid-column:1/-1; text-align:center; padding:40px 20px; color:var(--dim); }
+ .lp-empty .em-cta { margin-top:14px; }
+
+ /* How it works */
+ .lp-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
+ .lp-step { padding:22px; border-radius:16px; background:var(--panel); border:1px solid var(--line); }
+ .lp-step .n { width:30px; height:30px; border-radius:9px; display:grid; place-items:center; font-weight:800; font-size:14px;
+ color:#0b0d10; background:linear-gradient(135deg,#fff,#fce7f3); margin-bottom:12px; }
+ .lp-step h3 { margin:0 0 6px; font-size:16px; font-weight:700; }
+ .lp-step p { margin:0; font-size:14px; color:var(--muted); line-height:1.55; }
+
+ /* Final CTA band */
+ .lp-band { padding:60px 0 72px; text-align:center; }
+ .lp-band h2 { margin:0 0 10px; font-size:30px; font-weight:780; letter-spacing:-0.02em; }
+ .lp-band p { margin:0 0 24px; color:var(--muted); font-size:16px; }
+
+ @media (max-width:880px) {
+ .lp-hero-inner { grid-template-columns:1fr; }
+ .lp-hero-card { order:-1; }
+ .lp-tpl-grid, .lp-gal, .lp-steps { grid-template-columns:1fr; }
+ }
+`;
+
+// ──────────────────────────────────────────────────────────────────────────
+// Render pieces
+// ──────────────────────────────────────────────────────────────────────────
+function coinRowHTML(c) {
+ const sym = c.symbol || c.name || '—';
+ const tier = c.oracle?.tier;
+ const tierHtml = tier && ['prime', 'strong', 'lean'].includes(tier)
+ ? `<span class="lp-tier ${tier}">${esc(tier)}</span>` : '';
+ const agentName = c.agent?.name || 'three.ws agent';
+ const thumb = c.agent?.avatar_thumbnail_url;
+ const monoInner = thumb ? `<img loading="lazy" alt="" src="${esc(thumb)}" />` : esc(monogram(sym));
+ return `
+ <a class="lp-coin" href="/launches/${esc(c.mint)}" title="${esc(c.name || sym)} — view coin">
+ <span class="mono">${monoInner}</span>
+ <span class="meta">
+ <span class="nm">${esc(c.name || sym)}${c.symbol ? ` <span class="tk">$${esc(c.symbol)}</span>` : ''}</span>
+ <span class="by">by ${esc(agentName)}</span>
+ </span>
+ <span class="rt">${tierHtml || esc(timeAgo(c.created_at))}</span>
+ </a>`;
+}
+
+function galleryCardHTML(p) {
+ const badge = TEMPLATE_BADGE[p.template] || { label: p.template, accent: '#71717a' };
+ const top = p.image
+ ? `<img loading="lazy" alt="" src="${esc(p.image)}" />`
+ : `<span class="glyph">${esc(monogram(p.headline))}</span>`;
+ const priceTxt = p.price ? `${p.price.amount} ${esc(p.price.currency || '')}`.trim() : '';
+ return `
+ <a class="lp-card" href="${esc(p.url)}" title="Open /p/${esc(p.slug)}">
+ <span class="top" style="background:linear-gradient(150deg, ${esc(p.brand)} 0%, #16181d 100%)">
+ ${top}
+ <span class="tbadge" style="background:${esc(badge.accent)}">${esc(badge.label)}</span>
+ ${p.viewCount ? `<span class="views">${esc(fmtCount(p.viewCount))} views</span>` : ''}
+ </span>
+ <span class="body">
+ <span class="h">${esc(p.headline)}</span>
+ <span class="d">${esc(p.tagline || (p.token ? `Launching ${p.token.name || p.token.ticker}` : 'A hosted 3D page on three.ws'))}</span>
+ <span class="foot">
+ <span class="slug">/p/${esc(p.slug)}</span>
+ ${priceTxt ? `<span class="price">${esc(priceTxt)}</span>` : ''}
+ </span>
+ </span>
+ </a>`;
+}
+
+function shellHTML() {
+ const tpls = TEMPLATES.map((t) => `
+ <button class="lp-tpl" type="button" data-tpl="${t.id}" style="--accent:${t.accent}">
+ <span class="ic" style="background:linear-gradient(135deg, ${t.accent}, #fff)">${t.icon}</span>
+ <span class="lab">${esc(t.label)}</span>
+ <span class="tag">${esc(t.tagline)}</span>
+ <span class="blurb">${esc(t.blurb)}</span>
+ <span class="go">${esc(t.cta)} <span class="arrow">→</span></span>
+ </button>`).join('');
+
+ const steps = [
+ ['Pick a template', 'Token launchpad, paid concierge, or gated 3D showroom. Each ships with a working monetization flow.'],
+ ['Make it yours', 'Drop in your wallet, brand color, copy, and a 3D avatar — from your own agents or the gallery. Live preview as you type.'],
+ ['Publish & share', 'Get a hosted page at three.ws/p/your-slug plus an x402 agent-skill manifest. Edit anytime; payments settle to your wallet.'],
+ ].map(([h, p], i) => `
+ <div class="lp-step">
+ <div class="n">${i + 1}</div>
+ <h3>${esc(h)}</h3>
+ <p>${esc(p)}</p>
+ </div>`).join('');
+
+ return `
+ <div class="lp-land">
+ <section class="lp-hero">
+ <div class="lp-wrap lp-hero-inner">
+ <div class="lp-hero-copy">
+ <span class="lp-eyebrow"><span class="pulse"></span> three.ws launchpad</span>
+ <h1>Launch a coin, concierge, or showroom — <em>hosted by a 3D agent</em>.</h1>
+ <p class="sub">Build a white-label, monetized page in minutes. Real Pump.fun mints, real x402 USDC payments, real 3D — settled to your wallet. No code, no backend.</p>
+ <div class="lp-cta-row">
+ <button class="lp-btn primary" type="button" data-action="build">Start building →</button>
+ <a class="lp-btn ghost" href="/launches">Browse live launches</a>
+ </div>
+ <div class="lp-stats" data-stats>
+ <div class="lp-stat"><div class="n"><span class="skl"></span></div><div class="l">Coins launched</div></div>
+ <div class="lp-stat"><div class="n"><span class="skl"></span></div><div class="l">Pages live</div></div>
+ <div class="lp-stat"><div class="n">3</div><div class="l">Templates</div></div>
+ </div>
+ </div>
+ <div class="lp-hero-card">
+ <div class="lp-hc-head">
+ <span class="t"><span class="dot"></span> Launching now</span>
+ <a href="/launches">All launches →</a>
+ </div>
+ <div class="lp-feed" data-live-feed>
+ ${Array.from({ length: 5 }).map(() => '<div class="lp-skel-row"></div>').join('')}
+ </div>
+ </div>
+ </div>
+ </section>
+
+ <section class="lp-sec">
+ <div class="lp-wrap">
+ <div class="lp-sec-head">
+ <div>
+ <h2>Start from a template</h2>
+ <p>Each template is wired end to end — pick one and the studio opens with the monetization flow already configured.</p>
+ </div>
+ </div>
+ <div class="lp-tpl-grid">${tpls}</div>
+ </div>
+ </section>
+
+ <section class="lp-sec">
+ <div class="lp-wrap">
+ <div class="lp-sec-head">
+ <div>
+ <h2>Built on three.ws</h2>
+ <p>Real pages published through the launchpad. Click any to see it live.</p>
+ </div>
+ <a class="more" href="#" data-action="build">Build yours →</a>
+ </div>
+ <div class="lp-gal" data-gallery>
+ ${Array.from({ length: 6 }).map(() => '<div class="lp-gal-skel"></div>').join('')}
+ </div>
+ </div>
+ </section>
+
+ <section class="lp-sec">
+ <div class="lp-wrap">
+ <div class="lp-sec-head"><div><h2>How it works</h2></div></div>
+ <div class="lp-steps">${steps}</div>
+ </div>
+ </section>
+
+ <section class="lp-band">
+ <div class="lp-wrap">
+ <h2>Your launchpad, live in five minutes.</h2>
+ <p>One wallet, one avatar, one slug. Publish a monetized 3D page that pays you directly.</p>
+ <button class="lp-btn primary" type="button" data-action="build">Open the studio →</button>
+ </div>
+ </section>
+ </div>`;
+}
+
+// ──────────────────────────────────────────────────────────────────────────
+// Data wiring
+// ──────────────────────────────────────────────────────────────────────────
+async function loadLiveFeed(root) {
+ const feed = root.querySelector('[data-live-feed]');
+ if (!feed) return;
+ try {
+ const data = await getJson('/api/pump/launches?limit=7');
+ const launches = data?.data?.launches || [];
+ if (!launches.length) {
+ feed.innerHTML = `<div class="lp-empty" style="padding:24px">No launches yet — be the first.</div>`;
+ return;
+ }
+ feed.innerHTML = launches.map(coinRowHTML).join('');
+ } catch (err) {
+ log.warn('[launchpad-landing] live feed failed:', err.message);
+ feed.innerHTML = `<a class="lp-empty" href="/launches" style="padding:24px;display:block;text-decoration:none">Live feed unavailable — see all launches →</a>`;
+ }
+}
+
+async function loadStats(root, galleryTotalRef) {
+ const stats = root.querySelector('[data-stats]');
+ if (!stats) return;
+ const nodes = stats.querySelectorAll('.lp-stat .n');
+ const set = (i, val) => { if (nodes[i]) nodes[i].textContent = val; };
+ try {
+ const launches = await getJson('/api/pump/launches?limit=1&offset=0');
+ // has_more with a tiny page doesn't give a true count; fall back to a
+ // representative "live" figure derived from the feed presence.
+ const any = (launches?.data?.launches || []).length > 0;
+ set(0, any ? 'Live' : '0');
+ } catch {
+ set(0, '—');
+ }
+ // Pages-live comes from the gallery total (set once that resolves).
+ if (galleryTotalRef.value != null) set(1, fmtCount(galleryTotalRef.value));
+ else galleryTotalRef.onResolve = (n) => set(1, fmtCount(n));
+}
+
+async function loadGallery(root, galleryTotalRef, enterStudio) {
+ const gal = root.querySelector('[data-gallery]');
+ if (!gal) return;
+ try {
+ const data = await getJson('/api/launchpad/list?limit=6');
+ if (data?.total != null) {
+ galleryTotalRef.value = data.total;
+ galleryTotalRef.onResolve?.(data.total);
+ }
+ const pages = data?.pages || [];
+ if (!pages.length) {
+ gal.innerHTML = `
+ <div class="lp-empty">
+ <div>No launchpads published yet — yours could be the first.</div>
+ <button class="lp-btn primary em-cta" type="button" data-action="build">Build the first one →</button>
+ </div>`;
+ return;
+ }
+ gal.innerHTML = pages.map(galleryCardHTML).join('');
+ } catch (err) {
+ log.warn('[launchpad-landing] gallery failed:', err.message);
+ gal.innerHTML = `
+ <div class="lp-empty">
+ <div>Couldn't load the showcase right now.</div>
+ <button class="lp-btn primary em-cta" type="button" data-action="build">Build yours anyway →</button>
+ </div>`;
+ }
+}
+
+// ──────────────────────────────────────────────────────────────────────────
+// Studio handoff
+// ──────────────────────────────────────────────────────────────────────────
+function urlTargetsStudio(url) {
+ return STUDIO_TRIGGER_PARAMS.some((p) => url.searchParams.has(p));
+}
+
+function studioOptionsFromUrl(url) {
+ return {
+ template: url.searchParams.get('template') || 'token-launchpad',
+ slug: url.searchParams.get('slug') || '',
+ wallet: url.searchParams.get('wallet') || '',
+ website: url.searchParams.get('website') || '',
+ avatarSrc: url.searchParams.get('avatar') || '',
+ };
+}
+
+// ──────────────────────────────────────────────────────────────────────────
+// Mount
+// ──────────────────────────────────────────────────────────────────────────
+export function mountLaunchpadLanding(root) {
+ if (!root) throw new Error('mountLaunchpadLanding: root element required');
+
+ const styleEl = document.createElement('style');
+ styleEl.textContent = STYLE;
+ document.head.appendChild(styleEl);
+
+ let studioMounted = false;
+
+ function renderLanding() {
+ document.title = 'Launchpad — three.ws';
+ root.innerHTML = shellHTML();
+ const galleryTotalRef = { value: null, onResolve: null };
+ loadLiveFeed(root);
+ loadStats(root, galleryTotalRef);
+ loadGallery(root, galleryTotalRef, enterStudio);
+ }
+
+ async function mountStudio(opts) {
+ root.innerHTML = '';
+ const { mountLaunchpadStudio } = await import('../editor/launchpad-studio.js');
+ mountLaunchpadStudio(root, opts);
+ studioMounted = true;
+ document.title = 'Launchpad Studio — three.ws';
+ }
+
+ function enterStudio(opts = {}) {
+ const url = new URL(location.href);
+ if (opts.template) url.searchParams.set('template', opts.template);
+ if (!urlTargetsStudio(url)) url.searchParams.set('build', '1');
+ history.pushState({ studio: true }, '', url);
+ mountStudio({ template: opts.template || 'token-launchpad', slug: '', wallet: '', website: '', avatarSrc: '' });
+ }
+
+ // Delegated clicks for landing CTAs + template cards.
+ root.addEventListener('click', (e) => {
+ const tpl = e.target.closest('[data-tpl]');
+ if (tpl) {
+ e.preventDefault();
+ enterStudio({ template: tpl.dataset.tpl });
+ return;
+ }
+ const act = e.target.closest('[data-action="build"]');
+ if (act) {
+ e.preventDefault();
+ enterStudio({});
+ }
+ });
+
+ // Back/forward between landing and studio. A studio that's already been
+ // mounted persists its own draft; returning to it just re-mounts from URL.
+ window.addEventListener('popstate', () => {
+ const url = new URL(location.href);
+ if (urlTargetsStudio(url)) mountStudio(studioOptionsFromUrl(url));
+ else renderLanding();
+ });
+
+ // Initial route: deep links to the editor skip the landing entirely.
+ const url = new URL(location.href);
+ if (urlTargetsStudio(url)) mountStudio(studioOptionsFromUrl(url));
+ else renderLanding();
+}
diff --git a/src/pose-studio.js b/src/pose-studio.js
index c26e62fe9..60d866086 100644
--- a/src/pose-studio.js
+++ b/src/pose-studio.js
@@ -1736,24 +1736,31 @@ function boot() {
// recovered draft; otherwise we offer back last session's unsaved work.
const recovered = !requestedAnim && autosave?.tryRestore();
+ // A 36-char UUID is a saved community clip (PoseLibrary.openById); anything
+ // else is a built-in preset name from the animation library (AnimationLibrary
+ // .openByName). The /animations gallery deep-links into both.
+ const openRequestedAnim = (id) => {
+ const isApiId = /^[0-9a-f-]{36}$/i.test(id);
+ const p = isApiId
+ ? library.openById(id)
+ : state.animLibrary
+ ? state.animLibrary.openByName(id)
+ : Promise.reject(new Error('animation library unavailable'));
+ return p.catch((err) => {
+ setStatus(`Could not load animation: ${err?.message || 'unknown error'}`, 'error');
+ });
+ };
+
if (requestedAvatar) {
loadAvatarById(requestedAvatar).catch((err) => {
setStatus(`${err.message} Showing the mannequin instead.`, 'error');
switchToMannequin();
}).then(() => {
- if (requestedAnim) {
- library.openById(requestedAnim).catch((err) => {
- setStatus(`Could not load animation: ${err?.message || 'unknown error'}`, 'error');
- });
- }
+ if (requestedAnim) openRequestedAnim(requestedAnim);
});
} else {
if (!recovered) setStatus('Ready. Click a body part to pose, or load an avatar.');
- if (requestedAnim) {
- library.openById(requestedAnim).catch((err) => {
- setStatus(`Could not load animation: ${err?.message || 'unknown error'}`, 'error');
- });
- }
+ if (requestedAnim) openRequestedAnim(requestedAnim);
}
}
diff --git a/vercel.json b/vercel.json
index 03518089c..aba757e15 100644
--- a/vercel.json
+++ b/vercel.json
@@ -3368,6 +3368,18 @@
"src": "/api/token/([^/]+)",
"dest": "/api/token/[action]?action=$1"
},
+ {
+ "src": "/api/three/([^/]+)",
+ "dest": "/api/three/[action]?action=$1"
+ },
+ {
+ "src": "/api/auth/extension-token",
+ "dest": "/api/auth/extension-token.js"
+ },
+ {
+ "src": "/api/auth/([^/]+)",
+ "dest": "/api/auth/[action]?action=$1"
+ },
{
"src": "/api/developer/webhooks/([^/]+)",
"dest": "/api/developer/webhooks/[id]?id=$1"