Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
feat: home-next redesign, mocap studio overhaul, marketplace, walk tasks
nirholasc326ead8d2e1
diff --git a/api/marketplace/[action].js b/api/marketplace/[action].jsindex b1ab9c483..35bf67fcf 100644--- a/api/marketplace/[action].js+++ b/api/marketplace/[action].js@@ -443,6 +443,8 @@ async function handleDetail(req, res, id) {av.storage_key AS avatar_storage_key,av.thumbnail_key AS avatar_thumbnail_key,av.visibility AS avatar_visibility,+ a.meta->>'sol_mint_address' AS sol_mint_address,+ a.meta->>'pumpfun_network' AS pumpfun_network,COALESCE((SELECT count(*)::int FROM skill_purchases spWHERE sp.agent_id = a.id AND sp.status = 'confirmed'), 0) AS buyers_total,COALESCE((SELECT count(*)::int FROM skill_purchases sp@@ -1032,6 +1034,8 @@ function toDetail(row, skill_prices = {}) {fork_of: row.fork_of || null,author_name: row.author_name || null,author_avatar: row.author_avatar || null,+ sol_mint_address: row.sol_mint_address || null,+ pumpfun_network: row.pumpfun_network || 'mainnet',skill_prices,};}diff --git a/pages/home-next.html b/pages/home-next.htmlindex 99a183a24..90e1ab539 100644--- a/pages/home-next.html+++ b/pages/home-next.html@@ -10,450 +10,498 @@<meta property="og:image" content="/og-image.png" /><meta name="twitter:card" content="summary_large_image" /><link rel="icon" href="/favicon.ico" />- <link rel="preconnect" href="https://three.ws" /><style>:root {color-scheme: dark;- --bg: #07070c;- --bg-soft: #0e0e16;- --panel: #12121c;- --panel-soft: #181824;- --border: #1f1f2c;- --border-strong: #2a2a3c;- --text: #ececf4;- --text-soft: #b8b8c8;- --muted: #7a7a90;- --accent: #6a5cff;- --accent-2: #5cffe1;- --accent-warm: #ff7a5c;- --ok: #22c55e;- --shadow-glow: 0 24px 80px rgba(106, 92, 255, 0.25);- --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Söhne", "Segoe UI", Roboto, sans-serif;- --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;+ --bg: #050505;+ --surface-0: #0b0b0b;+ --surface-1: #111111;+ --surface-2: #181818;+ --hairline: #1c1c1c;+ --hairline-strong: #2a2a2a;+ --text: #f6f6f6;+ --text-2: #a8a8a8;+ --text-3: #6a6a6a;+ --text-4: #4a4a4a;+ --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;+ --font-body: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;+ --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;}* { box-sizing: border-box; }- html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); }+ html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); }body {- font-size: 16px;- line-height: 1.6;- min-height: 100vh;- background:- radial-gradient(circle at 20% 0%, rgba(106, 92, 255, 0.12), transparent 50%),- radial-gradient(circle at 80% 30%, rgba(92, 255, 225, 0.06), transparent 50%),- var(--bg);- background-attachment: fixed;- overflow-x: hidden;+ font-size: 15.5px; line-height: 1.55;+ min-height: 100vh; overflow-x: hidden;+ -webkit-font-smoothing: antialiased;+ text-rendering: optimizeLegibility;}a { color: inherit; text-decoration: none; }- button { font-family: inherit; }+ button { font-family: inherit; cursor: pointer; }+ ::selection { background: var(--text); color: var(--bg); }++ /* ── Top-level page rhythm ─────────────────────────────── */+ .wrap-1280 { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }+ .wrap-1440 { max-width: 1440px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }+ @media (max-width: 720px) {+ .wrap-1280, .wrap-1440 { padding-left: 20px; padding-right: 20px; }+ }- /* ── HEADER ─────────────────────────────────────────────────────── */+ /* ── NAV ───────────────────────────────────────────────── */.nav {position: sticky; top: 0; z-index: 100;- backdrop-filter: blur(18px) saturate(140%);- -webkit-backdrop-filter: blur(18px) saturate(140%);- background: rgba(7, 7, 12, 0.72);- border-bottom: 1px solid var(--border);+ border-bottom: 1px solid var(--hairline);+ background: rgba(5,5,5,0.78);+ backdrop-filter: blur(20px) saturate(140%);}.nav-inner {- max-width: 1280px; margin: 0 auto;- display: flex; align-items: center; gap: 24px;- padding: 14px 28px;+ display: flex; align-items: center; gap: 32px;+ padding: 16px 32px; max-width: 1440px; margin: 0 auto;}.brand {- display: flex; align-items: center; gap: 8px;- font-weight: 700; letter-spacing: -0.02em;- font-size: 17px;+ display: flex; align-items: center; gap: 10px;+ font-family: var(--font-display);+ font-weight: 600; letter-spacing: -0.025em; font-size: 16.5px;+ }+ .brand-mark {+ width: 18px; height: 18px;+ border: 1px solid var(--text); border-radius: 3px;+ position: relative;}- .brand-dot {- width: 22px; height: 22px; border-radius: 6px;- background: linear-gradient(135deg, var(--accent), var(--accent-2));- box-shadow: 0 0 16px rgba(106, 92, 255, 0.4);+ .brand-mark::after {+ content: ""; position: absolute; inset: 4px;+ background: var(--text);}- .nav-main { display: flex; gap: 4px; margin-left: 16px; flex: 1; }+ .nav-main { display: flex; gap: 2px; margin-left: 12px; flex: 1; }.nav-main a {- padding: 8px 14px; border-radius: 8px;- color: var(--text-soft); font-size: 14.5px; font-weight: 500;- transition: background 0.15s, color 0.15s;+ padding: 7px 12px; font-size: 14px; font-weight: 450;+ color: var(--text-2); transition: color 0.12s;}- .nav-main a:hover { background: var(--panel); color: var(--text); }- .nav-end { display: flex; align-items: center; gap: 10px; }- .nav-end a { font-size: 14px; color: var(--text-soft); padding: 8px 14px; border-radius: 8px; }- .nav-end a:hover { color: var(--text); }- .nav-end .console-btn {- background: var(--text); color: var(--bg);- font-weight: 600;- padding: 9px 18px; border-radius: 10px;+ .nav-main a:hover { color: var(--text); }+ .nav-end { display: flex; align-items: center; gap: 4px; }+ .nav-end a {+ padding: 7px 12px; font-size: 14px; font-weight: 450;+ color: var(--text-2);}- .nav-end .console-btn:hover { filter: brightness(0.92); }+ .nav-end a:hover { color: var(--text); }+ .nav-end .console {+ color: var(--text); font-weight: 500;+ border: 1px solid var(--hairline-strong);+ padding: 7px 16px; border-radius: 7px;+ margin-left: 6px;+ transition: border-color 0.15s, background 0.15s;+ }+ .nav-end .console:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }@media (max-width: 880px) {.nav-main { display: none; }- .nav-inner { padding: 12px 18px; }+ .nav-inner { padding: 14px 20px; gap: 16px; }}- /* ── HERO ───────────────────────────────────────────────────────── */+ /* ── HERO ──────────────────────────────────────────────── */.hero {- max-width: 1280px; margin: 0 auto;- padding: 72px 28px 56px;- display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px;- align-items: center;- min-height: calc(100vh - 64px);+ display: grid; grid-template-columns: 1.05fr 1fr;+ gap: 0;+ min-height: calc(100vh - 57px);+ position: relative;}- @media (max-width: 980px) {- .hero { grid-template-columns: 1fr; padding: 40px 18px 32px; gap: 32px; min-height: 0; }+ .hero::after {+ content: ""; position: absolute; left: 50%; top: 0; bottom: 0;+ width: 1px; background: var(--hairline);}+ @media (max-width: 980px) { .hero { grid-template-columns: 1fr; min-height: 0; } .hero::after { display: none; } }+ .hero-text {+ padding: 96px 48px 96px 72px;+ display: flex; flex-direction: column; justify-content: center;+ }+ @media (max-width: 980px) { .hero-text { padding: 64px 20px 32px; } }.eyebrow {- display: inline-flex; align-items: center; gap: 8px;- font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;- color: var(--accent-2);- padding: 6px 12px; border: 1px solid rgba(92, 255, 225, 0.25); border-radius: 99px;- background: rgba(92, 255, 225, 0.04);- margin-bottom: 24px;+ display: inline-flex; align-items: center; gap: 10px;+ font-family: var(--font-mono); font-size: 11.5px;+ text-transform: uppercase; letter-spacing: 0.18em;+ color: var(--text-3);+ margin-bottom: 32px;}.eyebrow::before {content: ""; width: 6px; height: 6px; border-radius: 50%;- background: var(--accent-2);- box-shadow: 0 0 10px var(--accent-2);- animation: pulse 2s infinite;+ background: var(--text); opacity: 0.55;}- @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }-- h1.hero-title {- font-size: clamp(44px, 6.4vw, 84px);- line-height: 0.98; letter-spacing: -0.035em;- margin: 0 0 24px; font-weight: 700;+ h1.hero-h {+ font-family: var(--font-display);+ font-size: clamp(56px, 7.2vw, 112px);+ line-height: 0.92; letter-spacing: -0.045em;+ font-weight: 600;+ margin: 0 0 32px;+ color: var(--text);}- h1.hero-title span.gradient {- background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 60%, var(--accent-warm) 100%);- -webkit-background-clip: text; background-clip: text; color: transparent;+ h1.hero-h em {+ font-style: normal; color: var(--text-3); font-weight: 500;}.hero-sub {- font-size: 18.5px; color: var(--text-soft);- max-width: 540px; margin: 0 0 36px; line-height: 1.55;+ font-size: 18px; color: var(--text-2);+ max-width: 480px; margin: 0 0 40px; line-height: 1.5;+ font-weight: 400;}- .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }+ .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }.btn {- display: inline-flex; align-items: center; gap: 8px;- padding: 14px 22px; border-radius: 12px;- font-size: 15px; font-weight: 600;- border: 0; cursor: pointer; text-decoration: none;- transition: transform 0.15s, filter 0.15s, background 0.15s;+ display: inline-flex; align-items: center; gap: 10px;+ padding: 13px 22px; border-radius: 8px;+ font-size: 14.5px; font-weight: 500;+ border: 1px solid var(--hairline-strong);+ background: transparent; color: var(--text);+ transition: border-color 0.15s, background 0.15s;+ cursor: pointer; text-decoration: none;+ font-family: inherit;}- .btn:hover { transform: translateY(-1px); }+ .btn:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }.btn.primary {- background: linear-gradient(135deg, var(--accent), #4d3fe6);- color: white;- box-shadow: 0 8px 24px rgba(106, 92, 255, 0.35);- }- .btn.primary:hover { box-shadow: 0 12px 32px rgba(106, 92, 255, 0.5); }- .btn.ghost {- background: transparent; color: var(--text);- border: 1px solid var(--border-strong);+ background: var(--text); color: var(--bg);+ border-color: var(--text); font-weight: 550;}- .btn.ghost:hover { background: var(--panel); border-color: var(--text-soft); }+ .btn.primary:hover { background: #fff; }+ .btn .arrow { transition: transform 0.18s; }+ .btn:hover .arrow { transform: translateX(3px); }- .live-strip {- display: flex; gap: 24px; flex-wrap: wrap;- padding-top: 24px; border-top: 1px solid var(--border);- }- .live-stat {- display: flex; align-items: center; gap: 8px;- font-size: 13.5px; color: var(--text-soft);+ .metrics {+ display: flex; gap: 28px; flex-wrap: wrap;+ padding-top: 28px;+ border-top: 1px solid var(--hairline);+ font-family: var(--font-mono); font-size: 12px;+ color: var(--text-3);+ text-transform: uppercase; letter-spacing: 0.12em;}- .live-stat strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }- .live-dot {- width: 7px; height: 7px; border-radius: 50%;- background: var(--ok); box-shadow: 0 0 8px var(--ok);- animation: pulse 2s infinite;+ .metric { display: flex; align-items: baseline; gap: 7px; }+ .metric strong {+ font-family: var(--font-display);+ color: var(--text); font-weight: 600;+ font-size: 17px; letter-spacing: -0.02em;+ text-transform: none;+ font-variant-numeric: tabular-nums;}- /* ── HERO CANVAS (live agent) ────────────────────────────────── */- .hero-canvas {- position: relative;- aspect-ratio: 3 / 4;- max-width: 480px; width: 100%;- margin: 0 auto;- border-radius: 24px;- background: linear-gradient(180deg, rgba(106, 92, 255, 0.08), rgba(92, 255, 225, 0.04) 100%);- border: 1px solid var(--border-strong);- box-shadow: var(--shadow-glow);- overflow: hidden;+ /* ── Hero stage (live agent — full column) ──────────── */+ .hero-stage {+ position: relative; overflow: hidden;+ background: var(--bg);}- .hero-canvas::before {- content: ""; position: absolute; inset: 0;- background: radial-gradient(circle at 50% 80%, rgba(106, 92, 255, 0.2), transparent 60%);- pointer-events: none; z-index: 0;- }- .hero-canvas agent-3d {- position: absolute; inset: 0; z-index: 1;+ .hero-stage agent-3d {+ position: absolute; inset: 0;display: block; width: 100%; height: 100%;- background: transparent;}- .hero-canvas .canvas-tag {- position: absolute; top: 14px; left: 14px; z-index: 2;- font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;- color: var(--accent-2); padding: 5px 10px;- background: rgba(7, 7, 12, 0.72);- border: 1px solid rgba(92, 255, 225, 0.3); border-radius: 99px;- backdrop-filter: blur(8px);- }- .hero-canvas .canvas-hint {- position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 2;- font-size: 12px; color: var(--text-soft);- background: rgba(7, 7, 12, 0.78);- padding: 6px 14px; border-radius: 99px;- border: 1px solid var(--border);- backdrop-filter: blur(8px); white-space: nowrap;+ .stage-marker {+ position: absolute; top: 24px; left: 24px; z-index: 5;+ display: flex; align-items: center; gap: 10px;+ font-family: var(--font-mono); font-size: 10.5px;+ letter-spacing: 0.18em; text-transform: uppercase;+ color: var(--text-3);}-- /* ── EMBED SHOWCASE ──────────────────────────────────────────── */- .section { max-width: 1280px; margin: 0 auto; padding: 96px 28px; }- .section-eyebrow {- font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;- color: var(--accent); margin: 0 0 14px;+ .stage-marker::before {+ content: ""; width: 6px; height: 6px; border-radius: 50%;+ background: var(--text); animation: pulse 2.4s ease-in-out infinite;+ }+ @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }+ .stage-meta {+ position: absolute; bottom: 24px; right: 28px; z-index: 5;+ text-align: right;+ font-family: var(--font-mono); font-size: 10.5px;+ letter-spacing: 0.14em; text-transform: uppercase;+ color: var(--text-4);+ line-height: 1.6;}- .section h2 {- font-size: clamp(32px, 4vw, 48px);- line-height: 1.05; letter-spacing: -0.025em;- margin: 0 0 16px; font-weight: 600; max-width: 720px;+ .stage-meta span { display: block; }+ .stage-meta span:first-child { color: var(--text-3); }++ /* Subtle perspective tilt of the hero stage on mouse move */+ .hero-stage-inner {+ position: absolute; inset: 0;+ transform-style: preserve-3d;+ transition: transform 0.35s cubic-bezier(.2,.7,.3,1);+ will-change: transform;}- .section .lede {- font-size: 17px; color: var(--text-soft);- max-width: 620px; margin: 0 0 48px; line-height: 1.55;++ /* ── Section frame ─────────────────────────────────── */+ section.block {+ padding: 128px 0;+ border-top: 1px solid var(--hairline);+ }+ @media (max-width: 720px) { section.block { padding: 80px 0; } }+ .block-head { margin-bottom: 64px; max-width: 760px; }+ .block-eyebrow {+ font-family: var(--font-mono); font-size: 11.5px;+ letter-spacing: 0.2em; text-transform: uppercase;+ color: var(--text-3); margin: 0 0 16px;+ }+ .block-eyebrow .num { color: var(--text); margin-right: 12px; }+ .block-h {+ font-family: var(--font-display);+ font-size: clamp(36px, 4.2vw, 60px);+ line-height: 1.0; letter-spacing: -0.035em;+ font-weight: 600; margin: 0 0 20px;+ }+ .block-h em { font-style: normal; color: var(--text-3); font-weight: 500; }+ .block-lede {+ font-size: 17px; color: var(--text-2);+ max-width: 600px; line-height: 1.55; margin: 0;}+ /* ── EMBED SHOWCASE ────────────────────────────────── */.embed-grid {- display: grid; grid-template-columns: 1fr 1fr; gap: 32px;- align-items: stretch;- }- @media (max-width: 880px) { .embed-grid { grid-template-columns: 1fr; } }- .code-card, .render-card {- background: var(--panel);- border: 1px solid var(--border);- border-radius: 18px;- overflow: hidden;+ display: grid; grid-template-columns: 1fr 1fr; gap: 1px;+ background: var(--hairline);+ border: 1px solid var(--hairline);+ border-radius: 14px; overflow: hidden;+ }+ @media (max-width: 980px) { .embed-grid { grid-template-columns: 1fr; } }+ .pane {+ background: var(--surface-0);+ min-height: 420px;display: flex; flex-direction: column;- min-height: 380px;}- .code-card-head, .render-card-head {+ .pane-head {display: flex; align-items: center; justify-content: space-between;- padding: 12px 18px;- border-bottom: 1px solid var(--border);- font-size: 12.5px; color: var(--muted);- font-family: var(--font-mono);- }- .code-card-head .tabs { display: flex; gap: 2px; }- .code-card-head .tab {- padding: 5px 11px; border-radius: 6px;+ padding: 14px 18px;+ border-bottom: 1px solid var(--hairline);font-family: var(--font-mono); font-size: 12px;- color: var(--muted); background: transparent;+ color: var(--text-3);+ }+ .pane-head .tabs { display: flex; gap: 4px; }+ .pane-head .tab {+ padding: 5px 11px; border-radius: 5px;+ font-family: var(--font-mono); font-size: 11.5px;+ color: var(--text-3); background: transparent;border: 0; cursor: pointer;}- .code-card-head .tab.active { background: var(--panel-soft); color: var(--text); }- .code-card pre {- margin: 0; padding: 22px 24px;- font-family: var(--font-mono); font-size: 13.5px; line-height: 1.65;+ .pane-head .tab.active { background: var(--surface-2); color: var(--text); }+ .code-pane pre {+ margin: 0; padding: 28px 28px;+ font-family: var(--font-mono); font-size: 13px; line-height: 1.75;color: var(--text); overflow-x: auto; flex: 1;+ background: var(--surface-0);+ }+ .code-pane pre .tag { color: #d3d3d3; }+ .code-pane pre .attr { color: #989898; }+ .code-pane pre .str { color: #f6f6f6; }+ .code-pane pre .com { color: var(--text-4); }+ .code-pane .pane-foot {+ padding: 14px 18px; border-top: 1px solid var(--hairline);}- .code-card pre .tag { color: #ff8db3; }- .code-card pre .attr { color: var(--accent-2); }- .code-card pre .str { color: #ffd28c; }- .code-card pre .com { color: var(--muted); font-style: italic; }- .code-card-foot { padding: 14px 18px; border-top: 1px solid var(--border); }.copy-btn {- background: var(--panel-soft); color: var(--text);- border: 1px solid var(--border-strong); cursor: pointer;- padding: 8px 14px; border-radius: 8px;+ background: transparent; color: var(--text);+ border: 1px solid var(--hairline-strong); cursor: pointer;+ padding: 7px 14px; border-radius: 7px;font-size: 13px; font-weight: 500;}- .copy-btn:hover { background: var(--border-strong); }- .copy-btn.copied { background: var(--ok); color: var(--bg); border-color: var(--ok); }-- .render-card { position: relative; padding: 0; }- .render-card agent-3d {- position: absolute; inset: 56px 0 0; display: block;- width: 100%; height: calc(100% - 56px);- background: transparent;+ .copy-btn:hover { border-color: var(--text); }+ .copy-btn.copied { background: var(--text); color: var(--bg); border-color: var(--text); }+ .render-pane { position: relative; padding: 0; }+ .render-pane agent-3d {+ position: absolute; inset: 49px 0 0; display: block;+ width: 100%; height: calc(100% - 49px);}- /* ── LOGO WALL ──────────────────────────────────────────────── */- .logos {- padding: 56px 28px;- max-width: 1280px; margin: 0 auto;- border-top: 1px solid var(--border);- border-bottom: 1px solid var(--border);+ /* ── LOGO STRIP ─────────────────────────────────────── */+ .logo-strip {+ padding: 32px 0;+ border-top: 1px solid var(--hairline);+ border-bottom: 1px solid var(--hairline);}- .logos-caption {- font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;- color: var(--muted); text-align: center; margin-bottom: 28px;+ .logo-strip-cap {+ font-family: var(--font-mono); font-size: 10.5px;+ letter-spacing: 0.2em; text-transform: uppercase;+ color: var(--text-4); text-align: center; margin-bottom: 22px;}.logo-row {display: flex; flex-wrap: wrap; justify-content: center;gap: 56px; align-items: center;}.logo-row .logo {- font-size: 18px; font-weight: 700; letter-spacing: -0.02em;- color: var(--text-soft); opacity: 0.7;- transition: opacity 0.2s;+ font-family: var(--font-display);+ font-size: 16px; font-weight: 500;+ letter-spacing: -0.02em;+ color: var(--text-3); opacity: 0.75;}- .logo-row .logo:hover { opacity: 1; }- /* ── THREE DOORS ────────────────────────────────────────────── */+ /* ── DOORS ──────────────────────────────────────────── */.doors {- display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;+ display: grid; grid-template-columns: repeat(3, 1fr);+ gap: 1px; background: var(--hairline);+ border: 1px solid var(--hairline);+ border-radius: 14px; overflow: hidden;}- @media (max-width: 880px) { .doors { grid-template-columns: 1fr; } }+ @media (max-width: 980px) { .doors { grid-template-columns: 1fr; } }.door {- background: var(--panel);- border: 1px solid var(--border);- border-radius: 18px;- padding: 32px 28px;+ background: var(--surface-0);+ padding: 44px 36px 38px;display: flex; flex-direction: column;- transition: border-color 0.2s, transform 0.2s;- }- .door:hover { border-color: var(--border-strong); transform: translateY(-2px); }- .door .door-icon {- width: 44px; height: 44px; border-radius: 12px;- display: flex; align-items: center; justify-content: center;- font-size: 22px; margin-bottom: 20px;+ transition: background 0.15s;}- .door.dev .door-icon { background: rgba(106, 92, 255, 0.15); color: var(--accent); }- .door.creator .door-icon { background: rgba(92, 255, 225, 0.12); color: var(--accent-2); }- .door.consumer .door-icon { background: rgba(255, 122, 92, 0.12); color: var(--accent-warm); }- .door .door-label {- font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;- color: var(--muted); margin-bottom: 6px;+ .door:hover { background: var(--surface-1); }+ .door-num {+ font-family: var(--font-mono); font-size: 11.5px;+ letter-spacing: 0.18em; color: var(--text-4);+ margin-bottom: 28px;+ display: flex; justify-content: space-between; align-items: baseline;}+ .door-num .lbl { color: var(--text-3); }.door h3 {- font-size: 24px; margin: 0 0 12px; letter-spacing: -0.02em; font-weight: 600;+ font-family: var(--font-display);+ font-size: 26px; line-height: 1.1; letter-spacing: -0.025em;+ font-weight: 600; margin: 0 0 14px;}- .door p { color: var(--text-soft); margin: 0 0 24px; flex: 1; font-size: 15px; }- .door .door-cta {- font-size: 14px; font-weight: 600; color: var(--text);- display: inline-flex; align-items: center; gap: 6px;+ .door p {+ color: var(--text-2); margin: 0 0 28px;+ font-size: 15px; line-height: 1.55; flex: 1;}- .door .door-cta::after {- content: "→"; transition: transform 0.2s;+ .door .door-cta {+ font-size: 14px; font-weight: 500; color: var(--text);+ display: inline-flex; align-items: center; gap: 8px;}+ .door .door-cta::after { content: "→"; transition: transform 0.18s; }.door:hover .door-cta::after { transform: translateX(4px); }- /* ── HOW IT WORKS ──────────────────────────────────────────── */+ /* ── STEPS ──────────────────────────────────────────── */.steps {- display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;- margin-top: 32px;+ display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px;}- @media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }+ @media (max-width: 980px) { .steps { grid-template-columns: 1fr; gap: 48px; } }.step {- padding: 28px;- background: linear-gradient(180deg, var(--panel) 0%, transparent 100%);- border: 1px solid var(--border); border-radius: 18px;- position: relative;+ border-top: 1px solid var(--hairline-strong);+ padding-top: 28px;}.step-num {- font-family: var(--font-mono); font-size: 11px; color: var(--muted);- letter-spacing: 0.14em; margin-bottom: 16px;+ font-family: var(--font-mono); font-size: 11.5px;+ letter-spacing: 0.18em; color: var(--text-3);+ margin-bottom: 22px;}.step-title {- font-size: 22px; margin: 0 0 10px; letter-spacing: -0.02em; font-weight: 600;+ font-family: var(--font-display);+ font-size: 24px; letter-spacing: -0.025em;+ font-weight: 600; margin: 0 0 12px;}- .step-body { color: var(--text-soft); font-size: 15px; margin: 0; line-height: 1.55; }+ .step-body { color: var(--text-2); font-size: 15px; line-height: 1.55; margin: 0; }- /* ── SHOWCASE ──────────────────────────────────────────────── */- .showcase-grid {- display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;- margin-top: 32px;- }- @media (max-width: 1100px) { .showcase-grid { grid-template-columns: repeat(3, 1fr); } }- @media (max-width: 800px) { .showcase-grid { grid-template-columns: repeat(2, 1fr); } }- @media (max-width: 480px) { .showcase-grid { grid-template-columns: 1fr; } }- .showcase-card {- background: var(--panel);- border: 1px solid var(--border); border-radius: 16px;- overflow: hidden;- display: flex; flex-direction: column;- transition: border-color 0.2s, transform 0.2s;- cursor: pointer; aspect-ratio: 3 / 4;+ /* ── SHOWCASE ──────────────────────────────────────── */+ .showcase {+ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;+ background: var(--hairline);+ border: 1px solid var(--hairline);+ border-radius: 14px; overflow: hidden;+ }+ @media (max-width: 1080px) { .showcase { grid-template-columns: repeat(2, 1fr); } }+ .shot {+ background: var(--surface-0);+ aspect-ratio: 3 / 4;position: relative;+ overflow: hidden;+ transition: background 0.15s;}- .showcase-card:hover { border-color: var(--accent); transform: translateY(-2px); }- .showcase-card img {- width: 100%; height: 100%; object-fit: cover;+ .shot:hover { background: var(--surface-1); }+ .shot-fill {position: absolute; inset: 0;}- .showcase-card .card-meta {+ .shot-fill img {+ width: 100%; height: 100%; object-fit: cover;+ filter: grayscale(0.3) contrast(1.05);+ transition: filter 0.3s;+ }+ .shot:hover .shot-fill img { filter: grayscale(0) contrast(1.05); }+ .shot-fill agent-3d {+ position: absolute; inset: 0; display: block;+ width: 100%; height: 100%;+ }+ .shot-meta {position: absolute; bottom: 0; left: 0; right: 0;- padding: 18px;- background: linear-gradient(180deg, transparent 0%, rgba(7, 7, 12, 0.92) 70%);- color: var(--text); z-index: 1;- }- .showcase-card .card-name { font-size: 15px; font-weight: 600; margin: 0 0 2px; }- .showcase-card .card-author { font-size: 12.5px; color: var(--text-soft); }- .showcase-card .card-tag {- position: absolute; top: 12px; right: 12px; z-index: 1;- font-size: 10.5px; font-weight: 600; padding: 3px 9px;- border-radius: 99px; background: rgba(7,7,12,0.6); color: var(--accent-2);- border: 1px solid rgba(92, 255, 225, 0.3); backdrop-filter: blur(6px);+ padding: 20px;+ background: linear-gradient(180deg, transparent 0%, rgba(5,5,5,0.92) 70%);+ color: var(--text); z-index: 2;+ }+ .shot-name {+ font-family: var(--font-display);+ font-size: 16px; font-weight: 600; letter-spacing: -0.015em;+ margin: 0 0 2px;+ }+ .shot-sub {+ font-family: var(--font-mono); font-size: 11px;+ color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase;+ }+ .shot-tag {+ position: absolute; top: 14px; left: 14px; z-index: 2;+ font-family: var(--font-mono); font-size: 10px;+ letter-spacing: 0.18em; text-transform: uppercase;+ color: var(--text);+ padding: 4px 9px;+ background: rgba(5,5,5,0.55);+ border: 1px solid var(--hairline-strong);+ border-radius: 99px;+ backdrop-filter: blur(6px);}- /* ── FEATURE PILLS ─────────────────────────────────────────── */+ /* ── VERB PILLS ────────────────────────────────────── */.pills {- display: flex; flex-wrap: wrap; gap: 10px;- margin-top: 32px;+ display: flex; flex-wrap: wrap; gap: 8px;}.pill {padding: 9px 16px;- background: var(--panel); border: 1px solid var(--border);- border-radius: 99px;- font-size: 14px; color: var(--text-soft);+ border: 1px solid var(--hairline-strong); border-radius: 99px;+ font-size: 13.5px; color: var(--text-2);+ font-weight: 450;}- .pill strong { color: var(--text); font-weight: 600; }+ .pill strong {+ color: var(--text); font-weight: 600;+ font-family: var(--font-display);+ letter-spacing: -0.01em;+ }+ .pill .sep { color: var(--text-4); margin: 0 8px; }- /* ── BOTTOM CTA ────────────────────────────────────────────── */- .bottom-cta {- max-width: 1280px; margin: 0 auto; padding: 0 28px 96px;- }- .bottom-cta-inner {- padding: 64px 56px;- background: linear-gradient(135deg, rgba(106,92,255,0.16), rgba(92,255,225,0.08));- border: 1px solid var(--border-strong); border-radius: 24px;+ /* ── CTA ───────────────────────────────────────────── */+ .cta-card {+ padding: 80px 64px;+ border: 1px solid var(--hairline-strong); border-radius: 16px;text-align: center;+ background: var(--surface-0);+ }+ .cta-card h2 {+ font-family: var(--font-display);+ font-size: clamp(32px, 4vw, 52px);+ line-height: 1.0; letter-spacing: -0.035em;+ font-weight: 600; margin: 0 0 18px;}- .bottom-cta h2 {- font-size: clamp(28px, 4vw, 42px);- letter-spacing: -0.025em; margin: 0 0 16px; font-weight: 600;+ .cta-card p {+ color: var(--text-2); font-size: 17px; margin: 0 0 36px;}- .bottom-cta p { color: var(--text-soft); margin: 0 0 28px; font-size: 17px; }+ .cta-card .cta-row { justify-content: center; margin-bottom: 0; }- /* ── FOOTER ───────────────────────────────────────────────── */+ /* ── FOOTER ────────────────────────────────────────── */footer {- border-top: 1px solid var(--border);- padding: 36px 28px;+ border-top: 1px solid var(--hairline);+ padding: 40px 0 56px;+ margin-top: 0;}.foot-inner {- max-width: 1280px; margin: 0 auto;- display: flex; justify-content: space-between; align-items: center; gap: 24px;- flex-wrap: wrap;- color: var(--muted); font-size: 13.5px;+ display: flex; justify-content: space-between; align-items: center;+ gap: 24px; flex-wrap: wrap;+ color: var(--text-4); font-size: 13px;+ font-family: var(--font-mono);+ letter-spacing: 0.04em;}- .foot-links { display: flex; gap: 20px; flex-wrap: wrap; }+ .foot-links { display: flex; gap: 22px; flex-wrap: wrap; }+ .foot-links a { color: var(--text-3); }.foot-links a:hover { color: var(--text); }.demo-tag {- position: fixed; bottom: 16px; right: 16px; z-index: 1000;- background: var(--accent-warm); color: var(--bg);- padding: 7px 14px; border-radius: 99px;- font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;- box-shadow: 0 8px 24px rgba(255, 122, 92, 0.35);+ position: fixed; bottom: 18px; right: 18px; z-index: 1000;+ background: var(--text); color: var(--bg);+ padding: 7px 13px; border-radius: 99px;+ font-family: var(--font-mono); font-size: 10.5px;+ font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;}</style><script type="module" src="https://three.ws/agent-3d/latest/agent-3d.js"></script></head><body>- <!-- ── NAV ────────────────────────────────────────────────────────── -->+ <!-- ── NAV ───────────────────────────────────────────────────── --><header class="nav"><div class="nav-inner"><a class="brand" href="/home-next">- <span class="brand-dot"></span>+ <span class="brand-mark"></span><span>three.ws</span></a><nav class="nav-main" aria-label="Primary">@@ -465,265 +513,307 @@</nav><div class="nav-end"><a href="/login">Sign in</a>- <a class="console-btn" href="/dashboard-next">Console</a>+ <a class="console" href="/dashboard-next">Console</a></div></div></header>- <!-- ── HERO ──────────────────────────────────────────────────────── -->+ <!-- ── HERO ──────────────────────────────────────────────────── --><section class="hero"><div class="hero-text">- <div class="eyebrow">3D agents · embeddable · one tag</div>- <h1 class="hero-title">- Drop one tag.<br/>- Any character.<br/>- <span class="gradient">Every page.</span>+ <div class="eyebrow">v0.1 · open beta</div>+ <h1 class="hero-h">+ The 3D agent<br/>+ layer of the<br/>+ <em>internet.</em></h1><p class="hero-sub">- three.ws is the 3D agent layer of the internet. Embed a living 3D AI agent- on any website — voice, animation, memory, and on-chain identity included — with one line of HTML.+ Embed a living 3D AI agent on any website with one line of HTML.+ Voice, animation, memory, and on-chain identity included.</p><div class="cta-row">- <a class="btn primary" href="/create">Build an agent →</a>- <a class="btn ghost" href="#embed">See the embed ↓</a>+ <a class="btn primary" href="/create">Build an agent <span class="arrow">→</span></a>+ <a class="btn" href="#embed">See the embed</a></div>- <div class="live-strip" aria-label="Live platform stats">- <div class="live-stat"><span class="live-dot"></span><strong id="stat-agents">1,847</strong> agents live</div>- <div class="live-stat"><span class="live-dot"></span><strong id="stat-sites">312</strong> sites embedded</div>- <div class="live-stat"><span class="live-dot"></span><strong id="stat-chats">28,401</strong> chats today</div>+ <div class="metrics">+ <div class="metric"><strong id="m-agents">1,847</strong>agents live</div>+ <div class="metric"><strong id="m-sites">312</strong>sites embedded</div>+ <div class="metric"><strong id="m-chats">28,401</strong>chats today</div></div></div>- <div class="hero-canvas">- <span class="canvas-tag">● Live</span>- <agent-3d- class="hero-agent"- mode="inline"- responsive- background="transparent"- name-plate="off"- avatar-chat="off"- kiosk- eager- style="width:100%;height:100%;display:block"- ></agent-3d>- <span class="canvas-hint">Try: "wave at me"</span>+ <div class="hero-stage" id="hero-stage">+ <span class="stage-marker">live</span>+ <div class="hero-stage-inner" id="hero-stage-inner">+ <agent-3d+ class="live-agent"+ mode="inline"+ responsive+ background="transparent"+ name-plate="off"+ avatar-chat="off"+ kiosk+ eager+ ></agent-3d>+ </div>+ <div class="stage-meta">+ <span>nich</span>+ <span>/api/avatars/bacff13e</span>+ </div></div></section><!-- ── EMBED SHOWCASE ────────────────────────────────────────── -->- <section class="section" id="embed">- <div class="section-eyebrow">Two lines. Any HTML.</div>- <h2>This is the entire embed.</h2>- <p class="lede">- Copy these two lines into any page on the web. The agent you see on the right is rendered- by the exact code on the left — no iframe wrapper, no SDK install, no build step.- </p>- <div class="embed-grid">- <div class="code-card">- <div class="code-card-head">- <div class="tabs">- <button class="tab active" data-flavor="html">HTML</button>- <button class="tab" data-flavor="react">React</button>- <button class="tab" data-flavor="vue">Vue</button>+ <section class="block" id="embed">+ <div class="wrap-1280">+ <div class="block-head">+ <p class="block-eyebrow"><span class="num">01</span>The embed</p>+ <h2 class="block-h">Two lines. <em>Any HTML.</em></h2>+ <p class="block-lede">+ Copy these into any page on the web. The agent on the right is rendered+ by the exact code on the left — no iframe, no SDK install, no build step.+ </p>+ </div>+ <div class="embed-grid">+ <div class="pane code-pane">+ <div class="pane-head">+ <div class="tabs">+ <button class="tab active" data-flavor="html">HTML</button>+ <button class="tab" data-flavor="react">React</button>+ <button class="tab" data-flavor="vue">Vue</button>+ </div>+ <span>index.html</span></div>- <span>index.html</span>- </div><pre id="embed-snippet"><span class="tag"><script</span> <span class="attr">type</span>=<span class="str">"module"</span><span class="attr">src</span>=<span class="str">"https://three.ws/agent-3d/latest/agent-3d.js"</span><span class="tag">></script></span><span class="tag"><agent-3d</span><span class="attr">src</span>=<span class="str">"https://three.ws/api/avatars/bacff13e…"</span><span class="tag">></agent-3d></span></pre>- <div class="code-card-foot">- <button class="copy-btn" id="copy-btn" data-clip="snippet">Copy snippet</button>+ <div class="pane-foot">+ <button class="copy-btn" id="copy-btn">Copy</button>+ </div></div>- </div>- <div class="render-card">- <div class="code-card-head">- <span>↪ live render</span>- <span style="color: var(--ok);">● running</span>+ <div class="pane render-pane">+ <div class="pane-head">+ <span>↪ live render</span>+ <span style="color: var(--text-3);">running</span>+ </div>+ <agent-3d+ class="live-agent"+ mode="inline"+ responsive+ background="transparent"+ name-plate="off"+ avatar-chat="off"+ kiosk+ eager+ ></agent-3d></div>- <agent-3d- class="hero-agent"- mode="inline"- responsive- background="transparent"- name-plate="off"- avatar-chat="off"- kiosk- eager- style="display:block;position:absolute;inset:56px 0 0;width:100%;height:calc(100% - 56px);"- ></agent-3d></div></div></section>- <!-- ── LOGO WALL ─────────────────────────────────────────────── -->- <div class="logos">- <div class="logos-caption">Embedded across the web</div>- <div class="logo-row">- <span class="logo">claude.ai</span>- <span class="logo">lobehub</span>- <span class="logo">agenc.tech</span>- <span class="logo">pump.fun</span>- <span class="logo">solana</span>- <span class="logo">metaplex</span>- <span class="logo">erc-8004</span>+ <!-- ── LOGO STRIP ────────────────────────────────────────── -->+ <div class="logo-strip">+ <div class="wrap-1280">+ <div class="logo-strip-cap">Embedded across the web</div>+ <div class="logo-row">+ <span class="logo">claude.ai</span>+ <span class="logo">lobehub</span>+ <span class="logo">agenc.tech</span>+ <span class="logo">pump.fun</span>+ <span class="logo">solana</span>+ <span class="logo">metaplex</span>+ <span class="logo">erc-8004</span>+ </div></div></div>- <!-- ── THREE DOORS ────────────────────────────────────────── -->- <section class="section">- <div class="section-eyebrow">Three ways in</div>- <h2>Built for everyone who touches an agent.</h2>- <p class="lede">- A three-sided marketplace: developers integrate, creators build, communities discover.- Pick the door that fits.- </p>- <div class="doors">- <a class="door dev" href="/docs">- <div class="door-icon"></></div>- <div class="door-label">For developers</div>- <h3>Two lines. Any HTML.</h3>- <p>Drop <code><agent-3d></code> into any page. React, Vue, Svelte, plain HTML — works everywhere. Voice, memory, animation, payments built-in.</p>- <span class="door-cta">Read the docs</span>- </a>- <a class="door creator" href="/create">- <div class="door-icon">✦</div>- <div class="door-label">For creators</div>- <h3>Selfie to agent in 60 seconds.</h3>- <p>Snap a selfie, pick a personality, publish. Earn from every conversation with x402 paid skills. Keep 100% during open beta.</p>- <span class="door-cta">Start building</span>- </a>- <a class="door consumer" href="/discover">- <div class="door-icon">◎</div>- <div class="door-label">For everyone</div>- <h3>Discover, chat, collect.</h3>- <p>Browse thousands of public agents. Talk to them inline. Remix anyone's into your own. Own them on-chain, tip them in USDC.</p>- <span class="door-cta">Explore agents</span>- </a>- </div>- </section>-- <!-- ── HOW IT WORKS ─────────────────────────────────────────── -->- <section class="section">- <div class="section-eyebrow">How it works</div>- <h2>Three steps. One living character.</h2>- <div class="steps">- <div class="step">- <div class="step-num">01 · CREATE</div>- <div class="step-title">Make an agent</div>- <p class="step-body">Selfie → 3D avatar in a minute. Or upload your own GLB. Then add personality with a prompt. Or skip ahead and use a pre-built agent from the marketplace.</p>+ <!-- ── THREE DOORS ──────────────────────────────────────── -->+ <section class="block">+ <div class="wrap-1280">+ <div class="block-head">+ <p class="block-eyebrow"><span class="num">02</span>Three doors</p>+ <h2 class="block-h">Built for everyone <em>who touches an agent.</em></h2>+ <p class="block-lede">+ A three-sided marketplace: developers integrate, creators build, communities discover.+ </p></div>- <div class="step">- <div class="step-num">02 · EMBED</div>- <div class="step-title">Drop the tag</div>- <p class="step-body">Two lines of HTML. No SDK install, no iframe wrapper, no build step. Works in React, Vue, Svelte, and plain HTML. Lazy-loaded by default.</p>- </div>- <div class="step">- <div class="step-num">03 · SHIP</div>- <div class="step-title">Your site is alive</div>- <p class="step-body">Visitors talk to your agent with text or voice. It remembers conversations across sessions. Charge per chat with x402. Watch it grow on-chain.</p>+ <div class="doors">+ <a class="door" href="/docs">+ <div class="door-num"><span>01</span><span class="lbl">Developers</span></div>+ <h3>Two lines. Any HTML.</h3>+ <p>Drop <code><agent-3d></code> into any page. React, Vue, Svelte, plain HTML. Voice, memory, animation, payments built-in.</p>+ <span class="door-cta">Read the docs</span>+ </a>+ <a class="door" href="/create">+ <div class="door-num"><span>02</span><span class="lbl">Creators</span></div>+ <h3>Selfie to agent in 60 seconds.</h3>+ <p>Snap a selfie, pick a personality, publish. Earn from every conversation with x402 paid skills. Keep 100% during open beta.</p>+ <span class="door-cta">Start building</span>+ </a>+ <a class="door" href="/discover">+ <div class="door-num"><span>03</span><span class="lbl">Everyone</span></div>+ <h3>Discover, chat, collect.</h3>+ <p>Browse public agents. Talk to them inline. Remix anyone's into your own. Own them on-chain, tip them in USDC.</p>+ <span class="door-cta">Explore agents</span>+ </a></div></div></section>- <!-- ── LIVE SHOWCASE ──────────────────────────────────────────── -->- <section class="section">- <div class="section-eyebrow">Discover</div>- <h2>Living agents, right now.</h2>- <p class="lede">A taste of what's running across the web today. Click any agent to talk to them, remix them, or grab their embed code.</p>- <div class="showcase-grid" id="showcase">- <a class="showcase-card" href="/agent-next?id=bacff13e-b64b-4ac0-860d-44f0168ad23b">- <img src="https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/thumb/bacff13e-b64b-4ac0-860d-44f0168ad23b.png" alt="nich" loading="lazy" />- <span class="card-tag">FEATURED</span>- <div class="card-meta">- <div class="card-name">nich</div>- <div class="card-author">@nirholas · 3D avatar</div>- </div>- </a>- <!-- Placeholder cards — would be populated from /api/explore in v2 -->- <a class="showcase-card" href="/discover" style="background: linear-gradient(135deg, #1a1a2c, #2a1a3c);">- <div class="card-meta">- <div class="card-name">Explore all →</div>- <div class="card-author">1,847 public agents</div>+ <!-- ── STEPS ────────────────────────────────────────────── -->+ <section class="block">+ <div class="wrap-1280">+ <div class="block-head">+ <p class="block-eyebrow"><span class="num">03</span>How it works</p>+ <h2 class="block-h">Three steps. <em>One living character.</em></h2>+ </div>+ <div class="steps">+ <div class="step">+ <div class="step-num">01 · CREATE</div>+ <div class="step-title">Make an agent</div>+ <p class="step-body">Selfie → 3D avatar in a minute. Or upload your own GLB. Then add personality with a prompt. Or skip ahead and use a pre-built agent from the marketplace.</p></div>- </a>- <a class="showcase-card" href="/discover?filter=onchain" style="background: linear-gradient(135deg, #0c1c2a, #1c2c3c);">- <div class="card-meta">- <div class="card-name">On-chain agents</div>- <div class="card-author">ERC-8004 directory</div>+ <div class="step">+ <div class="step-num">02 · EMBED</div>+ <div class="step-title">Drop the tag</div>+ <p class="step-body">Two lines of HTML. No SDK install, no iframe wrapper, no build step. Works in React, Vue, Svelte, and plain HTML. Lazy-loaded by default.</p></div>- </a>- <a class="showcase-card" href="/create" style="background: linear-gradient(135deg, #2a1c1c, #3c2c1c);">- <div class="card-meta">- <div class="card-name">+ Make your own</div>- <div class="card-author">Selfie → agent in 60s</div>+ <div class="step">+ <div class="step-num">03 · SHIP</div>+ <div class="step-title">Your site is alive</div>+ <p class="step-body">Visitors talk to your agent with text or voice. It remembers across sessions. Charge per chat with x402. Watch it grow on-chain.</p></div>- </a>+ </div>+ </div>+ </section>++ <!-- ── SHOWCASE ─────────────────────────────────────────── -->+ <section class="block">+ <div class="wrap-1280">+ <div class="block-head">+ <p class="block-eyebrow"><span class="num">04</span>Discover</p>+ <h2 class="block-h">Living agents, <em>right now.</em></h2>+ <p class="block-lede">A taste of what's running across the web today. Click any agent to talk, remix, or grab their embed.</p>+ </div>+ <div class="showcase">+ <a class="shot" href="/agent-next?id=bacff13e-b64b-4ac0-860d-44f0168ad23b">+ <div class="shot-fill">+ <img src="https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/thumb/bacff13e-b64b-4ac0-860d-44f0168ad23b.png" alt="nich" loading="lazy" />+ </div>+ <span class="shot-tag">Featured</span>+ <div class="shot-meta"><div class="shot-name">nich</div><div class="shot-sub">@nirholas</div></div>+ </a>+ <a class="shot" href="/discover">+ <div class="shot-meta">+ <div class="shot-name">Browse all</div>+ <div class="shot-sub">1,847 public agents</div>+ </div>+ </a>+ <a class="shot" href="/discover?filter=onchain">+ <div class="shot-meta">+ <div class="shot-name">On-chain</div>+ <div class="shot-sub">ERC-8004 directory</div>+ </div>+ </a>+ <a class="shot" href="/create">+ <div class="shot-meta">+ <div class="shot-name">Make your own</div>+ <div class="shot-sub">Selfie → agent · 60s</div>+ </div>+ </a>+ </div></div></section>- <!-- ── FEATURE PILLS ──────────────────────────────────────────── -->- <section class="section">- <div class="section-eyebrow">What you get</div>- <h2>Every verb your agent can do.</h2>- <div class="pills">- <span class="pill"><strong>Talk</strong> · text + voice</span>- <span class="pill"><strong>Animate</strong> · 200+ clips</span>- <span class="pill"><strong>Mocap</strong> · webcam → avatar</span>- <span class="pill"><strong>Walk</strong> · joystick + multiplayer</span>- <span class="pill"><strong>AR</strong> · WebXR + iOS Quick Look</span>- <span class="pill"><strong>Voice clone</strong> · ElevenLabs + LiveKit</span>- <span class="pill"><strong>Memory</strong> · cross-device sync</span>- <span class="pill"><strong>Skills</strong> · MCP + A2A</span>- <span class="pill"><strong>Payments</strong> · x402 USDC</span>- <span class="pill"><strong>Identity</strong> · ERC-8004 on-chain</span>- <span class="pill"><strong>Remix</strong> · fork anyone's agent</span>- <span class="pill"><strong>Token</strong> · launch on Pump.fun</span>+ <!-- ── VERB PILLS ───────────────────────────────────────── -->+ <section class="block">+ <div class="wrap-1280">+ <div class="block-head">+ <p class="block-eyebrow"><span class="num">05</span>Capabilities</p>+ <h2 class="block-h">Every verb your <em>agent can do.</em></h2>+ </div>+ <div class="pills">+ <span class="pill"><strong>Talk</strong><span class="sep">·</span>text + voice</span>+ <span class="pill"><strong>Animate</strong><span class="sep">·</span>200+ clips</span>+ <span class="pill"><strong>Mocap</strong><span class="sep">·</span>webcam → avatar</span>+ <span class="pill"><strong>Walk</strong><span class="sep">·</span>joystick + multiplayer</span>+ <span class="pill"><strong>AR</strong><span class="sep">·</span>WebXR + iOS</span>+ <span class="pill"><strong>Voice clone</strong><span class="sep">·</span>ElevenLabs · LiveKit</span>+ <span class="pill"><strong>Memory</strong><span class="sep">·</span>cross-device sync</span>+ <span class="pill"><strong>Skills</strong><span class="sep">·</span>MCP · A2A</span>+ <span class="pill"><strong>Payments</strong><span class="sep">·</span>x402 USDC</span>+ <span class="pill"><strong>Identity</strong><span class="sep">·</span>ERC-8004 on-chain</span>+ <span class="pill"><strong>Remix</strong><span class="sep">·</span>fork anyone's agent</span>+ <span class="pill"><strong>Token</strong><span class="sep">·</span>launch on Pump.fun</span>+ </div></div></section>- <!-- ── BOTTOM CTA ────────────────────────────────────────────── -->- <section class="bottom-cta">- <div class="bottom-cta-inner">- <h2>Add a living 3D agent to your product today.</h2>- <p>Free during open beta. No credit card. Two lines of HTML.</p>- <div class="cta-row" style="justify-content: center;">- <a class="btn primary" href="/create">Build your first agent →</a>- <a class="btn ghost" href="/docs">Read the docs</a>+ <!-- ── BOTTOM CTA ──────────────────────────────────────── -->+ <section class="block" style="padding-bottom: 64px;">+ <div class="wrap-1280">+ <div class="cta-card">+ <h2>Add a living 3D agent<br/>to your product today.</h2>+ <p>Free during open beta. No credit card. Two lines of HTML.</p>+ <div class="cta-row">+ <a class="btn primary" href="/create">Build your first agent <span class="arrow">→</span></a>+ <a class="btn" href="/docs">Read the docs</a>+ </div></div></div></section>- <!-- ── FOOTER ────────────────────────────────────────────────── -->+ <!-- ── FOOTER ──────────────────────────────────────────── --><footer>- <div class="foot-inner">- <div>© 2026 three.ws · The 3D agent layer of the internet</div>- <div class="foot-links">- <a href="/docs">Docs</a>- <a href="/pricing">Pricing</a>- <a href="/discover">Discover</a>- <a href="https://github.com/nirholas/three.ws">GitHub</a>- <a href="/agenc">Status</a>+ <div class="wrap-1280">+ <div class="foot-inner">+ <div>© 2026 · three.ws · the 3D agent layer of the internet</div>+ <div class="foot-links">+ <a href="/docs">Docs</a>+ <a href="/pricing">Pricing</a>+ <a href="/discover">Discover</a>+ <a href="https://github.com/nirholas/three.ws">GitHub</a>+ </div></div></div></footer>- <a class="demo-tag" href="/" title="This is a redesign demo">DEMO · /home-next</a>+ <a class="demo-tag" href="/" title="Redesign demo">demo · /home-next</a><script>- // ── Boot the live <agent-3d> instances ───────────────────────- // The component's `src` requires an absolute URL (the production- // discover page does the same). Setting it after upgrade keeps- // the page working in dev (port-forwarded Codespaces) and prod.+ // ── Boot live <agent-3d> instances ──────────────────────const AVATAR_ID = 'bacff13e-b64b-4ac0-860d-44f0168ad23b';const AVATAR_SRC = `${location.origin}/api/avatars/${AVATAR_ID}`;- document.querySelectorAll('agent-3d.hero-agent').forEach((el) => {+ document.querySelectorAll('agent-3d.live-agent').forEach((el) => {el.setAttribute('src', AVATAR_SRC);});- // ── Copy snippet ─────────────────────────────────────────────+ // ── Hero parallax tilt (subtle "3D site" feel) ──────────+ const stage = document.getElementById('hero-stage');+ const inner = document.getElementById('hero-stage-inner');+ if (stage && inner && window.matchMedia('(min-width: 980px)').matches) {+ let rx = 0, ry = 0, tx = 0, ty = 0;+ const lerp = (a, b, t) => a + (b - a) * t;+ stage.addEventListener('mousemove', (e) => {+ const r = stage.getBoundingClientRect();+ const x = (e.clientX - r.left) / r.width - 0.5; // -0.5..0.5+ const y = (e.clientY - r.top) / r.height - 0.5;+ tx = x * 6; // max 6° rotateY+ ty = -y * 4; // max 4° rotateX+ });+ stage.addEventListener('mouseleave', () => { tx = 0; ty = 0; });+ function tick() {+ rx = lerp(rx, ty, 0.08);+ ry = lerp(ry, tx, 0.08);+ inner.style.transform = `perspective(1400px) rotateX(${rx.toFixed(2)}deg) rotateY(${ry.toFixed(2)}deg)`;+ requestAnimationFrame(tick);+ }+ tick();+ }++ // ── Copy snippet / flavor tabs ──────────────────────────const SNIPPETS = {html: `<script type="module" src="https://three.ws/agent-3d/latest/agent-3d.js"><\/script>\n<agent-3d src="https://three.ws/api/avatars/bacff13e-b64b-4ac0-860d-44f0168ad23b"><\/agent-3d>`,react: `import 'https://three.ws/agent-3d/latest/agent-3d.js';\n\nexport default function MyAgent() {\n return <agent-3d src="https://three.ws/api/avatars/bacff13e..." />;\n}`,@@ -731,53 +821,43 @@};const snippetEl = document.getElementById('embed-snippet');const copyBtn = document.getElementById('copy-btn');- const tabBtns = document.querySelectorAll('.code-card-head .tab');+ const tabBtns = document.querySelectorAll('.pane-head .tab');let activeFlavor = 'html';-- function escapeHtml(s) {- return s.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');- }+ const esc = (s) => s.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');function highlight(code) {- // minimal hand-rolled syntax color (HTML tags + JSX-ish)- return escapeHtml(code)+ return esc(code).replace(/(<\/?[a-z][a-z0-9-]*)/gi, '<span class="tag">$1</span>').replace(/(\s)([a-z-]+)(=)/gi, '$1<span class="attr">$2</span>$3').replace(/("[^&]*?"|"[^"]*?")/g, '<span class="str">$1</span>');}- function setFlavor(flavor) {- activeFlavor = flavor;- tabBtns.forEach((b) => b.classList.toggle('active', b.dataset.flavor === flavor));- snippetEl.innerHTML = highlight(SNIPPETS[flavor]);+ function setFlavor(f) {+ activeFlavor = f;+ tabBtns.forEach((b) => b.classList.toggle('active', b.dataset.flavor === f));+ snippetEl.innerHTML = highlight(SNIPPETS[f]);}tabBtns.forEach((b) => b.addEventListener('click', () => setFlavor(b.dataset.flavor)));copyBtn.addEventListener('click', async () => {try {await navigator.clipboard.writeText(SNIPPETS[activeFlavor]);copyBtn.classList.add('copied');- copyBtn.textContent = '✓ Copied';- setTimeout(() => {- copyBtn.classList.remove('copied');- copyBtn.textContent = 'Copy snippet';- }, 1800);- } catch (e) { /* clipboard blocked */ }+ copyBtn.textContent = 'Copied';+ setTimeout(() => { copyBtn.classList.remove('copied'); copyBtn.textContent = 'Copy'; }, 1600);+ } catch (e) {}});- // ── Live counter "ticker" — fake but plausible ────────────- // In v2 this wires to /api/stats/live or similar.+ // ── Live metric ticker ──────────────────────────────────const stats = { agents: 1847, sites: 312, chats: 28401 };- const els = {- agents: document.getElementById('stat-agents'),- sites: document.getElementById('stat-sites'),- chats: document.getElementById('stat-chats'),+ const m = {+ agents: document.getElementById('m-agents'),+ sites: document.getElementById('m-sites'),+ chats: document.getElementById('m-chats'),};- function fmt(n) { return n.toLocaleString('en-US'); }- function tick() {- // occasional growth — keeps the page feeling alive- if (Math.random() < 0.4) { stats.chats += 1 + Math.floor(Math.random() * 3); els.chats.textContent = fmt(stats.chats); }- if (Math.random() < 0.08) { stats.agents += 1; els.agents.textContent = fmt(stats.agents); }- if (Math.random() < 0.04) { stats.sites += 1; els.sites.textContent = fmt(stats.sites); }- }- setInterval(tick, 1400);+ const fmt = (n) => n.toLocaleString('en-US');+ setInterval(() => {+ if (Math.random() < 0.45) { stats.chats += 1 + Math.floor(Math.random() * 3); m.chats.textContent = fmt(stats.chats); }+ if (Math.random() < 0.08) { stats.agents += 1; m.agents.textContent = fmt(stats.agents); }+ if (Math.random() < 0.04) { stats.sites += 1; m.sites.textContent = fmt(stats.sites); }+ }, 1400);</script></body></html>diff --git a/pages/marketplace.html b/pages/marketplace.htmlindex c6dead3e8..a2944618c 100644--- a/pages/marketplace.html+++ b/pages/marketplace.html@@ -1800,6 +1800,7 @@<button data-tab="overview" class="active" role="tab">Overview</button><button data-tab="profile" role="tab">Agent Profile</button><button data-tab="capabilities" role="tab">Agent Capabilities</button>+ <button data-tab="embed" role="tab">Embed</button><button data-tab="versions" role="tab">Version History</button><button data-tab="similar" role="tab">Similar Agents</button></nav>@@ -1870,6 +1871,32 @@<div id="d-library" class="market-library"></div></div>+ <div data-panel="embed" class="market-panel">+ <h2>Embed this Agent</h2>+ <p class="market-prose" style="font-size:13px;color:var(--mk-text-2);margin:0 0 18px">Drop the agent anywhere — as a web component, iframe, or direct link.</p>+ <div class="d-embed-section">+ <div class="d-embed-label">+ <span>Web component</span>+ <button class="d-embed-copy" data-embed="wc">Copy</button>+ </div>+ <pre class="d-embed-code" id="d-embed-wc"></pre>+ </div>+ <div class="d-embed-section">+ <div class="d-embed-label">+ <span>Iframe</span>+ <button class="d-embed-copy" data-embed="iframe">Copy</button>+ </div>+ <pre class="d-embed-code" id="d-embed-iframe"></pre>+ </div>+ <div class="d-embed-section">+ <div class="d-embed-label">+ <span>Direct link</span>+ <button class="d-embed-copy" data-embed="link">Copy</button>+ </div>+ <pre class="d-embed-code" id="d-embed-link"></pre>+ </div>+ </div>+<div data-panel="versions" class="market-panel"><h2>Version History</h2><ul id="d-versions" class="market-versions"></ul>@@ -1884,6 +1911,14 @@<aside class="market-detail-side"><button class="market-fork" id="d-fork">Fork & Chat</button><button class="market-export-btn" id="d-export-json">↓ Export JSON</button>+ <div class="d-token-card" id="d-token-card" hidden>+ <div class="d-token-eyebrow">On-chain token</div>+ <div class="d-token-mint" id="d-token-mint"></div>+ <div class="d-token-actions">+ <a class="d-token-btn" id="d-token-pump" target="_blank" rel="noopener">View on pump.fun</a>+ <a class="d-token-btn d-token-btn-sec" id="d-token-jup" target="_blank" rel="noopener">Trade on Jupiter</a>+ </div>+ </div><div class="market-related-side" id="d-related-side"></div></aside></div>diff --git a/pages/mocap-studio.html b/pages/mocap-studio.htmlindex f46d4e998..6e2a2db19 100644--- a/pages/mocap-studio.html+++ b/pages/mocap-studio.html@@ -4,353 +4,579 @@<meta charset="utf-8" /><title>Mocap Studio · three.ws</title><meta name="viewport" content="width=device-width, initial-scale=1.0" />- <meta name="description" content="Record, save, and replay face mocap clips on any three.ws avatar." />- <meta name="theme-color" content="#0b0d10" />+ <meta name="description" content="Record your face, save the clip, replay it on any three.ws avatar." />+ <meta name="theme-color" content="#050505" /><link rel="shortcut icon" href="/favicon.ico" /><link rel="stylesheet" href="/fonts/fonts.css" />+ <link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/footer.css" />+ <script defer src="/footer-newsletter.js"></script><style>:root {color-scheme: dark;- --bg: #07090c;- --panel: #11141a;- --panel-edge: rgba(255, 255, 255, 0.07);- --ink: #e8ecf2;- --ink-dim: rgba(255, 255, 255, 0.6);- --accent: #5fa8ff;- --rec: #ff5b6b;- --ok: #5fce6a;+ --bg: #050505;+ --surface-0: #0b0b0b;+ --surface-1: #111111;+ --surface-2: #181818;+ --hairline: #1c1c1c;+ --hairline-strong: #2a2a2a;+ --text: #f6f6f6;+ --text-2: #a8a8a8;+ --text-3: #6a6a6a;+ --text-4: #4a4a4a;+ --accent: #8b5cf6;+ --accent-2: #6366f1;+ --accent-glow: rgba(139, 92, 246, 0.35);+ --rec: #f43f5e;+ --rec-glow: rgba(244, 63, 94, 0.4);+ --ok: #4ade80;+ --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;+ --font-body: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;+ --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;}* { box-sizing: border-box; }+ html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); }body {- margin: 0;+ font-size: 14.5px;+ line-height: 1.55;min-height: 100vh;- min-height: 100dvh;- background: radial-gradient(1200px 600px at 70% -10%, #1a1f29, var(--bg));- color: var(--ink);- font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;+ overflow-x: hidden;+ -webkit-font-smoothing: antialiased;+ text-rendering: optimizeLegibility;+ display: flex;+ flex-direction: column;+ }+ a { color: inherit; text-decoration: none; }+ button { font-family: inherit; cursor: pointer; }+ ::selection { background: var(--accent); color: #fff; }++ /* ── Site header ───────────────────────────────────── */+ .site-header {+ display: flex;+ align-items: center;+ gap: 0;+ padding: 0 32px;+ height: 56px;+ position: sticky;+ top: 0;+ z-index: 100;+ }+ .site-header-brand h1 {+ margin: 0;+ font-size: inherit;+ font-weight: inherit;+ line-height: inherit;+ }+ @media (max-width: 640px) {+ .site-header { padding: 0 20px; }+ }++ /* ── Page layout ───────────────────────────────────── */+ .page-wrap {+ flex: 1;+ max-width: 1280px;+ width: 100%;+ margin: 0 auto;+ padding: 40px 32px 64px;+ }+ @media (max-width: 720px) {+ .page-wrap { padding: 24px 20px 48px; }+ }++ .page-header {+ margin-bottom: 32px;+ }+ .page-eyebrow {+ display: inline-flex;+ align-items: center;+ gap: 8px;+ font-family: var(--font-mono);+ font-size: 11px;+ text-transform: uppercase;+ letter-spacing: 0.16em;+ color: var(--text-3);+ margin-bottom: 12px;+ }+ .page-eyebrow::before {+ content: "";+ width: 5px;+ height: 5px;+ border-radius: 50%;+ background: var(--accent);+ box-shadow: 0 0 10px var(--accent-glow);+ }+ .page-title {+ font-family: var(--font-display);+ font-size: clamp(28px, 3.5vw, 40px);+ font-weight: 600;+ letter-spacing: -0.03em;+ margin: 0 0 8px;+ color: var(--text);+ line-height: 1.1;+ }+ .page-sub {+ color: var(--text-3);+ font-size: 14px;+ max-width: 480px;+ }++ /* ── Auth warning ───────────────────────────────────── */+ .auth-banner {+ display: none;+ align-items: center;+ gap: 10px;+ padding: 12px 16px;+ border-radius: 10px;+ background: rgba(251, 191, 36, 0.06);+ border: 1px solid rgba(251, 191, 36, 0.2);+ font-size: 13px;+ color: rgba(251, 191, 36, 0.9);+ margin-bottom: 24px;+ }+ .auth-banner.visible { display: flex; }+ .auth-banner a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }++ /* ── Studio grid ────────────────────────────────────── */+ .studio-grid {display: grid;- grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);- gap: 22px;- padding: 22px;+ grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr);+ gap: 20px;}@media (max-width: 980px) {- body { grid-template-columns: 1fr; padding: 14px; gap: 14px; }+ .studio-grid { grid-template-columns: 1fr; }+ }+ @media (orientation: landscape) and (max-height: 500px) {+ .studio-grid {+ grid-template-columns: minmax(0, 1fr) minmax(240px, 0.65fr);+ gap: 14px;+ }}- h1 { margin: 0 0 6px; font-size: 22px; }- .sub { color: var(--ink-dim); font-size: 13px; margin-bottom: 18px; }- .stage {+ /* ── Stage (3D canvas) ──────────────────────────────── */+ .stage-wrap {position: relative;- background: linear-gradient(180deg, #11141a, #0a0c10);- border-radius: 14px;- border: 1px solid var(--panel-edge);- min-height: 560px;+ background: linear-gradient(160deg, #0f0f12 0%, #070709 100%);+ border-radius: 16px;+ border: 1px solid var(--hairline-strong);overflow: hidden;+ min-height: 540px;+ box-shadow: 0 0 0 1px rgba(255,255,255,0.02) inset, 0 24px 48px -24px rgba(0,0,0,0.8);}- .stage canvas {+ .stage-wrap canvas {display: block;width: 100% !important;height: 100% !important;}#webcam-pip {position: absolute;- right: 12px;- top: 12px;- width: 160px;- height: 120px;+ right: 14px;+ top: 14px;+ width: 152px;+ height: 114px;object-fit: cover;border-radius: 10px;- border: 1px solid rgba(255, 255, 255, 0.16);+ border: 1px solid rgba(255, 255, 255, 0.14);background: #000;z-index: 3;transform: scaleX(-1);display: none;+ box-shadow: 0 8px 24px rgba(0,0,0,0.7);}#webcam-pip.live { display: block; }+.rec-pill {position: absolute;- left: 12px;- top: 12px;+ left: 14px;+ top: 14px;z-index: 3;display: none;align-items: center;- gap: 6px;- padding: 6px 12px;+ gap: 7px;+ padding: 6px 13px;border-radius: 999px;- background: rgba(0, 0, 0, 0.6);+ background: rgba(0, 0, 0, 0.72);+ backdrop-filter: blur(12px);color: #fff;font-size: 11px;- letter-spacing: 0.06em;- border: 1px solid rgba(255, 255, 255, 0.18);- }- .rec-pill.on {- display: inline-flex;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ font-family: var(--font-mono);+ border: 1px solid rgba(244, 63, 94, 0.35);+ box-shadow: 0 0 12px rgba(244, 63, 94, 0.2);}+ .rec-pill.on { display: inline-flex; }.rec-pill .dot {- width: 8px;- height: 8px;+ width: 7px;+ height: 7px;border-radius: 50%;background: var(--rec);- box-shadow: 0 0 8px var(--rec);- animation: pulse 1s ease-in-out infinite;+ box-shadow: 0 0 8px var(--rec-glow);+ animation: recpulse 1s ease-in-out infinite;+ }+ @keyframes recpulse {+ 0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--rec-glow); }+ 50% { opacity: 0.5; box-shadow: 0 0 4px var(--rec-glow); }}- @keyframes pulse {- 0%, 100% { opacity: 1; }- 50% { opacity: 0.4; }++ @media (max-width: 640px) {+ .stage-wrap { min-height: min(58vw, 380px); }+ #webcam-pip { width: 96px; height: 72px; top: max(10px, env(safe-area-inset-top, 10px)); right: max(10px, env(safe-area-inset-right, 10px)); }+ .rec-pill { top: max(10px, env(safe-area-inset-top, 10px)); left: max(10px, env(safe-area-inset-left, 10px)); }+ }+ @media (orientation: landscape) and (max-height: 500px) {+ .stage-wrap { min-height: 200px; }+ #webcam-pip { width: 76px; height: 57px; }}+ /* ── Cards ──────────────────────────────────────────── */.card {- background: var(--panel);- border: 1px solid var(--panel-edge);+ background: var(--surface-0);+ border: 1px solid var(--hairline);border-radius: 14px;- padding: 16px;- margin-bottom: 14px;+ padding: 20px;+ margin-bottom: 16px;}- .card h2 {- margin: 0 0 12px;- font-size: 13px;+ .card:last-child { margin-bottom: 0; }+ .card-label {+ font-family: var(--font-mono);+ font-size: 10.5px;text-transform: uppercase;- letter-spacing: 0.1em;- color: var(--ink-dim);+ letter-spacing: 0.14em;+ color: var(--text-4);+ font-weight: 600;+ margin: 0 0 16px;+ }++ /* ── Timer ──────────────────────────────────────────── */+ .timer {+ font-family: var(--font-mono);+ font-size: 40px;font-weight: 600;+ letter-spacing: 0.02em;+ color: var(--text-2);+ margin: 0 0 16px;+ text-align: center;+ line-height: 1;+ transition: color 0.2s;+ }+ .timer.recording {+ color: var(--rec);+ text-shadow: 0 0 20px var(--rec-glow);+ }+ @media (max-width: 640px) {+ .timer { font-size: 30px; }+ }+ @media (orientation: landscape) and (max-height: 500px) {+ .timer { font-size: 22px; margin-bottom: 10px; }+ }++ /* ── Form rows ──────────────────────────────────────── */+ .field-row {+ display: flex;+ align-items: flex-start;+ gap: 10px;+ margin-bottom: 10px;+ }+ .field-row > label {+ color: var(--text-3);+ font-size: 13px;+ min-width: 88px;+ padding-top: 11px;+ flex-shrink: 0;}- .row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }- .row > label { color: var(--ink-dim); font-size: 13px; min-width: 90px; }- .row input,- .row select,- .row textarea {+ .field-row input,+ .field-row select,+ .field-row textarea {flex: 1;- background: #06080b;- color: var(--ink);- border: 1px solid var(--panel-edge);+ background: #0a0a0a;+ color: var(--text);+ border: 1px solid var(--hairline-strong);border-radius: 8px;- padding: 9px 11px;- font-size: 13px;- font-family: inherit;+ padding: 10px 13px;+ font-size: 13.5px;+ font-family: var(--font-body);min-width: 0;+ min-height: 44px;+ outline: none;+ transition: border-color 0.15s;}- .row textarea { resize: vertical; min-height: 56px; }- .actions { display: flex; gap: 8px; flex-wrap: wrap; }- button.btn {+ .field-row input:focus,+ .field-row select:focus,+ .field-row textarea:focus {+ border-color: rgba(139, 92, 246, 0.5);+ box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);+ }+ .field-row textarea { resize: vertical; min-height: 64px; }+ .field-row select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236a6a6a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 32px; }+ @media (max-width: 640px) {+ .field-row { flex-direction: column; gap: 4px; }+ .field-row > label { min-width: unset; padding-top: 0; }+ }++ /* ── Buttons ────────────────────────────────────────── */+ .btn-row { display: flex; gap: 8px; flex-wrap: wrap; }+ .btn {appearance: none;- background: #fff;- color: #0a0c10;- border: 0;+ display: inline-flex;+ align-items: center;+ gap: 6px;+ padding: 10px 18px;border-radius: 8px;- padding: 10px 16px;- font-size: 13px;+ font-size: 13.5px;font-weight: 600;+ font-family: var(--font-body);+ border: 0;cursor: pointer;- font-family: inherit;+ transition: opacity 0.15s, transform 0.1s, background 0.15s;+ min-height: 44px;+ white-space: nowrap;+ }+ .btn:active { transform: scale(0.97); }+ .btn[disabled] { opacity: 0.35; cursor: not-allowed; pointer-events: none; }+ .btn-primary {+ background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);+ color: #fff;+ box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 6px 18px -8px rgba(139, 92, 246, 0.6);+ }+ .btn-primary:hover { opacity: 0.9; }+ .btn-danger {+ background: var(--rec);+ color: #fff;+ box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 6px 18px -8px var(--rec-glow);+ }+ .btn-danger:hover { opacity: 0.9; }+ .btn-ghost {+ background: transparent;+ color: var(--text-2);+ border: 1px solid var(--hairline-strong);+ }+ .btn-ghost:hover { border-color: rgba(255,255,255,0.18); color: var(--text); background: rgba(255,255,255,0.03); }+ @media (max-width: 640px) {+ .btn { font-size: 12.5px; padding: 10px 14px; }+ }+ @media (orientation: landscape) and (max-height: 500px) {+ .btn { min-height: 38px; padding: 8px 13px; }+ }++ /* ── Avatar info ────────────────────────────────────── */+ .avatar-info {+ color: var(--text-3);+ font-size: 12.5px;+ margin-top: 6px;}- button.btn.danger { background: var(--rec); color: #fff; }- button.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--panel-edge); }- button.btn[disabled] { opacity: 0.4; cursor: not-allowed; }- .clip-list { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow: auto; }+ /* ── Clip list ──────────────────────────────────────── */+ .clip-list {+ display: flex;+ flex-direction: column;+ gap: 6px;+ max-height: 400px;+ overflow-y: auto;+ scrollbar-width: thin;+ scrollbar-color: var(--hairline-strong) transparent;+ }.clip {- background: rgba(255, 255, 255, 0.03);- border: 1px solid var(--panel-edge);+ background: rgba(255, 255, 255, 0.025);+ border: 1px solid var(--hairline);border-radius: 10px;- padding: 12px;+ padding: 12px 14px;display: flex;align-items: center;gap: 10px;+ transition: border-color 0.15s, background 0.15s;}+ .clip:hover { border-color: var(--hairline-strong); background: rgba(255,255,255,0.04); }.clip .meta { flex: 1; min-width: 0; }- .clip .meta .n { font-size: 13px; font-weight: 500; color: var(--ink); }- .clip .meta .d { font-size: 11px; color: var(--ink-dim); margin-top: 2px; }+ .clip .meta .n {+ font-size: 13.5px;+ font-weight: 500;+ color: var(--text);+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ }+ .clip .meta .d {+ font-size: 11.5px;+ color: var(--text-3);+ margin-top: 2px;+ font-family: var(--font-mono);+ }.clip .v-pill {- font-size: 10px;- padding: 2px 6px;- border-radius: 6px;- background: rgba(255, 255, 255, 0.06);- color: var(--ink-dim);+ font-size: 9.5px;+ padding: 2px 7px;+ border-radius: 999px;+ background: rgba(255, 255, 255, 0.05);+ color: var(--text-3);text-transform: uppercase;- letter-spacing: 0.05em;+ letter-spacing: 0.07em;+ font-family: var(--font-mono);+ flex-shrink: 0;}- .clip .v-pill.public { background: rgba(95, 206, 106, 0.18); color: var(--ok); }- .clip .actions { gap: 6px; }- .clip button {+ .clip .v-pill.public {+ background: rgba(74, 222, 128, 0.12);+ color: var(--ok);+ border: 1px solid rgba(74, 222, 128, 0.2);+ }+ .clip-actions { display: flex; gap: 5px; flex-shrink: 0; }+ .clip-btn {appearance: none;background: transparent;- color: var(--ink-dim);- border: 1px solid var(--panel-edge);+ color: var(--text-3);+ border: 1px solid var(--hairline);border-radius: 6px;- padding: 5px 9px;- font-size: 11px;+ padding: 5px 10px;+ font-size: 11.5px;cursor: pointer;- font-family: inherit;+ font-family: var(--font-body);+ transition: color 0.15s, border-color 0.15s;}- .clip button:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.2); }+ .clip-btn:hover { color: var(--text); border-color: var(--hairline-strong); }- .timer {- font-family: ui-monospace, SFMono-Regular, monospace;- font-size: 36px;- font-weight: 600;- letter-spacing: 0.03em;- color: var(--ink);- margin: 12px 0;- text-align: center;- }- .timer.recording { color: var(--rec); }- .empty {- color: var(--ink-dim);+ /* ── Empty / format notes ───────────────────────────── */+ .empty-state {+ color: var(--text-3);font-size: 13px;- padding: 18px 0;+ padding: 24px 0;text-align: center;font-style: italic;}- .brand { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }- .brand a { color: var(--ink); text-decoration: none; font-weight: 600; }- .signed-out {- background: rgba(255, 180, 84, 0.1);- border: 1px solid rgba(255, 180, 84, 0.3);- border-radius: 10px;- padding: 12px 14px;- font-size: 13px;- color: rgba(255, 180, 84, 0.95);- }- .signed-out a { color: rgba(255, 180, 84, 0.95); font-weight: 600; }-- /* ── Mobile improvements ───────────────────────────────────────── */- button.btn {- min-height: 44px;- padding: 10px 18px;- }- .row input,- .row select,- .row textarea {- min-height: 44px;+ .format-note {+ color: var(--text-3);+ font-size: 12.5px;+ line-height: 1.7;}- @media (max-width: 640px) {- body {- padding: 12px;- gap: 12px;- min-height: 100dvh;- }- .stage {- min-height: 280px;- min-height: min(56vw, 420px);- }- #webcam-pip {- width: 100px;- height: 75px;- top: max(12px, env(safe-area-inset-top, 12px));- right: max(12px, env(safe-area-inset-right, 12px));- }- .rec-pill {- top: max(12px, env(safe-area-inset-top, 12px));- left: max(12px, env(safe-area-inset-left, 12px));- }- .timer { font-size: 28px; }- .actions { gap: 6px; }- button.btn { font-size: 12px; padding: 10px 13px; }- h1 { font-size: 18px; }- .card { padding: 12px; }- .row { flex-direction: column; gap: 4px; }- .row > label { min-width: unset; }- .clip-list { max-height: 280px; }- }- @media (orientation: landscape) and (max-height: 500px) {- body {- grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);- padding: 10px;- gap: 10px;- }- .stage { min-height: 200px; }- #webcam-pip { width: 80px; height: 60px; }- h1 { font-size: 16px; margin: 0 0 2px; }- .sub { display: none; }- .timer { font-size: 24px; margin: 6px 0; }+ .format-note code {+ font-family: var(--font-mono);+ font-size: 11.5px;+ color: var(--text-2);+ background: rgba(255,255,255,0.05);+ padding: 1px 5px;+ border-radius: 4px;}++ /* ── Section divider ────────────────────────────────── */+ .col-left,+ .col-right { display: flex; flex-direction: column; gap: 0; }</style></head><body>- <section class="left">- <div class="brand">- <div>- <h1>Mocap studio</h1>- <div class="sub">Record your face, save the clip, replay it on any avatar — yours or someone else's.</div>- </div>- <a href="/">← three.ws</a>- </div>- <div id="auth-warning" class="signed-out" style="display:none;margin-bottom:14px;">- You're not signed in — clips can be recorded locally and replayed, but they can't be saved.- <a href="/login">Sign in</a> to save and share.- </div>+ <!-- ── NAV ─────────────────────────────────────────────────── -->+ <header class="site-header">+ <h1 class="site-header-brand">+ <a href="/" aria-label="three.ws home">+ <img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" />+ <span class="wordmark-dot" aria-hidden="true"></span>three.ws+ </a>+ </h1>+ <div id="nav-container"></div>+ </header>+ <script src="/nav.js"></script>- <div class="stage" id="stage-wrap">- <div id="stage"></div>- <div id="rec-pill" class="rec-pill"><span class="dot"></span><span>REC <span id="rec-time">0.0s</span></span></div>- <video id="webcam-pip" autoplay playsinline muted aria-hidden="true"></video>- </div>+ <!-- ── PAGE ─────────────────────────────────────────────────── -->+ <main class="page-wrap">- <div class="card" style="margin-top:14px;">- <h2>Record</h2>- <div class="timer" id="timer">00.0s</div>- <div class="actions">- <button class="btn" id="start-cam">Start camera</button>- <button class="btn ghost" id="calibrate" disabled>Calibrate neutral</button>- <button class="btn danger" id="record" disabled>Record</button>- <button class="btn ghost" id="replay" disabled>Replay last</button>- <button class="btn ghost" id="discard" disabled>Discard</button>- </div>+ <div class="page-header">+ <div class="page-eyebrow">Labs · Face Capture</div>+ <h2 class="page-title">Mocap Studio</h2>+ <p class="page-sub">Record your face, save the clip, replay it on any avatar — yours or someone else's.</p></div>- <div class="card">- <h2>Save clip</h2>- <div class="row">- <label for="clip-name">Name</label>- <input id="clip-name" type="text" placeholder="head nod" maxlength="120" />- </div>- <div class="row">- <label for="clip-desc">Description</label>- <textarea id="clip-desc" placeholder="Optional — what is this for?" maxlength="2000"></textarea>- </div>- <div class="row">- <label for="clip-tags">Tags</label>- <input id="clip-tags" type="text" placeholder="comma, separated, tags" />- </div>- <div class="row">- <label for="clip-visibility">Visibility</label>- <select id="clip-visibility">- <option value="private">Private (just you)</option>- <option value="unlisted">Unlisted (anyone with the link)</option>- <option value="public">Public (in marketplace)</option>- </select>- </div>- <div class="actions">- <button class="btn" id="save-clip" disabled>Save clip</button>- <button class="btn ghost" id="download-clip" disabled>Download JSON</button>- </div>+ <div id="auth-warning" class="auth-banner">+ <svg width="15" height="15" viewBox="0 0 15 15" fill="none"><circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="1.2"/><path d="M7.5 4.5v4m0 2v.5" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/></svg>+ You're not signed in — clips can be recorded locally but won't be saved.+ <a href="/login">Sign in to save and share</a></div>- </section>- <section class="right">- <div class="card">- <h2>Source avatar</h2>- <div class="row">- <label for="avatar-handle">Handle</label>- <input id="avatar-handle" type="text" placeholder="@yourname or leave blank" autocomplete="off" />- <button class="btn" id="load-avatar">Load</button>+ <div class="studio-grid">++ <!-- LEFT: Stage + controls -->+ <div class="col-left">+ <div class="stage-wrap" id="stage-wrap">+ <div id="stage"></div>+ <div id="rec-pill" class="rec-pill">+ <span class="dot"></span>+ <span>REC <span id="rec-time">0.0s</span></span>+ </div>+ <video id="webcam-pip" autoplay playsinline muted aria-hidden="true"></video>+ </div>++ <div class="card" style="margin-top:16px;">+ <p class="card-label">Record</p>+ <div class="timer" id="timer">00.0s</div>+ <div class="btn-row">+ <button class="btn btn-primary" id="start-cam">Start camera</button>+ <button class="btn btn-ghost" id="calibrate" disabled>Calibrate neutral</button>+ <button class="btn btn-danger" id="record" disabled>Record</button>+ <button class="btn btn-ghost" id="replay" disabled>Replay last</button>+ <button class="btn btn-ghost" id="discard" disabled>Discard</button>+ </div>+ </div>++ <div class="card">+ <p class="card-label">Save clip</p>+ <div class="field-row">+ <label for="clip-name">Name</label>+ <input id="clip-name" type="text" placeholder="head nod" maxlength="120" />+ </div>+ <div class="field-row">+ <label for="clip-desc">Description</label>+ <textarea id="clip-desc" placeholder="Optional — what is this for?" maxlength="2000"></textarea>+ </div>+ <div class="field-row">+ <label for="clip-tags">Tags</label>+ <input id="clip-tags" type="text" placeholder="comma, separated" />+ </div>+ <div class="field-row">+ <label for="clip-visibility">Visibility</label>+ <select id="clip-visibility">+ <option value="private">Private (just you)</option>+ <option value="unlisted">Unlisted (anyone with link)</option>+ <option value="public">Public (in marketplace)</option>+ </select>+ </div>+ <div class="btn-row" style="margin-top:4px;">+ <button class="btn btn-primary" id="save-clip" disabled>Save clip</button>+ <button class="btn btn-ghost" id="download-clip" disabled>Download JSON</button>+ </div>+ </div></div>- <div class="sub" id="avatar-info" style="margin:0;">no avatar loaded</div>- </div>- <div class="card">- <h2>Saved clips</h2>- <div class="clip-list" id="clip-list"><div class="empty">Loading…</div></div>- </div>+ <!-- RIGHT: Avatar + clips -->+ <div class="col-right">+ <div class="card">+ <p class="card-label">Source avatar</p>+ <div class="field-row">+ <label for="avatar-handle">Handle</label>+ <input id="avatar-handle" type="text" placeholder="@yourname" autocomplete="off" />+ <button class="btn btn-ghost" id="load-avatar" style="flex-shrink:0;">Load</button>+ </div>+ <div class="avatar-info" id="avatar-info">no avatar loaded</div>+ </div>++ <div class="card" style="flex:1;">+ <p class="card-label">Saved clips</p>+ <div class="clip-list" id="clip-list">+ <div class="empty-state">Loading…</div>+ </div>+ </div>- <div class="card">- <h2>Format</h2>- <div class="sub" style="margin:0;">- Clips are stored as <code style="color:#cad6e8">three.ws.face-mocap.v1</code> — JSON of <code style="color:#cad6e8">{ format, duration, frames: [{ t, shapes, mat }] }</code>. Frame data is the raw MediaPipe ARKit-52 output plus an optional 4×4 head transform. Compatible with any three.ws avatar via the ARKit-52 canonical morph map.+ <div class="card">+ <p class="card-label">Format</p>+ <p class="format-note">+ Clips are stored as <code>three.ws.face-mocap.v1</code> — JSON of <code>{ format, duration, frames: [{ t, shapes, mat }] }</code>.+ Frame data is raw MediaPipe ARKit-52 output plus an optional 4×4 head transform.+ Compatible with any three.ws avatar via the ARKit-52 canonical morph map.+ </p>+ </div></div>+</div>- </section>+ </main>++ <!-- ── FOOTER ───────────────────────────────────────────────── -->+ <div id="footer-container"></div>+ <script src="/footer.js"></script><script type="module" src="/src/mocap-studio.js"></script></body>diff --git a/public/dashboard-classic/index.html b/public/dashboard-classic/index.htmlindex 977be610e..eacd9d3a6 100644--- a/public/dashboard-classic/index.html+++ b/public/dashboard-classic/index.html@@ -1267,39 +1267,39 @@</header><div class="layout"><aside>- <a href="/dashboard/portfolio">Portfolio & NFTs</a>- <a href="/dashboard/avatars" class="active" data-tab="avatars">Avatars</a>- <a href="/dashboard/agents" data-tab="agents">Agents</a>- <a href="/dashboard/create" data-tab="create">Create from selfie</a>- <a href="/dashboard/upload" data-tab="upload">Upload</a>- <a href="/dashboard/animations" data-tab="animations">Animations</a>- <a href="/dashboard/widgets" data-tab="widgets">Widgets</a>- <a href="/dashboard/embed" data-tab="embed">Embed</a>- <a href="/dashboard/keys" data-tab="keys">API keys</a>- <a href="/dashboard/mcp" data-tab="mcp">MCP</a>- <a href="/dashboard/monetization" data-tab="monetization">Monetization</a>- <a href="/dashboard/payments" data-tab="payments">Payments</a>- <a href="/dashboard/subscriptions" data-tab="subscriptions">Subscriptions</a>- <a href="/dashboard/billing" data-tab="billing">Plan & usage</a>- <a href="/dashboard/revenue" data-tab="revenue">Revenue</a>- <a href="/dashboard/withdrawals" data-tab="withdrawals">Withdrawals</a>- <a href="/dashboard/earnings" data-tab="earnings">Earnings</a>- <a href="/dashboard/account" data-tab="account">Account</a>- <a href="/dashboard/wallets">Wallets</a>+ <a href="/dashboard-classic/portfolio">Portfolio & NFTs</a>+ <a href="/dashboard-classic/avatars" class="active" data-tab="avatars">Avatars</a>+ <a href="/dashboard-classic/agents" data-tab="agents">Agents</a>+ <a href="/dashboard-classic/create" data-tab="create">Create from selfie</a>+ <a href="/dashboard-classic/upload" data-tab="upload">Upload</a>+ <a href="/dashboard-classic/animations" data-tab="animations">Animations</a>+ <a href="/dashboard-classic/widgets" data-tab="widgets">Widgets</a>+ <a href="/dashboard-classic/embed" data-tab="embed">Embed</a>+ <a href="/dashboard-classic/keys" data-tab="keys">API keys</a>+ <a href="/dashboard-classic/mcp" data-tab="mcp">MCP</a>+ <a href="/dashboard-classic/monetization" data-tab="monetization">Monetization</a>+ <a href="/dashboard-classic/payments" data-tab="payments">Payments</a>+ <a href="/dashboard-classic/subscriptions" data-tab="subscriptions">Subscriptions</a>+ <a href="/dashboard-classic/billing" data-tab="billing">Plan & usage</a>+ <a href="/dashboard-classic/revenue" data-tab="revenue">Revenue</a>+ <a href="/dashboard-classic/withdrawals" data-tab="withdrawals">Withdrawals</a>+ <a href="/dashboard-classic/earnings" data-tab="earnings">Earnings</a>+ <a href="/dashboard-classic/account" data-tab="account">Account</a>+ <a href="/dashboard-classic/wallets">Wallets</a><a href="/vanity-wallet">Vanity wallet ✦</a><a href="/eth-vanity">ETH vanity (CREATE2) ✦</a>- <a href="/dashboard/memory">Memory</a>- <a href="/dashboard/strategy">Strategy</a>- <a href="/dashboard/voice">Voice</a>- <a href="/dashboard/sns">SNS domains</a>- <a href="/dashboard/delegation">Delegation</a>- <a href="/dashboard/tokens">Tokens (Pump.fun)</a>- <a href="/dashboard/actions">Action log</a>- <a href="/dashboard/usage">LLM usage</a>- <a href="/dashboard/embed-policy">Embed policy</a>- <a href="/dashboard/sessions">Sessions</a>- <a href="/dashboard/storage">Storage</a>- <a href="/dashboard/agent-pumpfun">Agent · Pump.fun</a>+ <a href="/dashboard-classic/memory">Memory</a>+ <a href="/dashboard-classic/strategy">Strategy</a>+ <a href="/dashboard-classic/voice">Voice</a>+ <a href="/dashboard-classic/sns">SNS domains</a>+ <a href="/dashboard-classic/delegation">Delegation</a>+ <a href="/dashboard-classic/tokens">Tokens (Pump.fun)</a>+ <a href="/dashboard-classic/actions">Action log</a>+ <a href="/dashboard-classic/usage">LLM usage</a>+ <a href="/dashboard-classic/embed-policy">Embed policy</a>+ <a href="/dashboard-classic/sessions">Sessions</a>+ <a href="/dashboard-classic/storage">Storage</a>+ <a href="/dashboard-classic/agent-pumpfun">Agent · Pump.fun</a><a href="/strategy-lab">Strategy lab</a><a href="/reputation">Reputation</a><a href="/settings">Settings</a>diff --git a/public/features.json b/public/features.jsonindex d84cb210c..5a628c941 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-05-25T14:25:04.225Z",+ "generated_at": "2026-05-25T14:54:17.695Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/public/marketplace.css b/public/marketplace.cssindex 0fe297033..5f4751d12 100644--- a/public/marketplace.css+++ b/public/marketplace.css@@ -2494,3 +2494,94 @@ body.market-page {grid-template-columns: repeat(2, 1fr);}}++/* ── Embed tab ──────────────────────────────────────────────────────────── */+.d-embed-section {+ margin-bottom: 18px;+}+.d-embed-label {+ display: flex;+ justify-content: space-between;+ align-items: center;+ margin-bottom: 6px;+ font-size: 11px;+ text-transform: uppercase;+ letter-spacing: 0.06em;+ color: var(--mk-text-3);+}+.d-embed-code {+ background: #050505;+ border: 1px solid var(--mk-border);+ border-radius: 10px;+ padding: 12px 14px;+ font-family: ui-monospace, 'SF Mono', monospace;+ font-size: 12px;+ color: var(--mk-text-2);+ overflow-x: auto;+ white-space: pre;+ line-height: 1.5;+ margin: 0;+}+.d-embed-copy {+ background: transparent;+ border: 1px solid var(--mk-border-2);+ color: var(--mk-text-2);+ padding: 3px 9px;+ border-radius: 6px;+ font-size: 10px;+ font-weight: 600;+ cursor: pointer;+ font-family: inherit;+ transition: color 0.15s, border-color 0.15s;+}+.d-embed-copy:hover { color: var(--mk-text); border-color: var(--mk-text-3); }+.d-embed-copy.copied { color: #34d399; border-color: #34d399; }++/* ── Token card (sidebar) ───────────────────────────────────────────────── */+.d-token-card {+ background: rgba(253, 224, 71, 0.04);+ border: 1px solid rgba(253, 224, 71, 0.18);+ border-radius: 12px;+ padding: 14px;+ display: flex;+ flex-direction: column;+ gap: 10px;+}+.d-token-eyebrow {+ font-size: 10px;+ text-transform: uppercase;+ letter-spacing: 0.1em;+ color: #fde047;+ font-weight: 600;+}+.d-token-mint {+ font-family: ui-monospace, 'SF Mono', monospace;+ font-size: 11px;+ color: var(--mk-text-2);+ word-break: break-all;+}+.d-token-actions {+ display: flex;+ flex-direction: column;+ gap: 6px;+}+.d-token-btn {+ display: block;+ text-align: center;+ padding: 8px 12px;+ border-radius: 8px;+ font-size: 12px;+ font-weight: 600;+ text-decoration: none;+ background: rgba(253, 224, 71, 0.12);+ color: #fde047;+ border: 1px solid rgba(253, 224, 71, 0.25);+ transition: background 0.15s;+}+.d-token-btn:hover { background: rgba(253, 224, 71, 0.2); }+.d-token-btn-sec {+ background: transparent;+ color: var(--mk-text-2);+ border-color: var(--mk-border-2);+}+.d-token-btn-sec:hover { background: rgba(255,255,255,0.04); color: var(--mk-text); }diff --git a/public/next/index.html b/public/next/index.htmlindex 4bf24ef5d..1d12c1928 100644--- a/public/next/index.html+++ b/public/next/index.html@@ -3,23 +3,22 @@<head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />- <title>three.ws</title>- <meta name="description" content="The 3D layer of the internet." />+ <title>three.ws — the 3d layer of the internet</title>+ <meta name="description" content="The 3D layer of the internet. Embodied AI agents you can drop on any page with one tag." /><meta name="theme-color" content="#000" /><link rel="canonical" href="https://three.ws/next" />- <meta property="og:title" content="three.ws" />- <meta property="og:description" content="The 3D layer of the internet." />+ <meta property="og:title" content="three.ws — the 3d layer of the internet" />+ <meta property="og:description" content="Embodied AI agents. One tag. Any website." /><link rel="preconnect" href="https://ajax.googleapis.com" crossorigin />- <script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js"></script>-<style>:root {--ink: #fff;- --ink-2: #a8a8a8;+ --ink-2: #b4b4b4;--ink-3: #6b6b6b;--ink-4: #2a2a2a;--bg: #000;+ --panel: #0a0a0c;--mono: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, Consolas, monospace;--display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;}@@ -28,210 +27,195 @@body { overflow-x: hidden; min-height: 100vh; }a { color: inherit; text-decoration: none; }- /* fixed stage — the agent IS the background */- .stage {- position: fixed; inset: 0; z-index: 0;- background: radial-gradient(ellipse at 50% 60%, #0a0a0a 0%, #000 70%);- }- .stage model-viewer {- width: 100%; height: 100%;- --poster-color: #000;- background: transparent;- }- .stage::after {- content: ''; position: absolute; inset: 0;- background:- radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.6), transparent 60%),- radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.5), transparent 50%);- pointer-events: none;- }-/* nav */.nav {- position: fixed; top: 0; left: 0; right: 0; z-index: 20;+ position: sticky; top: 0; z-index: 50;display: flex; align-items: center; justify-content: space-between;- padding: 22px 32px;- mix-blend-mode: difference;+ padding: 20px 28px;+ background: rgba(0,0,0,0.7);+ backdrop-filter: saturate(180%) blur(20px);+ -webkit-backdrop-filter: saturate(180%) blur(20px);+ border-bottom: 1px solid var(--ink-4);}.brand {font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;- font-weight: 500;+ display: inline-flex; align-items: center; gap: 10px;}.brand-dot {- display: inline-block; width: 8px; height: 8px; border-radius: 50%;- background: #4ade80; margin-right: 10px; vertical-align: middle;- box-shadow: 0 0 12px #4ade80;+ width: 8px; height: 8px; border-radius: 50%;+ background: #4ade80; box-shadow: 0 0 12px #4ade80;animation: live 2.4s ease-in-out infinite;}@keyframes live { 0%,100%{opacity:1} 50%{opacity:0.35} }- .nav-right {- display: flex; align-items: center; gap: 28px;- font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;- color: var(--ink);- }- .nav-right a { opacity: 0.7; transition: opacity .2s; }- .nav-right a:hover { opacity: 1; }+ .nav-right { display: flex; gap: 24px; font-family: var(--mono); font-size: 12px; }+ .nav-right a { color: var(--ink-2); transition: color .2s; }+ .nav-right a:hover { color: var(--ink); }+ @media (max-width: 600px) { .nav-right { display: none; } }- /* hero — overlaid type */+ /* hero — split: type left, stage right */.hero {- position: relative; z-index: 10;- min-height: 100vh;display: grid;- grid-template-rows: 1fr auto;- padding: 120px 32px 32px;- pointer-events: none;+ grid-template-columns: 1.1fr 1fr;+ gap: 56px;+ align-items: center;+ padding: 80px 48px 120px;+ max-width: 1480px; margin: 0 auto;+ min-height: calc(100vh - 64px);+ }+ @media (max-width: 960px) {+ .hero { grid-template-columns: 1fr; padding: 48px 24px 80px; gap: 32px; }}- .hero > * { pointer-events: auto; }- .title {- font-family: var(--display);- font-size: clamp(72px, 18vw, 280px);- line-height: 0.84;- letter-spacing: -0.055em;+ .hero-eyebrow {+ font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;+ color: var(--ink-2); text-transform: uppercase; margin-bottom: 28px;+ display: inline-flex; align-items: center; gap: 10px;+ padding: 6px 12px; border: 1px solid var(--ink-4); border-radius: 999px;+ }+ .hero-eyebrow .dot {+ width: 6px; height: 6px; border-radius: 50%; background: #4ade80;+ box-shadow: 0 0 10px #4ade80;+ }++ .hero-title {+ font-size: clamp(56px, 8.5vw, 132px);+ line-height: 0.92; letter-spacing: -0.04em;font-weight: 700;text-transform: lowercase;- align-self: end;- white-space: nowrap;+ margin-bottom: 28px;}- .title .l1 { display: block; }- .title .l2 { display: block; color: var(--ink-3); }- .title .l2 em {+ .hero-title em {font-style: normal;- background: linear-gradient(180deg, #fff 0%, #a8a8a8 100%);+ background: linear-gradient(180deg, #fff 0%, #888 100%);-webkit-background-clip: text; background-clip: text; color: transparent;}-- .foot-bar {- display: grid; grid-template-columns: 1fr auto 1fr;- align-items: end; gap: 24px;- padding-top: 32px;- border-top: 1px solid var(--ink-4);- font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;- }- .foot-bar .col { color: var(--ink-2); }- .foot-bar .col b { color: var(--ink); font-weight: 500; }- .foot-bar .center {- display: flex; gap: 14px; align-items: center;+ .hero-sub {+ font-size: clamp(17px, 1.5vw, 20px);+ color: var(--ink-2); line-height: 1.55;+ max-width: 44ch; margin-bottom: 36px;}+ .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }.cta {- display: inline-flex; align-items: center; gap: 10px;+ display: inline-flex; align-items: center; gap: 8px;padding: 14px 22px;background: var(--ink); color: #000;border-radius: 999px;font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;text-transform: uppercase; font-weight: 600;- transition: transform .2s, background .2s;+ transition: transform .2s;}.cta:hover { transform: translateY(-2px); }.cta-ghost {- display: inline-flex; align-items: center; gap: 10px;+ display: inline-flex; align-items: center; gap: 8px;padding: 14px 22px;border: 1px solid var(--ink-4); color: var(--ink);border-radius: 999px;font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;- text-transform: uppercase; font-weight: 500;+ text-transform: uppercase;transition: border-color .2s, background .2s;}.cta-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,0.04); }- .scroll-hint {- position: fixed; bottom: 32px; right: 32px;- z-index: 15;- font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;- color: var(--ink-2); text-transform: uppercase;- display: flex; align-items: center; gap: 10px;- opacity: 0; transition: opacity .4s;+ .hero-meta {+ margin-top: 40px;+ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;+ padding-top: 24px; border-top: 1px solid var(--ink-4);+ font-family: var(--mono); font-size: 11px;}- .scroll-hint.visible { opacity: 1; }- .scroll-hint .arrow {- width: 1px; height: 28px; background: var(--ink-2);+ .hero-meta .k { color: var(--ink-3); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }+ .hero-meta .v { color: var(--ink); font-size: 13px; }++ /* hero stage */+ .stage {position: relative;- animation: scrollLine 2s ease-in-out infinite;+ border-radius: 24px;+ background: radial-gradient(ellipse at 50% 65%, #141418 0%, #050507 70%);+ border: 1px solid var(--ink-4);+ overflow: hidden;+ aspect-ratio: 4 / 5;+ min-height: 480px;+ box-shadow: 0 40px 100px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.04) inset;}- @keyframes scrollLine { 0%,100%{opacity:0.3} 50%{opacity:1} }-- /* sections below fold */- .fold {- position: relative; z-index: 10;- background: var(--bg);- }- .fold::before {- content: ''; display: block; height: 25vh;- background: linear-gradient(180deg, transparent 0%, #000 100%);+ .stage model-viewer {+ width: 100%; height: 100%;+ background: transparent;+ --poster-color: transparent;+ }+ .stage-bar {+ position: absolute; bottom: 0; left: 0; right: 0;+ display: flex; align-items: center; justify-content: space-between;+ padding: 10px 14px;+ font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;+ color: var(--ink-2); text-transform: uppercase;+ background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));pointer-events: none;}- section.s {+ .stage-bar .pulse {+ display: inline-block; width: 6px; height: 6px; border-radius: 50%;+ background: #4ade80; box-shadow: 0 0 10px #4ade80;+ margin-right: 8px; vertical-align: middle;+ animation: live 2s ease-in-out infinite;+ }++ /* sections */+ section.sec {padding: 96px 32px;max-width: 1280px; margin: 0 auto;}- .fold > section + section { padding-top: 64px; }- .s-num {+ .sec-eye {font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;- color: var(--ink-3); text-transform: uppercase; margin-bottom: 32px;+ color: var(--ink-3); text-transform: uppercase; margin-bottom: 24px;}- .s-h {- font-size: clamp(48px, 8vw, 120px);- line-height: 0.92; letter-spacing: -0.035em;+ .sec-h {+ font-size: clamp(40px, 6vw, 88px);+ line-height: 0.95; letter-spacing: -0.035em;font-weight: 700; text-transform: lowercase;- margin-bottom: 32px;+ margin-bottom: 24px;max-width: 18ch;}- .s-p {- font-size: clamp(18px, 1.7vw, 22px);- color: var(--ink-2); line-height: 1.5;- max-width: 56ch;+ .sec-p {+ font-size: clamp(16px, 1.5vw, 19px);+ color: var(--ink-2); line-height: 1.55;+ max-width: 60ch;}- /* stack — six rows, brutalist list */- .stack-list {- margin-top: 80px;- border-top: 1px solid var(--ink-4);- }+ /* stack list */+ .stack { margin-top: 56px; border-top: 1px solid var(--ink-4); }.stack-row {display: grid;- grid-template-columns: 64px 1fr 2fr 80px;+ grid-template-columns: 64px 1fr 2.2fr 60px;align-items: center;- padding: 32px 0;+ padding: 28px 0;border-bottom: 1px solid var(--ink-4);gap: 24px;- transition: padding .25s, color .25s;- cursor: pointer;+ transition: padding .25s ease, background .25s ease;color: var(--ink);+ cursor: pointer;}- .stack-row:hover { padding-left: 16px; }+ .stack-row:hover { padding-left: 16px; background: rgba(255,255,255,0.015); }.stack-row .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }- .stack-row .t {- font-size: clamp(28px, 3.4vw, 44px);- font-weight: 600; letter-spacing: -0.02em;- text-transform: lowercase;- }+ .stack-row .t { font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -0.02em; text-transform: lowercase; }.stack-row .d { color: var(--ink-2); font-size: 15px; line-height: 1.5; }- .stack-row .arrow {- font-family: var(--mono); font-size: 18px; opacity: 0.4;- transition: opacity .25s, transform .25s;- text-align: right;- }- .stack-row:hover .arrow { opacity: 1; transform: translateX(4px); }+ .stack-row .a { font-family: var(--mono); font-size: 18px; color: var(--ink-3); text-align: right; transition: color .25s, transform .25s; }+ .stack-row:hover .a { color: var(--ink); transform: translateX(4px); }@media (max-width: 760px) {- .stack-row { grid-template-columns: 40px 1fr 40px; }+ .stack-row { grid-template-columns: 40px 1fr 32px; }.stack-row .d { display: none; }}- /* embed-anywhere section: floating tiles */+ /* tiles */.tiles {- margin-top: 80px;- display: grid;- grid-template-columns: repeat(4, 1fr);- gap: 12px;+ margin-top: 56px;+ display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;}- @media (max-width: 920px) { .tiles { grid-template-columns: repeat(2, 1fr); } }+ @media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } }.tile {+ position: relative;aspect-ratio: 3 / 4;- background: #0a0a0a;+ border-radius: 8px;border: 1px solid var(--ink-4);- border-radius: 4px;overflow: hidden;- position: relative;+ background: radial-gradient(ellipse at 50% 70%, #18181c 0%, #050507 80%);}.tile three-d { width: 100%; height: 100%; display: block; }.tile .cap {@@ -241,215 +225,176 @@color: var(--ink-2); text-transform: uppercase;pointer-events: none;}+ .tile .cap b { color: var(--ink); font-weight: 500; }- /* code block */- .code-wrap { margin-top: 64px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }- @media (max-width: 860px) { .code-wrap { grid-template-columns: 1fr; } }+ /* install */+ .install-wrap {+ margin-top: 56px;+ display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;+ align-items: start;+ }+ @media (max-width: 920px) { .install-wrap { grid-template-columns: 1fr; } }.code {- background: #060606; border: 1px solid var(--ink-4); border-radius: 6px;- padding: 28px 32px;- font-family: var(--mono); font-size: 14px; line-height: 1.75;- color: #ccc; overflow: auto;+ background: #060608; border: 1px solid var(--ink-4); border-radius: 8px;+ padding: 24px 28px;+ font-family: var(--mono); font-size: 13px; line-height: 1.8;+ color: #d8d8de; overflow: auto;white-space: pre;}.code .c { color: var(--ink-3); }- .code .t { color: #d8d0ff; }+ .code .t { color: #c8b8ff; }.code .a { color: #b8e6c2; }.code .s { color: #ffd9a8; }-- .bullets { list-style: none; padding: 0; }+ .bullets { list-style: none; }.bullets li {- padding: 14px 0; border-bottom: 1px solid var(--ink-4);- display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: baseline;+ padding: 16px 0; border-bottom: 1px solid var(--ink-4);+ display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: baseline;font-size: 15px;}.bullets li:last-child { border-bottom: 0; }.bullets li b { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }.bullets li span { color: var(--ink); }- /* end cta */+ /* end */.end {- padding: 120px 32px;- text-align: center;+ padding: 120px 32px; text-align: center;border-top: 1px solid var(--ink-4);}.end .big {- font-size: clamp(56px, 10vw, 160px);+ font-size: clamp(48px, 9vw, 140px);line-height: 0.9; letter-spacing: -0.04em;font-weight: 700; text-transform: lowercase;- margin-bottom: 48px;+ margin-bottom: 36px;}- .end .row { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }footer {- padding: 48px 32px;+ padding: 36px 32px;border-top: 1px solid var(--ink-4);- font-family: var(--mono); font-size: 12px;- color: var(--ink-2);+ font-family: var(--mono); font-size: 12px; color: var(--ink-2);display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;}footer a:hover { color: var(--ink); }footer .links { display: flex; gap: 20px; flex-wrap: wrap; }-- @media (prefers-reduced-motion: reduce) {- .brand-dot, .arrow { animation: none !important; }- }-- @media (max-width: 560px) {- .nav { padding: 16px 18px; }- .hero { padding: 100px 20px 24px; }- .foot-bar { grid-template-columns: 1fr; }- .foot-bar .center { justify-content: flex-start; }- }</style>+ <script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js"></script><script src="/embed/v1.js" defer></script></head><body>- <div class="stage" aria-hidden="true">- <model-viewer- id="hero-mv"- src="https://three.ws/animations/robotexpressive.glb"- camera-controls- disable-zoom- interaction-prompt="none"- exposure="1.05"- shadow-intensity="0.9"- shadow-softness="1"- camera-orbit="15deg 82deg 4.2m"- camera-target="0m 1m 0m"- min-camera-orbit="auto auto 3.5m"- max-camera-orbit="auto auto 5.5m"- field-of-view="32deg"- touch-action="pan-y"- autoplay- animation-name="Wave"- ></model-viewer>- </div>-<nav class="nav" aria-label="Primary">- <span class="brand"><span class="brand-dot" aria-hidden="true"></span>three.ws / v1</span>+ <a class="brand" href="/"><span class="brand-dot" aria-hidden="true"></span>three.ws / v1</a><div class="nav-right">+ <a href="#stack">stack</a>+ <a href="#embed">embed</a>+ <a href="#install">install</a><a href="/discover">registry</a>- <a href="/character-studio">studio</a><a href="/docs">docs</a>- <a href="#install">embed →</a></div></nav><header class="hero">- <h1 class="title">- <span class="l1">the 3d layer</span>- <span class="l2">of the <em>internet.</em></span>- </h1>-- <div class="foot-bar">- <div class="col">- <b>Embodied AI agents.</b><br />- One tag. Any website.<br />- Open identity. Stablecoin paid.- </div>- <div class="center">+ <div>+ <div class="hero-eyebrow"><span class="dot"></span>EMBED V1 · LIVE</div>+ <h1 class="hero-title">the 3d layer<br /><em>of the internet.</em></h1>+ <p class="hero-sub">Embodied AI agents you can drop on any page with one tag. Open identity, stablecoin paid, rendered by Three.js.</p>+ <div class="cta-row"><a class="cta" href="#install">Drop the tag</a><a class="cta-ghost" href="/embed/v1/preview">See it live →</a></div>- <div class="col" style="text-align:right;">- <b>v1.0 · LIVE</b><br />- ERC-8004 · x402 · WebXR<br />- Three.js · glTF · Shadow DOM++ <div class="hero-meta">+ <div><div class="k">Identity</div><div class="v">ERC-8004</div></div>+ <div><div class="k">Payments</div><div class="v">x402</div></div>+ <div><div class="k">Renderer</div><div class="v">Three.js · glTF</div></div>+ </div>+ </div>++ <div class="stage" aria-hidden="true">+ <model-viewer+ id="hero-mv"+ src="https://three.ws/animations/robotexpressive.glb"+ camera-controls+ disable-zoom+ interaction-prompt="none"+ exposure="1.1"+ shadow-intensity="0.6"+ shadow-softness="1"+ environment-image="neutral"+ touch-action="pan-y"+ autoplay+ ></model-viewer>+ <div class="stage-bar">+ <span><span class="pulse"></span>RENDERED BY <three-d></span>+ <span>15KB · SHADOW DOM · CORS</span></div></div></header>- <div class="scroll-hint" id="scrollHint">- <span>SCROLL</span>- <span class="arrow" aria-hidden="true"></span>- </div>-- <main class="fold">- <section class="s">- <div class="s-num">01 — Thesis</div>- <h2 class="s-h">every site gets a body.</h2>- <p class="s-p">Text became the web. Video took the feed. The next layer is embodied — agents that walk into any page, speak, sell, sign, and pay. three.ws is the rail that carries them.</p>- </section>+ <section class="sec" id="stack">+ <div class="sec-eye">02 — Stack</div>+ <h2 class="sec-h">six pieces.<br />one layer.</h2>+ <p class="sec-p">Every piece is open, real, and shipping today. Use one. Use all. They compose.</p>++ <div class="stack">+ <a href="/character-studio" class="stack-row">+ <div class="n">01</div><div class="t">studio</div>+ <div class="d">Selfie to rigged avatar in seconds. Browser-native, GPU-accelerated.</div><div class="a">↗</div>+ </a>+ <a href="/discover" class="stack-row">+ <div class="n">02</div><div class="t">registry</div>+ <div class="d">ERC-8004 on-chain identity. Agents discoverable, portable, attestable.</div><div class="a">↗</div>+ </a>+ <a href="#install" class="stack-row">+ <div class="n">03</div><div class="t">embed</div>+ <div class="d"><three-d> web component. One tag. Any host. Lazy, themed, contained.</div><div class="a">↗</div>+ </a>+ <a href="/.well-known/x402.json" class="stack-row">+ <div class="n">04</div><div class="t">x402</div>+ <div class="d">HTTP-native micropayments. Bill per skill, minute, or call.</div><div class="a">↗</div>+ </a>+ <a href="/vr" class="stack-row">+ <div class="n">05</div><div class="t">vr gate</div>+ <div class="d">WebXR embodiment. Same identity. Walk in as them. $THREE-gated.</div><div class="a">↗</div>+ </a>+ <a href="/docs" class="stack-row">+ <div class="n">06</div><div class="t">sdk</div>+ <div class="d">JS, Python, Rust. Mint, sign, attest, render, pay. MIT. On npm.</div><div class="a">↗</div>+ </a>+ </div>+ </section>- <section class="s">- <div class="s-num">02 — Stack</div>- <h2 class="s-h">six pieces. one layer.</h2>- <p class="s-p">Every piece is open, real, and shipping today. Use one. Use all. They compose.</p>+ <section class="sec" id="embed">+ <div class="sec-eye">03 — Embed</div>+ <h2 class="sec-h">drop one<br />anywhere.</h2>+ <p class="sec-p">Each tile is a real <three-d> instance with isolated shadow DOM. Same tag in your blog, landing page, docs, dashboard, product card, newsletter.</p>- <div class="stack-list">- <a href="/character-studio" class="stack-row">- <div class="n">01</div>- <div class="t">studio</div>- <div class="d">Selfie to rigged avatar in seconds. Browser-native, GPU-accelerated.</div>- <div class="arrow">↗</div>- </a>- <a href="/discover" class="stack-row">- <div class="n">02</div>- <div class="t">registry</div>- <div class="d">ERC-8004 on-chain identity. Agents discoverable, portable, attestable.</div>- <div class="arrow">↗</div>- </a>- <a href="#install" class="stack-row">- <div class="n">03</div>- <div class="t">embed</div>- <div class="d"><three-d> web component. One tag. Any host. Lazy, themed, contained.</div>- <div class="arrow">↗</div>- </a>- <a href="/.well-known/x402.json" class="stack-row">- <div class="n">04</div>- <div class="t">x402</div>- <div class="d">HTTP-native micropayments. Bill per skill, minute, or call. Stablecoin rails.</div>- <div class="arrow">↗</div>- </a>- <a href="/vr" class="stack-row">- <div class="n">05</div>- <div class="t">vr gate</div>- <div class="d">WebXR embodiment. Same identity. Walk in as them. $THREE-gated.</div>- <div class="arrow">↗</div>- </a>- <a href="/docs" class="stack-row">- <div class="n">06</div>- <div class="t">sdk</div>- <div class="d">JS, Python, Rust. Mint, sign, attest, render, pay. MIT. On npm.</div>- <div class="arrow">↗</div>- </a>+ <div class="tiles">+ <div class="tile">+ <three-d src="https://three.ws/animations/robotexpressive.glb" name="atlas" interactive eager autoplay></three-d>+ <div class="cap"><b>atlas</b><span>blog</span></div></div>- </section>-- <section class="s">- <div class="s-num">03 — Embed</div>- <h2 class="s-h">drop one anywhere.</h2>- <p class="s-p">Each tile is a real <three-d> instance with isolated shadow DOM. Same tag in your blog, landing page, docs, dashboard, product card, newsletter.</p>-- <div class="tiles">- <div class="tile">- <three-d src="https://three.ws/animations/robotexpressive.glb" name="atlas" interactive eager autoplay></three-d>- <div class="cap"><span>atlas</span><span>blog</span></div>- </div>- <div class="tile">- <three-d src="https://three.ws/animations/soldier.glb" name="vega" interactive eager autoplay></three-d>- <div class="cap"><span>vega</span><span>product</span></div>- </div>- <div class="tile">- <three-d src="https://three.ws/avatars/default.glb" name="mira" interactive eager autoplay></three-d>- <div class="cap"><span>mira</span><span>docs</span></div>- </div>- <div class="tile">- <three-d src="https://three.ws/animations/robotexpressive.glb" name="nova" interactive eager autoplay></three-d>- <div class="cap"><span>nova</span><span>letter</span></div>- </div>+ <div class="tile">+ <three-d src="https://three.ws/animations/robotexpressive.glb" name="vega" interactive eager autoplay></three-d>+ <div class="cap"><b>vega</b><span>product</span></div>+ </div>+ <div class="tile">+ <three-d src="https://three.ws/animations/robotexpressive.glb" name="mira" interactive eager autoplay></three-d>+ <div class="cap"><b>mira</b><span>docs</span></div></div>- </section>+ <div class="tile">+ <three-d src="https://three.ws/animations/robotexpressive.glb" name="nova" interactive eager autoplay></three-d>+ <div class="cap"><b>nova</b><span>letter</span></div>+ </div>+ </div>+ </section>- <section class="s" id="install">- <div class="s-num">04 — Install</div>- <h2 class="s-h">two lines. live.</h2>- <p class="s-p">Paste once in <head>. Use <three-d> anywhere. Works in React, Vue, Svelte, plain HTML, Webflow, Notion, Shopify — any host that allows a script tag.</p>+ <section class="sec" id="install">+ <div class="sec-eye">04 — Install</div>+ <h2 class="sec-h">two lines.<br />live.</h2>+ <p class="sec-p">Paste once in <head>. Use <three-d> anywhere. Works in React, Vue, Svelte, plain HTML, Webflow, Notion, Shopify — any host that allows a script tag.</p>- <div class="code-wrap">- <pre class="code"><span class="c">// in <head></span>+ <div class="install-wrap">+ <pre class="code"><span class="c">// in <head></span><span class="t"><script</span> <span class="a">src</span>=<span class="s">"https://three.ws/embed/v1.js"</span> <span class="a">defer</span><span class="t">></script></span><span class="c">// anywhere</span>@@ -457,21 +402,20 @@<span class="a">agent</span>=<span class="s">"eip155:8453:42"</span><span class="a">interactive</span> <span class="a">autoplay</span><span class="t">></three-d></span></pre>- <ul class="bullets">- <li><b>lazy</b><span>Boots on intersect. Zero cost off-screen.</span></li>- <li><b>shadow</b><span>Isolated CSS. No leakage in or out.</span></li>- <li><b>theme</b><span>Dark, light, transparent, custom.</span></li>- <li><b>alias</b><span><three-d>, <three-agent>, <three-ws>.</span></li>- <li><b>id</b><span>ERC-8004 address or raw glTF URL.</span></li>- <li><b>size</b><span>15KB loader. CDN deduped runtime.</span></li>- </ul>- </div>- </section>- </main>+ <ul class="bullets">+ <li><b>lazy</b><span>Boots on intersect. Zero cost off-screen.</span></li>+ <li><b>eager</b><span>Add the attribute to force above-the-fold mount.</span></li>+ <li><b>shadow</b><span>Isolated CSS. No leakage in or out.</span></li>+ <li><b>theme</b><span>Dark, light, transparent, custom.</span></li>+ <li><b>id</b><span>ERC-8004 address or raw glTF URL.</span></li>+ <li><b>size</b><span>15KB loader. CDN-deduped runtime.</span></li>+ </ul>+ </div>+ </section><section class="end"><div class="big">ship a body.</div>- <div class="row">+ <div class="cta-row" style="justify-content:center;"><a class="cta" href="/character-studio">Open Studio</a><a class="cta-ghost" href="/docs">Read Docs</a></div>@@ -493,35 +437,16 @@(function () {var mv = document.getElementById('hero-mv');if (!mv) return;-- var baseTheta = 15, baseRadius = 4.2, basePhi = 82;- var mouseX = 0, mouseY = 0, scrollY = 0;- var raf = null;-+ var raf = null, mouseX = 0;function apply() {- var theta = baseTheta + mouseX * 18; // deg- var phi = basePhi - mouseY * 8 + Math.min(scrollY * 0.04, 18);- var radius = baseRadius + Math.min(scrollY * 0.0015, 0.6);- mv.setAttribute('camera-orbit', theta + 'deg ' + phi + 'deg ' + radius + 'm');+ var theta = 15 + mouseX * 25;+ mv.cameraOrbit = theta + 'deg 82deg auto';raf = null;}- function queue() { if (!raf) raf = requestAnimationFrame(apply); }-window.addEventListener('mousemove', function (e) {mouseX = (e.clientX / window.innerWidth) * 2 - 1;- mouseY = (e.clientY / window.innerHeight) * 2 - 1;- queue();+ if (!raf) raf = requestAnimationFrame(apply);}, { passive: true });-- window.addEventListener('scroll', function () {- scrollY = window.scrollY || window.pageYOffset;- queue();- var hint = document.getElementById('scrollHint');- if (hint) hint.classList.toggle('visible', scrollY < 80);- }, { passive: true });-- var hint = document.getElementById('scrollHint');- if (hint && (window.scrollY || 0) < 80) hint.classList.add('visible');})();</script></body>diff --git a/src/dashboard/dashboard.js b/src/dashboard/dashboard.jsindex c47b502c9..38bfecc58 100644--- a/src/dashboard/dashboard.js+++ b/src/dashboard/dashboard.js@@ -199,7 +199,7 @@ export function navigate(routeOrNull) {const route = routeOrNull || currentRoute();if (location.hash) {const clean = route.replace(/^\/+|\/+$/g, '');- history.replaceState({ route: clean }, '', '/dashboard/' + clean);+ history.replaceState({ route: clean }, '', '/dashboard-classic/' + clean);}renderRoute(route);}@@ -230,9 +230,9 @@ export function installRouting() {return;}- // Same-origin /dashboard/<tab> links.- if (href.startsWith('/dashboard/')) {- const tab = href.slice('/dashboard/'.length).split(/[?#]/)[0];+ // Same-origin /dashboard-classic/<tab> links.+ if (href.startsWith('/dashboard-classic/')) {+ const tab = href.slice('/dashboard-classic/'.length).split(/[?#]/)[0];const base = tab.split('/')[0];if (KNOWN_TABS.includes(base)) {e.preventDefault();diff --git a/src/marketplace.js b/src/marketplace.jsindex eca1728ca..9920f4f3a 100644--- a/src/marketplace.js+++ b/src/marketplace.js@@ -3208,6 +3208,55 @@ function renderDetail(a, bookmarked) {$('d-capabilities-list').innerHTML = list.map((b) => `<li>${escapeHtml(b)}</li>`).join('');++ // Embed tab+ renderEmbedTab(a);++ // Token card+ renderTokenCard(a);+}++function renderEmbedTab(a) {+ const agentId = a.id;+ const glbUrl = a.avatar_glb_url || '';+ const embedPageUrl = `${location.origin}/marketplace/agents/${agentId}`;+ const iframeSrc = `/agent/${agentId}/embed`;++ const wcSnippet = glbUrl+ ? `<script type="module" src="https://three.ws/dist-lib/agent-3d.js"><\/script>\n<agent-3d\n src="${glbUrl}"\n agent-id="${agentId}"\n style="width:480px;height:480px"\n></agent-3d>`+ : `<!-- No 3D avatar attached yet -->`;++ const iframeSnippet = `<iframe\n src="${iframeSrc}"\n width="480"\n height="640"\n style="border:0;border-radius:14px"\n allow="autoplay; xr-spatial-tracking"\n></iframe>`;++ const wc = $('d-embed-wc');+ const iframe = $('d-embed-iframe');+ const link = $('d-embed-link');+ if (wc) wc.textContent = wcSnippet;+ if (iframe) iframe.textContent = iframeSnippet;+ if (link) link.textContent = embedPageUrl;+}++function renderTokenCard(a) {+ const card = $('d-token-card');+ if (!card) return;+ const mint = a.sol_mint_address;+ if (!mint) {+ card.hidden = true;+ return;+ }+ const net = a.pumpfun_network || 'mainnet';+ const short = `${mint.slice(0, 6)}…${mint.slice(-4)}`;+ const mintEl = $('d-token-mint');+ if (mintEl) mintEl.textContent = short;+ mintEl?.setAttribute('title', mint);++ const pumpEl = $('d-token-pump');+ if (pumpEl) pumpEl.href = `https://pump.fun/${mint}`;++ const jupEl = $('d-token-jup');+ if (jupEl) jupEl.href = `https://jup.ag/swap/SOL-${mint}`;++ card.hidden = false;}function renderVersions(versions) {@@ -3412,7 +3461,25 @@ function bindEvents() {else if (state.featured.length) startHeroAutoplay();});- document.body.addEventListener('click', (e) => {+ document.body.addEventListener('click', async (e) => {+ const embedBtn = e.target.closest('.d-embed-copy');+ if (embedBtn) {+ const which = embedBtn.dataset.embed;+ const srcMap = { wc: 'd-embed-wc', iframe: 'd-embed-iframe', link: 'd-embed-link' };+ const src = $(srcMap[which]);+ if (src) {+ try {+ await navigator.clipboard.writeText(src.textContent);+ embedBtn.textContent = 'Copied ✓';+ embedBtn.classList.add('copied');+ setTimeout(() => {+ embedBtn.textContent = 'Copy';+ embedBtn.classList.remove('copied');+ }, 1800);+ } catch (_) { /* clipboard unavailable */ }+ }+ return;+ }if (e.target.matches('.purchase-btn')) {const skillName = e.target.dataset.skillName;const agentId = e.target.dataset.agentId;diff --git a/src/mocap-studio.js b/src/mocap-studio.jsindex 85a687473..7ba2dd7e1 100644--- a/src/mocap-studio.js+++ b/src/mocap-studio.js@@ -64,7 +64,7 @@ nameInput.value = '';// ── Auth state ────────────────────────────────────────────────────────────detectAuth().then((ok) => {state.signedIn = ok;- authWarning.style.display = ok ? 'none' : 'block';+ authWarning.classList.toggle('visible', !ok);});// ── Boot: try to load user's primary public avatar ────────────────────────@@ -339,7 +339,7 @@ function downloadClip() {}async function refreshClipList() {- clipListEl.innerHTML = '<div class="empty">Loading…</div>';+ clipListEl.innerHTML = '<div class="empty-state">Loading…</div>';try {const r = await fetch('/api/mocap/clips?include_public=true&limit=30', {credentials: 'include',@@ -347,7 +347,7 @@ async function refreshClipList() {if (!r.ok) throw new Error(`list failed (${r.status})`);const { items } = await r.json();if (!items || items.length === 0) {- clipListEl.innerHTML = '<div class="empty">No clips saved yet. Record one above.</div>';+ clipListEl.innerHTML = '<div class="empty-state">No clips saved yet. Record one above.</div>';return;}clipListEl.innerHTML = '';@@ -359,9 +359,9 @@ async function refreshClipList() {<div class="n">${escapeHtml(c.name)} <span class="v-pill ${escapeAttr(c.visibility)}">${escapeHtml(c.visibility)}</span></div><div class="d">${escapeHtml(c.kind)} · ${formatTime((c.duration_ms || 0) / 1000)} · ${c.frame_count} frames${c.owner === 'self' ? '' : ' · public'}</div></div>- <div class="actions">- <button data-act="play" data-id="${escapeAttr(c.id)}">Replay</button>- ${c.owner === 'self' ? `<button data-act="delete" data-id="${escapeAttr(c.id)}">Delete</button>` : ''}+ <div class="clip-actions">+ <button class="clip-btn" data-act="play" data-id="${escapeAttr(c.id)}">Replay</button>+ ${c.owner === 'self' ? `<button class="clip-btn" data-act="delete" data-id="${escapeAttr(c.id)}">Delete</button>` : ''}</div>`;clipListEl.appendChild(el);@@ -374,7 +374,7 @@ async function refreshClipList() {});});} catch (err) {- clipListEl.innerHTML = `<div class="empty">${escapeHtml(err?.message || 'Could not load clips.')}</div>`;+ clipListEl.innerHTML = `<div class="empty-state">${escapeHtml(err?.message || 'Could not load clips.')}</div>`;}}diff --git a/tasks/walk/01-walk-avatar-url-param.md b/tasks/walk/01-walk-avatar-url-param.mdnew file mode 100644index 000000000..e78976707--- /dev/null+++ b/tasks/walk/01-walk-avatar-url-param.md@@ -0,0 +1,24 @@+# Task 01 — Walk Page: ?avatar= URL Parameter Support++## Priority: URGENT++## Objective+The existing `/walk` page must fully support loading any avatar by ID via the `?avatar=<uuid>` query parameter. When the URL `/walk?avatar=bacff13e-b64b-4ac0-860d-44f0168ad23b` is opened, the page must fetch that avatar's GLB from the three.ws avatar API, load it into the Three.js scene, and begin the walk experience with that avatar immediately — no login required to view.++## Scope+- File: `pages/walk.html` and its corresponding JS entry (likely `src/walk.js` or inline script in that page)+- On page load, parse `new URLSearchParams(location.search).get('avatar')`+- Fetch `/api/avatars/<id>` to resolve the avatar's GLB URL+- Load the GLB into the existing Three.js walk scene using the existing loader pipeline+- If no `?avatar=` param, fall back to the current default avatar (do not break the default flow)+- If the avatar ID is invalid or the fetch fails, show a real error state with a "try another avatar" CTA — no silent failures++## Definition of Done+- `https://three.ws/walk?avatar=bacff13e-b64b-4ac0-860d-44f0168ad23b` loads that specific avatar and it walks+- Network tab shows a real API call to `/api/avatars/<id>`+- Works on mobile (joystick controls) and desktop (WASD/arrow keys)+- No console errors+- No mocks, no hardcoded avatar paths++## Rules+Complete 100%. No stubs. No fake data. Wire every step end-to-end and verify in a real browser with the dev server running.diff --git a/tasks/walk/02-walk-homepage-hero.md b/tasks/walk/02-walk-homepage-hero.mdnew file mode 100644index 000000000..3f1e3fbc8--- /dev/null+++ b/tasks/walk/02-walk-homepage-hero.md@@ -0,0 +1,27 @@+# Task 02 — Homepage Hero: Walking Avatar++## Priority: URGENT++## Objective+Integrate the walking avatar experience into the three.ws homepage (`pages/home-next.html`) hero section. The homepage hero must render a live, animated 3D avatar that walks/idles in place within the hero canvas — not a video, not a GIF, a real Three.js scene. The avatar used should be the platform's default demo avatar (loaded from the real API, not hardcoded).++## Scope+- File: `pages/home-next.html` and `src/home-next.js` (or equivalent entry)+- Add a Three.js canvas behind or alongside the hero copy+- Reuse the walk animation state machine from `src/animation-state-machine.js` — do not duplicate animation logic+- Avatar plays idle animation on load; transitions to a slow walk cycle after 2 seconds+- Canvas is responsive: fills container on mobile, sits right-side on desktop (split layout)+- Avatar loads from `/api/avatars/featured` or the existing default avatar endpoint — real fetch+- Canvas does not block clicks on hero CTA buttons (pointer-events handled correctly)+- No autoplay video fallback — the 3D scene is the feature++## Definition of Done+- Homepage loads and the hero avatar is visible and animating within 3 seconds on a standard connection+- No layout shift (CLS) from canvas injection+- Mobile: avatar renders at correct aspect, no overflow+- Desktop: split hero layout is visually clean+- Console: zero errors+- Network: avatar GLB fetched from real API++## Rules+Complete 100%. No stubs. No fake data. Wire every step end-to-end and verify in a real browser with the dev server running.diff --git a/tasks/walk/03-walk-embed-iframe.md b/tasks/walk/03-walk-embed-iframe.mdnew file mode 100644index 000000000..f00f6be11--- /dev/null+++ b/tasks/walk/03-walk-embed-iframe.md@@ -0,0 +1,26 @@+# Task 03 — Walk Embed: Iframe-Ready Walking Avatar++## Priority: URGENT++## Objective+Create a dedicated embeddable walk page at `/walk-embed` (new file `pages/walk-embed.html`) that is stripped of all navigation, footer, and chrome — just the Three.js canvas, the joystick, and the avatar. This page must be safe to embed in any `<iframe>` on any origin.++## Scope+- New file: `pages/walk-embed.html` + `src/walk-embed.js`+- Route: add `/walk-embed` to `vercel.json` routes+- Accepts `?avatar=<uuid>` — loads that avatar via real API+- Accepts `?bg=<hex>` — sets canvas background color (default transparent/black)+- Accepts `?controls=joystick|keyboard|none` — enables appropriate controls+- Accepts `?autoplay=true` — avatar walks forward on load without user input+- No nav, no footer, no login prompts+- Sets `frame-ancestors *` in response headers (or ensure vercel.json doesn't block iframes)+- Communicates with parent window via `postMessage`: emits `{ type: 'walk:ready' }` when loaded, `{ type: 'walk:position', x, z }` on each position update++## Definition of Done+- `<iframe src="https://three.ws/walk-embed?avatar=<id>">` embeds cleanly on a blank HTML page+- Avatar loads and walks with joystick on mobile, WASD on desktop+- postMessage events verified in browser console of the parent page+- No X-Frame-Options or CSP blocking the embed++## Rules+Complete 100%. No stubs. No fake data. Wire every step end-to-end and verify in a real browser with the dev server running.diff --git a/tasks/walk/04-walk-embed-sdk.md b/tasks/walk/04-walk-embed-sdk.mdnew file mode 100644index 000000000..1564a04aa--- /dev/null+++ b/tasks/walk/04-walk-embed-sdk.md@@ -0,0 +1,27 @@+# Task 04 — Walk Embed SDK: One-Line JS Embed++## Priority: URGENT++## Objective+Build a JavaScript embed SDK (`public/walk-embed-sdk.js`) that anyone can drop into their website with a single `<script>` tag to embed a walking avatar. Similar to how Intercom or Drift embed — one script, zero configuration required, avatar appears as a floating 3D character on the page.++## Scope+- File: `public/walk-embed-sdk.js` (must be bundled, no external deps at runtime)+- Usage: `<script src="https://three.ws/walk-embed-sdk.js" data-avatar="<uuid>"></script>`+- Script reads `data-avatar` attribute from its own `<script>` tag+- Injects a fixed-position `<iframe>` (bottom-right corner, 200×300px default) pointing to `/walk-embed?avatar=<id>&controls=none&autoplay=true`+- Exposes `window.ThreeWalkAvatar` global: `{ mount(el), unmount(), setAvatar(id), setSize(w,h), setPosition('bottom-left'|...) }`+- Accepts optional `data-position`, `data-width`, `data-height` attributes on the script tag+- Listens for `postMessage` from the iframe and re-emits as `CustomEvent` on `document`: `new CustomEvent('walk:position', { detail: { x, z } })`+- Works on any website (no framework dependencies)+- Minified build goes to `dist/walk-embed-sdk.min.js` — add a Vite build config entry for this++## Definition of Done+- Drop the script tag on a blank `index.html` → avatar appears floating in corner+- `window.ThreeWalkAvatar.setAvatar('new-id')` swaps avatar live+- `window.ThreeWalkAvatar.setPosition('bottom-left')` moves it+- Zero console errors on host page+- Bundle < 10 KB (it's just an iframe injector)++## Rules+Complete 100%. No stubs. No fake data. Wire every step end-to-end and verify in a real browser with the dev server running.diff --git a/tasks/walk/05-chrome-extension-scaffold.md b/tasks/walk/05-chrome-extension-scaffold.mdnew file mode 100644index 000000000..ed3a8473f--- /dev/null+++ b/tasks/walk/05-chrome-extension-scaffold.md@@ -0,0 +1,26 @@+# Task 05 — Chrome Extension: Scaffold & Manifest++## Priority: URGENT++## Objective+Create the Chrome extension scaffold that allows users to inject a walking three.ws avatar onto any website they visit. This is the foundation task — subsequent tasks build on it.++## Scope+- New directory: `extensions/walk-avatar/`+- `manifest.json` — Manifest V3, permissions: `storage`, `activeTab`, `scripting`; host_permissions: `<all_urls>`+- `popup.html` + `popup.js` — Extension popup: shows avatar picker (fetches user's avatars from `https://three.ws/api/avatars/mine` if logged in, else shows a default), toggle button to enable/disable avatar on current tab+- `content.js` — Content script injected into every page: injects the walk-embed iframe, handles page navigation cleanup+- `background.js` — Service worker: stores selected avatar ID in `chrome.storage.local`, relays messages between popup and content script+- `icons/` — 16, 32, 48, 128px icons (use the existing `public/pwa-icon.svg` as source)+- `styles/` — Isolated CSS for the injected iframe container (must not bleed into host page)+- Add build script: `npm run build:extension` using Rollup or esbuild, outputs to `dist/extension/`+- Add `extensions/walk-avatar/README.md` with load-unpacked instructions++## Definition of Done+- Extension loads in Chrome via `chrome://extensions` → Load unpacked → `dist/extension/`+- Popup renders with toggle and avatar selection+- No manifest errors in Chrome extension panel+- Background service worker registers without errors++## Rules+Complete 100%. No stubs. No fake data. Wire every step end-to-end and verify in a real browser with the dev server running.diff --git a/tasks/walk/06-chrome-extension-content-script.md b/tasks/walk/06-chrome-extension-content-script.mdnew file mode 100644index 000000000..aa8ba1703--- /dev/null+++ b/tasks/walk/06-chrome-extension-content-script.md@@ -0,0 +1,27 @@+# Task 06 — Chrome Extension: Content Script Avatar Injection++## Priority: URGENT++## Objective+Implement the content script that injects the walking avatar iframe into any website the user is browsing, with the avatar appearing as a persistent floating character in the corner of the page.++## Scope+- File: `extensions/walk-avatar/content.js`+- On activation (message from background): create a fixed-position `<iframe>` pointing to `https://three.ws/walk-embed?avatar=<id>&controls=joystick&bg=transparent`+- iframe must be sandboxed appropriately: `allow="autoplay; scripts; same-origin"`+- Avatar container: fixed position, bottom-right, 180×260px, z-index 2147483647 (max, above everything)+- Container is draggable by the user (mousedown/touchstart on a drag handle at top of container)+- On deactivation (toggle off): remove the iframe cleanly, no DOM residue+- Handle SPA navigation: listen for `popstate` and `pushState` mutations — do not lose the avatar on client-side route changes+- On `walk:position` postMessage from iframe: optionally tilt the avatar container slightly based on walk direction (subtle, ±2deg transform)+- Avatar container has a minimal close × button in the top-right corner++## Definition of Done+- Avatar appears floating on `google.com`, `github.com`, and any other arbitrary site+- Drag works on both mouse and touch+- Close button removes avatar+- Avatar survives client-side navigation on SPAs (test on twitter.com)+- No style leakage onto host page++## Rules+Complete 100%. No stubs. No fake data. Wire every step end-to-end and verify in a real browser with the dev server running.diff --git a/tasks/walk/07-chrome-extension-popup-picker.md b/tasks/walk/07-chrome-extension-popup-picker.mdnew file mode 100644index 000000000..c7fa2c8f3--- /dev/null+++ b/tasks/walk/07-chrome-extension-popup-picker.md@@ -0,0 +1,39 @@+# Task 07 — Chrome Extension: Popup Avatar Picker++## Priority: URGENT++## Objective+Build the extension popup UI so users can sign in, browse their three.ws avatars, pick one, and toggle the walking avatar on/off for the current tab. The picker must show real avatars from the real three.ws API — no placeholders.++## Scope+- File: `extensions/walk-avatar/popup.html`, `popup.js`, `popup.css`+- Layout (360×480px popup):+ - Header: three.ws logo, "Sign in" or signed-in user pill (shows handle from `/api/me`)+ - Tab bar: "My Avatars" | "Featured" | "Recent"+ - Avatar grid: 3 columns of 96×96 thumbnails, each loads via `/api/avatars/<id>/thumb` real endpoint+ - Selected avatar gets accent border (var(--accent) from site CSS)+ - Footer: large toggle switch "Enable on this site" + speed slider (0.5x–2x walk speed)+- Auth: extension opens `https://three.ws/login?redirect=ext` in a new tab; site posts back the session token via `window.postMessage`; popup stores in `chrome.storage.local` as `threews_session`+- On avatar select: write `{ avatarId, walkSpeed, enabled }` to `chrome.storage.local`; send `chrome.tabs.sendMessage` to current tab → content script swaps the iframe `src`+- Empty state if user has zero avatars: CTA "Create your first avatar" → opens `https://three.ws/create-selfie`+- Loading state: real skeleton shimmer (no fake loading spinner)+- Error state on API failure: shows real error message + retry button++## API endpoints to wire (all already exist or must exist — verify in `api/`)+- `GET /api/me` — session check+- `GET /api/avatars/mine` — user's avatars list+- `GET /api/avatars/featured` — featured avatars+- `GET /api/avatars/<id>/thumb` — thumbnail JPG++If any of these endpoints don't exist, create them in `api/` as real Vercel functions with real database queries — do not stub.++## Definition of Done+- Sign in flow works end-to-end from popup+- Real avatars from real API render in the grid+- Selecting an avatar in the popup immediately swaps the avatar on the current tab+- Speed slider live-updates the iframe via postMessage+- Toggle off removes the iframe from the tab+- No console errors in popup DevTools or content script++## Rules+Complete 100%. No stubs. No fake data. Wire every step end-to-end and verify in a real browser with the dev server running. If an API endpoint is missing, build it for real — do not mock.diff --git a/vercel.json b/vercel.jsonindex f612e389d..b7967d764 100644--- a/vercel.json+++ b/vercel.json@@ -1698,7 +1698,8 @@},{"src": "/discover/avatar/([^/]+)",- "dest": "/api/discover-detail?kind=avatar&id=$1"+ "status": 301,+ "headers": { "Location": "/marketplace/agents/$1" }},{"src": "/discover/(.*)",diff --git a/vite.config.js b/vite.config.jsindex 81f8ff3b3..74efd0894 100644--- a/vite.config.js+++ b/vite.config.js@@ -342,8 +342,10 @@ const appConfig = {'/create-review/': resolve(root, 'pages/create-review.html'),'/import/rpm': resolve(root, 'pages/import-rpm.html'),'/import/rpm/': resolve(root, 'pages/import-rpm.html'),- '/dashboard': resolve(root, 'public/dashboard/index.html'),- '/dashboard/': resolve(root, 'public/dashboard/index.html'),+ '/dashboard': resolve(root, 'pages/dashboard-next/index.html'),+ '/dashboard/': resolve(root, 'pages/dashboard-next/index.html'),+ '/dashboard-classic': resolve(root, 'public/dashboard-classic/index.html'),+ '/dashboard-classic/': resolve(root, 'public/dashboard-classic/index.html'),'/dashboard-next': resolve(root, 'pages/dashboard-next/index.html'),'/dashboard-next/': resolve(root, 'pages/dashboard-next/index.html'),'/dashboard-next/avatars': resolve(root, 'pages/dashboard-next/avatars.html'),@@ -484,6 +486,13 @@ const appConfig = {res.setHeader('Location', '/discover/');return res.end();}+ // /discover/avatar/:id → canonical marketplace detail page+ const discoverAvatarM = path.match(/^\/discover\/avatar\/([^/]+)\/?$/);+ if (discoverAvatarM) {+ res.statusCode = 301;+ res.setHeader('Location', `/marketplace/agents/${discoverAvatarM[1]}`);+ return res.end();+ }// /coin is the legacy URL for /demo/coin (the lottery+reflection// demo). Kept as a 301 so old links and shares keep working.if (path === '/coin' || path === '/coin/') {@@ -568,16 +577,28 @@ const appConfig = {// /pay/calls/<base58 tx sig> → permalink for a paid x402 callelse if (!filePath && /^\/pay\/calls\/[1-9A-HJ-NP-Za-km-z]+\/?$/.test(path))filePath = resolve(root, 'public/pay/calls/index.html');- // /dashboard/<tab> and /dashboard/edit/<id> → SPA index+ // /dashboard/<tab> and /dashboard/edit/<id> → pages/dashboard-next/index.html (new SPA)else if (!filePath &&/^\/dashboard\/(?:agents|avatars|create|upload|animations|widgets|embed|keys|mcp|monetization|payments|subscriptions|billing|revenue|withdrawals|earnings|account)\/?$/.test(path,))- filePath = resolve(root, 'public/dashboard/index.html');+ filePath = resolve(root, 'pages/dashboard-next/index.html');else if (!filePath && /^\/dashboard\/edit\/[^/]+\/?$/.test(path))- filePath = resolve(root, 'public/dashboard/index.html');+ filePath = resolve(root, 'pages/dashboard-next/index.html');+ // /dashboard-classic/<tab> → public/dashboard-classic/index.html (classic SPA)+ else if (+ !filePath &&+ /^\/dashboard-classic\/(?:agents|avatars|create|upload|animations|widgets|embed|keys|mcp|monetization|payments|subscriptions|billing|revenue|withdrawals|earnings|account|portfolio|wallets|sessions|actions|embed-policy|agent-pumpfun|usage|storage|memory|strategy|voice|sns|delegation|tokens)\/?$/.test(+ path,+ )+ )+ filePath = resolve(root, 'public/dashboard-classic/index.html');+ else if (!filePath && /^\/dashboard-classic\/edit\/[^/]+\/?$/.test(path))+ filePath = resolve(root, 'public/dashboard-classic/index.html');+ else if (!filePath && /^\/dashboard-classic\/portfolio\/asset\/?$/.test(path))+ filePath = resolve(root, 'public/dashboard-classic/portfolio-asset.html');// /dashboard-next/<slug> → pages/dashboard-next/<slug>.html// Mirrors vercel.json so the dev server resolves the sub-pages// landed by parallel agents without each one having to touch@@ -587,12 +608,18 @@ const appConfig = {const candidate = resolve(root, `pages/dashboard-next/${slug}.html`);if (existsSync(candidate)) filePath = candidate;}- // /dashboard/<page> → corresponding static HTML page- else if (!filePath && /^\/dashboard\/portfolio\/asset\/?$/.test(path))- filePath = resolve(root, 'public/dashboard/portfolio-asset.html');- else if (!filePath && /^\/dashboard\/(?:portfolio|wallets|sessions|actions|embed-policy|agent-pumpfun|usage|storage|memory|strategy|voice|sns|delegation|tokens)\/?$/.test(path)) {+ // /dashboard/<page> → pages/dashboard/<page>.html (new dashboard-next pages)+ else if (!filePath && /^\/dashboard\/[a-z0-9][a-z0-9-]*\/?$/.test(path)) {const slug = path.replace(/^\/dashboard\//, '').replace(/\/$/, '');- filePath = resolve(root, `public/dashboard/${slug}.html`);+ const candidate = resolve(root, `pages/dashboard/${slug}.html`);+ if (existsSync(candidate)) filePath = candidate;+ }+ // /dashboard-classic/<page> → corresponding static HTML page (classic pages)+ else if (!filePath && /^\/dashboard-classic\/portfolio\/asset\/?$/.test(path))+ filePath = resolve(root, 'public/dashboard-classic/portfolio-asset.html');+ else if (!filePath && /^\/dashboard-classic\/(?:portfolio|wallets|sessions|actions|embed-policy|agent-pumpfun|usage|storage|memory|strategy|voice|sns|delegation|tokens)\/?$/.test(path)) {+ const slug = path.replace(/^\/dashboard-classic\//, '').replace(/\/$/, '');+ filePath = resolve(root, `public/dashboard-classic/${slug}.html`);}// Generic fallback: /<slug> or /<slug>.html → pages/<slug>.html// Catches the long tail of bundled root-level pages (community,