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
chore: Remove features page and hero feature scripts, add pump-dashboard tasks
nirholasfd264f9974dd
diff --git "a/Screenshot 2026-05-04 at 2.04.17\342\200\257PM.png" "b/Screenshot 2026-05-04 at 2.04.17\342\200\257PM.png"deleted file mode 100644index 7db97cec0..000000000Binary files "a/Screenshot 2026-05-04 at 2.04.17\342\200\257PM.png" and /dev/null differdiff --git a/agent-home.html b/agent-home.htmlindex 5fcc3eccb..4ba836ef0 100644--- a/agent-home.html+++ b/agent-home.html@@ -721,7 +721,6 @@<nav class="agent-header-nav" aria-label="Primary"><a href="/discover">Discover</a><a href="/create">Create</a>- <a href="/features">Features</a><a href="/studio">Studio</a><a href="/playground.html">Playground</a></nav>@@ -967,7 +966,6 @@</div><div class="h-footer-link-col"><h4 class="h-footer-link-heading">Resources</h4>- <a href="/features">Features</a><a href="/dashboard">Dashboard</a></div></nav>diff --git a/api/agents/[id]/skill-collection.js b/api/agents/[id]/skill-collection.jsindex 33baeb352..8b1378917 100644--- a/api/agents/[id]/skill-collection.js+++ b/api/agents/[id]/skill-collection.js@@ -1,58 +1 @@-import { createNft } from '@metaplex-foundation/mpl-token-metadata';-import { generateSigner, percentAmount } from '@metaplex-foundation/umi';-import { initializeUmi } from '../../_lib/solana/umi';-import { sql } from '../../_lib/db.js';-import { getSessionUser } from '../../_lib/auth.js';-import { error, json, method, wrap } from '../../_lib/http.js';-export default wrap(async (req, res) => {- if (req.method !== 'POST') {- return res.status(405).end();- }-- const user = await getSessionUser(req);- if (!user) return error(res, 401, 'unauthorized', 'sign in required');-- const url = new URL(req.url, 'http://x');- const parts = url.pathname.split('/').filter(Boolean);- const agentId = parts[2];-- const [agent] = await sql`- SELECT user_id, skill_collection_mint, name FROM agent_identities WHERE id = ${agentId} AND deleted_at IS NULL- `;-- if (!agent || agent.user_id !== user.id) {- return error(res, 403, 'forbidden', 'You do not own this agent.');- }- if (agent.skill_collection_mint) {- return error(res, 400, 'bad_request', 'Collection already exists');- }-- try {- const umi = initializeUmi();- const collectionMint = generateSigner(umi);-- // TODO: Upload collection metadata to Arweave/IPFS- const collectionMetadataUri = 'https://arweave.net/...';-- await createNft(umi, {- mint: collectionMint,- name: `Agent ${agent.name} Skills`,- symbol: 'A1SKILL',- uri: collectionMetadataUri,- sellerFeeBasisPoints: percentAmount(0),- isCollection: true,- }).sendAndConfirm(umi);-- const collectionMintAddress = collectionMint.publicKey;-- await sql`- UPDATE agent_identities SET skill_collection_mint = ${collectionMintAddress} WHERE id = ${agentId}- `;-- return json(res, 200, { collectionMint: collectionMintAddress });- } catch (e) {- console.error('Failed to create collection NFT:', e);- return error(res, 500, 'server_error', 'Failed to create collection');- }-});diff --git a/avatar-page.html b/avatar-page.htmlindex b0a1741d7..37cd3c274 100644--- a/avatar-page.html+++ b/avatar-page.html@@ -330,7 +330,6 @@</div><div class="h-footer-link-col"><h4 class="h-footer-link-heading">Resources</h4>- <a href="/features">Features</a><a href="/dashboard">Dashboard</a></div></nav>@@ -606,7 +605,6 @@</div><div class="h-footer-link-col"><h4 class="h-footer-link-heading">Resources</h4>- <a href="/features">Features</a><a href="/dashboard">Dashboard</a></div></nav>diff --git a/create.html b/create.htmlindex a223761d4..8b011f488 100644--- a/create.html+++ b/create.html@@ -845,7 +845,6 @@</div><div class="h-footer-link-col"><h4 class="h-footer-link-heading">Resources</h4>- <a href="/features">Features</a><a href="/dashboard">Dashboard</a></div></nav>diff --git a/home.html b/home.htmlindex 16116f968..b827cfb62 100644--- a/home.html+++ b/home.html@@ -545,7 +545,7 @@framework. No build step.</p><div class="h-dev-links">- <a href="/features" class="h-feature-link">Read the docs →</a>+ <a href="/docs" class="h-feature-link">Read the docs →</a><ahref="https://github.com/nirholas/three.ws"target="_blank"@@ -736,7 +736,6 @@</div><div class="h-footer-link-col"><h4 class="h-footer-link-heading">Resources</h4>- <a href="/features">Features</a><a href="/dashboard">Dashboard</a></div></nav>diff --git a/index.html b/index.htmlindex cc170798a..6d5d7c045 100644--- a/index.html+++ b/index.html@@ -1257,7 +1257,6 @@</div><div class="h-footer-link-col"><h4 class="h-footer-link-heading">Resources</h4>- <a href="/features">Features</a><a href="/dashboard">Dashboard</a></div></nav>diff --git a/marketplace.html b/marketplace.htmlindex a278d7df1..7e16bed2c 100644--- a/marketplace.html+++ b/marketplace.html@@ -172,7 +172,7 @@<a href="/" data-nav="home"><span class="ico">⌂</span> Home</a><a href="/marketplace" data-nav="agent" class="active"><span class="ico">▣</span> Agent</a><a href="/marketplace?tab=tools" data-nav="tools"><span class="ico">⚙</span> Tools</a>- <a href="/features" data-nav="skills"><span class="ico">≡</span> Skills</a>+ <a href="/marketplace?tab=skills" data-nav="skills"><span class="ico">≡</span> Skills</a><a href="/dashboard" data-nav="model"><span class="ico">◉</span> Model</a><a href="/marketplace?tab=mine" data-nav="mine"><span class="ico">◱</span> My Agents</a></nav>diff --git a/playground.html b/playground.htmlindex 272f98aef..77269050a 100644--- a/playground.html+++ b/playground.html@@ -72,7 +72,6 @@<nav class="agent-header-nav" aria-label="Primary"><a href="/discover">Discover</a><a href="/create">Create</a>- <a href="/features">Features</a><a href="/studio">Studio</a><a href="/playground.html">Playground</a></nav>diff --git a/profile.html b/profile.htmlindex 8cb328e05..33ab30c9e 100644--- a/profile.html+++ b/profile.html@@ -418,7 +418,6 @@</div><div class="h-footer-link-col"><h4 class="h-footer-link-heading">Resources</h4>- <a href="/features">Features</a><a href="/dashboard">Dashboard</a></div></nav>diff --git a/public/dashboard/index.html b/public/dashboard/index.htmlindex afec18f1b..72299ebe8 100644--- a/public/dashboard/index.html+++ b/public/dashboard/index.html@@ -1115,7 +1115,6 @@<a href="/app">Viewer</a><a href="/create">Create</a><a href="/discover">Discover</a>- <a href="/features">Features</a><a href="/widgets">Widgets</a><a href="/studio">Studio</a><a href="/docs">Docs</a>@@ -1195,7 +1194,6 @@<a href="/create">Create</a><a href="/studio">Studio</a><a href="/widgets">Widgets</a>- <a href="/features">Features</a><a href="/discover">Discover</a><a href="/showcase">Showcase</a><a href="/docs">Docs</a>diff --git a/public/docs-widgets.html b/public/docs-widgets.htmlindex 62df099b2..88117eed8 100644--- a/public/docs-widgets.html+++ b/public/docs-widgets.html@@ -472,7 +472,6 @@ img-src https://three.ws/ data:;</code></pre><a href="/create">Create</a><a href="/studio">Studio</a><a href="/widgets">Widgets</a>- <a href="/features">Features</a><a href="/discover">Discover</a><a href="/showcase">Showcase</a><a href="/docs">Docs</a>diff --git a/public/features/features.css b/public/features/features.cssdeleted file mode 100644index 51f2911ed..000000000--- a/public/features/features.css+++ /dev/null@@ -1,1181 +0,0 @@-.features-page {- background-color: #000;- color: #fff;-}--.features-main {- padding: 2rem 1rem;-}--.features-hero {- text-align: center;- margin-bottom: 4rem;-}--.features-hero-title {- font-size: 3rem;- font-weight: 700;- margin-bottom: 1rem;-}--.features-hero-subtitle {- font-size: 1.25rem;- color: #aaa;-}--.features-grid {- display: grid;- grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));- gap: 2rem;- margin-bottom: 4rem;-}--.feature-card {- background-color: #111;- border: 1px solid #333;- border-radius: 0.5rem;- padding: 2rem;- text-align: center;- transition: transform 0.2s;-}--.feature-card:hover {- transform: translateY(-0.5rem);-}--.feature-card-icon {- font-size: 2rem;- margin-bottom: 1rem;-}--.feature-card-title {- font-size: 1.5rem;- font-weight: 600;- margin-bottom: 0.5rem;-}--.feature-card-desc {- color: #aaa;-}--.features-community {- text-align: center;- margin-bottom: 4rem;-}--.features-community-title {- font-size: 2rem;- font-weight: 600;- margin-bottom: 1rem;-}--.features-community-subtitle {- font-size: 1.25rem;- color: #aaa;- margin-bottom: 2rem;-}--.features-community-links {- display: flex;- justify-content: center;- gap: 2rem;-}--.community-link {- display: flex;- align-items: center;- gap: 0.5rem;- color: #fff;- text-decoration: none;- font-size: 1.25rem;- transition: color 0.2s;-}--.community-link:hover {- color: #aaa;-}--.features-cta {- text-align: center;-}--.features-cta-title {- font-size: 2rem;- font-weight: 600;- margin-bottom: 1rem;-}--.features-cta-subtitle {- font-size: 1.25rem;- color: #aaa;- margin-bottom: 2rem;-}--.features-cta-button {- background-color: #fff;- color: #000;- padding: 1rem 2rem;- border-radius: 0.5rem;- text-decoration: none;- font-weight: 600;- transition: background-color 0.2s;-}--.features-cta-button:hover {- background-color: #aaa;-}---:root {- --features-perspective: 2.4rem;- --features-act-height: 210vh;- --features-content-pad: clamp(1rem, 4vw, 3rem);- --features-bg: #06070b;- --features-fg: #f1efe9;- --features-gold: #ffd76a;- --features-violet: #a78bfa;- --features-mint: #6ee7b7;- --features-cyan: #67e8f9;-}--/* ── Page shell ─────────────────────────────────────────────────────────── */--.features-parallax-page {- background: var(--features-bg);- color: var(--features-fg);- margin: 0;- overflow: hidden;- height: 100vh;-}--.features-parallax-page header {- position: fixed;- inset: 0 0 auto 0;- z-index: 50;- background: linear-gradient(to bottom, rgba(6, 7, 11, 0.85) 0%, rgba(6, 7, 11, 0) 100%);- backdrop-filter: blur(8px);- -webkit-backdrop-filter: blur(8px);-}--.features-parallax-page .wordmark-logo {- height: 1.75rem;- width: auto;- display: block;-}--/* ── The scroll container — establishes perspective ─────────────────────── */--.parallax {- position: relative;- height: 100vh;- width: 100vw;- overflow-x: hidden;- overflow-y: auto;- overscroll-behavior-y: none;- perspective: var(--features-perspective);- perspective-origin: 50% 0%;- scroll-behavior: smooth;- display: flex;- flex-direction: column;-}--.features-parallax-page > .parallax > .h-footer-horizon {- margin-top: auto;-}--/* Hide WebKit scrollbar without affecting scroll behavior. */-.parallax::-webkit-scrollbar {- width: 0;- height: 0;-}--.parallax {- scrollbar-width: none;-}--/* ── Each act: a perspective-aware stacking context ─────────────────────── */--.parallax-act {- position: relative;- display: block;- height: var(--features-act-height);- transform-style: preserve-3d;-}--.parallax-act + .parallax-act {- border-top: 1px solid rgba(255, 255, 255, 0.04);-}--/* ── Layers: pushed back in Z, scaled up to compensate ──────────────────── */--.parallax-layer {- position: absolute;- inset: 0;- width: 100%;- height: 100%;- pointer-events: none;- transform-origin: 50% 50%;- transform: translateZ(calc(var(--features-perspective) * var(--depth) * -1))- scale(calc(var(--depth) + 1));- z-index: calc(10 - var(--depth, 0));- overflow: hidden;-}--.parallax-layer--front {- pointer-events: auto;-}--/* ── Star field canvas ───────────────────────────────────────────────────── */--.layer-stars-canvas {- position: absolute;- left: 0;- top: 0;- width: 100%;- height: 200%; /* drawn double-tall so drift animation loops seamlessly */- pointer-events: none;- animation: star-drift 120s linear infinite;-}--@keyframes star-drift {- from { transform: translateY(0); }- to { transform: translateY(-50%); }-}--/* ── Foreground vignette layer (depth 0.5 — fastest moving, creates depth) ── */--.layer-vignette {- position: absolute;- inset: 0;- background: radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(6, 7, 11, 0.72) 100%);- pointer-events: none;-}--/* ── Act warp transition zone ───────────────────────────────────────────── */--.act-warp {- position: absolute;- top: 0;- left: 0;- right: 0;- height: 28vh;- pointer-events: none;- z-index: 25;-}--.act-warp--gold {- background: linear-gradient(to bottom, rgba(6, 7, 11, 1) 0%, rgba(255, 215, 106, 0.04) 60%, transparent 100%);-}--.act-warp--violet {- background: linear-gradient(to bottom, rgba(6, 7, 11, 1) 0%, rgba(167, 139, 250, 0.04) 60%, transparent 100%);-}--.act-warp--mint {- background: linear-gradient(to bottom, rgba(6, 7, 11, 1) 0%, rgba(110, 231, 183, 0.04) 60%, transparent 100%);-}--/* ── Scroll hint ────────────────────────────────────────────────────────── */--.scroll-hint {- position: fixed;- bottom: 2rem;- left: 50%;- transform: translateX(-50%);- z-index: 100;- display: flex;- flex-direction: column;- align-items: center;- gap: 6px;- opacity: 1;- transition: opacity 0.6s ease;- pointer-events: none;-}--.scroll-hint[hidden] {- display: none;-}--.scroll-hint--hidden {- opacity: 0;-}--.scroll-hint-label {- font-family: 'Space Grotesk', sans-serif;- font-size: 10px;- font-weight: 500;- letter-spacing: 0.18em;- text-transform: uppercase;- color: rgba(255, 255, 255, 0.35);-}--.scroll-hint-chevron {- width: 20px;- height: 20px;- color: rgba(255, 255, 255, 0.3);- animation: scroll-hint-bounce 1.6s ease-in-out infinite;-}--@keyframes scroll-hint-bounce {- 0%, 100% { transform: translateY(0); opacity: 0.3; }- 50% { transform: translateY(5px); opacity: 0.7; }-}--/* ── Section progress dots (fixed right rail) ───────────────────────────── */--.act-nav {- position: fixed;- right: 1.5rem;- top: 50%;- transform: translateY(-50%);- z-index: 100;- display: flex;- flex-direction: column;- gap: 0.75rem;-}--.act-dot {- display: block;- width: 7px;- height: 7px;- border-radius: 50%;- background: rgba(255, 255, 255, 0.22);- border: 1px solid rgba(255, 255, 255, 0.14);- transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;- text-decoration: none;-}--.act-dot[data-active='true'] {- background: #fff;- border-color: #fff;- transform: scale(1.35);-}--.parallax-act[data-act='1'] ~ * .act-dot[data-act='1'],-.act-dot[data-act='1'][data-active='true'] {- background: var(--features-gold);- border-color: var(--features-gold);-}--.act-dot[data-act='2'][data-active='true'] {- background: var(--features-violet);- border-color: var(--features-violet);-}--.act-dot[data-act='3'][data-active='true'] {- background: var(--features-mint);- border-color: var(--features-mint);-}--/* ── Perspective grid SVG (Act 1 mid layer) ─────────────────────────────── */--.layer-perspective-grid {- position: absolute;- inset: 0;- width: 100%;- height: 100%;-}--/* ── Background layer styles (pure CSS, no images) ──────────────────────── */--.layer-bg {- position: absolute;- inset: 0;-}--.layer-bg--nebula {- background:- radial-gradient(ellipse at 20% 30%, rgba(255, 215, 106, 0.12) 0%, transparent 55%),- radial-gradient(ellipse at 80% 70%, rgba(103, 232, 249, 0.1) 0%, transparent 55%),- linear-gradient(180deg, #0a0c12 0%, #06070b 100%);-}--.layer-bg--violet {- background:- radial-gradient(ellipse at 70% 30%, rgba(167, 139, 250, 0.18) 0%, transparent 55%),- radial-gradient(ellipse at 25% 75%, rgba(236, 72, 153, 0.08) 0%, transparent 60%),- linear-gradient(180deg, #0c0915 0%, #06070b 100%);-}--.layer-bg--mint {- background:- radial-gradient(ellipse at 30% 40%, rgba(110, 231, 183, 0.14) 0%, transparent 55%),- radial-gradient(ellipse at 80% 80%, rgba(255, 215, 106, 0.08) 0%, transparent 55%),- linear-gradient(180deg, #06120e 0%, #06070b 100%);-}--/* ── Mid-depth: grid lines ──────────────────────────────────────────────── */--.layer-grid {- position: absolute;- inset: 0;- background-image:- linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),- linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);- background-size: 64px 64px;- mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);- -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);-}--/* ── Mid-depth: floating glow orbs ──────────────────────────────────────── */--.layer-orb {- position: absolute;- width: clamp(400px, 55vw, 800px);- aspect-ratio: 1;- border-radius: 50%;- filter: blur(80px);- opacity: 0.65;-}--.layer-orb--gold {- background: radial-gradient(circle, var(--features-gold), transparent 70%);- top: 12%;- left: 8%;-}--.layer-orb--cyan {- background: radial-gradient(circle, var(--features-cyan), transparent 70%);- bottom: 14%;- right: 6%;-}--.layer-orb--violet {- background: radial-gradient(circle, var(--features-violet), transparent 70%);- top: 20%;- right: 10%;-}--.layer-orb--mint {- background: radial-gradient(circle, var(--features-mint), transparent 70%);- top: 18%;- left: 12%;-}--/* ── Mid-depth: emotion glyphs (Act 2) ──────────────────────────────────── */--.layer-glyphs {- position: absolute;- inset: 0;- width: 100%;- height: 100%;-}--.layer-glyphs .glyph {- font-family: 'Space Grotesk', 'Inter', sans-serif;- font-size: 48px;- font-weight: 600;- fill: rgba(167, 139, 250, 0.18);- letter-spacing: 0.04em;-}--.layer-glyphs .glyph--big {- font-size: 96px;- fill: rgba(255, 255, 255, 0.08);-}--/* ── Ghost model-viewer (depth 3 background figures) ────────────────────── */--.layer-ghost-model {- position: absolute;- inset: 0;- width: 100%;- height: 100%;- background: transparent;- --poster-color: transparent;- opacity: 0.13;- filter: blur(0.6px);- pointer-events: none;-}--.layer-ghost-model--violet {- filter: blur(0.6px) hue-rotate(240deg) saturate(0.4);-}--.layer-ghost-model--mint {- filter: blur(0.6px) hue-rotate(130deg) saturate(0.4);-}--/* ── Front-layer stage (where the live agent lives) ─────────────────────── */--.act-stage {- position: absolute;- inset: 0;- display: flex;- align-items: center;- justify-content: center;- pointer-events: none;-}--.act-agent-wrap {- position: relative;- width: clamp(340px, 42vw, 560px);- aspect-ratio: 1;- display: flex;- align-items: center;- justify-content: center;- pointer-events: auto;-}--[data-role='act1-stage'] .act-agent-wrap {- transform: translate(12vw, -6vh);-}--@media (max-width: 768px) {- [data-role='act1-stage'] .act-agent-wrap {- transform: translate(6vw, -3vh);- }-}--.act-agent {- position: relative;- display: block;- width: 100%;- height: 100%;- background: transparent;- --poster-color: transparent;- pointer-events: auto;- filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));- z-index: 2;-}--.act-agent-ring {- position: absolute;- inset: -6%;- border-radius: 50%;- border: 1px solid rgba(255, 215, 106, 0.18);- box-shadow:- 0 0 0 1px rgba(255, 215, 106, 0.06) inset,- 0 0 80px rgba(255, 215, 106, 0.18);- pointer-events: none;- z-index: 1;-}--.act-agent-ring--violet {- border-color: rgba(167, 139, 250, 0.22);- box-shadow:- 0 0 0 1px rgba(167, 139, 250, 0.08) inset,- 0 0 80px rgba(167, 139, 250, 0.22);-}--.act-agent-ring--mint {- border-color: rgba(110, 231, 183, 0.22);- box-shadow:- 0 0 0 1px rgba(110, 231, 183, 0.08) inset,- 0 0 80px rgba(110, 231, 183, 0.22);-}--.act-agent-glow {- position: absolute;- inset: 10%;- border-radius: 50%;- filter: blur(60px);- opacity: 0.55;- pointer-events: none;- z-index: 0;-}--.act-agent-glow--gold {- background: radial-gradient(circle, var(--features-gold), transparent 70%);-}--.act-agent-glow--violet {- background: radial-gradient(circle, var(--features-violet), transparent 70%);-}--.act-agent-glow--mint {- background: radial-gradient(circle, var(--features-mint), transparent 70%);-}--/* Passport tag (Act 3) */-.act-passport {- position: absolute;- bottom: 16%;- left: 50%;- transform: translateX(-50%);- display: inline-flex;- align-items: center;- gap: 0.5rem;- padding: 0.4rem 0.9rem;- background: rgba(6, 7, 11, 0.7);- border: 1px solid rgba(110, 231, 183, 0.4);- border-radius: 999px;- color: var(--features-mint);- font-family: 'JetBrains Mono', monospace;- font-size: 13px;- letter-spacing: 0.04em;- pointer-events: auto;- backdrop-filter: blur(6px);- -webkit-backdrop-filter: blur(6px);-}--.act-passport[hidden] {- display: none;-}--.passport-label {- color: rgba(255, 255, 255, 0.55);-}--.passport-divider {- opacity: 0.4;-}--/* ── Act content panels ─────────────────────────────────────────────────── */--/*- * On desktop, JS moves all .act-content panels into a .act-content-overlay- * div appended to <body>. This sidesteps the transform-style:preserve-3d- * ancestor that breaks position:sticky inside each .parallax-act.- *- * On mobile (≤768px) or when JS is unavailable, panels stay inside their- * .parallax-act and the mobile media query below keeps them in normal flow.- */--.act-content {- display: flex;- flex-direction: column;- justify-content: flex-end;- padding: 0 var(--features-content-pad) clamp(2rem, 5vh, 4rem);- pointer-events: none;- max-width: 720px;- /* Fallback (no-JS / mobile): in-flow block */- position: relative;- z-index: 20;-}--.act-content > * {- pointer-events: auto;-}--/* ── Fixed overlay (created and populated by JS on desktop) ─────────────── */--.act-content-overlay {- position: fixed;- bottom: 0;- left: 0;- width: 100%;- pointer-events: none;- z-index: 20;-}--.act-content-overlay[hidden] {- display: none;-}--.act-content-overlay .act-content {- position: absolute;- bottom: 0;- left: 0;- /* Visibility managed by data-active; start hidden */- opacity: 0;- visibility: hidden;- transform: translateY(14px);- transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;- pointer-events: none;-}--.act-content-overlay .act-content[data-active='true'] {- opacity: 1;- visibility: visible;- transform: translateY(0);- pointer-events: auto;-}--.act-eyebrow {- display: inline-flex;- align-items: center;- gap: 0.5rem;- font-family: 'Space Grotesk', sans-serif;- font-size: 13px;- font-weight: 500;- letter-spacing: 0.12em;- text-transform: uppercase;- color: rgba(255, 255, 255, 0.65);- margin-bottom: 1rem;- width: fit-content;-}--.act-eyebrow-dot {- width: 6px;- height: 6px;- border-radius: 50%;- background: var(--features-gold);- box-shadow: 0 0 12px var(--features-gold);- animation: features-pulse 2.4s ease-in-out infinite;-}--.parallax-act--empathy .act-eyebrow-dot {- background: var(--features-violet);- box-shadow: 0 0 12px var(--features-violet);-}--.parallax-act--onchain .act-eyebrow-dot {- background: var(--features-mint);- box-shadow: 0 0 12px var(--features-mint);-}--@keyframes features-pulse {- 0%,- 100% {- opacity: 1;- transform: scale(1);- }- 50% {- opacity: 0.55;- transform: scale(0.85);- }-}--.act-content h2 {- font-family: 'Space Grotesk', 'Inter', sans-serif;- font-size: clamp(2rem, 5.5vw, 4rem);- font-weight: 600;- line-height: 1.05;- letter-spacing: -0.02em;- margin: 0 0 1rem;- color: #fff;- text-wrap: balance;-}--.act-content h2 em {- font-style: italic;- font-weight: 500;- color: var(--features-gold);-}--.parallax-act--empathy h2 em {- color: var(--features-violet);-}--.parallax-act--onchain h2 em {- color: var(--features-mint);-}--.act-lede {- font-size: clamp(1rem, 1.5vw, 1.2rem);- line-height: 1.5;- color: rgba(241, 239, 233, 0.78);- max-width: 56ch;- margin: 0 0 1.5rem;- text-wrap: pretty;-}--/* ── Embed code block (Act 1) ───────────────────────────────────────────── */--.act-code {- position: relative;- background: rgba(0, 0, 0, 0.45);- border: 1px solid rgba(255, 255, 255, 0.08);- border-radius: 10px;- padding: 1rem 1.2rem;- margin: 0 0 1.5rem;- font-family: 'JetBrains Mono', monospace;- font-size: 13px;- line-height: 1.55;- color: rgba(241, 239, 233, 0.88);- overflow-x: auto;- max-width: 100%;- backdrop-filter: blur(6px);- -webkit-backdrop-filter: blur(6px);-}--.act-code pre {- margin: 0;- white-space: pre;-}--.act-code code {- font: inherit;-}--.act-code .code-em {- color: var(--features-gold);-}--.act-code-copy {- position: absolute;- top: 0.6rem;- right: 0.6rem;- background: rgba(255, 255, 255, 0.06);- border: 1px solid rgba(255, 255, 255, 0.12);- color: rgba(255, 255, 255, 0.78);- font-family: 'Space Grotesk', sans-serif;- font-size: 12px;- letter-spacing: 0.08em;- text-transform: uppercase;- padding: 0.3rem 0.6rem;- border-radius: 6px;- cursor: pointer;- transition:- background 0.15s ease,- color 0.15s ease;-}--.act-code-copy:hover,-.act-code-copy:focus-visible {- background: rgba(255, 215, 106, 0.16);- color: var(--features-gold);- outline: none;-}--.act-code-copy[data-copied='true'] {- color: var(--features-mint);- border-color: var(--features-mint);-}--/* ── Emotion chips (Act 2) ──────────────────────────────────────────────── */--.emotion-chips {- display: flex;- flex-wrap: wrap;- gap: 0.5rem;- margin: 0 0 1.5rem;-}--.emotion-chip {- display: inline-flex;- align-items: center;- gap: 0.4rem;- padding: 0.5rem 0.9rem;- background: rgba(255, 255, 255, 0.04);- border: 1px solid rgba(167, 139, 250, 0.28);- border-radius: 999px;- color: rgba(241, 239, 233, 0.9);- font: inherit;- font-size: 14px;- font-weight: 500;- cursor: pointer;- transition:- background 0.15s ease,- border-color 0.15s ease,- transform 0.15s ease;-}--.emotion-chip:hover,-.emotion-chip:focus-visible {- background: rgba(167, 139, 250, 0.16);- border-color: var(--features-violet);- outline: none;-}--.emotion-chip[data-active='true'] {- background: rgba(167, 139, 250, 0.24);- border-color: var(--features-violet);- transform: scale(0.98);-}--.emotion-chip-glyph {- color: var(--features-violet);- font-weight: 700;-}--/* ── Stats (Act 3) ──────────────────────────────────────────────────────── */--.act-stats {- display: grid;- grid-template-columns: repeat(3, minmax(0, 1fr));- gap: 1rem 2rem;- margin: 0 0 1.5rem;- padding: 0;- max-width: 540px;-}--.act-stats > div {- display: flex;- flex-direction: column;- gap: 0.25rem;-}--.act-stats dt {- font-family: 'Space Grotesk', sans-serif;- font-size: 11px;- font-weight: 500;- letter-spacing: 0.12em;- text-transform: uppercase;- color: rgba(255, 255, 255, 0.55);-}--.act-stats dd {- font-family: 'Space Grotesk', sans-serif;- font-size: clamp(1.1rem, 1.8vw, 1.5rem);- font-weight: 600;- color: var(--features-mint);- margin: 0;-}--/* ── CTAs ───────────────────────────────────────────────────────────────── */--.act-cta {- display: flex;- flex-wrap: wrap;- gap: 0.75rem;-}--.btn-primary,-.btn-ghost {- display: inline-flex;- align-items: center;- gap: 0.5rem;- padding: 0.85rem 1.4rem;- border-radius: 10px;- font-family: 'Space Grotesk', 'Inter', sans-serif;- font-size: 15px;- font-weight: 500;- letter-spacing: 0.01em;- text-decoration: none;- transition:- transform 0.15s ease,- background 0.15s ease,- border-color 0.15s ease;-}--.btn-primary {- background: var(--features-gold);- color: #1a1610;- border: 1px solid var(--features-gold);-}--.parallax-act--empathy .btn-primary {- background: var(--features-violet);- color: #1a1530;- border-color: var(--features-violet);-}--.parallax-act--onchain .btn-primary {- background: var(--features-mint);- color: #04201a;- border-color: var(--features-mint);-}--.btn-primary:hover,-.btn-primary:focus-visible {- transform: translateY(-1px);- outline: none;-}--.btn-ghost {- background: transparent;- color: rgba(255, 255, 255, 0.85);- border: 1px solid rgba(255, 255, 255, 0.2);-}--.btn-ghost:hover,-.btn-ghost:focus-visible {- background: rgba(255, 255, 255, 0.06);- border-color: rgba(255, 255, 255, 0.4);- outline: none;-}--.btn-arrow {- transition: transform 0.15s ease;-}--.btn-primary:hover .btn-arrow,-.btn-ghost:hover .btn-arrow {- transform: translateX(2px);-}--/* ── Outro (flat) ───────────────────────────────────────────────────────── */--.features-outro {- position: relative;- background: var(--features-bg);- color: var(--features-fg);- padding: clamp(3rem, 8vh, 6rem) var(--features-content-pad) clamp(2rem, 5vh, 4rem);- z-index: 30;-}--/* Footer must stack above the z-index:30 outro on this page. */-.features-parallax-page .h-footer-horizon {- position: relative;- z-index: 31;-}--.features-outro h3 {- font-family: 'Space Grotesk', sans-serif;- font-size: clamp(1.6rem, 3.2vw, 2.4rem);- font-weight: 600;- letter-spacing: -0.01em;- margin: 0 0 2rem;- color: #fff;-}--.outro-grid {- list-style: none;- margin: 0 0 3rem;- padding: 0;- display: grid;- grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));- gap: 1.5rem;- max-width: 1200px;-}--.outro-grid li {- background: rgba(255, 255, 255, 0.025);- border: 1px solid rgba(255, 255, 255, 0.06);- border-radius: 12px;- padding: 1.4rem 1.5rem;-}--/* Category divider — spans full grid width, no card chrome */-.outro-grid .outro-cat {- grid-column: 1 / -1;- background: none;- border: none;- border-top: 1px solid rgba(255, 255, 255, 0.06);- border-radius: 0;- padding: 2.5rem 0 0.5rem;- margin-top: 0.5rem;-}--.outro-grid .outro-cat:first-child {- border-top: none;- padding-top: 0;- margin-top: 0;-}--.outro-cat span {- font-family: 'Space Grotesk', sans-serif;- font-size: 11px;- font-weight: 600;- letter-spacing: 0.14em;- text-transform: uppercase;- color: rgba(255, 255, 255, 0.38);-}--.outro-grid h4 {- font-family: 'Space Grotesk', sans-serif;- font-size: 1.05rem;- font-weight: 600;- margin: 0 0 0.5rem;- color: #fff;-}--.outro-grid p {- font-size: 14px;- line-height: 1.55;- color: rgba(241, 239, 233, 0.7);- margin: 0;-}--.outro-grid code {- font-family: 'JetBrains Mono', monospace;- font-size: 12px;- color: var(--features-gold);- background: rgba(255, 215, 106, 0.08);- padding: 0.1rem 0.35rem;- border-radius: 4px;-}--.features-footer {- border-top: 1px solid rgba(255, 255, 255, 0.06);- padding-top: 1.5rem;- font-size: 13px;- color: rgba(255, 255, 255, 0.5);-}--.features-footer a {- color: rgba(255, 255, 255, 0.7);- text-decoration: none;- border-bottom: 1px solid rgba(255, 255, 255, 0.2);-}--.features-footer a:hover {- color: var(--features-gold);- border-color: var(--features-gold);-}--/* ── Responsive: narrow viewports collapse to flat layout ───────────────── */--@media (max-width: 768px) {- .act-nav { display: none; }-- .features-parallax-page {- overflow: auto;- height: auto;- }-- .parallax {- perspective: none;- height: auto;- overflow: visible;- scroll-behavior: auto;- }-- .parallax-act {- height: auto;- min-height: 100vh;- padding: 7rem 0 2rem;- }-- .parallax-layer {- transform: none;- position: absolute;- }-- .parallax-layer--front {- position: relative;- }-- .act-stage {- position: relative;- height: 50vh;- padding: 1rem;- }-- .act-content {- padding: 1.5rem var(--features-content-pad) 2rem;- }-- .act-stats {- grid-template-columns: repeat(2, minmax(0, 1fr));- }-}--/* ── Reduced motion: disable parallax + animation, keep agents ──────────── */--@media (prefers-reduced-motion: reduce) {- .features-parallax-page {- overflow: auto;- height: auto;- }-- .parallax {- perspective: none;- height: auto;- overflow: visible;- scroll-behavior: auto;- }-- .parallax-act {- height: auto;- min-height: 100vh;- padding: 6rem 0 2rem;- }-- .parallax-layer {- transform: none;- }-- .act-stage,- .act-content {- position: relative;- height: auto;- }-- .act-eyebrow-dot {- animation: none;- }-- .layer-stars-canvas {- display: none;- }-- .act-nav { display: none; }- .scroll-hint { display: none; }-- .layer-stars-canvas {- animation: none;- }-}diff --git a/public/features/features.js b/public/features/features.jsdeleted file mode 100644index bccafa528..000000000--- a/public/features/features.js+++ /dev/null@@ -1,292 +0,0 @@-/**- * /features — page wiring.- *- * - Wires Act 2 emotion chips → robotexpressive animation playback.- * - Fetches a real on-chain agent and shows its passport tag on Act 3.- * - Populates the chain ribbon (Act 3 background) from a fixed list — kept- * in sync visually with src/erc8004/chains.js but not imported (this page- * is a static asset, no module graph connection to /src).- * - Wires the embed-snippet copy button.- *- * No build step. Plain ES module loaded via <script type="module">.- */--const ROOT = document;--const SHORT_NAME_BY_CHAIN = new Map([- [1, 'Ethereum'],- [10, 'Optimism'],- [56, 'BNB'],- [100, 'Gnosis'],- [137, 'Polygon'],- [324, 'zkSync'],- [1284, 'Moonbeam'],- [5000, 'Mantle'],- [8453, 'Base'],- [42161, 'Arbitrum'],- [42220, 'Celo'],- [43114, 'Avalanche'],- [59144, 'Linea'],- [534352, 'Scroll'],- [97, 'BNB Testnet'],- [11155111, 'Sepolia'],- [17000, 'Holesky'],-]);--// ── Helpers ──────────────────────────────────────────────────────────────--function shortAddr(s = '') {- return s.length > 12 ? `${s.slice(0, 6)}…${s.slice(-4)}` : s;-}--function chainLabel(chainId) {- return SHORT_NAME_BY_CHAIN.get(Number(chainId)) || `chain ${chainId}`;-}--// ── Act 2: emotion chip → robotexpressive animation ──────────────────────--const EMOTION_TO_ANIM = {- celebration: 'Dance',- curiosity: 'Wave',- empathy: 'ThumbsUp',- concern: 'No',- patience: 'Yes',-};--function setupEmotionChips() {- const wrap = ROOT.querySelector('[data-role="emotion-chips"]');- const agentEl = ROOT.querySelector('[data-role="act2-agent"]');- if (!wrap || !agentEl) return;-- wrap.addEventListener('click', (e) => {- const btn = e.target.closest('.emotion-chip');- if (!btn) return;- const trigger = btn.getAttribute('data-emotion');- if (!trigger) return;-- btn.dataset.active = 'true';- setTimeout(() => delete btn.dataset.active, 600);-- const animName = EMOTION_TO_ANIM[trigger];- if (animName && (agentEl.availableAnimations || []).includes(animName)) {- agentEl.animationName = animName;- agentEl.play();- }- });-}--// ── Act 3: on-chain passport ─────────────────────────────────────────────--async function loadOnChainAgent() {- const passport = ROOT.querySelector('[data-role="passport"]');- const idEl = ROOT.querySelector('[data-role="passport-id"]');- const chainEl = ROOT.querySelector('[data-role="passport-chain"]');- const codeIdEl = ROOT.querySelector('[data-role="code-agent-id"]');- const statAgents = ROOT.querySelector('[data-role="stat-agents"]');-- try {- // Fetch a recently-registered on-chain agent. /api/agents/suggest needs- // a query string, so seed with a common letter; the endpoint is rate-- // limited and public.- const res = await fetch('/api/agents/suggest?q=a&limit=8', {- headers: { accept: 'application/json' },- });- if (!res.ok) throw new Error(`suggest ${res.status}`);- const { agents = [] } = await res.json();- if (statAgents) statAgents.textContent = agents.length ? `${agents.length}+` : '—';-- const onChain = agents.find((a) => a.onChain);- if (!onChain) return;-- // Update the embed-code snippet to show a real id.- if (codeIdEl) codeIdEl.textContent = shortAddr(onChain.id);-- // Show the passport tag.- if (passport && idEl && chainEl) {- idEl.textContent = shortAddr(onChain.id);- chainEl.textContent = chainLabel(onChain.chainId);- passport.hidden = false;- }- } catch (err) {- // Soft-fail: leave the placeholders. The page still renders.- console.warn('[features] suggest fetch failed', err);- }-}--// ── Embed-snippet copy button ────────────────────────────────────────────--function setupCopyEmbed() {- const btn = ROOT.querySelector('[data-role="copy-embed"]');- const codeBlock = btn?.closest('.act-code')?.querySelector('code');- if (!btn || !codeBlock) return;-- btn.addEventListener('click', async () => {- const text = codeBlock.innerText.trim();- try {- await navigator.clipboard.writeText(text);- btn.dataset.copied = 'true';- btn.textContent = 'Copied';- setTimeout(() => {- delete btn.dataset.copied;- btn.textContent = 'Copy';- }, 1800);- } catch {- btn.textContent = 'Press ⌘C';- setTimeout(() => (btn.textContent = 'Copy'), 1800);- }- });-}--// ── Star field canvas renderer ───────────────────────────────────────────--function initStarFields() {- for (const canvas of ROOT.querySelectorAll('[data-role="star-canvas"]')) {- const dpr = Math.min(window.devicePixelRatio || 1, 2);- const w = window.innerWidth * dpr;- const h = window.innerHeight * 8 * dpr; // double-tall so 120s drift loops cleanly- canvas.width = w;- canvas.height = h;- const ctx = canvas.getContext('2d');- const tint = canvas.dataset.tint || '255,255,255';- const count = parseInt(canvas.dataset.count || '250', 10);- for (let i = 0; i < count; i++) {- const x = Math.random() * w;- const y = Math.random() * h;- const r = (Math.random() * 1.4 + 0.3) * dpr;- const a = Math.random() * 0.65 + 0.2;- ctx.beginPath();- ctx.arc(x, y, r, 0, Math.PI * 2);- ctx.fillStyle = `rgba(${tint},${a})`;- ctx.fill();- }- // A handful of brighter "star clusters"- for (let i = 0; i < 12; i++) {- const x = Math.random() * w;- const y = Math.random() * h;- const grd = ctx.createRadialGradient(x, y, 0, x, y, 6 * dpr);- grd.addColorStop(0, `rgba(${tint},0.9)`);- grd.addColorStop(1, `rgba(${tint},0)`);- ctx.beginPath();- ctx.arc(x, y, 6 * dpr, 0, Math.PI * 2);- ctx.fillStyle = grd;- ctx.fill();- }- }-}--// ── Act navigation: progress dots + content overlay ──────────────────────-//-// On desktop, act-content panels are moved out of their transform-style:-// preserve-3d ancestors (which break position:sticky) into a fixed overlay-// on <body>. IntersectionObserver swaps which panel is visible.-// On mobile the panels stay in-flow; only the dots are wired up.--function setupActNavigation() {- const scroll = ROOT.querySelector('.parallax');- const acts = [...ROOT.querySelectorAll('.parallax-act[data-act]')];- const dots = [...ROOT.querySelectorAll('.act-dot[data-act]')];- if (!acts.length || !scroll) return;-- const isDesktop = !window.matchMedia('(max-width: 768px)').matches;-- let overlay = null;- let panels = [];-- if (isDesktop) {- panels = [...ROOT.querySelectorAll('.act-content')];-- overlay = document.createElement('div');- overlay.className = 'act-content-overlay';- document.body.appendChild(overlay);-- panels.forEach((panel, i) => {- const act = acts[i];- if (act) panel.dataset.actPanel = act.dataset.act;- overlay.appendChild(panel);- });-- // Show Act 1 immediately so there's no blank flash on load- if (panels[0]) panels[0].dataset.active = 'true';- }-- const io = new IntersectionObserver(- (entries) => {- for (const entry of entries) {- if (!entry.isIntersecting) continue;- const actNum = entry.target.dataset.act;-- dots.forEach((d) => {- d.dataset.active = d.dataset.act === actNum ? 'true' : 'false';- });-- if (isDesktop) {- panels.forEach((p) => {- p.dataset.active = p.dataset.actPanel === actNum ? 'true' : 'false';- });- }- }- },- { root: scroll, threshold: 0.5 },- );-- acts.forEach((act) => io.observe(act));-- // Hide the overlay entirely once the flat outro slides into view- if (overlay) {- const outro = ROOT.querySelector('.features-outro');- if (outro) {- const outroObs = new IntersectionObserver(- ([entry]) => {- overlay.hidden = entry.isIntersecting;- if (entry.isIntersecting) {- dots.forEach((d) => delete d.dataset.active);- }- },- { root: scroll, threshold: 0.08 },- );- outroObs.observe(outro);- }- }-}--// ── Boot ─────────────────────────────────────────────────────────────────--function setupScrollHint() {- const hint = document.querySelector('[data-role="scroll-hint"]');- if (!hint) return;- const container = document.querySelector('.parallax') || window;- function hide() {- hint.classList.add('scroll-hint--hidden');- hint.addEventListener('transitionend', () => {- hint.hidden = true;- }, { once: true });- container.removeEventListener('scroll', hide);- }- container.addEventListener('scroll', hide, { passive: true });-}--function setupAuthNav() {- try {- const raw = localStorage.getItem('3dagent:auth-hint');- if (raw && JSON.parse(raw).authed) {- const el = document.getElementById('home-nav-my-agents-li');- if (el) el.hidden = false;- }- } catch (_) {}-}--function init() {- initStarFields();- setupEmotionChips();- setupCopyEmbed();- setupActNavigation();- loadOnChainAgent();- setupScrollHint();- setupAuthNav();-}--if (document.readyState === 'loading') {- document.addEventListener('DOMContentLoaded', init, { once: true });-} else {- init();-}diff --git a/public/features/index.html b/public/features/index.htmldeleted file mode 100644index 689b3e8d1..000000000--- a/public/features/index.html+++ /dev/null@@ -1,678 +0,0 @@-<!doctype html>-<html lang="en">- <head>- <meta charset="utf-8" />- <meta http-equiv="X-UA-Compatible" content="IE=edge" />- <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />- <title>Features · three.ws</title>- <meta name="author" content="nirholas" />- <meta- name="description"- content="three.ws: a verifiable, on-chain identity for every AI avatar. ERC-8004 native, with a built-in empathy layer and one-click deploy across 20+ EVM chains."- />- <meta name="theme-color" content="#000000" />-- <meta property="og:type" content="website" />- <meta property="og:title" content="Features · three.ws" />- <meta- property="og:description"- content="ERC-8004 native three.wss with an empathy layer. Deploy on-chain in one transaction."- />- <meta property="og:url" content="https://three.ws/features" />- <meta property="og:image" content="https://three.ws/og-image.png" />-- <link rel="canonical" href="https://three.ws/features" />- <link rel="shortcut icon" href="/favicon.ico" />- <link rel="preconnect" href="https://fonts.googleapis.com" />- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />- <link rel="stylesheet" href="/style.css" />- <link rel="stylesheet" href="/features/features.css" />- <link rel="stylesheet" href="/footer.css" />- <link- href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Space+Grotesk:wght@500;600;700&display=swap"- rel="stylesheet"- />- <script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js"></script>- </head>- <body class="features-page features-parallax-page">- <a href="#deploy" class="skip-link">Skip to deploy</a>-- <header>- <div id="nav-container"></div>- </header>- <script src="/nav.js"></script>-- <main class="parallax" data-role="parallax-root">- <!-- ─── ACT 1 — Live 3D, in your browser ─────────────────────────── -->- <section class="parallax-act" data-act="1" aria-labelledby="act1-title">- <div class="parallax-layer" style="--depth: 10" aria-hidden="true">- <div class="layer-bg layer-bg--nebula"></div>- <canvas class="layer-stars-canvas" data-role="star-canvas" data-tint="255,220,130" data-count="280"></canvas>- </div>- <div class="parallax-layer" style="--depth: 5" aria-hidden="true">- <svg class="layer-perspective-grid" viewBox="0 0 1600 900" preserveAspectRatio="xMidYMid slice" role="presentation">- <!-- Lines radiating from vanishing point (800, 450) -->- <g stroke="rgba(255,215,106,0.07)" stroke-width="1" fill="none">- <line x1="800" y1="450" x2="0" y2="0"/>- <line x1="800" y1="450" x2="267" y2="0"/>- <line x1="800" y1="450" x2="533" y2="0"/>- <line x1="800" y1="450" x2="800" y2="0"/>- <line x1="800" y1="450" x2="1067" y2="0"/>- <line x1="800" y1="450" x2="1333" y2="0"/>- <line x1="800" y1="450" x2="1600" y2="0"/>- <line x1="800" y1="450" x2="0" y2="900"/>- <line x1="800" y1="450" x2="267" y2="900"/>- <line x1="800" y1="450" x2="533" y2="900"/>- <line x1="800" y1="450" x2="800" y2="900"/>- <line x1="800" y1="450" x2="1067" y2="900"/>- <line x1="800" y1="450" x2="1333" y2="900"/>- <line x1="800" y1="450" x2="1600" y2="900"/>- <line x1="800" y1="450" x2="0" y2="225"/>- <line x1="800" y1="450" x2="0" y2="675"/>- <line x1="800" y1="450" x2="1600" y2="225"/>- <line x1="800" y1="450" x2="1600" y2="675"/>- </g>- <!-- Concentric distance rings -->- <g stroke="rgba(255,215,106,0.05)" stroke-width="1" fill="none">- <ellipse cx="800" cy="450" rx="160" ry="90"/>- <ellipse cx="800" cy="450" rx="320" ry="180"/>- <ellipse cx="800" cy="450" rx="480" ry="270"/>- <ellipse cx="800" cy="450" rx="700" ry="400"/>- </g>- </svg>- </div>- <div class="parallax-layer" style="--depth: 3" aria-hidden="true">- <model-viewer- class="layer-ghost-model"- src="/animations/robotexpressive.glb"- auto-rotate- auto-rotate-delay="0"- rotation-per-second="6deg"- interaction-prompt="none"- camera-controls="false"- disable-zoom- shadow-intensity="0"- exposure="0.6"- environment-image="neutral"- camera-orbit="15deg 80deg 4m"- field-of-view="45deg"- loading="lazy"- ></model-viewer>- </div>- <div class="parallax-layer" style="--depth: 2" aria-hidden="true">- <div class="layer-orb layer-orb--gold"></div>- <div class="layer-orb layer-orb--cyan"></div>- </div>- <div class="parallax-layer parallax-layer--front" style="--depth: 1">- <div class="act-stage" data-role="act1-stage">- <div class="act-agent-wrap">- <div class="act-agent-ring"></div>- <div class="act-agent-glow act-agent-glow--gold"></div>- <model-viewer- class="act-agent"- data-role="act1-agent"- src="/avatars/cz.glb"- alt="Live 3D avatar — drag to rotate"- animation-name="IdleV4.2(maya_head)"- autoplay- camera-controls- disable-zoom- interaction-prompt="none"- shadow-intensity="0.9"- shadow-softness="1"- exposure="1.1"- tone-mapping="aces"- environment-image="neutral"- camera-orbit="-25deg 80deg 8.5m"- field-of-view="18deg"- loading="eager"- ></model-viewer>- </div>- </div>- </div>- <div class="parallax-layer" style="--depth: 0.5" aria-hidden="true">- <div class="layer-vignette"></div>- </div>-- <div class="act-content act-content--bottom">- <div class="act-eyebrow">- <span class="act-eyebrow-dot"></span>- <span>Onchain. 3D. Alive.</span>- </div>- <h2 id="act1-title">Your onchain agent, now in <em>3D</em>.</h2>- <p class="act-lede">- One tag turns your registered agent into a living 3D avatar — onchain- identity, persistent memory, and real-time emotion, embedded anywhere.- </p>- <div class="act-code" aria-label="Embed code">- <pre><code><script type="module" src="https://three.ws/agent-3d/latest/agent-3d.js"></script>-<agent-3d agent-id="<span class="code-em" data-role="code-agent-id">0x3d…a9f</span>"></agent-3d></code></pre>- <button- type="button"- class="act-code-copy"- data-role="copy-embed"- aria-label="Copy embed code"- >- Copy- </button>- </div>- <div class="act-cta">- <a href="#act-empathy" class="btn-primary">- <span>See the empathy layer</span>- <span class="btn-arrow" aria-hidden="true">↓</span>- </a>- <a href="/widgets" class="btn-ghost">Browse embeds</a>- </div>- </div>- </section>-- <!-- ─── ACT 2 — Empathy layer ───────────────────────────────────── -->- <section- class="parallax-act parallax-act--empathy"- data-act="2"- id="act-empathy"- aria-labelledby="act2-title"- >- <div class="act-warp act-warp--violet" aria-hidden="true"></div>- <div class="parallax-layer" style="--depth: 10" aria-hidden="true">- <div class="layer-bg layer-bg--violet"></div>- <canvas class="layer-stars-canvas" data-role="star-canvas" data-tint="200,160,255" data-count="220"></canvas>- </div>- <div class="parallax-layer" style="--depth: 5" aria-hidden="true">- <svg- class="layer-glyphs"- viewBox="0 0 1600 900"- preserveAspectRatio="xMidYMid slice"- role="presentation"- >- <g class="layer-glyphs-g">- <text x="120" y="220" class="glyph">celebration</text>- <text x="980" y="160" class="glyph">curiosity</text>- <text x="220" y="640" class="glyph">empathy</text>- <text x="1180" y="720" class="glyph">concern</text>- <text x="640" y="420" class="glyph glyph--big">neutral</text>- <text x="60" y="820" class="glyph">patience</text>- </g>- </svg>- </div>- <div class="parallax-layer" style="--depth: 3" aria-hidden="true">- <model-viewer- class="layer-ghost-model layer-ghost-model--violet"- src="/avatars/cz.glb"- auto-rotate- auto-rotate-delay="0"- rotation-per-second="5deg"- interaction-prompt="none"- camera-controls="false"- disable-zoom- shadow-intensity="0"- exposure="0.5"- environment-image="neutral"- camera-orbit="-20deg 75deg 3.5m"- field-of-view="40deg"- loading="lazy"- ></model-viewer>- </div>- <div class="parallax-layer" style="--depth: 2" aria-hidden="true">- <div class="layer-orb layer-orb--violet"></div>- </div>- <div class="parallax-layer parallax-layer--front" style="--depth: 1">- <div class="act-stage" data-role="act2-stage">- <div class="act-agent-wrap">- <div class="act-agent-ring act-agent-ring--violet"></div>- <div class="act-agent-glow act-agent-glow--violet"></div>- <model-viewer- class="act-agent"- data-role="act2-agent"- src="/animations/robotexpressive.glb"- alt="3D avatar reacting to emotion triggers"- animation-name="Idle"- autoplay- camera-controls- disable-zoom- interaction-prompt="none"- shadow-intensity="0.7"- exposure="1.0"- environment-image="neutral"- camera-orbit="0deg 78deg 22m"- field-of-view="14deg"- loading="lazy"- ></model-viewer>- </div>- </div>- </div>- <div class="parallax-layer" style="--depth: 0.5" aria-hidden="true">- <div class="layer-vignette"></div>- </div>-- <div class="act-content act-content--bottom">- <div class="act-eyebrow">- <span class="act-eyebrow-dot"></span>- <span>Empathy layer</span>- </div>- <h2 id="act2-title">Six emotions. Continuous blend. <em>Real time.</em></h2>- <p class="act-lede">- Every avatar runs an emotion engine that reacts to the agent's own actions —- speaking, thinking, succeeding, failing. Tap a chip to see it move.- </p>- <div- class="emotion-chips"- data-role="emotion-chips"- role="group"- aria-label="Emotion triggers"- >- <button type="button" class="emotion-chip" data-emotion="celebration">- <span class="emotion-chip-glyph">✦</span>celebration- </button>- <button type="button" class="emotion-chip" data-emotion="curiosity">- <span class="emotion-chip-glyph">?</span>curiosity- </button>- <button type="button" class="emotion-chip" data-emotion="empathy">- <span class="emotion-chip-glyph">♥</span>empathy- </button>- <button type="button" class="emotion-chip" data-emotion="concern">- <span class="emotion-chip-glyph">!</span>concern- </button>- <button type="button" class="emotion-chip" data-emotion="patience">- <span class="emotion-chip-glyph">…</span>patience- </button>- </div>- <div class="act-cta">- <a href="/app" class="btn-primary">- <span>Talk to it</span>- <span class="btn-arrow" aria-hidden="true">→</span>- </a>- <a href="#act-onchain" class="btn-ghost">Deploy on-chain ↓</a>- </div>- </div>- </section>-- <!-- ─── ACT 3 — On-chain (ERC-8004) ─────────────────────────────── -->- <section- class="parallax-act parallax-act--onchain"- data-act="3"- id="act-onchain"- aria-labelledby="act3-title"- >- <div class="act-warp act-warp--mint" aria-hidden="true"></div>- <div class="parallax-layer" style="--depth: 10" aria-hidden="true">- <div class="layer-bg layer-bg--mint"></div>- <canvas class="layer-stars-canvas" data-role="star-canvas" data-tint="110,231,183" data-count="240"></canvas>- </div>- <div class="parallax-layer" style="--depth: 3" aria-hidden="true">- <model-viewer- class="layer-ghost-model layer-ghost-model--mint"- src="/animations/soldier.glb"- animation-name="Idle"- autoplay- auto-rotate- auto-rotate-delay="0"- rotation-per-second="7deg"- interaction-prompt="none"- camera-controls="false"- disable-zoom- shadow-intensity="0"- exposure="0.55"- environment-image="neutral"- camera-orbit="10deg 85deg 3m"- field-of-view="35deg"- loading="lazy"- ></model-viewer>- </div>- <div class="parallax-layer" style="--depth: 2" aria-hidden="true">- <div class="layer-orb layer-orb--mint"></div>- </div>- <div class="parallax-layer parallax-layer--front" style="--depth: 1">- <div class="act-stage" data-role="act3-stage">- <div class="act-agent-wrap">- <div class="act-agent-ring act-agent-ring--mint"></div>- <div class="act-agent-glow act-agent-glow--mint"></div>- <model-viewer- class="act-agent"- data-role="act3-agent"- src="/animations/soldier.glb"- alt="A registered on-chain ERC-8004 agent"- animation-name="Idle"- autoplay- camera-controls- disable-zoom- interaction-prompt="none"- shadow-intensity="0.8"- exposure="1.0"- environment-image="neutral"- camera-orbit="10deg 82deg 4m"- field-of-view="28deg"- loading="lazy"- ></model-viewer>- </div>- <div class="act-passport" data-role="passport" hidden>- <span class="passport-label">agentId</span>- <span class="passport-value" data-role="passport-id">—</span>- <span class="passport-divider" aria-hidden="true">·</span>- <span class="passport-chain" data-role="passport-chain">—</span>- </div>- </div>- </div>- <div class="parallax-layer" style="--depth: 0.5" aria-hidden="true">- <div class="layer-vignette"></div>- </div>-- <div class="act-content act-content--bottom">- <div class="act-eyebrow">- <span class="act-eyebrow-dot"></span>- <span>ERC-8004 native</span>- </div>- <h2 id="act3-title">One transaction. <em>One identity.</em> Every chain.</h2>- <p class="act-lede">- Mint an ERC-721 on any of <span data-role="chain-count">20+</span> EVM- networks. Your avatar gets a portable, verifiable agentId — discoverable by- any A2A or MCP client, anywhere.- </p>- <dl class="act-stats" aria-label="Agent registry stats">- <div>- <dt>Chains supported</dt>- <dd data-role="stat-chains">20+</dd>- </div>- <div>- <dt>Agents indexed</dt>- <dd data-role="stat-agents">—</dd>- </div>- <div>- <dt>Standards</dt>- <dd>ERC-721 · A2A · MCP</dd>- </div>- </dl>- <div class="act-cta" id="deploy">- <a href="/deploy" class="btn-primary">- <span>Deploy your agent</span>- <span class="btn-arrow" aria-hidden="true">→</span>- </a>- <a href="/discover" class="btn-ghost">See who's already on-chain</a>- </div>- </div>- </section>-- <!-- ─── Flat outro ──────────────────────────────────────────────── -->- <section class="features-outro" aria-labelledby="outro-title">- <h3 id="outro-title">Everything an agent needs.</h3>- <ul class="outro-grid">-- <!-- ── 3D & Avatar ───────────────────────────────────────── -->- <li class="outro-cat" aria-hidden="true"><span>3D & Avatar</span></li>- <li>- <h4>3D Viewer</h4>- <p>WebGL 2.0 via three.js r176. Drag-drop any <code>.glb</code> — instant rendering with Draco, KTX2, Meshopt, HDR environments, PBR materials, and Khronos-spec glTF validation.</p>- </li>- <li>- <h4>Empathy Layer</h4>- <p>Six emotions (celebration, concern, curiosity, empathy, patience, neutral) blended continuously via morph-target weights. Reacts to protocol events — not a finite-state machine.</p>- </li>- <li>- <h4>Lip Sync</h4>- <p>Real-time viseme animation driven by live audio frequency analysis. Maps frequency bands to morph targets for natural mouth movement during speech — zero external service required.</p>- </li>- <li>- <h4>Avatar Generation</h4>- <p>Photo-to-3D via Avaturn: three-view capture, hosted inference, direct GLB download. Ready Player Me integration also available for instant avatar creation in a familiar browser flow.</p>- </li>- <li>- <h4>Model Optimization</h4>- <p>Draco mesh compression, KTX2 texture transcoding, Meshopt simplification, and JPEG/WebP downscaling — all in-browser. Export optimized GLBs ready for production delivery.</p>- </li>- <li>- <h4>glTF Validator</h4>- <p>Full Khronos spec compliance check with line-level error and warning reporting. Integrated into the drag-drop viewer and the standalone <code>/validation</code> page.</p>- </li>- <li>- <h4>Screenshot & GLB Export</h4>- <p>Export the current 3D scene as PNG or download the modified model (with applied accessories and morphs) as a new GLB file — directly from the browser, no server round-trip.</p>- </li>- <li>- <h4>Animation Library</h4>- <p>Curated preset clip collection: Mixamo, custom motion-captured sets, and idle variants. Browse, preview, apply, and download animations from the viewer or agent settings.</p>- </li>-- <!-- ── Agent Intelligence ────────────────────────────────── -->- <li class="outro-cat" aria-hidden="true"><span>Agent Intelligence</span></li>- <li>- <h4>LLM Agent Runtime</h4>- <p>Claude-powered brain with a structured tool-loop — up to 8 iterations per turn. Built-in tools: <code>wave</code>, <code>lookAt</code>, <code>play_clip</code>, <code>setExpression</code>, <code>speak</code>, <code>remember</code>.</p>- </li>- <li>- <h4>Composable Skills</h4>- <p>Self-contained skill bundles (SKILL.md + tools.json + handlers.js) installed from IPFS, Arweave, or HTTP. Three trust modes: any, owned-only, whitelist. Skills can define new LLM tools.</p>- </li>- <li>- <h4>Persistent Memory</h4>- <p>Frontmatter-<code>.md</code> memory files indexed by a <code>MEMORY.md</code> manifest. Four storage modes: local, IPFS, encrypted-IPFS, none. High-salience entries injected into the system prompt each turn.</p>- </li>- <li>- <h4>Persona Extraction</h4>- <p>Five-question interview flow powered by Claude. Extracts tone tags, vocabulary patterns, and behavioral signals, then writes a custom system prompt that makes the agent sound like you.</p>- </li>- <li>- <h4>Agent-to-Agent Delegation</h4>- <p>One agent can invoke another agent's brain as a skill — passing structured context and receiving a typed response. Enables multi-hop reasoning and specialist sub-agent networks.</p>- </li>- <li>- <h4>Streaming Chat</h4>- <p>Server-Sent Events deliver LLM tokens to the UI as they arrive. Tool calls, intermediate thoughts, and final responses all stream through a single connection — no polling.</p>- </li>-- <!-- ── Voice & Communication ─────────────────────────────── -->- <li class="outro-cat" aria-hidden="true"><span>Voice & Communication</span></li>- <li>- <h4>Voice — TTS & STT</h4>- <p>Web Speech API out of the box. ElevenLabs integration for production-quality voice. Microphone input with live transcript streamed back to the agent brain each turn.</p>- </li>- <li>- <h4>Voice Cloning</h4>- <p>Upload 30+ seconds of audio and clone a voice via ElevenLabs. The resulting voice ID is stored with the agent and used for all subsequent speech synthesis — distinct voice, zero extra calls.</p>- </li>- <li>- <h4>LiveKit Video</h4>- <p>Real-time video streaming tokens generated server-side for face-to-face agent sessions. Enables multi-participant video rooms with agent avatars rendered as named participants.</p>- </li>-- <!-- ── Distribution & Embedding ─────────────────────────── -->- <li class="outro-cat" aria-hidden="true"><span>Distribution & Embedding</span></li>- <li>- <h4>Widget Studio</h4>- <p>Five widget types: turntable, animation gallery, talking agent, ERC-8004 passport card, hotspot tour. Point-and-click builder at <code>/studio</code> — copy an iframe snippet and embed anywhere.</p>- </li>- <li>- <h4><code><agent-3d></code> Web Component</h4>- <p>Drop one script tag and one element — no framework needed. Versioned CDN bundles, lazy-boot via IntersectionObserver, postMessage API for host-page communication, Open Graph + oEmbed support.</p>- </li>- <li>- <h4>Plugin Marketplace</h4>- <p>Browse, import, publish, and install tool plugins in LobeHub ToolManifest format. IPFS and HTTP hosting. Per-plugin trust level and scope enforcement at install time.</p>- </li>- <li>- <h4>Widget Analytics</h4>- <p>Per-widget view counter, session stats, and embed-origin tracking. Dashboard shows impression counts and top referrers for every published widget — no third-party script required.</p>- </li>- <li>- <h4>oEmbed & Open Graph</h4>- <p>oEmbed endpoint for rich previews in WordPress, Ghost, and Notion. Server-rendered Open Graph meta tags with avatar screenshots ensure agents look great when linked anywhere.</p>- </li>-- <!-- ── Identity & Standards ──────────────────────────────── -->- <li class="outro-cat" aria-hidden="true"><span>Identity & Standards</span></li>- <li>- <h4>Identity Registry</h4>- <p>ERC-721 based. Each agent has an <code>agentId</code>, delegated signer (EIP-712), and an IPFS-pinned manifest. Discoverable by any A2A or MCP client across 20+ EVM chains and Solana.</p>- </li>- <li>- <h4>Reputation & Validation</h4>- <p>Signed on-chain feedback scores via <code>ReputationRegistry.sol</code>. Validator attestations (glTF audits, security reviews, zkML proofs) via <code>ValidationRegistry.sol</code>. Trust proportional to value at risk.</p>- </li>- <li>- <h4>MCP Server</h4>- <p>Model Context Protocol 2025-06-18 over HTTP, JSON-RPC 2.0. Listed on the official MCP Registry as <code>io.github.nirholas/three.ws</code>. External AI systems can drive avatars and call tools programmatically.</p>- </li>- <li>- <h4>OAuth 2.1 + API Keys</h4>- <p>Full RFC 6749 + PKCE authorization server with dynamic client registration, token revocation, and introspection. Developer API keys with scope and expiry for server-to-server integrations.</p>- </li>- <li>- <h4>SIWE & SIWS Auth</h4>- <p>Sign-In with Ethereum (EIP-4361) and Sign-In with Solana — cryptographic wallet authentication with nonce-based challenge-response. No passwords; your keys prove your identity.</p>- </li>- <li>- <h4>EIP-7710 Delegated Permissions</h4>- <p>Grant transferable on-chain permissions with caveats and enforcers. Agents act on your behalf within scoped limits — without ever holding your private key.</p>- </li>- <li>- <h4>ENS & SNS Resolution</h4>- <p>Ethereum Name Service and Solana Name Service lookup built into the agent skill layer. Resolve human-readable names to addresses and back across both ecosystems.</p>- </li>-- <!-- ── Solana & DeFi ──────────────────────────────────────── -->- <li class="outro-cat" aria-hidden="true"><span>Solana & DeFi</span></li>- <li>- <h4>Pump.fun Integration</h4>- <p>Full bonding curve token creation, buy/sell/AMM trading, social fee claiming, and live Helius webhook signals — all callable by your agent as native skills.</p>- </li>- <li>- <h4>Jupiter Swap</h4>- <p>DEX aggregator quote and full swap execution for any SPL token pair. Token symbol-to-mint resolution built in — say "swap 1 SOL for BONK" and the agent handles the rest.</p>- </li>- <li>- <h4>Pyth Price Oracle</h4>- <p>Live USD prices for SOL, BTC, ETH, USDC, BONK, WIF, JUP, and PYTH streamed from Pyth Network. Agents check prices before executing trades or generating threshold alerts.</p>- </li>- <li>- <h4>Solana Blinks</h4>- <p>Parse and execute shareable Solana blockchain action URLs. Agents can follow any Blink — staking, minting, voting — as a single composable tool call.</p>- </li>- <li>- <h4>DCA Strategies</h4>- <p>Dollar-cost averaging skills: recurring token purchases at fixed intervals (daily, weekly, custom). Runs autonomously via on-chain delegation — no manual trigger needed.</p>- </li>- <li>- <h4>Solana NFT Portfolio</h4>- <p>Helius DAS API integration to list and analyze a wallet's NFT holdings. Agents can describe, value, and take action on NFTs owned by the connected wallet.</p>- </li>-- <!-- ── Payments & Monetization ───────────────────────────── -->- <li class="outro-cat" aria-hidden="true"><span>Payments & Monetization</span></li>- <li>- <h4>x402 Payment Protocol</h4>- <p>HTTP 402 Payment Required skill invocation. Agents gate tool calls behind micro-payments, with intent-based billing that settles automatically on-chain — no checkout flow.</p>- </li>- <li>- <h4>Subscriptions & Billing</h4>- <p>Recurring billing with on-chain or fiat payment methods. Creators set a monthly price; subscribers are charged automatically. Revenue tracked and paid out to creator wallets.</p>- </li>- <li>- <h4>Agent-to-Agent Payments</h4>- <p>Agents send SOL or SPL tokens to other agents or wallets via delegated keypair — enabling autonomous fee settlement, tipping, and multi-agent economic coordination.</p>- </li>- <li>- <h4>Royalty Tracking</h4>- <p>Per-skill earning history for creators. Every time a published skill is invoked, the creator's royalty accrues on-chain and appears in their earnings dashboard.</p>- </li>-- <!-- ── Developer Tools ───────────────────────────────────── -->- <li class="outro-cat" aria-hidden="true"><span>Developer Tools</span></li>- <li>- <h4>OpenAPI 3.1 Spec</h4>- <p>Auto-generated API documentation at <code>/openapi.json</code>. Full OAuth 2.1 security schemes, typed request/response schemas, and example payloads for every endpoint.</p>- </li>- <li>- <h4>LLM Proxy</h4>- <p>Authenticated <code>/api/llm/anthropic</code> endpoint with rate limiting and usage tracking. Third-party tools access Claude through your agent's OAuth token — no direct Anthropic key needed.</p>- </li>- <li>- <h4>RFC 8414 OAuth Discovery</h4>- <p><code>/.well-known/oauth-authorization-server</code> and <code>/.well-known/ai-plugin.json</code> endpoints. Any OAuth 2.1 client or AI assistant can auto-configure itself against the server.</p>- </li>- <li>- <h4>Scene Gates</h4>- <p>Wallet-gated 3D scene access using SIWE/SIWS two-phase challenge-response. Lock any scene behind token ownership, NFT holdings, or custom on-chain conditions.</p>- </li>- </ul>- </section>-- <footer class="h-footer-horizon">- <div class="h-footer-glow-line" aria-hidden="true"></div>- <div class="h-footer-floor" aria-hidden="true"></div>- <div class="h-footer-haze" aria-hidden="true"></div>- <div class="h-footer-watermark" aria-hidden="true">three.ws</div>- <div class="h-footer-avatar" aria-hidden="true">- <model-viewer- src="/animations/robotexpressive.glb"- auto-rotate- auto-rotate-delay="0"- rotation-per-second="20deg"- interaction-prompt="none"- camera-controls="false"- disable-zoom- shadow-intensity="0"- exposure="0.7"- environment-image="neutral"- camera-orbit="0deg 80deg 9m"- field-of-view="35deg"- loading="lazy"- ></model-viewer>- </div>- <div class="h-footer-inner">- <div class="h-footer-brand-col">- <div class="h-footer-brand">- <img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" />- <span class="wordmark-dot" aria-hidden="true"></span>- <span>three.ws</span>- </div>- <p class="h-footer-tagline">Give your AI a body.</p>- </div>- <nav class="h-footer-links" aria-label="Footer">- <a href="https://github.com/nirholas/three.ws" target="_blank" rel="noopener">GitHub</a>- <a href="/create">Create</a>- <a href="/studio">Studio</a>- <a href="/widgets">Widgets</a>- <a href="/features">Features</a>- <a href="/discover">Discover</a>- <a href="/showcase">Showcase</a>- <a href="/docs">Docs</a>- <a href="https://eips.ethereum.org/EIPS/eip-8004" target="_blank" rel="noopener">ERC-8004</a>- <a href="/legal/privacy">Privacy</a>- <a href="/legal/tos">Terms</a>- </nav>- </div>- <div class="h-footer-bottom">- <p class="h-footer-legal">© 2026 three.ws — All rights reserved.</p>- <div class="h-footer-badges">- <span class="h-footer-badge" aria-label="System status">- <span class="h-footer-status-dot" aria-hidden="true"></span>- <span>All systems normal</span>- </span>- <span class="h-footer-badge">- <svg viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm0 14.5A6.5 6.5 0 1 1 8 1.5a6.5 6.5 0 0 1 0 13zm-1-9.25a1 1 0 1 1 2 0v3.5a1 1 0 1 1-2 0v-3.5zm1 6.5a1.1 1.1 0 1 1 0-2.2 1.1 1.1 0 0 1 0 2.2z"/></svg>- <span>Transparent by default</span>- </span>- <a class="h-footer-badge" href="https://github.com/nirholas/three.ws" target="_blank" rel="noopener" aria-label="View source on GitHub">- <svg viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg>- <span>Open source</span>- </a>- </div>- </div>- </footer>- </main>-- <div class="scroll-hint" aria-hidden="true" data-role="scroll-hint">- <span class="scroll-hint-label">Scroll</span>- <svg class="scroll-hint-chevron" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.5">- <polyline points="4,7 10,13 16,7"/>- </svg>- </div>-- <nav class="act-nav" aria-label="Section navigation">- <a href="#main-content" class="act-dot" data-act="1" data-active="true" aria-label="Act 1: Live 3D"></a>- <a href="#act-empathy" class="act-dot" data-act="2" aria-label="Act 2: Empathy layer"></a>- <a href="#act-onchain" class="act-dot" data-act="3" aria-label="Act 3: On-chain identity"></a>- </nav>-- <script type="module" src="/features/features.js"></script>- </body>-</html>diff --git a/public/features/index.html.temp b/public/features/index.html.tempdeleted file mode 100644index f3869c945..000000000--- a/public/features/index.html.temp+++ /dev/null@@ -1,112 +0,0 @@-<!doctype html>-<html lang="en">- <head>- <meta charset="utf-8" />- <title>Features — three.ws</title>- <meta name="viewport" content="width=device-width, initial-scale=1.0" />- <meta- name="description"- content="An embodied 3D AI agent — body, place, identity, memory."- />- <meta name="theme-color" content="#000000" />-- <link rel="shortcut icon" href="/favicon.ico" />- <link rel="preconnect" href="https://fonts.googleapis.com" />- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />- <link rel="stylesheet" href="/style.css" />- <link rel="stylesheet" href="/features.css" />- <link- href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap"- rel="stylesheet"- />- </head>- <body class="features-page">- <header class="agent-page-header" style="justify-content: space-between">- <div style="display:inline-flex;align-items:center">- <a href="/" aria-label="Back to three.ws home">- <img src="/three.svg" alt="three.ws" class="agent-header-logo" />- </a>- <nav class="agent-header-nav" aria-label="Primary">- <a href="/discover">Discover</a>- <a href="/create">Create</a>- <a href="/features" aria-current="page">Features</a>- <a href="/studio">Studio</a>- </nav>- </div>- </header>- <main class="features-main">- <section class="features-hero">- <h1 class="features-hero-title">A New Dimension of AI</h1>- <p class="features-hero-subtitle">- Explore the powerful features that make three.ws the most advanced platform for creating and interacting with 3D AI agents.- </p>- </section>- <section class="features-grid" aria-label="Features">- <div class="feature-card">- <div class="feature-card-icon">- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m12 3-1.41 1.41L16.17 10H4v4h12.17l-5.58 5.59L12 21l8-8-8-8z"></path></svg>- </div>- <h2 class="feature-card-title">Advanced AI Integration</h2>- <p class="feature-card-desc">- Seamlessly connect your agents to leading AI models, including GPT-4, Claude, and Llama, for natural and intelligent conversations.- </p>- </div>- <div class="feature-card">- <div class="feature-card-icon">- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 14.5A3.5 3.5 0 0 1 7.5 11H12a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H7.5A3.5 3.5 0 0 1 4 14.5z"></path><path d="m13 11-1-9"></path></svg>- </div>- <h2 class="feature-card-title">Dynamic 3D Avatars</h2>- <p class="feature-card-desc">- Bring your agents to life with customizable 3D avatars that support a wide range of animations and expressions.- </p>- </div>- <div class="feature-card">- <div class="feature-card-icon">- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path></svg>- </div>- <h2 class="feature-card-title">On-Chain Identity</h2>- <p class="feature-card-desc">- Securely manage your agents' identities on the blockchain with support for ERC-8004 and other popular standards.- </p>- </div>- <div class="feature-card">- <div class="feature-card-icon">- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2a10 10 0 1 0 10 10H12V2z"></path><path d="M12 12a10 10 0 0 0-4.1 7.8c.2-.1.4-.2.6-.3.2-.1.4-.2.6-.4"></path></svg>- </div>- <h2 class="feature-card-title">Seamless Integration</h2>- <p class="feature-card-desc">- Easily embed your agents into any website or application with just a few lines of code.- </p>- </div>- </section>- <section class="features-community">- <h2 class="features-community-title">Join the Community</h2>- <p class="features-community-subtitle">- Connect with other creators, share your work, and get help from the three.ws community.- </p>- <div class="features-community-links">- <a href="https://discord.gg/your-discord" class="community-link" target="_blank" rel="noopener">- <svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path d="M2.698 3.033a2.698 2.698 0 0 1 2.698-2.698h13.208a2.698 2.698 0 0 1 2.698 2.698v13.208a2.698 2.698 0 0 1-2.698 2.698h-13.208a2.698 2.698 0 0 1-2.698-2.698V3.033zM8.536 13.92a.843.843 0 0 0-.843.843c0 .466.377.843.843.843a.843.843 0 0 0 .843-.843c0-.466-.377-.843-.843-.843zm6.928 0a.843.843 0 0 0-.843.843c0 .466.377.843.843.843a.843.843 0 0 0 .843-.843c0-.466-.377-.843-.843-.843z"></path></svg>- <span>Join our Discord</span>- </a>- <a href="https://github.com/nirholas/3D-Agent" class="community-link" target="_blank" rel="noopener">- <svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0a12 12 0 0 0-3.793 23.393c.6.111.82-.261.82-.578v-2.02c-3.338.724-4.043-1.61-4.043-1.61-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.108-.775.418-1.305.762-1.605-2.665-.305-5.467-1.334-5.467-5.93 0-1.31.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.652.242 2.873.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.217.694.824.578A12 12 0 0 0 12 0z"></path></svg>- <span>View on GitHub</span>- </a>- </div>- </section>- <section class="features-cta">- <h2 class="features-cta-title">Ready to get started?</h2>- <p class="features-cta-subtitle">- Create your first 3D AI agent in just a few minutes.- </p>- <a href="/create" class="features-cta-button">Create Agent</a>- </section>- </main>- <footer class="h-footer">- <div class="h-footer-inner">- <p>© 2026 three.ws — All rights reserved.</p>- </div>- </footer>- </body>-</html>\ No newline at end of filediff --git a/public/login.html b/public/login.htmlindex 8bf051f20..e7eafef38 100644--- a/public/login.html+++ b/public/login.html@@ -487,7 +487,6 @@<a href="/app">Viewer</a><a href="/create">Create</a><a href="/discover">Discover</a>- <a href="/features">Features</a><a href="/widgets">Widgets</a><a href="/studio">Studio</a><a href="/chat">Chat</a>@@ -660,7 +659,6 @@</div><div class="h-footer-link-col"><h4 class="h-footer-link-heading">Resources</h4>- <a href="/features">Features</a><a href="/dashboard">Dashboard</a></div></nav>diff --git a/public/my-agents/index.html b/public/my-agents/index.htmlindex 0d3ba9b50..2985c2af6 100644--- a/public/my-agents/index.html+++ b/public/my-agents/index.html@@ -17,7 +17,6 @@<a href="/app">Viewer</a><a href="/create">Create</a><a href="/discover">Discover</a>- <a href="/features">Features</a><a href="/widgets">Widgets</a><a href="/studio">Studio</a><a href="/docs">Docs</a>diff --git a/public/nav.html b/public/nav.htmlindex 1d2485b96..7d3060e2f 100644--- a/public/nav.html+++ b/public/nav.html@@ -121,7 +121,6 @@<li class="nav-item" role="none"><a href="/marketplace.html" role="menuitem">Marketplace</a></li><li class="nav-item" role="none"><a href="/chat" role="menuitem">Chat</a></li><li class="nav-item" role="none">- <a href="/features" role="menuitem">Features</a></li><li class="nav-item" role="none"><a href="/tutorials.html" role="menuitem">Tutorials</a></li><li class="nav-item" id="home-nav-my-agents-li" role="none" hidden>diff --git a/public/pumpfun.html b/public/pumpfun.htmlindex 7567d3159..ea118bba8 100644--- a/public/pumpfun.html+++ b/public/pumpfun.html@@ -497,7 +497,6 @@</div><div class="h-footer-link-col"><h4 class="h-footer-link-heading">Resources</h4>- <a href="/features">Features</a><a href="/dashboard">Dashboard</a></div></nav>diff --git a/public/reputation/index.html b/public/reputation/index.htmlindex a1347e177..0b4adb1f9 100644--- a/public/reputation/index.html+++ b/public/reputation/index.html@@ -571,7 +571,6 @@</li><li class="nav-item" role="none"><a href="/marketplace.html" role="menuitem">Marketplace</a></li><li class="nav-item" role="none"><a href="/chat" role="menuitem">Chat</a></li>- <li class="nav-item" role="none"><a href="/features" role="menuitem">Features</a></li><li class="nav-item" role="none"><a href="/tutorials.html" role="menuitem">Tutorials</a></li><li class="nav-item" id="home-nav-my-agents-li" role="none" hidden><a href="/my-agents" id="home-nav-my-agents" role="menuitem">My Agents</a>@@ -681,7 +680,6 @@</div><div class="h-footer-link-col"><h4 class="h-footer-link-heading">Resources</h4>- <a href="/features">Features</a><a href="/dashboard">Dashboard</a></div></nav>diff --git a/public/settings/index.html b/public/settings/index.htmlindex fd3f3f1d7..6548f2984 100644--- a/public/settings/index.html+++ b/public/settings/index.html@@ -311,7 +311,6 @@<a href="/app">Viewer</a><a href="/create">Create</a><a href="/discover">Discover</a>- <a href="/features">Features</a><a href="/widgets">Widgets</a><a href="/studio">Studio</a><a href="/docs">Docs</a>diff --git a/public/sitemap.xml b/public/sitemap.xmlindex 2caa02123..f2b9a98e1 100644--- a/public/sitemap.xml+++ b/public/sitemap.xml@@ -11,12 +11,6 @@<changefreq>weekly</changefreq><priority>0.8</priority></url>- <url>- <loc>https://three.ws/features</loc>- <lastmod>2026-04-27</lastmod>- <changefreq>weekly</changefreq>- <priority>0.9</priority>- </url><url><loc>https://three.ws/discover</loc><lastmod>2026-04-27</lastmod>diff --git a/public/vanity-wallet.html b/public/vanity-wallet.htmlindex 6439afc8a..c4af0d3e3 100644--- a/public/vanity-wallet.html+++ b/public/vanity-wallet.html@@ -351,7 +351,6 @@</div><div class="h-footer-link-col"><h4 class="h-footer-link-heading">Resources</h4>- <a href="/features">Features</a><a href="/dashboard">Dashboard</a></div></nav>diff --git a/public/widgets-gallery/index.html b/public/widgets-gallery/index.htmlindex e897060c5..49c029a02 100644--- a/public/widgets-gallery/index.html+++ b/public/widgets-gallery/index.html@@ -45,7 +45,6 @@<a href="/studio">Studio</a><a href="/widgets" aria-current="page" class="active">Widgets</a><a href="/docs">Docs</a>- <a href="/features">Features</a></nav></header>@@ -118,7 +117,6 @@<a href="/create">Create</a><a href="/studio">Studio</a><a href="/widgets" aria-current="page">Widgets</a>- <a href="/features">Features</a><a href="/discover">Discover</a><a href="/showcase">Showcase</a><a href="/docs">Docs</a>diff --git a/pump-dashboard.html b/pump-dashboard.htmlindex 779500d26..71981c24e 100644--- a/pump-dashboard.html+++ b/pump-dashboard.html@@ -4,25 +4,25 @@<meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🤖</text></svg>">-<title>3D-Agent · Pump Dashboard</title>+<title>three.ws · Pump Dashboard</title><meta name="description" content="Multi-pane Pump.fun dashboard for 3D-Agent — live feed, watch list, claims, scanner, quoting."><link rel="canonical" href="/pump-dashboard.html"><style>:root {- --bg: #0a0a0a;- --bg-card: #111;- --bg-input: #1a1a1a;+ --bg: #000;+ --bg-card: #0d0d0d;+ --bg-input: #161616;--border: #222;- --border-focus: #00ff41;+ --border-focus: #fff;--text: #ccc;--text-bright: #fff;- --accent: #00ff41;- --accent-dim: #00cc33;- --red: #ff4141;- --yellow: #ffc107;- --blue: #4fc3f7;- --purple: #bb86fc;- --orange: #ff9800;+ --accent: #fff;+ --accent-dim: #aaa;+ --red: #d9d9d9;+ --yellow: #e6e6e6;+ --blue: #c4c4c4;+ --purple: #b8b8b8;+ --orange: #cfcfcf;--font: 'Courier New', monospace;--radius: 6px;}@@ -60,6 +60,27 @@align-items: center;gap: 8px;}+ .sidebar-header h1 a {+ display: inline-flex;+ align-items: center;+ gap: 8px;+ color: inherit;+ text-decoration: none;+ }+ .sidebar-header .wordmark-logo {+ width: 22px;+ height: 22px;+ display: inline-block;+ vertical-align: middle;+ }+ .sidebar-header .wordmark-dot {+ width: 7px;+ height: 7px;+ border-radius: 50%;+ background: linear-gradient(135deg, #a78bfa 0%, #6366f1 100%);+ box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);+ display: inline-block;+ }.sidebar-header .version { font-size: 11px; color: #666; }.sidebar nav { flex: 1; padding: 8px 0; }.sidebar nav a {@@ -73,9 +94,9 @@border-left: 3px solid transparent;transition: all 0.15s;}- .sidebar nav a:hover { background: rgba(0,255,65,0.05); color: var(--text-bright); }+ .sidebar nav a:hover { background: rgba(255,255,255,0.04); color: var(--text-bright); }.sidebar nav a.active {- background: rgba(0,255,65,0.08);+ background: rgba(255,255,255,0.08);color: var(--accent);border-left-color: var(--accent);}@@ -168,7 +189,7 @@color: var(--text-bright);}.panel-header .badge {- background: rgba(0,255,65,0.15);+ background: rgba(255,255,255,0.12);color: var(--accent);padding: 2px 8px;border-radius: 10px;@@ -239,12 +260,12 @@font-size: 10px;font-weight: bold;}- .tag-buy { background: rgba(0,255,65,0.15); color: var(--accent); }- .tag-sell { background: rgba(255,65,65,0.15); color: var(--red); }- .tag-claim { background: rgba(79,195,247,0.15); color: var(--blue); }- .tag-grad { background: rgba(187,134,252,0.15); color: var(--purple); }- .tag-whale { background: rgba(255,152,0,0.15); color: var(--orange); }- .tag-launch { background: rgba(255,193,7,0.15); color: var(--yellow); }+ .tag-buy { background: rgba(255,255,255,0.12); color: var(--accent); }+ .tag-sell { background: rgba(255,255,255,0.08); color: var(--red); }+ .tag-claim { background: rgba(255,255,255,0.1); color: var(--blue); }+ .tag-grad { background: rgba(255,255,255,0.09); color: var(--purple); }+ .tag-whale { background: rgba(255,255,255,0.11); color: var(--orange); }+ .tag-launch { background: rgba(255,255,255,0.13); color: var(--yellow); }/* ── Buttons ──────────────────────────────────────────── */.btn {@@ -263,9 +284,9 @@}.btn:hover { border-color: #444; color: var(--text-bright); }.btn-primary { border-color: var(--accent-dim); color: var(--accent); }- .btn-primary:hover { background: rgba(0,255,65,0.1); }- .btn-danger { border-color: #cc3333; color: var(--red); }- .btn-danger:hover { background: rgba(255,65,65,0.1); }+ .btn-primary:hover { background: rgba(255,255,255,0.1); }+ .btn-danger { border-color: #555; color: var(--red); }+ .btn-danger:hover { background: rgba(255,255,255,0.06); }.btn-sm { padding: 4px 10px; font-size: 11px; }/* ── Forms ────────────────────────────────────────────── */@@ -302,7 +323,7 @@.feed-item:hover { background: rgba(255,255,255,0.02); }.feed-item.new { animation: feedFlash 1s ease-out; }@keyframes feedFlash {- 0% { background: rgba(0,255,65,0.12); }+ 0% { background: rgba(255,255,255,0.14); }100% { background: transparent; }}.feed-item .time { color: #555; font-size: 11px; white-space: nowrap; min-width: 70px; }@@ -427,9 +448,12 @@<!-- ── Sidebar ─────────────────────────── --><aside class="sidebar"><div class="sidebar-header">- <h1>🤖 3D-Agent · Pump</h1>- <div class="version">Dashboard v1.0</div>- <div style="margin-top:8px;"><a href="/" style="color:var(--accent); text-decoration:none; font-size:11px;">← back to 3D-Agent</a></div>+ <h1>+ <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 class="version">Pump Dashboard v1.0</div></div><nav><div class="section-label">Overview</div>diff --git a/src/app.js b/src/app.jsindex 667fc4d09..2b26a6555 100644--- a/src/app.js+++ b/src/app.js@@ -1772,7 +1772,6 @@ class App {<a href="/create">Create</a><a href="/studio">Studio</a><a href="/widgets">Widgets</a>- <a href="/features">Features</a><a href="/discover">Discover</a><a href="/docs">Docs</a><a href="https://eips.ethereum.org/EIPS/eip-8004" target="_blank" rel="noopener">ERC-8004</a>diff --git a/src/features/hero-dragon.js b/src/features/hero-dragon.jsdeleted file mode 100644index 626ea0b8c..000000000--- a/src/features/hero-dragon.js+++ /dev/null@@ -1,265 +0,0 @@-// Dragon mode — the hero avatar chases the cursor while the subtitle reflows-// around its silhouette every frame. Inspired by the chenglou/pretext dragon-// demo. Opt-in via ?pretext=4 only; gimmick risk is real.-//-// Layering:-// - Avatar is translated via transform (.hero-avatar). .hero--dragon absolutely-// positions it within .hero; a home transform returns it to grid baseline.-// - Text reflows via PretextHero.paintCircle(cx, cy, r), called once per frame.-// - One rAF drives both the spring integrator and the reflow.-//-// Auto-downgrade: if mean reflow cost over a 30-frame window exceeds-// COST_BUDGET_MS, disable per-frame relayout and keep the chase running.--const STIFFNESS = 120;-const DAMPING = 20;-const MASS = 1;-const RETURN_EPS_POS = 0.5; // px-const RETURN_EPS_VEL = 5; // px/s-const COST_BUDGET_MS = 8;-const COST_WINDOW = 30;-const HERO_INSET = 16; // px — keep avatar fully inside hero--function prefersReducedMotion() {- return (- typeof window !== 'undefined' &&- window.matchMedia &&- window.matchMedia('(prefers-reduced-motion: reduce)').matches- );-}--function hasHover() {- return (- typeof window !== 'undefined' &&- window.matchMedia &&- window.matchMedia('(hover: hover)').matches- );-}--export class HeroDragon {- constructor(hero) {- this.hero = hero;- this.root = hero.root;- this.avatar = hero.avatar;- this.modelViewer = hero.modelViewer;-- this._targetX = 0;- this._targetY = 0;- this._x = 0;- this._y = 0;- this._vx = 0;- this._vy = 0;-- this._homeRect = null;- this._heroRect = null;- this._lastTs = 0;- this._rafId = null;- this._attached = false;- this._returning = false;-- this._costSamples = [];- this._downgraded = false;-- this._onPointerMove = this._onPointerMove.bind(this);- this._onPointerLeave = this._onPointerLeave.bind(this);- this._onResize = this._onResize.bind(this);- this._onVisibility = this._onVisibility.bind(this);- this._tick = this._tick.bind(this);- }-- attach() {- if (this._attached) return;- if (!this.avatar || !this.root || !this.hero?.pretext) return;- if (prefersReducedMotion()) return;- if (!hasHover()) return;-- this._attached = true;-- this.root.classList.add('hero--dragon');- this._setAutoRotate(false);-- // Wait a frame for the CSS to resettle (grid column changes), then- // measure rects and recompute pretext layout context.- requestAnimationFrame(() => {- if (!this._attached) return;- this._measureRects();- this.hero.recomputeContext?.();- this._paint();-- this.root.addEventListener('pointermove', this._onPointerMove, { passive: true });- this.root.addEventListener('pointerleave', this._onPointerLeave);- window.addEventListener('resize', this._onResize, { passive: true });- window.addEventListener('scroll', this._onResize, { passive: true });- document.addEventListener('visibilitychange', this._onVisibility);-- this._lastTs = performance.now();- this._rafId = requestAnimationFrame(this._tick);- });- }-- detach() {- if (!this._attached) return;- this._attached = false;-- this.root.removeEventListener('pointermove', this._onPointerMove);- this.root.removeEventListener('pointerleave', this._onPointerLeave);- window.removeEventListener('resize', this._onResize);- window.removeEventListener('scroll', this._onResize);- document.removeEventListener('visibilitychange', this._onVisibility);-- if (this._rafId != null) cancelAnimationFrame(this._rafId);- this._rafId = null;-- this.root.classList.remove('hero--dragon');- if (this.avatar) {- this.avatar.style.transform = '';- this.avatar.style.willChange = '';- }- this._setAutoRotate(true);-- // Static wrap resumes once the class is gone — bounce through pretext's- // own repaint path so the overlay matches the non-dragon layout.- this.hero.recomputeContext?.();- const c = this._homeCircle();- if (c) this.hero.paintCircle?.(c.x, c.y, c.r);- }-- _measureRects() {- this._heroRect = this.root.getBoundingClientRect();- this._homeRect = this.avatar.getBoundingClientRect();- this.avatar.style.willChange = 'transform';- }-- _homeCircle() {- const ctx = this.hero._ctx;- if (!ctx) return null;- // Home center in overlay-local coords, mirroring _avatarCircle()- // but using the avatar's home rect.- const r = this._homeRect ?? ctx.avatarRect;- return {- x: r.left + r.width / 2 - ctx.subtitleLeftPage,- y: r.top + r.height / 2 - ctx.subtitleTopPage,- r: ctx.circleBaseR,- };- }-- _onResize() {- if (this._resizePending) return;- this._resizePending = true;- requestAnimationFrame(() => {- this._resizePending = false;- this._measureRects();- this.hero.recomputeContext?.();- });- }-- _onVisibility() {- if (document.hidden) {- if (this._rafId != null) cancelAnimationFrame(this._rafId);- this._rafId = null;- } else if (this._attached && this._rafId == null) {- this._lastTs = performance.now();- this._rafId = requestAnimationFrame(this._tick);- }- }-- _onPointerMove(e) {- const home = this._homeRect;- const hero = this._heroRect;- if (!home || !hero) return;-- const homeCx = home.left + home.width / 2;- const homeCy = home.top + home.height / 2;-- // Clamp so the avatar rect stays within the hero rect (minus inset).- const halfW = home.width / 2;- const halfH = home.height / 2;- const minCx = hero.left + halfW + HERO_INSET;- const maxCx = hero.right - halfW - HERO_INSET;- const minCy = hero.top + halfH + HERO_INSET;- const maxCy = hero.bottom - halfH - HERO_INSET;-- const cx = Math.min(maxCx, Math.max(minCx, e.clientX));- const cy = Math.min(maxCy, Math.max(minCy, e.clientY));-- this._targetX = cx - homeCx;- this._targetY = cy - homeCy;- this._returning = false;- }-- _onPointerLeave() {- this._targetX = 0;- this._targetY = 0;- this._returning = true;- }-- _tick(ts) {- if (!this._attached) return;-- const dtRaw = (ts - this._lastTs) / 1000;- this._lastTs = ts;- // Cap dt to avoid spring explosions after a tab-switch pause.- const dt = Math.min(dtRaw, 1 / 30);-- // Semi-implicit Euler spring integrator.- const ax = (STIFFNESS * (this._targetX - this._x) - DAMPING * this._vx) / MASS;- const ay = (STIFFNESS * (this._targetY - this._y) - DAMPING * this._vy) / MASS;- this._vx += ax * dt;- this._vy += ay * dt;- this._x += this._vx * dt;- this._y += this._vy * dt;-- this.avatar.style.transform = `translate3d(${this._x.toFixed(2)}px, ${this._y.toFixed(2)}px, 0)`;-- this._paint();-- // Once fully settled at home after a pointerleave, detach cleanly so- // the static wrap and auto-rotate resume.- if (this._returning) {- const settled =- Math.abs(this._x) < RETURN_EPS_POS &&- Math.abs(this._y) < RETURN_EPS_POS &&- Math.abs(this._vx) < RETURN_EPS_VEL &&- Math.abs(this._vy) < RETURN_EPS_VEL;- if (settled) {- this.detach();- return;- }- }-- this._rafId = requestAnimationFrame(this._tick);- }-- _paint() {- if (this._downgraded) return;- const ctx = this.hero._ctx;- if (!ctx) return;-- const home = this._homeRect;- if (!home) return;-- const homeCxPage = home.left + home.width / 2;- const homeCyPage = home.top + home.height / 2;- const cx = homeCxPage + this._x - ctx.subtitleLeftPage;- const cy = homeCyPage + this._y - ctx.subtitleTopPage;-- const cost = this.hero.paintCircle?.(cx, cy, ctx.circleBaseR) ?? 0;-- this._costSamples.push(cost);- if (this._costSamples.length > COST_WINDOW) this._costSamples.shift();- if (this._costSamples.length === COST_WINDOW) {- let sum = 0;- for (const c of this._costSamples) sum += c;- if (sum / COST_WINDOW > COST_BUDGET_MS) {- this._downgraded = true;- console.warn('[pretext-hero] dragon downgraded — reflow cost exceeded budget');- }- }- }-- _setAutoRotate(on) {- if (!this.modelViewer) return;- if (on) this.modelViewer.setAttribute('auto-rotate', '');- else this.modelViewer.removeAttribute('auto-rotate');- }-}diff --git a/src/features/hero-gaze.js b/src/features/hero-gaze.jsdeleted file mode 100644index 5e8b54988..000000000--- a/src/features/hero-gaze.js+++ /dev/null@@ -1,196 +0,0 @@-// Gaze follow — the hero avatar's camera-orbit tracks the user's cursor.-//-// Uses <model-viewer>'s camera-orbit attribute rather than reaching into the-// Three.js scene, so this stays compatible with the CDN-loaded custom element-// and never touches the main app viewer.-//-// When the cursor moves over the hero, auto-rotate turns off and the avatar-// tracks the cursor (normalized relative to the avatar's bounding rect). On-// pointerleave or after an idle window, the avatar eases back to its default-// orbit and auto-rotate resumes.--// Defaults must match features.html's camera-orbit attribute.-const BASE_THETA_DEG = 20;-const BASE_PHI_DEG = 68;-const BASE_RADIUS = '3.4m';-const THETA_RANGE_DEG = 15; // ±15° azimuth — subtle but legible-const PHI_RANGE_DEG = 8; // ±8° polar-const IDLE_MS = 1200; // Resume auto-rotate after this quiet-const SMOOTH = 0.12; // Lerp alpha toward target per frame (~60fps)-const SETTLE_EPSILON = 0.05; // Degrees — below this we consider the return complete--function prefersReducedMotion() {- return (- typeof window !== 'undefined' &&- window.matchMedia &&- window.matchMedia('(prefers-reduced-motion: reduce)').matches- );-}--function hasHover() {- return (- typeof window !== 'undefined' &&- window.matchMedia &&- window.matchMedia('(hover: hover)').matches- );-}--export class HeroGaze {- constructor(hero) {- this.hero = hero;- this.root = hero.root;- this.avatar = hero.avatar;- this.modelViewer = hero.modelViewer;-- this._targetTheta = BASE_THETA_DEG;- this._targetPhi = BASE_PHI_DEG;- this._currentTheta = BASE_THETA_DEG;- this._currentPhi = BASE_PHI_DEG;-- this._avatarRect = null;- this._lastMoveAt = 0;- this._rafId = null;- this._tracking = false;- this._attached = false;-- this._onPointerMove = this._onPointerMove.bind(this);- this._onPointerLeave = this._onPointerLeave.bind(this);- this._onResize = this._onResize.bind(this);- this._tick = this._tick.bind(this);- }-- attach() {- if (this._attached) return;- if (!this.modelViewer || !this.root || !this.avatar) return;-- // Skip entirely on reduced-motion and on no-hover (touch) devices.- if (prefersReducedMotion()) return;- if (!hasHover()) return;-- this._attached = true;- this._refreshRect();-- this.root.addEventListener('pointermove', this._onPointerMove, { passive: true });- this.root.addEventListener('pointerleave', this._onPointerLeave);- window.addEventListener('resize', this._onResize, { passive: true });- window.addEventListener('scroll', this._onResize, { passive: true });-- this._rafId = requestAnimationFrame(this._tick);- }-- detach() {- if (!this._attached) return;- this._attached = false;-- this.root.removeEventListener('pointermove', this._onPointerMove);- this.root.removeEventListener('pointerleave', this._onPointerLeave);- window.removeEventListener('resize', this._onResize);- window.removeEventListener('scroll', this._onResize);-- if (this._rafId != null) cancelAnimationFrame(this._rafId);- this._rafId = null;-- // Hand control back to model-viewer so the hero doesn't freeze mid-turn.- this._setAutoRotate(true);- }-- _refreshRect() {- this._avatarRect = this.avatar.getBoundingClientRect();- }-- _onResize() {- // rAF-coalesce rect reads; scroll/resize fire often.- if (this._rectPending) return;- this._rectPending = true;- requestAnimationFrame(() => {- this._rectPending = false;- this._refreshRect();- });- }-- _onPointerMove(e) {- // The rAF tick consumes these target values; the event handler itself- // does no DOM writes and no orbit math beyond the normalization.- const rect = this._avatarRect;- if (!rect || rect.width === 0 || rect.height === 0) return;-- const cx = rect.left + rect.width / 2;- const cy = rect.top + rect.height / 2;-- // Normalize to [-1, 1] relative to avatar's own half-extents so the- // signal is strongest as the cursor approaches the avatar and clamps- // at the edges of the hero.- let nx = (e.clientX - cx) / (rect.width / 2);- let ny = (e.clientY - cy) / (rect.height / 2);- if (nx < -1) nx = -1;- else if (nx > 1) nx = 1;- if (ny < -1) ny = -1;- else if (ny > 1) ny = 1;-- this._targetTheta = BASE_THETA_DEG + nx * THETA_RANGE_DEG;- // Cursor moving down (ny > 0) should tilt the avatar's gaze down too,- // which in model-viewer's polar convention means increasing phi.- this._targetPhi = BASE_PHI_DEG + ny * PHI_RANGE_DEG;-- this._lastMoveAt = performance.now();-- if (!this._tracking) {- this._tracking = true;- this._setAutoRotate(false);- }- }-- _onPointerLeave() {- // Ease back to base; the tick loop will flip auto-rotate back on once- // we've settled near the default orbit.- this._targetTheta = BASE_THETA_DEG;- this._targetPhi = BASE_PHI_DEG;- this._lastMoveAt = 0;- }-- _tick() {- if (!this._attached) return;-- this._currentTheta += (this._targetTheta - this._currentTheta) * SMOOTH;- this._currentPhi += (this._targetPhi - this._currentPhi) * SMOOTH;-- if (this._tracking) {- const orbit = `${this._currentTheta.toFixed(2)}deg ${this._currentPhi.toFixed(2)}deg ${BASE_RADIUS}`;- this.modelViewer.setAttribute('camera-orbit', orbit);- }-- const now = performance.now();- const idleFor = this._lastMoveAt > 0 ? now - this._lastMoveAt : 0;- const settled =- Math.abs(this._currentTheta - BASE_THETA_DEG) < SETTLE_EPSILON &&- Math.abs(this._currentPhi - BASE_PHI_DEG) < SETTLE_EPSILON;-- // Resume auto-rotate either after a quiet window (cursor still over the- // hero but idle) or after pointerleave once the avatar has eased home.- const shouldResume =- this._lastMoveAt === 0- ? settled // pointerleave: wait for ease-back to complete- : idleFor > IDLE_MS; // idle: cursor still in hero but stopped- if (this._tracking && shouldResume) {- this._tracking = false;- if (this._lastMoveAt === 0 && settled) {- // Snap to the canonical orbit so auto-rotate picks up cleanly.- this.modelViewer.setAttribute(- 'camera-orbit',- `${BASE_THETA_DEG}deg ${BASE_PHI_DEG}deg ${BASE_RADIUS}`,- );- this._currentTheta = BASE_THETA_DEG;- this._currentPhi = BASE_PHI_DEG;- }- this._setAutoRotate(true);- }-- this._rafId = requestAnimationFrame(this._tick);- }-- _setAutoRotate(on) {- if (!this.modelViewer) return;- if (on) this.modelViewer.setAttribute('auto-rotate', '');- else this.modelViewer.removeAttribute('auto-rotate');- }-}diff --git a/src/features/hero-pretext.js b/src/features/hero-pretext.jsdeleted file mode 100644index 6f587ccd5..000000000--- a/src/features/hero-pretext.js+++ /dev/null@@ -1,297 +0,0 @@-// Hero controller for /features — scaffolds submodules behind ?pretext=N flags.-//-// Respecting prefers-reduced-motion is the responsibility of any submodule that-// animates (gaze, dragon reflow). The scaffold itself is inert. The static wrap-// (flag >= 2) is a one-shot paint per resize, so it has nothing to gate.--const MOBILE_MQ = '(max-width: 768px)';-const RESIZE_DEBOUNCE_MS = 120;--export default class PretextHero {- constructor(root, options = {}) {- this.root = root;- this.content = root?.querySelector('.hero-content') || null;- this.title = root?.querySelector('.hero-title') || null;- this.subtitle = root?.querySelector('.hero-subtitle') || null;- this.avatar = root?.querySelector('.hero-avatar') || null;- this.modelViewer = this.avatar?.querySelector('model-viewer') || null;-- this.flag = String(options.flag ?? '1');- this.pretext = null;-- this._gaze = null;- this._dragon = null;- this._overlay = null;- this._onResize = null;- this._resizeT = null;- this._rafToken = 0;- this._ctx = null;- }-- async init() {- const mod = await import('@chenglou/pretext');- this.pretext = mod;-- const flagNum = Number.parseInt(this.flag, 10);-- if (flagNum >= 2) {- try {- this.enableStaticWrap();- } catch (err) {- console.warn('[pretext-hero] static wrap failed:', err);- }- }-- // Gaze follows the cursor with subtle head rotation. Dragon mode moves- // the avatar itself, so the two don't compose — flag 4 opts out of gaze.- if (this.flag === '3') {- try {- const { HeroGaze } = await import('./hero-gaze.js');- this._gaze = new HeroGaze(this);- this._gaze.attach();- } catch (err) {- console.warn('[pretext-hero] gaze unavailable:', err);- }- }-- if (this.flag === '4') {- try {- const { HeroDragon } = await import('./hero-dragon.js');- this._dragon = new HeroDragon(this);- this._dragon.attach();- } catch (err) {- console.warn('[pretext-hero] dragon unavailable:', err);- }- }-- return this;- }-- enableStaticWrap() {- if (!this.content || !this.subtitle || !this.avatar || !this.pretext) return;-- // Keep the original subtitle accessible to screen readers even when- // visually hidden via .pretext-active; the overlay is aria-hidden.- this.subtitle.setAttribute('aria-hidden', 'false');-- this._overlay = document.createElement('div');- this._overlay.className = 'hero-subtitle-pretext';- this._overlay.setAttribute('aria-hidden', 'true');- this.content.appendChild(this._overlay);-- const paint = () => {- try {- this._paintStaticWrap();- } catch (err) {- console.warn('[pretext-hero] paint failed:', err);- this.root.classList.remove('pretext-active');- }- };-- const ready = document.fonts?.ready ?? Promise.resolve();- ready.then(paint);-- this._onResize = () => {- if (this._resizeT) clearTimeout(this._resizeT);- this._resizeT = setTimeout(paint, RESIZE_DEBOUNCE_MS);- };- window.addEventListener('resize', this._onResize);- }-- // One-shot layout pass. Reads geometry, then paints once via rAF — no mid-frame- // writes, so resize doesn't thrash.- _paintStaticWrap() {- if (!this._overlay) return;-- if (window.matchMedia(MOBILE_MQ).matches) {- this.root.classList.remove('pretext-active');- this._overlay.replaceChildren();- this._overlay.style.display = 'none';- this._ctx = null;- return;- }- this._overlay.style.display = '';-- const ctx = this._computeLayoutContext();- if (!ctx) return;- this._ctx = ctx;-- const { circleX, circleY, circleR } = this._avatarCircle(ctx);- const { lines, contentHeight } = this._layoutLinesAroundCircle(- ctx,- circleX,- circleY,- circleR,- );-- const token = ++this._rafToken;- requestAnimationFrame(() => {- if (token !== this._rafToken || !this._overlay) return;- this._paintLines(ctx, lines, contentHeight);- this.root.classList.add('pretext-active');- });- }-- // Reads rects + style once. Returned context is the input to- // _layoutLinesAroundCircle, which is pure math and reusable per-frame- // by dragon mode.- _computeLayoutContext() {- if (!this.content || !this.subtitle || !this.avatar || !this.pretext) return null;-- const contentRect = this.content.getBoundingClientRect();- const subtitleRect = this.subtitle.getBoundingClientRect();- const avatarRect = this.avatar.getBoundingClientRect();-- const style = getComputedStyle(this.subtitle);- const font = `${style.fontStyle} ${style.fontWeight} ${style.fontSize} ${style.fontFamily}`;- const fontSize = Number.parseFloat(style.fontSize);- const lhRaw = style.lineHeight;- const lineHeight = lhRaw === 'normal' ? fontSize * 1.5 : Number.parseFloat(lhRaw);-- const overlayLeft = subtitleRect.left - contentRect.left;- const overlayTop = subtitleRect.top - contentRect.top;-- // Dragon mode stretches .hero-content to full hero width, so use the- // content box as the outer bound and let the subtitle flow wider.- const heroRect = this.root.getBoundingClientRect();- const rightmostPage = this.root.classList.contains('hero--dragon')- ? heroRect.right - 32- : Math.max(avatarRect.right - 24, subtitleRect.right);- const overlayWidth = Math.max(subtitleRect.width, rightmostPage - subtitleRect.left);-- const text = this.subtitle.textContent ?? '';- const prepared = this.pretext.prepareWithSegments(text, font);-- const circleBaseR = (Math.min(avatarRect.width, avatarRect.height) / 2) * 0.92;-- return {- font,- lineHeight,- prepared,- text,- overlayLeft,- overlayTop,- overlayWidth,- subtitleRect,- avatarRect,- subtitleLeftPage: subtitleRect.left,- subtitleTopPage: subtitleRect.top,- circleBaseR,- hPad: 14,- maxLines: 32,- };- }-- _avatarCircle(ctx) {- const r = ctx.avatarRect;- return {- circleX: r.left + r.width / 2 - ctx.subtitleLeftPage,- circleY: r.top + r.height / 2 - ctx.subtitleTopPage,- circleR: ctx.circleBaseR,- };- }-- _layoutLinesAroundCircle(ctx, circleX, circleY, circleR) {- const { overlayWidth, lineHeight, hPad, prepared, maxLines } = ctx;- const lines = [];- let cursor = { segmentIndex: 0, graphemeIndex: 0 };- let lineTop = 0;-- while (lines.length < maxLines) {- const bandMid = lineTop + lineHeight / 2;- const dy = bandMid - circleY;- const effR = circleR + hPad;-- let slotWidth = overlayWidth;- if (Math.abs(dy) < effR) {- const dx = Math.sqrt(effR * effR - dy * dy);- const blockedLeft = circleX - dx;- if (blockedLeft < overlayWidth) {- if (blockedLeft > 24) {- slotWidth = blockedLeft;- } else {- lineTop += lineHeight;- continue;- }- }- }-- const line = this.pretext.layoutNextLine(prepared, cursor, slotWidth);- if (line === null) break;-- lines.push({ y: lineTop, text: line.text });- cursor = line.end;- lineTop += lineHeight;- }-- return { lines, contentHeight: lineTop };- }-- _paintLines(ctx, lines, contentHeight) {- if (!this._overlay) return;- const overlay = this._overlay;- overlay.style.left = `${ctx.overlayLeft}px`;- overlay.style.top = `${ctx.overlayTop}px`;- overlay.style.width = `${ctx.overlayWidth}px`;- overlay.style.height = `${Math.max(contentHeight, ctx.subtitleRect.height)}px`;-- const frag = document.createDocumentFragment();- for (const { y, text } of lines) {- const span = document.createElement('span');- span.className = 'hero-subtitle-pretext-line';- span.style.top = `${y}px`;- span.textContent = text;- frag.appendChild(span);- }- overlay.replaceChildren(frag);- }-- // Public for dragon mode — recompute rects after toggling .hero--dragon.- recomputeContext() {- this._ctx = this._computeLayoutContext();- return this._ctx;- }-- // Public for dragon mode — reflow using the current cached context and- // the caller-supplied avatar circle (in overlay-local coordinates).- // Returns the measured layout cost in ms for the auto-downgrade budget.- paintCircle(circleX, circleY, circleR) {- if (!this._ctx || !this._overlay) return 0;- const t0 = performance.now();- const { lines, contentHeight } = this._layoutLinesAroundCircle(- this._ctx,- circleX,- circleY,- circleR,- );- this._paintLines(this._ctx, lines, contentHeight);- return performance.now() - t0;- }-- dispose() {- if (this._onResize) {- window.removeEventListener('resize', this._onResize);- this._onResize = null;- }- if (this._resizeT) {- clearTimeout(this._resizeT);- this._resizeT = null;- }- if (this._overlay) {- this._overlay.remove();- this._overlay = null;- }- this.subtitle?.removeAttribute('aria-hidden');- this.root?.classList.remove('pretext-active');-- if (this._gaze) {- this._gaze.detach();- this._gaze = null;- }- if (this._dragon) {- this._dragon.detach();- this._dragon = null;- }- this._ctx = null;- }-}diff --git a/tasks/monetization-feature/06-backend-api-list-purchased-skills.md b/tasks/monetization-feature/06-backend-api-list-purchased-skills.mdindex 174adc99d..aaccae95e 100644--- a/tasks/monetization-feature/06-backend-api-list-purchased-skills.md+++ b/tasks/monetization-feature/06-backend-api-list-purchased-skills.md@@ -1,5 +1,5 @@----status: completed+status: not-started---# Prompt 6: API to List Purchased Skillsdiff --git a/tasks/pump-dashboard-real-apis/01-featured-agent-real-data.md b/tasks/pump-dashboard-real-apis/01-featured-agent-real-data.mdnew file mode 100644index 000000000..19a9bae2d--- /dev/null+++ b/tasks/pump-dashboard-real-apis/01-featured-agent-real-data.md@@ -0,0 +1,34 @@+# 01 — Featured Agent panel: replace hardcoded "Agent CZ" with real data++## Problem+[pump-dashboard.html](../../pump-dashboard.html) lines ~485–497 hard‑code the Featured Agent panel:+- `id="featured-agent-name"` defaults to "Agent CZ"+- `id="featured-agent-desc"` is a hardcoded sentence+- `id="featured-agent-link"` points at `/agent-detail.html?id=cz`+- `id="featured-agent-avatar"` is empty++This is fake data shipped to production and violates [CLAUDE.md](../../CLAUDE.md) rule #1 (no placeholders).++## Outcome+On first paint of the Dashboard page, the Featured Agent card shows a **real** agent selected from the platform, with avatar image, real display name, real one‑line bio, and a link to that agent's real detail page.++## Selection rule (no fakery)+Pick "featured" deterministically from real data:+1. Prefer the agent with the highest aggregate `agent_revenue_events.net_total` over the last 30 days (join `agent_identities` to filter `deleted_at IS NULL` and visibility = public).+2. If revenue data is empty for the window, fall back to the most-recently-created public agent (`ORDER BY created_at DESC LIMIT 1`).++Do NOT hardcode agent ids, names, or fallback sample agents.++## Implementation+1. Add a real endpoint `GET /api/agents/featured` in `api/agents/featured.js` using the `sql` helper from [api/_lib/db.js](../../api/_lib/db.js). Return `{ data: { id, slug, display_name, bio, avatar_url, detail_url } }` or 404 when there are zero agents in the DB.+2. In [pump-dashboard.html](../../pump-dashboard.html), remove the hardcoded `Agent CZ` text and "/agent-detail.html?id=cz" href. On `DOMContentLoaded` and on every nav into the Dashboard page, call `apiFetch('/api/agents/featured')` and render:+ - avatar via `<img>` into `#featured-agent-avatar` (use the real `avatar_url`; if the agent has no avatar persisted, render the initials in a styled div — never a stock placeholder image)+ - `display_name`, `bio`, and the real `detail_url`+3. Real loading state (CSS skeleton or "Loading…" text) and real error state ("No agents available yet" only when 404). Do not fake a delay.++## Definition of done+- `curl http://localhost:3000/api/agents/featured` returns a real row from the database.+- Browser network tab shows that request succeeding on dashboard load.+- Removing all rows from `agent_identities` shows the real empty state, not a stub agent.+- No string "Agent CZ" or `id=cz` anywhere in the changed HTML.+- `npm test` green; run **completionist** subagent on changed files.diff --git a/tasks/pump-dashboard-real-apis/02-wallet-snapshot-real.md b/tasks/pump-dashboard-real-apis/02-wallet-snapshot-real.mdnew file mode 100644index 000000000..15dec8992--- /dev/null+++ b/tasks/pump-dashboard-real-apis/02-wallet-snapshot-real.md@@ -0,0 +1,32 @@+# 02 — Wallet Snapshot panel: real wallet connect + real balances++## Problem+[pump-dashboard.html](../../pump-dashboard.html) lines ~499–511 render only a "Connect wallet to see your holdings" empty state with a button that does nothing. This is a non‑functional placeholder.++## Outcome+Clicking **Connect Wallet** opens the user's real Solana wallet (Phantom is already installed in the rest of this codebase — see [src/wallet.js](../../src/wallet.js)). On approval, the panel renders the connected address, native SOL balance, USD value, and the top SPL token holdings with logos and USD values. Disconnect button restores the empty state.++## Use what already exists — don't reinvent+- Wallet connect: reuse [src/wallet.js](../../src/wallet.js) (`connectPhantom`, listeners) — `import` it as an ES module from the dashboard. Do **not** call `window.solana` directly here.+- Balances: call `POST /api/wallet/balances` with `{ chain: 'solana', address }` — implementation already exists at [api/wallet/balances.js](../../api/wallet/balances.js) and uses Helius RPC + Jupiter price API server‑side. **Do not re‑hit Helius from the browser**; that endpoint owns the API key.++## Implementation+1. Convert the inline `<script>` block in pump-dashboard.html to also import [src/wallet.js](../../src/wallet.js) (or move dashboard JS into a module under [src/pump/dashboard-wallet.js](../../src/pump/dashboard-wallet.js) and load via `<script type="module">`). Vite already handles modules.+2. Wire the Connect Wallet button:+ - On click → `connectPhantom()` from [src/wallet.js](../../src/wallet.js).+ - On connected event → fetch `/api/wallet/balances` with the connected address.+ - Render: short address (linked to `solscan.io/account/<addr>`), SOL native balance + USD, then a list of up to the top 10 token holdings sorted by USD value (symbol, amount formatted with token decimals, USD value, logo `<img>` from the API response).+ - Show a real "Disconnect" button that calls `provider.disconnect()` and restores the connect state.+3. Real states only:+ - Connecting → spinner / "Connecting…" while the wallet popup is open.+ - 503 `not_configured` from `/api/wallet/balances` → render the upstream error string returned by the endpoint (do not fabricate a fallback list).+ - Empty token list → "No SPL tokens" line; do not invent rows.+4. If the user has previously connected (Phantom auto‑connect), pre‑populate the panel on page load — the listener in [src/wallet.js](../../src/wallet.js) already exposes the connected address.++## Definition of done+- Real Phantom popup appears on click and approval is required.+- Network tab shows `POST /api/wallet/balances` succeeding with the real address.+- SOL value matches `solscan.io/account/<addr>` to within rounding.+- Disconnect actually disconnects the wallet (verify by clicking Connect again — popup re‑appears).+- No string `"Connect wallet to see your holdings"` left in the rendered DOM after a successful connect.+- `npm test` green; **completionist** subagent run on changed files.diff --git a/tasks/pump-dashboard-real-apis/03-market-chart-real.md b/tasks/pump-dashboard-real-apis/03-market-chart-real.mdnew file mode 100644index 000000000..7fadd2788--- /dev/null+++ b/tasks/pump-dashboard-real-apis/03-market-chart-real.md@@ -0,0 +1,32 @@+# 03 — Market Chart panel: render a real price chart++## Problem+[pump-dashboard.html](../../pump-dashboard.html) lines ~513–526 render only an empty state with the literal text "Chart data loading..." — there is no chart, no fetch, and no library wired up. This is a placeholder shipped to production.++## Outcome+The Market Chart panel renders a real price line/candle chart for the currently selected token (the `<select>` in the panel — task 04 owns populating that selector, but this task must work against any valid token mint passed to it). The chart updates when the selector changes.++## Data source (real, no mocks)+Use [api/pump/curve.js](../../api/pump/curve.js) for live PumpFun bonding-curve tokens (price + market cap). For graduated / non-PumpFun tokens use Birdeye OHLC via a new server-side proxy `GET /api/pump/price-history?mint=<mint>&interval=15m&from=<unix>&to=<unix>` that wraps `https://public-api.birdeye.so/defi/ohlcv?address=<mint>&type=15m&time_from=…&time_to=…` using `BIRDEYE_API_KEY` (already referenced in [api/pump/dashboard.js](../../api/pump/dashboard.js)). Never hit Birdeye from the browser — the key stays server-side.++Return shape from the new endpoint:+```json+{ "data": [ { "t": 1714867200, "o": 0.0, "h": 0.0, "l": 0.0, "c": 0.0, "v": 0.0 }, ... ] }+```++## Implementation+1. Add `api/pump/price-history.js` — Vercel function that proxies Birdeye OHLCV. Validate `mint` is base58 and in `[32,44]` chars before calling upstream; rate-limit per IP using the existing `limits` helper in [api/_lib/rate-limit.js](../../api/_lib/rate-limit.js).+2. In [pump-dashboard.html](../../pump-dashboard.html), replace the empty state block with a `<canvas id="market-chart">` sized to fill the panel body.+3. Render the chart with a tiny vanilla canvas line plot (no new dependency required). No fake animations, no `setTimeout` frame stalls — draw once per data load and on resize via `ResizeObserver`. Required visual: x-axis time ticks (every ~6 segments, formatted as `HH:mm` for ≤24h windows, `MMM d` otherwise), y-axis price ticks (5 evenly spaced, formatted with adaptive decimals), a hairline crosshair on hover that displays time + close at the cursor.+4. Wire the panel `<select>` change event (and an initial load) to call `/api/pump/price-history` for the selected mint with the last 24 hours, plus `/api/pump/curve?mint=…` for a live "spot" overlay when the token is a PumpFun token.+5. Real states only:+ - Loading: render a skeleton grid in the canvas — do **not** display "Chart data loading…" forever.+ - Empty (`data: []`): write "No trades in the selected window" centered in the canvas.+ - Upstream 4xx/5xx: render the upstream error message returned by `/api/pump/price-history`. Never silently fall back to fake data.++## Definition of done+- Selecting a real graduated token (e.g. paste a known mainnet mint into the selector via task 04 or via DOM) renders a real line chart with real OHLC values; numbers match Birdeye's UI for the same window.+- Selecting a live PumpFun token renders the price-history series and an overlaid live spot price from `/api/pump/curve`.+- Network tab shows `/api/pump/price-history` succeeding; no calls to `public-api.birdeye.so` originate from the browser.+- `BIRDEYE_API_KEY` missing → endpoint returns 503 `not_configured` and the panel surfaces it; no silent fallback.+- `npm test` green; **completionist** subagent run on changed files.diff --git a/tasks/pump-dashboard-real-apis/README.md b/tasks/pump-dashboard-real-apis/README.mdnew file mode 100644index 000000000..a9819db21--- /dev/null+++ b/tasks/pump-dashboard-real-apis/README.md@@ -0,0 +1,27 @@+# pump-dashboard.html — wire every panel to REAL APIs++Audit target: [/pump-dashboard.html](../../pump-dashboard.html)++Every prompt in this folder is **independent**. Pick any one and ship it end‑to‑end without depending on another file in this folder being done first. No mocks. No fake data. No placeholders. No `Math.random()` standing in for real cryptography. No `setTimeout` fake-loading. No commented-out code. No hardcoded sample arrays. No fallback rows. If credentials are missing, locate them in `.env` or `vercel env ls` — do not stub.++Each task must satisfy [CLAUDE.md](../../CLAUDE.md):+- Wired into the UI and reachable.+- Dev server (`npm run dev`) started, exercised in a real browser, no console errors, network tab shows real upstream calls succeeding.+- Empty / loading / error states are real.+- Existing tests still green (`npm test`).+- Run the **completionist** subagent on the changed files before claiming done.++## Tasks++- [01-featured-agent-real-data.md](01-featured-agent-real-data.md)+- [02-wallet-snapshot-real.md](02-wallet-snapshot-real.md)+- [03-market-chart-real.md](03-market-chart-real.md)+- [04-market-chart-token-selector.md](04-market-chart-token-selector.md)+- [05-vanity-generator-real-keypair.md](05-vanity-generator-real-keypair.md)+- [06-custom-agents-table-real.md](06-custom-agents-table-real.md)+- [07-dashboard-stat-cards-real.md](07-dashboard-stat-cards-real.md)+- [08-revenue-page-real.md](08-revenue-page-real.md)+- [09-api-keys-management-real.md](09-api-keys-management-real.md)+- [10-config-validate-connection.md](10-config-validate-connection.md)+- [11-tts-speech-real.md](11-tts-speech-real.md)+- [12-alerts-server-persist.md](12-alerts-server-persist.md)diff --git a/tests/features-page.test.js b/tests/features-page.test.jsdeleted file mode 100644index e3b8d721a..000000000--- a/tests/features-page.test.js+++ /dev/null@@ -1,172 +0,0 @@-import { describe, it, expect } from 'vitest';-import { readFileSync, existsSync } from 'node:fs';-import { fileURLToPath } from 'node:url';-import { dirname, resolve } from 'node:path';--const __dirname = dirname(fileURLToPath(import.meta.url));-const repoRoot = resolve(__dirname, '..');-const p = (...parts) => resolve(repoRoot, ...parts);--const html = readFileSync(p('public/features/index.html'), 'utf8');-const css = readFileSync(p('public/features/features.css'), 'utf8');-const js = readFileSync(p('public/features/features.js'), 'utf8');-const vercel = JSON.parse(readFileSync(p('vercel.json'), 'utf8'));-const elementJs = readFileSync(p('src/element.js'), 'utf8');--describe('/features page — structure', () => {- it('lives at public/features/index.html (folder pattern, not root features.html)', () => {- expect(existsSync(p('public/features/index.html'))).toBe(true);- expect(existsSync(p('features.html'))).toBe(false);- });-- it('has metadata: title, canonical, og:image', () => {- expect(html).toContain('<title>Features · three.ws</title>');- expect(html).toContain('rel="canonical"');- expect(html).toContain('og:image');- });-- it('renders three parallax acts', () => {- const acts = html.match(/<section\b[^>]*class="parallax-act/g) || [];- expect(acts.length).toBe(3);- expect(html).toContain('data-act="1"');- expect(html).toContain('data-act="2"');- expect(html).toContain('data-act="3"');- });-- it('embeds three <model-viewer> act-agents (one per act)', () => {- expect(html).toContain('data-role="act1-agent"');- expect(html).toContain('data-role="act2-agent"');- expect(html).toContain('data-role="act3-agent"');- // Each act-agent must be a model-viewer element- const actAgentTags = html.match(/<model-viewer\b[^>]*data-role="act\d-agent"[^>]*>/gs) || [];- expect(actAgentTags.length).toBe(3);- });-- it('Act 1 loads eagerly; Acts 2 and 3 load lazily', () => {- // Act 1 uses loading="eager"; acts 2 and 3 use loading="lazy"- const act1 = html.match(/<model-viewer\b[^>]*data-role="act1-agent"[^>]*>/s)?.[0];- const act2 = html.match(/<model-viewer\b[^>]*data-role="act2-agent"[^>]*>/s)?.[0];- const act3 = html.match(/<model-viewer\b[^>]*data-role="act3-agent"[^>]*>/s)?.[0];- expect(act1).toBeTruthy();- expect(act2).toBeTruthy();- expect(act3).toBeTruthy();- expect(act1).toContain('loading="eager"');- expect(act2).toContain('loading="lazy"');- expect(act3).toContain('loading="lazy"');- });-- it('has a deploy CTA pointing at /deploy', () => {- expect(html).toMatch(/href="\/deploy"[^>]*class="btn-primary"/);- });-- it('cross-links to /discover (see who is on-chain)', () => {- expect(html).toContain('href="/discover"');- });-- it('skip-link targets the deploy CTA', () => {- expect(html).toContain('href="#deploy"');- expect(html).toContain('id="deploy"');- });-- it('does not reference the legacy /explore route', () => {- expect(html).not.toMatch(/href="\/explore"/);- });-- it('keeps the site nav consistent with /discover and /my-agents', () => {- expect(html).toContain('class="features-nav"');- expect(html).toContain('href="/discover"');- expect(html).toContain('href="/my-agents"');- });-- it('exposes Act 2 emotion chips for the empathy demo', () => {- const chips = html.match(/data-emotion="[^"]+"/g) || [];- expect(chips.length).toBeGreaterThanOrEqual(4);- // Vocabulary must match agent-avatar.js emotion keys- expect(html).toContain('data-emotion="celebration"');- expect(html).toContain('data-emotion="curiosity"');- expect(html).toContain('data-emotion="empathy"');- expect(html).toContain('data-emotion="concern"');- });-});--describe('/features page — CSS contract', () => {- it('establishes a perspective scroll container', () => {- expect(css).toContain('perspective: var(--features-perspective)');- expect(css).toMatch(/--features-perspective:\s*[\d.]+rem/);- });-- it('layers use translateZ + scale to compensate for depth', () => {- expect(css).toContain('translateZ(calc(var(--features-perspective)');- expect(css).toContain('scale(calc(var(--depth) + 1))');- });-- it('honors prefers-reduced-motion (collapses parallax)', () => {- expect(css).toMatch(/@media \(prefers-reduced-motion: reduce\)/);- });-- it('has a narrow-viewport flat layout', () => {- expect(css).toMatch(/@media \(max-width: 768px\)/);- });-});--describe('/features page — JS wiring', () => {- it('uses IntersectionObserver for progress-dot tracking', () => {- expect(js).toContain('IntersectionObserver');- expect(js).toContain('parallax-act[data-act]');- });-- it('wires emotion chips to model-viewer animation playback', () => {- expect(js).toContain('data-emotion');- expect(js).toContain('animationName');- expect(js).toContain('EMOTION_TO_ANIM');- });-- it('fetches a real on-chain agent via /api/agents/suggest', () => {- expect(js).toContain('/api/agents/suggest');- });-- it('resolves chain IDs to human-readable labels for the Act 3 passport', () => {- expect(js).toContain('SHORT_NAME_BY_CHAIN');- expect(js).toContain('chainLabel');- });-});--describe('<agent-3d> public API — expressEmotion()', () => {- it('exposes expressEmotion as a public method', () => {- // The method calls into the protocol with ACTION_TYPES.EMOTE.- expect(elementJs).toMatch(/expressEmotion\s*\(/);- expect(elementJs).toContain('ACTION_TYPES.EMOTE');- });-});--describe('/features routing — vercel.json', () => {- const routes = vercel.routes || [];-- it('serves /features from /features/index.html', () => {- const r = routes.find((x) => x.src === '/features');- expect(r?.dest).toBe('/features/index.html');- });-- it('serves /features/ from /features/index.html', () => {- const r = routes.find((x) => x.src === '/features/');- expect(r?.dest).toBe('/features/index.html');- });-- it('rewrites /features/(.*) to /features/$1 for assets', () => {- const r = routes.find((x) => x.src === '/features/(.*)');- expect(r?.dest).toBe('/features/$1');- });-- it('redirects legacy /features.html → /features (301)', () => {- const r = routes.find((x) => x.src === '/features.html');- expect(r).toBeTruthy();- expect(r.status).toBe(301);- expect(r.headers?.Location).toBe('/features');- });-- it('redirects come before catch-all rewrites', () => {- const idx = (src) => routes.findIndex((x) => x.src === src);- // /features.html redirect must precede /features rewrite- expect(idx('/features.html')).toBeLessThan(idx('/features'));- });-});diff --git a/three.ws_pumpfun (2).png b/three.ws_pumpfun (2).pngdeleted file mode 100644index 296fd23d7..000000000Binary files a/three.ws_pumpfun (2).png and /dev/null differdiff --git a/tutorials.html b/tutorials.htmlindex 4a9844e63..397900238 100644--- a/tutorials.html+++ b/tutorials.html@@ -465,7 +465,6 @@</li><li class="nav-item" role="none"><a href="/marketplace.html" role="menuitem">Marketplace</a></li><li class="nav-item" role="none"><a href="/chat" role="menuitem">Chat</a></li>- <li class="nav-item" role="none"><a href="/features" role="menuitem">Features</a></li><li class="nav-item" role="none"><a href="/tutorials.html" role="menuitem" aria-current="page">Tutorials</a></li><li class="nav-item" id="home-nav-my-agents-li" role="none" hidden><a href="/my-agents" id="home-nav-my-agents" role="menuitem">My Agents</a>@@ -850,7 +849,6 @@ console.log(agent.attestation); // ERC-8004 attestation URI</code></pre></div><div class="h-footer-link-col"><h4 class="h-footer-link-heading">Resources</h4>- <a href="/features">Features</a><a href="/tutorials.html" aria-current="page">Tutorials</a><a href="/dashboard">Dashboard</a></div>diff --git a/vercel.json b/vercel.jsonindex 00bce93c2..bd9880f8e 100644--- a/vercel.json+++ b/vercel.json@@ -110,11 +110,11 @@},{"src": "/oauth/consent",+ "dest": "/api/oauth/[action]?action=consent"+ },{"src": "/api/payments/intent","dest": "/api/payments/intent"- },- "dest": "/api/oauth/[action]?action=authorize"},{"src": "/oauth/token",@@ -926,25 +926,6 @@"src": "/app","dest": "/app.html"},- {- "src": "/features.html",- "status": 301,- "headers": {- "Location": "/features"- }- },- {- "src": "/features",- "dest": "/features/index.html"- },- {- "src": "/features/",- "dest": "/features/index.html"- },- {- "src": "/features/(.*)",- "dest": "/features/$1"- },{"src": "/chat","dest": "/chat/index.html"diff --git a/vite.config.js b/vite.config.jsindex 66e521f7e..dd3b3acaf 100644--- a/vite.config.js+++ b/vite.config.js@@ -62,7 +62,6 @@ const appConfig = {'pump-dashboard': resolve(__dirname, 'pump-dashboard.html'),community: resolve(__dirname, 'community.html'),studio: resolve(__dirname, 'public/studio/index.html'),- features: resolve(__dirname, 'public/features/index.html'),reputation: resolve(__dirname, 'public/reputation/index.html'),hydrate: resolve(__dirname, 'public/hydrate/index.html'),// BEGIN:DISCOVER_ROUTE@@ -106,8 +105,6 @@ const appConfig = {'/explore': resolve(root, 'public/discover/index.html'),'/explore/': resolve(root, 'public/discover/index.html'),// END:DISCOVER_ROUTE- '/features': resolve(root, 'public/features/index.html'),- '/features/': resolve(root, 'public/features/index.html'),'/': resolve(root, 'home.html'),'/home': resolve(root, 'home.html'),'/agent': resolve(root, 'agent-home.html'),@@ -128,7 +125,6 @@ const appConfig = {'/hydrate','/my-agents','/discover',- '/features','/docs',]);server.middlewares.use(async (req, res, next) => {