Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
feat: x402-pay overhaul, pump-dashboard updates, pay page polish, launch-week case study
nirholas823f8c411a75
diff --git a/api/pump/dashboard.js b/api/pump/dashboard.jsindex bf55cf5be..e257d9832 100644--- a/api/pump/dashboard.js+++ b/api/pump/dashboard.js@@ -5,15 +5,31 @@ import { env } from '../_lib/env.js';const BIRDEYE_API_KEY = env.BIRDEYE_API_KEY;-async function fetchWithCache(url, options, ttl = 60) {- // A real implementation would use Redis or a similar external cache- // For now, this is a placeholder+// Process-local Birdeye response cache. Keeps the function instance from+// hammering Birdeye when many tabs poll the same mint within a few seconds.+// Vercel functions warm-start across requests, so this is meaningful even+// without Redis. Cross-instance dedup would still need an external cache.+const _birdeyeCache = new Map();++async function fetchWithCache(url, options, ttlMs = 60_000) {+ const key = url;+ const now = Date.now();+ const hit = _birdeyeCache.get(key);+ if (hit && hit.expires > now) return hit.value;+const resp = await fetch(url, options);if (!resp.ok) {const text = await resp.text();throw new Error(`API error (${resp.status}): ${text}`);}- return resp.json();+ const value = await resp.json();+ _birdeyeCache.set(key, { value, expires: now + ttlMs });+ // Bound the map so it can't grow without bound under pathological keying.+ if (_birdeyeCache.size > 256) {+ const oldest = _birdeyeCache.keys().next().value;+ _birdeyeCache.delete(oldest);+ }+ return value;}export default wrap(async (req, res) => {diff --git a/api/x402-pay.js b/api/x402-pay.jsindex 5e1c61c18..1493cac6d 100644--- a/api/x402-pay.js+++ b/api/x402-pay.js@@ -1,16 +1,22 @@// POST /api/x402-pay//-// Server-side x402 payer: takes { tool, args } from the chat UI, fires a-// real paid x402 call to /api/mcp using a server-held Solana keypair, and-// returns the MCP result + on-chain settlement proof.+// Server-side x402 payer for the /pay demo. Streams the payment lifecycle+// (challenge → build → verify → settle → result) as Server-Sent Events when+// the client requests `accept: text/event-stream`; otherwise returns a single+// JSON envelope on completion.//-// This powers the demo at /pay (and the in-chat x402 button) — the agent-// pays USDC on behalf of the viewer so the UX is one-click.+// In-process: this handler skips the HTTP round-trip to /api/mcp by+// replicating the same flow internally — paymentRequirements() + verifyPayment ++// dispatch() + settlePayment(). Saves ~50–200ms vs an external fetch and+// removes a self-egress hop.//// Env (required for prod):-// X402_AGENT_SOLANA_SECRET_BASE58 base58-encoded 64-byte ed25519 secret key-// Local dev fallback (when env unset): reads the keypair JSON at+// X402_AGENT_SOLANA_SECRET_BASE58 base58-encoded 64-byte ed25519 secret+// Local dev fallback (when env unset): reads keypair JSON at// /home/codespace/.config/x402-test-wallets/solana.json+//+// Also: GET /api/x402-pay?balance=1 → returns the agent wallet's USDC + SOL+// balance so the UI can show it ticking down during the demo.import { readFileSync } from 'node:fs';import {@@ -26,6 +32,13 @@ import bs58 from 'bs58';import { cors, json, readJson, wrap } from './_lib/http.js';import { limits, clientIp } from './_lib/rate-limit.js';+import {+ paymentRequirements,+ verifyPayment,+ settlePayment,+ NETWORK_SOLANA_MAINNET,+} from './_lib/x402-spec.js';+import { dispatch } from './_mcp/dispatch.js';const ALLOWED_TOOLS = new Set(['tools/list',@@ -35,8 +48,8 @@ const ALLOWED_TOOLS = new Set(['search_public_avatars',]);-const MCP_URL = process.env.X402_PAY_TARGET_URL || 'https://three.ws/api/mcp';const SOLANA_RPC = process.env.SOLANA_RPC_URL || 'https://api.mainnet-beta.solana.com';+const USDC_MAINNET_MINT = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';let _agent = null;function loadAgentKeypair() {@@ -51,7 +64,7 @@ function loadAgentKeypair() {const arr = JSON.parse(readFileSync(path, 'utf8'));_agent = Keypair.fromSecretKey(Uint8Array.from(arr));return _agent;- } catch (err) {+ } catch {const e = new Error('agent wallet not configured (set X402_AGENT_SOLANA_SECRET_BASE58)');e.status = 500;throw e;@@ -59,9 +72,7 @@ function loadAgentKeypair() {}function buildJsonRpc(tool, args) {- if (tool === 'tools/list') {- return { jsonrpc: '2.0', id: 1, method: 'tools/list' };- }+ if (tool === 'tools/list') return { jsonrpc: '2.0', id: 1, method: 'tools/list' };return {jsonrpc: '2.0',id: 1,@@ -70,7 +81,7 @@ function buildJsonRpc(tool, args) {};}-async function buildSolanaPaymentPayload({ accept, buyer, conn }) {+async function buildSolanaPaymentPayload({ accept, buyer, conn, resourceUrl }) {const mint = new PublicKey(accept.asset);const payTo = new PublicKey(accept.payTo);const feePayer = new PublicKey(accept.extra.feePayer);@@ -82,7 +93,6 @@ async function buildSolanaPaymentPayload({ accept, buyer, conn }) {const receiverAta = getAssociatedTokenAddressSync(mint, payTo, false, TOKEN_PROGRAM_ID, ASSOCIATED_TOKEN_PROGRAM_ID,);-const mintInfo = await getMint(conn, mint);const ixs = [@@ -115,14 +125,138 @@ async function buildSolanaPaymentPayload({ accept, buyer, conn }) {x402Version: 2,scheme: 'exact',network: accept.network,- resource: { url: MCP_URL, mimeType: 'application/json' },+ resource: { url: resourceUrl, mimeType: 'application/json' },accepted: accept,payload: { transaction: txBase64 },};}+async function getAgentBalance() {+ const buyer = loadAgentKeypair();+ const conn = new Connection(SOLANA_RPC, 'confirmed');+ const sol = await conn.getBalance(buyer.publicKey);+ let usdc = 0;+ try {+ const ata = getAssociatedTokenAddressSync(+ new PublicKey(USDC_MAINNET_MINT),+ buyer.publicKey, false, TOKEN_PROGRAM_ID, ASSOCIATED_TOKEN_PROGRAM_ID,+ );+ const acct = await conn.getTokenAccountBalance(ata);+ usdc = Number(acct.value.uiAmount || 0);+ } catch {}+ return {+ address: buyer.publicKey.toBase58(),+ sol: sol / 1e9,+ usdc,+ };+}++function sseInit(res) {+ res.statusCode = 200;+ res.setHeader('content-type', 'text/event-stream; charset=utf-8');+ res.setHeader('cache-control', 'no-cache, no-transform');+ res.setHeader('connection', 'keep-alive');+ res.setHeader('x-accel-buffering', 'no');+ if (typeof res.flushHeaders === 'function') res.flushHeaders();+}++function sseSend(res, event, data) {+ res.write(`event: ${event}\n`);+ res.write(`data: ${JSON.stringify(data)}\n\n`);+}++async function runFlow({ tool, args, emit }) {+ const buyer = loadAgentKeypair();+ const conn = new Connection(SOLANA_RPC, 'confirmed');++ const requirements = paymentRequirements();+ const accept = requirements.find((r) => r.network === NETWORK_SOLANA_MAINNET);+ if (!accept) throw Object.assign(new Error('no_solana_accept_configured'), { status: 500 });++ const t0 = Date.now();+ emit('challenge', { network: accept.network, amount: accept.amount, payTo: accept.payTo });++ const paymentPayload = await buildSolanaPaymentPayload({+ accept, buyer, conn, resourceUrl: 'https://three.ws/api/mcp',+ });+ const tBuilt = Date.now();+ emit('built', { build_ms: tBuilt - t0, network: accept.network });++ const paymentHeader = Buffer.from(JSON.stringify(paymentPayload)).toString('base64');+ const verified = await verifyPayment({ paymentHeader, requirements });+ const tVerified = Date.now();+ emit('verified', { verify_ms: tVerified - tBuilt, payer: verified.payer });++ const auth = {+ userId: null,+ rateKey: `x402:${verified.payer || 'anon'}`,+ scope: '',+ source: 'x402',+ payer: verified.payer,+ };+ const rpcResp = await dispatch(buildJsonRpc(tool, args), auth, null);+ const tDispatched = Date.now();+ emit('dispatched', { dispatch_ms: tDispatched - tVerified });++ if (rpcResp?.error) {+ throw Object.assign(+ new Error(rpcResp.error.message || 'mcp_dispatch_error'),+ { status: 502, mcpError: rpcResp.error },+ );+ }++ const settled = await settlePayment({+ paymentPayload: verified.paymentPayload,+ requirement: verified.requirement,+ });+ const tSettled = Date.now();+ emit('settled', {+ settle_ms: tSettled - tDispatched,+ tx: settled.transaction,+ network: settled.network,+ payer: settled.payer,+ explorer: settled.transaction ? `https://solscan.io/tx/${settled.transaction}` : null,+ });++ const total_ms = tSettled - t0;+ emit('result', {+ ok: true,+ tool, args,+ result: rpcResp?.result ?? rpcResp,+ payment: {+ network: accept.network,+ payer: verified.payer || buyer.publicKey.toBase58(),+ payTo: accept.payTo,+ asset: accept.asset,+ amount: accept.amount,+ tx: settled.transaction || null,+ explorer: settled.transaction ? `https://solscan.io/tx/${settled.transaction}` : null,+ },+ durations: {+ build_ms: tBuilt - t0,+ verify_ms: tVerified - tBuilt,+ dispatch_ms: tDispatched - tVerified,+ settle_ms: tSettled - tDispatched,+ total_ms,+ },+ });+}+export default wrap(async (req, res) => {- if (cors(req, res, { methods: 'POST,OPTIONS', origins: '*' })) return;+ if (cors(req, res, { methods: 'GET,POST,OPTIONS', origins: '*' })) return;++ if (req.method === 'GET') {+ const u = new URL(req.url, 'http://x');+ if (u.searchParams.get('balance') === '1') {+ try {+ const b = await getAgentBalance();+ return json(res, 200, b);+ } catch (err) {+ return json(res, err.status || 500, { error: err.message });+ }+ }+ return json(res, 404, { error: 'not_found' });+ }if (req.method !== 'POST') return json(res, 405, { error: 'method_not_allowed' });const ip = clientIp(req);@@ -148,85 +282,39 @@ export default wrap(async (req, res) => {return json(res, 400, { error: 'invalid_tool', allowed: [...ALLOWED_TOOLS] });}- const buyer = loadAgentKeypair();- const conn = new Connection(SOLANA_RPC, 'confirmed');+ const wantsStream =+ (req.headers.accept || '').includes('text/event-stream') ||+ input.stream === true;- const t0 = Date.now();- const initRes = await fetch(MCP_URL, {- method: 'POST',- headers: { 'content-type': 'application/json', accept: 'application/json' },- body: JSON.stringify(buildJsonRpc(tool, args)),- });- const tInit = Date.now();- if (initRes.status !== 402) {- const body = await initRes.text();- return json(res, 502, {- error: 'unexpected_initial_response',- status: initRes.status,- body: body.slice(0, 1000),- });- }- const initBody = await initRes.json();- const accept = (initBody.accepts || []).find((a) => a.network && a.network.startsWith('solana:'));- if (!accept) {- return json(res, 502, { error: 'no_solana_accept_in_402' });- }-- const paymentPayload = await buildSolanaPaymentPayload({ accept, buyer, conn });- const tBuilt = Date.now();- const xPayment = Buffer.from(JSON.stringify(paymentPayload)).toString('base64');-- const paidRes = await fetch(MCP_URL, {- method: 'POST',- headers: {- 'content-type': 'application/json',- accept: 'application/json',- 'x-payment': xPayment,- },- body: JSON.stringify(buildJsonRpc(tool, args)),- });- const tPaid = Date.now();- const settleHeader = paidRes.headers.get('x-payment-response');- let settle = null;- if (settleHeader) {+ if (wantsStream) {+ sseInit(res);+ const emit = (ev, data) => sseSend(res, ev, data);try {- settle = JSON.parse(Buffer.from(settleHeader, 'base64').toString('utf8'));- } catch {}- }- const text = await paidRes.text();- let parsed;- try { parsed = JSON.parse(text); } catch { parsed = { raw: text }; }-- if (!paidRes.ok) {- return json(res, paidRes.status, {- ok: false,- error: parsed.error || 'paid_call_failed',- body: parsed,- payment: { network: accept.network, payer: buyer.publicKey.toBase58(), amount: accept.amount, asset: accept.asset },- });+ await runFlow({ tool, args, emit });+ } catch (err) {+ emit('error', {+ ok: false,+ error: err.message || 'flow_failed',+ mcpError: err.mcpError || null,+ });+ } finally {+ res.end();+ }+ return;}- return json(res, 200, {- ok: true,- tool,- args,- result: parsed.result ?? parsed,- payment: {- network: accept.network,- payer: buyer.publicKey.toBase58(),- payTo: accept.payTo,- asset: accept.asset,- amount: accept.amount,- tx: settle?.transaction || null,- explorer: settle?.transaction- ? `https://solscan.io/tx/${settle.transaction}`- : null,- },- durations: {- challenge_ms: tInit - t0,- build_ms: tBuilt - tInit,- settle_ms: tPaid - tBuilt,- total_ms: tPaid - t0,- },- });+ // Non-streaming JSON path: collect events into a final envelope.+ let final = null;+ let errEnv = null;+ const emit = (ev, data) => {+ if (ev === 'result') final = data;+ else if (ev === 'error') errEnv = data;+ };+ try {+ await runFlow({ tool, args, emit });+ } catch (err) {+ errEnv = { ok: false, error: err.message || 'flow_failed', mcpError: err.mcpError || null };+ }+ if (errEnv) return json(res, errEnv.mcpError ? 502 : 500, errEnv);+ return json(res, 200, final);});diff --git a/public/pay/index.html b/public/pay/index.htmlindex 3492188c7..e036891df 100644--- a/public/pay/index.html+++ b/public/pay/index.html@@ -251,7 +251,10 @@<div class="sub">Live x402 demo — agent pays USDC on Solana per request</div></div></div>- <div class="pill"><span class="dot"></span> agent wallet online</div>+ <div class="pill" id="walletPill" title="Agent wallet on Solana mainnet">+ <span class="dot"></span>+ <span id="walletText">loading…</span>+ </div></header><main>@@ -271,6 +274,7 @@<button data-cmd="tools/list">/list_tools</button><button data-cmd="validate_model:demo">/validate DamagedHelmet.glb</button><button data-cmd="inspect_model:demo">/inspect DamagedHelmet.glb</button>+ <button data-cmd="optimize_model:demo">/optimize DamagedHelmet.glb</button><button data-cmd="search_public_avatars:">/search_avatars</button></div><div class="input-row">@@ -312,10 +316,11 @@ function addMsg(role, html) {}const STEP_DEFS = [- { id: 'challenge', label: 'Receive 402 challenge' },- { id: 'build', label: 'Build & sign Solana payment' },- { id: 'settle', label: 'Facilitator verify + settle' },- { id: 'result', label: 'Render MCP result' },+ { id: 'challenge', label: 'Pull payment requirements (402)' },+ { id: 'built', label: 'Build & sign Solana payment' },+ { id: 'verified', label: 'Facilitator verify (off-chain)' },+ { id: 'dispatched', label: 'Run MCP tool in-process' },+ { id: 'settled', label: 'Facilitator settle (on-chain)' },];function resetSteps() {@@ -424,6 +429,33 @@ function parsePrompt(text) {return { tool: 'validate_model', args: { url: t } };}+// Parse a Server-Sent Events stream from a fetch ReadableStream.+async function* sseEvents(response) {+ const reader = response.body.getReader();+ const decoder = new TextDecoder();+ let buf = '';+ while (true) {+ const { value, done } = await reader.read();+ if (done) break;+ buf += decoder.decode(value, { stream: true });+ let idx;+ while ((idx = buf.indexOf('\n\n')) >= 0) {+ const block = buf.slice(0, idx);+ buf = buf.slice(idx + 2);+ let event = 'message';+ const dataLines = [];+ for (const line of block.split('\n')) {+ if (line.startsWith('event:')) event = line.slice(6).trim();+ else if (line.startsWith('data:')) dataLines.push(line.slice(5).trim());+ }+ if (!dataLines.length) continue;+ let data = null;+ try { data = JSON.parse(dataLines.join('\n')); } catch {}+ yield { event, data };+ }+ }+}+async function run(call, displayLabel) {if (!call) return;sendBtn.disabled = true;@@ -432,35 +464,72 @@ async function run(call, displayLabel) {addMsg('user', escape(displayLabel));resetSteps();- setStep('challenge', 'active', 'sending unpaid request…');+ setStep('challenge', 'active', 'requesting paymentRequirements…');const t0 = performance.now();+ let final = null;+ let errored = false;+ let activeId = 'challenge';+try {const res = await fetch('/api/x402-pay', {method: 'POST',- headers: { 'content-type': 'application/json' },+ headers: { 'content-type': 'application/json', accept: 'text/event-stream' },body: JSON.stringify(call),});- const data = await res.json();- const elapsed = Math.round(performance.now() - t0);+ if (!res.ok || !res.body) {+ const text = await res.text();+ let parsed; try { parsed = JSON.parse(text); } catch { parsed = { error: text }; }+ setStep(activeId, 'error', parsed.error || res.statusText);+ addMsg('agent', `<div class="err">x402 call failed: ${escape(parsed.error || res.statusText)}</div>`);+ return;+ }++ for await (const { event, data } of sseEvents(res)) {+ if (event === 'challenge') {+ setStep('challenge', 'done', `${(Number(data.amount)/1e6).toFixed(6)} USDC`);+ activeId = 'built';+ setStep('built', 'active', 'signing partial Solana tx…');+ } else if (event === 'built') {+ setStep('built', 'done', `${data.build_ms} ms`);+ activeId = 'verified';+ setStep('verified', 'active', 'facilitator /verify…');+ } else if (event === 'verified') {+ setStep('verified', 'done', `${data.verify_ms} ms`);+ activeId = 'dispatched';+ setStep('dispatched', 'active', 'running MCP tool…');+ } else if (event === 'dispatched') {+ setStep('dispatched', 'done', `${data.dispatch_ms} ms`);+ activeId = 'settled';+ setStep('settled', 'active', 'facilitator /settle (on-chain)…');+ } else if (event === 'settled') {+ setStep('settled', 'done', `${data.settle_ms} ms · ${data.tx ? data.tx.slice(0,8)+'…' : ''}`);+ } else if (event === 'result') {+ final = data;+ } else if (event === 'error') {+ setStep(activeId, 'error', data.error || 'failed');+ addMsg('agent', `<div class="err">x402 call failed: ${escape(data.error || 'unknown')}${+ data.mcpError ? ` · MCP: ${escape(data.mcpError.message || '')}` : ''+ }</div>`);+ errored = true;+ }+ }- if (!res.ok || !data.ok) {- setStep('challenge', 'done');- setStep('build', 'error');- addMsg('agent', `<div class="err">x402 call failed: ${escape(data.error || res.statusText)}</div>`);+ if (errored) return;+ if (!final) {+ setStep(activeId, 'error', 'stream ended without result');+ addMsg('agent', `<div class="err">Stream ended without a result event.</div>`);return;}- const d = data.durations;- setStep('challenge', 'done', `${d.challenge_ms} ms`);- setStep('build', 'done', `${d.build_ms} ms`);- setStep('settle', 'done', `${d.settle_ms} ms`);- setStep('result', 'done', `${elapsed} ms total`);- renderReceipt(data.payment, d);- addMsg('agent', renderResultBubble(call.tool, data.result));+ renderReceipt(final.payment, final.durations);+ addMsg('agent', renderResultBubble(call.tool, final.result));+ refreshBalance();} catch (err) {- setStep('challenge', 'error', String(err.message || err));+ setStep(activeId, 'error', String(err.message || err));addMsg('agent', `<div class="err">Network error: ${escape(String(err.message || err))}</div>`);} finally {+ const elapsed = Math.round(performance.now() - t0);+ document.title = `${elapsed}ms · three.ws · pay-per-call`;sendBtn.disabled = false;for (const b of quickEl.querySelectorAll('button')) b.disabled = false;promptEl.disabled = false;@@ -468,6 +537,22 @@ async function run(call, displayLabel) {}}+const walletText = document.getElementById('walletText');+async function refreshBalance() {+ try {+ const r = await fetch('/api/x402-pay?balance=1');+ if (!r.ok) throw new Error('bal_fetch_failed');+ const b = await r.json();+ if (b.address) {+ walletText.textContent = `${b.usdc.toFixed(3)} USDC · ${b.sol.toFixed(3)} SOL · ${b.address.slice(0,4)}…${b.address.slice(-4)}`;+ } else {+ walletText.textContent = 'agent wallet (no env)';+ }+ } catch {+ walletText.textContent = 'agent wallet';+ }+}+quickEl.addEventListener('click', (e) => {const btn = e.target.closest('button');if (!btn) return;@@ -475,6 +560,7 @@ quickEl.addEventListener('click', (e) => {if (cmd === 'tools/list') return run({ tool: 'tools/list', args: {} }, '/list_tools');if (cmd === 'validate_model:demo') return run({ tool: 'validate_model', args: { url: DEMO_MODEL } }, `validate ${DEMO_MODEL.split('/').pop()}`);if (cmd === 'inspect_model:demo') return run({ tool: 'inspect_model', args: { url: DEMO_MODEL } }, `inspect ${DEMO_MODEL.split('/').pop()}`);+ if (cmd === 'optimize_model:demo') return run({ tool: 'optimize_model', args: { url: DEMO_MODEL } }, `optimize ${DEMO_MODEL.split('/').pop()}`);if (cmd === 'search_public_avatars:') return run({ tool: 'search_public_avatars', args: { limit: 12 } }, '/search_avatars');});@@ -491,6 +577,26 @@ promptEl.addEventListener('keydown', (e) => {});resetSteps();+refreshBalance();+setInterval(refreshBalance, 30_000);++// Deep-link prefill: /pay?validate=https://...glb auto-fires the call.+const params = new URLSearchParams(location.search);+for (const [tool, alias] of [+ ['validate_model', 'validate'],+ ['inspect_model', 'inspect'],+ ['optimize_model', 'optimize'],+]) {+ const url = params.get(alias);+ if (url) {+ setTimeout(() => run({ tool, args: { url } }, `${alias} ${url.split('/').pop()}`), 200);+ break;+ }+}+if (params.get('list') === '1') {+ setTimeout(() => run({ tool: 'tools/list', args: {} }, '/list_tools'), 200);+}+promptEl.focus();</script>diff --git a/pump-dashboard.html b/pump-dashboard.htmlindex 5eda6d567..8296d13f3 100644--- a/pump-dashboard.html+++ b/pump-dashboard.html@@ -940,21 +940,15 @@</div><div class="panel"><div class="panel-header">- <h2>Custom Agents</h2>+ <h2>Your Agents</h2><div class="spacer"></div>- <button class="btn btn-primary btn-sm" onclick="addCustomAgent()">+ Add Agent</button>+ <a class="btn btn-primary btn-sm" href="/agent-home.html">+ New Agent</a></div><div class="panel-body no-pad"><table>- <thead><tr><th>Name</th><th>Model</th><th>Created</th><th>Actions</th></tr></thead>+ <thead><tr><th>Name</th><th>Description</th><th>Created</th><th>Actions</th></tr></thead><tbody id="custom-agents-table">- <tr>- <td>My Cool Agent</td>- <td>agent-xyz.vrm</td>- <td>2024-07-29</td>- <td><button class="btn btn-sm">Edit</button> <button class="btn btn-danger btn-sm">Delete</button></td>- </tr>- <tr><td colspan="4" class="empty">No custom agents yet.</td></tr>+ <tr><td colspan="4" class="empty">Loading…</td></tr></tbody></table></div>@@ -992,11 +986,14 @@<div class="toast-container" id="toasts"></div>-<script>+<script type="module">// ═══════════════════════════════════════════════════════════════════════// PumpFun Bot Dashboard — Client Application// ═══════════════════════════════════════════════════════════════════════+import { grindVanity } from '/src/solana/vanity/grinder.js';+import { validatePattern } from '/src/solana/vanity/validation.js';+const state = {// Defaults wire to the 3D-Agent host that's serving this page so the// dashboard works out of the box with /api/pump/* and the public PumpPortal@@ -1111,6 +1108,39 @@ async function loadAgent() {} catch (e) {document.getElementById('agent-view-container').innerHTML = '<div class="empty">Error loading agent.</div>';}+ loadCustomAgents();+}++async function loadCustomAgents() {+ const tbody = document.getElementById('custom-agents-table');+ if (!tbody) return;+ try {+ const resp = await apiFetch('/api/agents');+ if (!resp.ok) {+ tbody.innerHTML = '<tr><td colspan="4" class="empty">Sign in to see your agents.</td></tr>';+ return;+ }+ const j = await resp.json();+ const agents = j.agents || j.data || [];+ if (!agents.length) {+ tbody.innerHTML = '<tr><td colspan="4" class="empty">No agents yet — click <strong>+ New Agent</strong>.</td></tr>';+ return;+ }+ tbody.innerHTML = agents.map((a) => {+ const created = a.created_at ? new Date(a.created_at).toLocaleDateString() : '—';+ return `<tr>+ <td>${escapeHtml(a.name || a.id)}</td>+ <td>${escapeHtml((a.description || '').slice(0, 80))}</td>+ <td>${created}</td>+ <td>+ <a class="btn btn-sm" href="/agent-edit.html?id=${escapeHtml(a.id)}">Edit</a>+ <a class="btn btn-sm" href="/agent/${escapeHtml(a.id)}">Open</a>+ </td>+ </tr>`;+ }).join('');+ } catch {+ tbody.innerHTML = '<tr><td colspan="4" class="empty">Failed to load agents.</td></tr>';+ }}function agentAction(type) {@@ -1491,16 +1521,25 @@ function saveAlertConfig() {// ── Watches ───────────────────────────────────────────────────────────async function refreshWatches() {+ // /api/v1/watches is part of the PumpKit external API surface. When the+ // dashboard is pointed at the bundled 3D-Agent backend (default), there's+ // no watch CRUD — surface that clearly instead of toasting an error.+ const tbody = document.getElementById('watches-table');+ tbody.innerHTML = '<tr><td colspan="6" class="empty">Loading…</td></tr>';try {const resp = await apiFetch('/api/v1/watches?limit=100');+ if (resp.status === 404) {+ tbody.innerHTML = '<tr><td colspan="6" class="empty">Watches require a PumpKit-style API. Point the API URL in <a href="#" onclick="navigateTo(\'config\');return false;" style="color:var(--blue)">Config</a> at your PumpKit deployment.</td></tr>';+ document.getElementById('watches-count').textContent = '0';+ return;+ }if (!resp.ok) {- toast('Failed to load watches: ' + resp.status, 'error');+ tbody.innerHTML = `<tr><td colspan="6" class="empty">Upstream unavailable (${resp.status}).</td></tr>`;return;}const data = await resp.json();const watches = data.data || data.watches || [];document.getElementById('watches-count').textContent = watches.length;- const tbody = document.getElementById('watches-table');if (watches.length === 0) {tbody.innerHTML = '<tr><td colspan="6" class="empty">No watches configured. Click "Add Watch" to create one.</td></tr>';@@ -1520,7 +1559,7 @@ async function refreshWatches() {</tr>`).join('');} catch (e) {- toast('Failed to load watches', 'error');+ tbody.innerHTML = `<tr><td colspan="6" class="empty">Error: ${escapeHtml(e.message || 'load failed')}</td></tr>`;}}@@ -1577,46 +1616,67 @@ async function deleteWatch(id) {}// ── Claims ────────────────────────────────────────────────────────────+// Backed by /api/agents/pumpfun?op=claims (proxy to the upstream+// pumpfun-claims-bot MCP). Wallet/type filtering happens client-side+// because the MCP feed is a global stream, not a per-wallet query.async function refreshClaims() {- const wallet = document.getElementById('claims-wallet-filter').value.trim();+ const wallet = document.getElementById('claims-wallet-filter').value.trim().toLowerCase();const claimType = document.getElementById('claims-type-filter').value;- const params = new URLSearchParams();- if (wallet) params.set('wallet', wallet);- if (claimType) params.set('claimType', claimType);- params.set('limit', '100');+ const tbody = document.getElementById('claims-table');+ tbody.innerHTML = '<tr><td colspan="6" class="empty">Loading…</td></tr>';try {- const resp = await apiFetch('/api/v1/claims?' + params);+ const resp = await apiFetch('/api/agents/pumpfun?op=claims&limit=50');+ if (resp.status === 401) {+ tbody.innerHTML = '<tr><td colspan="6" class="empty">Sign in to view fee claims.</td></tr>';+ return;+ }if (!resp.ok) {- toast('Failed to load claims: ' + resp.status, 'error');+ tbody.innerHTML = `<tr><td colspan="6" class="empty">Upstream unavailable (${resp.status}).</td></tr>`;return;}const data = await resp.json();- const claims = data.data || data.claims || [];- document.getElementById('claims-count').textContent = (data.pagination?.total || claims.length).toString();- const tbody = document.getElementById('claims-table');+ let claims = (data.items || data.claims || data.data || []).slice();++ if (wallet) {+ claims = claims.filter((c) => String(c.claimerWallet || c.wallet || '').toLowerCase().includes(wallet));+ }+ if (claimType) {+ claims = claims.filter((c) => {+ const t = (c.claimType || (c.isCashback ? 'cashback' : 'creator_fee') || '').toLowerCase();+ return t === claimType.toLowerCase();+ });+ }++ document.getElementById('claims-count').textContent = String(claims.length);if (claims.length === 0) {- tbody.innerHTML = '<tr><td colspan="6" class="empty">No claims found for this filter</td></tr>';+ tbody.innerHTML = '<tr><td colspan="6" class="empty">No claims match this filter</td></tr>';return;}- tbody.innerHTML = claims.map(c => {- const typeClass = c.isCashback ? 'tag-claim' : 'tag-buy';- const typeLabel = c.isCashback ? 'Cashback' : c.claimType || 'Creator Fee';+ tbody.innerHTML = claims.map((c) => {+ const ts = c.timestamp || c.time || c.at;+ const isCashback = c.isCashback || (c.claimType || '').toLowerCase() === 'cashback';+ const typeClass = isCashback ? 'tag-claim' : 'tag-buy';+ const typeLabel = isCashback ? 'Cashback' : (c.claimType || 'Creator Fee');+ const wal = c.claimerWallet || c.wallet || '';+ const tx = c.txSignature || c.signature || '';+ const sym = c.tokenSymbol || c.tokenName || shortAddr(c.tokenMint || '');+ const amt = Number(c.amountSol ?? c.amount ?? 0);return `<tr>- <td>${new Date(c.timestamp).toLocaleString()}</td>- <td><a class="addr" href="https://solscan.io/account/${escapeHtml(c.claimerWallet)}" target="_blank">${shortAddr(c.claimerWallet)}</a></td>+ <td>${ts ? new Date(ts).toLocaleString() : '—'}</td>+ <td><a class="addr" href="https://solscan.io/account/${escapeHtml(wal)}" target="_blank">${shortAddr(wal)}</a></td><td><span class="tag ${typeClass}">${escapeHtml(typeLabel)}</span></td>- <td>${escapeHtml(c.tokenSymbol || c.tokenName || shortAddr(c.tokenMint || ''))}</td>- <td style="color:var(--accent)">${(c.amountSol || 0).toFixed(4)} SOL</td>- <td><a class="addr" href="https://solscan.io/tx/${escapeHtml(c.txSignature)}" target="_blank">${shortAddr(c.txSignature || '')}</a></td>+ <td>${escapeHtml(sym)}</td>+ <td style="color:var(--accent)">${amt.toFixed(4)} SOL</td>+ <td>${tx ? `<a class="addr" href="https://solscan.io/tx/${escapeHtml(tx)}" target="_blank">${shortAddr(tx)}</a>` : '—'}</td></tr>`;}).join('');- } catch {- toast('Failed to load claims', 'error');+ } catch (e) {+ tbody.innerHTML = `<tr><td colspan="6" class="empty">Error: ${escapeHtml(e.message || 'load failed')}</td></tr>`;}}@@ -1867,10 +1927,12 @@ async function getSellQuote() {}// ── Vanity Generator ──────────────────────────────────────────────────+// Real Ed25519 keypair grinder. Spawns Web Workers from the shared+// /src/solana/vanity/grinder.js so the wall-clock matches /vanity-wallet.-let vanityRunning = false;+let vanityAbort = null;-function startVanity() {+async function startVanity() {const prefix = document.getElementById('vanity-prefix').value.trim();const suffix = document.getElementById('vanity-suffix').value.trim();@@ -1878,60 +1940,77 @@ function startVanity() {toast('Enter a prefix or suffix', 'error');return;}+ if (prefix) {+ const v = validatePattern(prefix);+ if (!v.valid) { toast(`Prefix: ${v.errors.join('; ')}`, 'error'); return; }+ }+ if (suffix) {+ const v = validatePattern(suffix);+ if (!v.valid) { toast(`Suffix: ${v.errors.join('; ')}`, 'error'); return; }+ }- vanityRunning = true;+ vanityAbort = new AbortController();document.getElementById('vanity-start').style.display = 'none';document.getElementById('vanity-stop').style.display = '';- document.getElementById('vanity-status').textContent = 'Generating... (this runs in the browser, ~1K keys/sec)';+ document.getElementById('vanity-status').textContent = 'Spinning up workers…';document.getElementById('vanity-result').innerHTML = '';- // Use Web Worker-style approach (inline for simplicity)- let attempts = 0;- const base58chars = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';-- function generateBatch() {- if (!vanityRunning) return;-- // Generate random base58 addresses (simulation — real generation needs tweetnacl)- for (let i = 0; i < 100; i++) {- attempts++;- let addr = '';- for (let j = 0; j < 44; j++) {- addr += base58chars[Math.floor(Math.random() * base58chars.length)];- }+ try {+ const result = await grindVanity({+ prefix: prefix || undefined,+ suffix: suffix || undefined,+ signal: vanityAbort.signal,+ onProgress: ({ attempts, rate, eta }) => {+ document.getElementById('vanity-status').textContent =+ `${attempts.toLocaleString()} tries · ${Math.round(rate).toLocaleString()}/s · eta ${eta}`;+ },+ });- const matchPrefix = !prefix || addr.toLowerCase().startsWith(prefix.toLowerCase());- const matchSuffix = !suffix || addr.toLowerCase().endsWith(suffix.toLowerCase());-- if (matchPrefix && matchSuffix) {- vanityRunning = false;- document.getElementById('vanity-start').style.display = '';- document.getElementById('vanity-stop').style.display = 'none';- document.getElementById('vanity-status').textContent = `Found after ${attempts.toLocaleString()} attempts`;- document.getElementById('vanity-result').innerHTML = `- <div style="padding:12px;background:var(--bg);border-radius:var(--radius);border:1px solid var(--accent-dim);">- <div style="color:#888;font-size:11px">Generated Address (demo)</div>- <div style="color:var(--accent);font-size:14px;margin:4px 0;word-break:break-all">${addr}</div>- <div style="color:var(--red);font-size:10px;margin-top:8px">⚠ This is a demo. Use the Rust vanity generator for production keypairs.</div>- </div>- `;- toast('Vanity address found!', 'success');- return;- }+ const secretJson = JSON.stringify(Array.from(result.secretKey));+ const seconds = (result.durationMs / 1000).toFixed(1);+ document.getElementById('vanity-status').textContent =+ `Found in ${seconds}s · ${result.attempts.toLocaleString()} attempts · ${result.workers} worker${result.workers > 1 ? 's' : ''}`;+ document.getElementById('vanity-result').innerHTML = `+ <div style="padding:12px;background:var(--bg);border-radius:var(--radius);border:1px solid var(--accent-dim);">+ <div style="color:#888;font-size:11px">Public key</div>+ <div style="color:var(--accent);font-size:14px;margin:4px 0;word-break:break-all">${escapeHtml(result.publicKey)}</div>+ <button class="btn btn-sm" id="vanity-copy-pub" style="margin-right:6px">Copy address</button>+ <button class="btn btn-sm" id="vanity-download-key">Download keypair JSON</button>+ <div style="color:var(--yellow);font-size:10px;margin-top:8px">⚠ Secret key never leaves your browser. Save it securely or import into a wallet.</div>+ </div>+ `;+ document.getElementById('vanity-copy-pub').addEventListener('click', async () => {+ try { await navigator.clipboard.writeText(result.publicKey); toast('Address copied', 'success'); } catch {}+ });+ document.getElementById('vanity-download-key').addEventListener('click', () => {+ const blob = new Blob([secretJson], { type: 'application/json' });+ const url = URL.createObjectURL(blob);+ const a = document.createElement('a');+ a.href = url;+ a.download = `vanity-${result.publicKey.slice(0, 8)}.json`;+ document.body.appendChild(a); a.click(); a.remove();+ URL.revokeObjectURL(url);+ });+ toast('Vanity address found', 'success');+ } catch (e) {+ if (e?.name === 'AbortError') {+ document.getElementById('vanity-status').textContent = 'Stopped';+ } else {+ document.getElementById('vanity-status').textContent = `Error: ${e.message || 'grind failed'}`;+ toast('Grind failed', 'error');}-- document.getElementById('vanity-status').textContent = `Searching... ${attempts.toLocaleString()} attempts`;- if (vanityRunning) requestAnimationFrame(generateBatch);+ } finally {+ vanityAbort = null;+ document.getElementById('vanity-start').style.display = '';+ document.getElementById('vanity-stop').style.display = 'none';}-- requestAnimationFrame(generateBatch);}function stopVanity() {- vanityRunning = false;+ vanityAbort?.abort();+ vanityAbort = null;document.getElementById('vanity-start').style.display = '';document.getElementById('vanity-stop').style.display = 'none';- document.getElementById('vanity-status').textContent = 'Stopped';}// ── Config ────────────────────────────────────────────────────────────@@ -1995,6 +2074,20 @@ function escapeHtml(str) {if (!str) return '';return str.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');}++// Expose handlers used by inline `onclick=` attributes. Required because the+// surrounding <script> is a module — module scope is not the global scope.+Object.assign(window, {+ navigateTo,+ openModal, closeModal,+ refreshWatches, createWatch, deleteWatch,+ refreshClaims, exportClaims,+ saveAlertConfig, clearFeed,+ scanToken, getBuyQuote, getSellQuote,+ startVanity, stopVanity,+ saveConfig,+ agentAction, playAnimation,+});</script></body></html>diff --git a/three-ws-launch-week.html b/three-ws-launch-week.htmlnew file mode 100644index 000000000..0845888d0--- /dev/null+++ b/three-ws-launch-week.html@@ -0,0 +1,1383 @@+<!DOCTYPE html>+<html lang="en">+<head>+<meta charset="UTF-8">+<meta name="viewport" content="width=device-width, initial-scale=1.0">+<title>three.ws — Launch Week Recap</title>+<meta property="og:title" content="three.ws — Launch Week Recap">+<meta property="og:description" content="Open-source 3D AI agent platform for the browser. Week one in numbers and what we shipped.">+<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=DM+Sans:wght@300;400;500;600;700&display=swap" rel="stylesheet">+<style>+ :root {+ --bg: #0a0a0b;+ --bg-elevated: #111113;+ --bg-card: #161619;+ --bg-card-hover: #1c1c20;+ --border: #2a2a2f;+ --border-accent: #3d3d44;+ --text: #e8e8ed;+ --text-muted: #8a8a96;+ --text-dim: #5c5c66;+ --accent: #00ff88;+ --accent-dim: #00cc6d;+ --accent-glow: rgba(0, 255, 136, 0.12);+ --orange: #ff9933;+ --blue: #3b82f6;+ --purple: #a855f7;+ --solana: #9945FF;+ --solana-green: #14F195;+ }++ * { margin: 0; padding: 0; box-sizing: border-box; }++ html { scroll-behavior: smooth; }++ body {+ font-family: 'DM Sans', -apple-system, sans-serif;+ background: var(--bg);+ color: var(--text);+ line-height: 1.7;+ -webkit-font-smoothing: antialiased;+ overflow-x: hidden;+ }++ ::selection { background: var(--accent); color: var(--bg); }++ a { color: inherit; text-decoration: none; }++ .container {+ max-width: 1200px;+ margin: 0 auto;+ padding: 0 2rem;+ }++ /* ───────────── Hero ───────────── */+ .hero {+ min-height: 100vh;+ display: flex;+ flex-direction: column;+ justify-content: center;+ align-items: center;+ padding: 6rem 2rem 4rem;+ position: relative;+ overflow: hidden;+ }++ .hero::before {+ content: '';+ position: absolute;+ inset: -50%;+ background: radial-gradient(ellipse at 25% 40%, rgba(0,255,136,0.06) 0%, transparent 55%),+ radial-gradient(ellipse at 75% 60%, rgba(153,69,255,0.05) 0%, transparent 55%),+ radial-gradient(ellipse at 50% 90%, rgba(20,241,149,0.03) 0%, transparent 50%);+ animation: heroGlow 18s ease-in-out infinite alternate;+ pointer-events: none;+ }++ @keyframes heroGlow {+ 0% { transform: translate(0, 0) scale(1); }+ 100% { transform: translate(-2%, 2%) scale(1.05); }+ }++ /* Subtle grid backdrop */+ .hero::after {+ content: '';+ position: absolute;+ inset: 0;+ background-image:+ linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),+ linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);+ background-size: 56px 56px;+ mask-image: radial-gradient(ellipse at center, black 10%, transparent 75%);+ -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 75%);+ pointer-events: none;+ }++ .hero-content {+ position: relative;+ z-index: 1;+ max-width: 980px;+ text-align: center;+ }++ .hero-badge {+ display: inline-flex;+ align-items: center;+ gap: 0.5rem;+ padding: 0.45rem 1.1rem;+ border: 1px solid var(--border);+ border-radius: 100px;+ font-family: 'JetBrains Mono', monospace;+ font-size: 0.72rem;+ color: var(--accent);+ letter-spacing: 0.1em;+ text-transform: uppercase;+ margin-bottom: 2.5rem;+ background: var(--bg-elevated);+ opacity: 0;+ animation: fadeUp 0.7s ease-out 0.1s forwards;+ }++ .hero-badge .dot {+ width: 6px;+ height: 6px;+ border-radius: 50%;+ background: var(--accent);+ box-shadow: 0 0 12px var(--accent);+ animation: pulse 2s ease-in-out infinite;+ }++ @keyframes pulse {+ 0%, 100% { opacity: 1; transform: scale(1); }+ 50% { opacity: 0.55; transform: scale(0.85); }+ }++ .hero h1 {+ font-family: 'Instrument Serif', serif;+ font-size: clamp(3.2rem, 8.5vw, 7.2rem);+ font-weight: 400;+ line-height: 0.98;+ letter-spacing: -0.025em;+ margin-bottom: 1.5rem;+ opacity: 0;+ animation: fadeUp 0.9s ease-out 0.25s forwards;+ }++ .hero h1 em {+ font-style: italic;+ background: linear-gradient(135deg, var(--accent) 0%, var(--solana-green) 60%, var(--solana) 110%);+ -webkit-background-clip: text;+ background-clip: text;+ -webkit-text-fill-color: transparent;+ }++ .hero-sub {+ font-size: 1.2rem;+ color: var(--text-muted);+ max-width: 680px;+ margin: 0 auto 3rem;+ line-height: 1.6;+ opacity: 0;+ animation: fadeUp 0.9s ease-out 0.4s forwards;+ }++ .hero-meta {+ display: flex;+ justify-content: center;+ gap: 2.5rem;+ flex-wrap: wrap;+ font-family: 'JetBrains Mono', monospace;+ font-size: 0.78rem;+ color: var(--text-dim);+ letter-spacing: 0.05em;+ opacity: 0;+ animation: fadeUp 0.9s ease-out 0.55s forwards;+ }++ .hero-meta span strong {+ color: var(--text);+ font-weight: 500;+ }++ @keyframes fadeUp {+ from { opacity: 0; transform: translateY(24px); }+ to { opacity: 1; transform: translateY(0); }+ }++ .scroll-cue {+ position: absolute;+ bottom: 2.5rem;+ left: 50%;+ transform: translateX(-50%);+ font-family: 'JetBrains Mono', monospace;+ font-size: 0.7rem;+ color: var(--text-dim);+ letter-spacing: 0.2em;+ text-transform: uppercase;+ opacity: 0;+ animation: fadeUp 1s ease-out 1s forwards;+ }++ .scroll-cue .arrow {+ display: block;+ margin: 0.5rem auto 0;+ width: 1px;+ height: 40px;+ background: linear-gradient(to bottom, transparent, var(--text-dim));+ animation: scrollPulse 2.4s ease-in-out infinite;+ }++ @keyframes scrollPulse {+ 0%, 100% { opacity: 0.3; transform: scaleY(0.6); }+ 50% { opacity: 1; transform: scaleY(1); }+ }++ /* Top headline numbers below sub */+ .hero-numbers {+ display: grid;+ grid-template-columns: repeat(4, 1fr);+ gap: 1px;+ background: var(--border);+ border: 1px solid var(--border);+ border-radius: 14px;+ overflow: hidden;+ margin-top: 4rem;+ opacity: 0;+ animation: fadeUp 0.9s ease-out 0.7s forwards;+ }++ .hero-numbers > div {+ background: var(--bg-elevated);+ padding: 1.6rem 1rem;+ text-align: left;+ }++ .hero-numbers .label {+ font-family: 'JetBrains Mono', monospace;+ font-size: 0.65rem;+ color: var(--text-dim);+ letter-spacing: 0.15em;+ text-transform: uppercase;+ margin-bottom: 0.5rem;+ }++ .hero-numbers .value {+ font-family: 'Instrument Serif', serif;+ font-size: clamp(1.7rem, 3.2vw, 2.4rem);+ font-weight: 400;+ line-height: 1;+ letter-spacing: -0.02em;+ }++ .hero-numbers .value.accent { color: var(--accent); }++ @media (max-width: 720px) {+ .hero-numbers { grid-template-columns: repeat(2, 1fr); }+ }++ /* ───────────── Section base ───────────── */+ section {+ padding: 7rem 0;+ position: relative;+ }++ .section-header {+ margin-bottom: 4rem;+ max-width: 780px;+ }++ .section-eyebrow {+ display: inline-block;+ font-family: 'JetBrains Mono', monospace;+ font-size: 0.72rem;+ color: var(--accent);+ letter-spacing: 0.18em;+ text-transform: uppercase;+ margin-bottom: 1.2rem;+ padding-left: 1.4rem;+ position: relative;+ }++ .section-eyebrow::before {+ content: '';+ position: absolute;+ left: 0;+ top: 50%;+ width: 0.9rem;+ height: 1px;+ background: var(--accent);+ }++ .section-title {+ font-family: 'Instrument Serif', serif;+ font-size: clamp(2.4rem, 5vw, 4rem);+ font-weight: 400;+ line-height: 1.05;+ letter-spacing: -0.02em;+ margin-bottom: 1.2rem;+ }++ .section-title em {+ font-style: italic;+ color: var(--accent);+ }++ .section-lede {+ font-size: 1.1rem;+ color: var(--text-muted);+ line-height: 1.7;+ max-width: 680px;+ }++ /* ───────────── What We Shipped ───────────── */+ .layers {+ display: grid;+ grid-template-columns: 1fr;+ gap: 1px;+ background: var(--border);+ border: 1px solid var(--border);+ border-radius: 16px;+ overflow: hidden;+ }++ .layer {+ background: var(--bg-elevated);+ padding: 2.5rem;+ display: grid;+ grid-template-columns: 200px 1fr;+ gap: 2.5rem;+ transition: background 0.3s ease;+ }++ .layer:hover { background: var(--bg-card-hover); }++ .layer-id {+ font-family: 'JetBrains Mono', monospace;+ font-size: 0.7rem;+ color: var(--text-dim);+ letter-spacing: 0.15em;+ text-transform: uppercase;+ }++ .layer-id .num {+ display: block;+ font-family: 'Instrument Serif', serif;+ font-size: 3.2rem;+ line-height: 1;+ color: var(--accent);+ font-style: italic;+ margin-bottom: 0.4rem;+ }++ .layer-name {+ font-family: 'Instrument Serif', serif;+ font-size: 1.8rem;+ font-weight: 400;+ margin-bottom: 0.8rem;+ letter-spacing: -0.01em;+ }++ .layer-desc {+ color: var(--text-muted);+ margin-bottom: 1.5rem;+ line-height: 1.7;+ }++ .layer-pills {+ display: flex;+ flex-wrap: wrap;+ gap: 0.5rem;+ }++ .pill {+ font-family: 'JetBrains Mono', monospace;+ font-size: 0.72rem;+ padding: 0.35rem 0.8rem;+ background: var(--bg-card);+ border: 1px solid var(--border);+ border-radius: 6px;+ color: var(--text-muted);+ transition: all 0.2s ease;+ }++ .pill:hover {+ border-color: var(--accent-dim);+ color: var(--accent);+ }++ .pill.solana {+ border-color: rgba(153,69,255,0.4);+ color: var(--solana);+ }++ @media (max-width: 760px) {+ .layer { grid-template-columns: 1fr; gap: 1.2rem; padding: 2rem 1.5rem; }+ .layer-id .num { font-size: 2.4rem; }+ }++ /* ───────────── Metrics grid ───────────── */+ .metrics-bg {+ position: relative;+ background: linear-gradient(180deg, var(--bg) 0%, #0d0d10 50%, var(--bg) 100%);+ }++ .metrics-bg::before {+ content: '';+ position: absolute;+ inset: 0;+ background: radial-gradient(ellipse at 50% 30%, rgba(0,255,136,0.04) 0%, transparent 60%);+ pointer-events: none;+ }++ .metrics-grid {+ display: grid;+ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));+ gap: 1rem;+ margin-bottom: 4rem;+ }++ .metric-card {+ background: var(--bg-card);+ border: 1px solid var(--border);+ border-radius: 12px;+ padding: 1.8rem;+ position: relative;+ overflow: hidden;+ transition: all 0.3s ease;+ }++ .metric-card:hover {+ border-color: var(--border-accent);+ transform: translateY(-2px);+ }++ .metric-card::before {+ content: '';+ position: absolute;+ top: 0;+ left: 0;+ right: 0;+ height: 1px;+ background: linear-gradient(90deg, transparent, var(--accent), transparent);+ opacity: 0;+ transition: opacity 0.3s ease;+ }++ .metric-card:hover::before { opacity: 0.6; }++ .metric-label {+ font-family: 'JetBrains Mono', monospace;+ font-size: 0.7rem;+ color: var(--text-dim);+ letter-spacing: 0.12em;+ text-transform: uppercase;+ margin-bottom: 0.8rem;+ display: flex;+ align-items: center;+ justify-content: space-between;+ }++ .metric-icon {+ width: 14px;+ height: 14px;+ color: var(--text-dim);+ }++ .metric-value {+ font-family: 'Instrument Serif', serif;+ font-size: 3rem;+ line-height: 1;+ letter-spacing: -0.025em;+ margin-bottom: 0.5rem;+ }++ .metric-value .unit {+ font-size: 1.5rem;+ color: var(--text-muted);+ margin-left: 0.1rem;+ }++ .metric-context {+ font-size: 0.85rem;+ color: var(--text-muted);+ line-height: 1.5;+ }++ .metric-context .accent { color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;}++ /* ───────────── Charts ───────────── */+ .charts-grid {+ display: grid;+ grid-template-columns: 1.4fr 1fr;+ gap: 1rem;+ margin-bottom: 1rem;+ }++ @media (max-width: 880px) {+ .charts-grid { grid-template-columns: 1fr; }+ }++ .chart-card {+ background: var(--bg-card);+ border: 1px solid var(--border);+ border-radius: 12px;+ padding: 2rem;+ }++ .chart-card h3 {+ font-family: 'Instrument Serif', serif;+ font-size: 1.4rem;+ font-weight: 400;+ margin-bottom: 0.3rem;+ }++ .chart-card .chart-sub {+ font-family: 'JetBrains Mono', monospace;+ font-size: 0.72rem;+ color: var(--text-dim);+ letter-spacing: 0.1em;+ margin-bottom: 1.6rem;+ }++ .chart-svg {+ width: 100%;+ height: auto;+ display: block;+ }++ .chart-note {+ margin-top: 1.2rem;+ font-size: 0.85rem;+ color: var(--text-muted);+ line-height: 1.6;+ border-top: 1px solid var(--border);+ padding-top: 1rem;+ }++ /* ───────────── Audience callout ───────────── */+ .audience-band {+ margin-top: 1rem;+ background: linear-gradient(135deg, rgba(0,255,136,0.04) 0%, rgba(153,69,255,0.04) 100%);+ border: 1px solid var(--border);+ border-radius: 16px;+ padding: 3rem;+ display: grid;+ grid-template-columns: 1fr auto;+ align-items: center;+ gap: 3rem;+ }++ .audience-band h3 {+ font-family: 'Instrument Serif', serif;+ font-size: 2rem;+ font-weight: 400;+ line-height: 1.2;+ margin-bottom: 0.6rem;+ }++ .audience-band p {+ color: var(--text-muted);+ max-width: 540px;+ }++ .audience-stat {+ text-align: right;+ }++ .audience-stat .num {+ font-family: 'Instrument Serif', serif;+ font-size: 4.5rem;+ line-height: 1;+ color: var(--accent);+ font-style: italic;+ }++ .audience-stat .lab {+ font-family: 'JetBrains Mono', monospace;+ font-size: 0.7rem;+ color: var(--text-dim);+ letter-spacing: 0.15em;+ text-transform: uppercase;+ margin-top: 0.4rem;+ }++ @media (max-width: 720px) {+ .audience-band { grid-template-columns: 1fr; padding: 2rem; }+ .audience-stat { text-align: left; }+ .audience-stat .num { font-size: 3.5rem; }+ }++ /* ───────────── Code/repo strip ───────────── */+ .repo-strip {+ background: var(--bg-elevated);+ border: 1px solid var(--border);+ border-radius: 14px;+ padding: 2rem 2.5rem;+ display: grid;+ grid-template-columns: repeat(4, 1fr);+ gap: 2rem;+ }++ .repo-strip > div .lab {+ font-family: 'JetBrains Mono', monospace;+ font-size: 0.7rem;+ color: var(--text-dim);+ letter-spacing: 0.12em;+ text-transform: uppercase;+ margin-bottom: 0.6rem;+ }++ .repo-strip > div .v {+ font-family: 'Instrument Serif', serif;+ font-size: 2rem;+ line-height: 1;+ }++ @media (max-width: 720px) {+ .repo-strip { grid-template-columns: repeat(2, 1fr); padding: 1.5rem; }+ }++ /* ───────────── Roadmap / What's next ───────────── */+ .next-grid {+ display: grid;+ grid-template-columns: repeat(2, 1fr);+ gap: 1rem;+ }++ @media (max-width: 720px) { .next-grid { grid-template-columns: 1fr; } }++ .next-card {+ background: var(--bg-card);+ border: 1px solid var(--border);+ border-radius: 12px;+ padding: 2rem;+ position: relative;+ }++ .next-card .phase {+ font-family: 'JetBrains Mono', monospace;+ font-size: 0.7rem;+ letter-spacing: 0.15em;+ text-transform: uppercase;+ color: var(--text-dim);+ margin-bottom: 1rem;+ }++ .next-card .phase .status {+ color: var(--orange);+ margin-left: 0.5rem;+ }++ .next-card .phase .status.shipped { color: var(--accent); }++ .next-card h3 {+ font-family: 'Instrument Serif', serif;+ font-size: 1.6rem;+ font-weight: 400;+ margin-bottom: 0.6rem;+ line-height: 1.2;+ }++ .next-card p {+ color: var(--text-muted);+ font-size: 0.95rem;+ line-height: 1.6;+ }++ /* ───────────── Footer ───────────── */+ footer {+ border-top: 1px solid var(--border);+ padding: 4rem 0 3rem;+ margin-top: 4rem;+ }++ .foot-grid {+ display: flex;+ justify-content: space-between;+ align-items: flex-start;+ gap: 2rem;+ flex-wrap: wrap;+ }++ .foot-brand {+ font-family: 'Instrument Serif', serif;+ font-size: 1.6rem;+ font-style: italic;+ }++ .foot-brand .dot { color: var(--accent); }++ .foot-links {+ display: flex;+ gap: 2rem;+ font-family: 'JetBrains Mono', monospace;+ font-size: 0.78rem;+ color: var(--text-muted);+ letter-spacing: 0.05em;+ }++ .foot-links a:hover { color: var(--accent); }++ .foot-meta {+ margin-top: 2rem;+ font-family: 'JetBrains Mono', monospace;+ font-size: 0.7rem;+ color: var(--text-dim);+ letter-spacing: 0.05em;+ }++ /* ───────────── Reveal-on-scroll ───────────── */+ .reveal {+ opacity: 0;+ transform: translateY(28px);+ transition: opacity 0.8s ease-out, transform 0.8s ease-out;+ }+ .reveal.in {+ opacity: 1;+ transform: translateY(0);+ }+</style>+</head>+<body>++<!-- ═══════════ HERO ═══════════ -->+<header class="hero">+ <div class="hero-content">+ <div class="hero-badge">+ <span class="dot"></span>+ LAUNCH WEEK · APR 29 → MAY 9 · 2026+ </div>++ <h1>Week one,<br><em>by the numbers.</em></h1>++ <p class="hero-sub">+ three.ws is an open-source, browser-native 3D AI agent platform. We shipped the full stack+ — viewer, agent runtime, on-chain identity, OAuth 2.1 server, MCP endpoint, and an+ embeddable web component — then watched the launch land. Here’s what happened.+ </p>++ <div class="hero-meta">+ <span><strong>291</strong> commits</span>+ <span><strong>Apache 2.0</strong> license</span>+ <span><strong>11</strong> following · <strong>3,675</strong> followers</span>+ <span><strong>github.com/nirholas/three.ws</strong></span>+ </div>++ <div class="hero-numbers">+ <div>+ <div class="label">Impressions</div>+ <div class="value accent">267.8K</div>+ </div>+ <div>+ <div class="label">Engagement Rate</div>+ <div class="value accent">9.4%</div>+ </div>+ <div>+ <div class="label">Engagements</div>+ <div class="value">25.3K</div>+ </div>+ <div>+ <div class="label">Community Members</div>+ <div class="value">1,010</div>+ </div>+ </div>+ </div>++ <div class="scroll-cue">+ Scroll+ <span class="arrow"></span>+ </div>+</header>++<!-- ═══════════ WHAT WE SHIPPED ═══════════ -->+<section id="shipped">+ <div class="container">+ <div class="section-header reveal">+ <div class="section-eyebrow">01 · What we shipped</div>+ <h2 class="section-title">The whole stack, <em>in one repo.</em></h2>+ <p class="section-lede">+ three.ws is organized as four communicating layers, plus a backend and a contracts package.+ Every layer is in production at <a href="https://three.ws" style="color:var(--accent);text-decoration:underline;">three.ws</a>+ and ships as part of the open-source repo. Here’s the inventory.+ </p>+ </div>++ <div class="layers reveal">+ <div class="layer">+ <div class="layer-id">+ <span class="num">L4</span>+ Embed & Distribution+ </div>+ <div>+ <div class="layer-name">Drop-in 3D agents, anywhere on the web.</div>+ <p class="layer-desc">+ The <code style="font-family:'JetBrains Mono',monospace;color:var(--accent)"><agent-3d></code>+ custom element loads lazily on intersection, supports five widget variants+ (turntable, animation gallery, talking agent, ERC-8004 passport card, hotspot tour),+ and emits Open Graph and oEmbed metadata so links unfurl with rich previews.+ A point-and-click Widget Studio generates copy-paste embed code at <code style="font-family:'JetBrains Mono',monospace;color:var(--accent)">/studio</code>.+ Versioned CDN bundles ship at <code style="font-family:'JetBrains Mono',monospace;color:var(--accent)">/agent-3d/x.y.z/</code>.+ </p>+ <div class="layer-pills">+ <span class="pill"><agent-3d></span>+ <span class="pill">5 widget types</span>+ <span class="pill">Open Graph + oEmbed</span>+ <span class="pill">Widget Studio</span>+ <span class="pill">Versioned CDN</span>+ <span class="pill">postMessage API</span>+ </div>+ </div>+ </div>++ <div class="layer">+ <div class="layer-id">+ <span class="num">L3</span>+ Identity & Persistence+ </div>+ <div>+ <div class="layer-name">On-chain identity. Signed action history.</div>+ <p class="layer-desc">+ Three Solidity contracts make up the ERC-8004 implementation:+ <code style="font-family:'JetBrains Mono',monospace;color:var(--accent)">IdentityRegistry</code>+ (ERC-721 agent tokens with delegated EIP-712 signers),+ <code style="font-family:'JetBrains Mono',monospace;color:var(--accent)">ReputationRegistry</code>+ (signed reviewer feedback, averaged on-chain), and+ <code style="font-family:'JetBrains Mono',monospace;color:var(--accent)">ValidationRegistry</code>+ (validator attestations for off-chain proofs). Every <code style="font-family:'JetBrains Mono',monospace;color:var(--accent)">speak</code>,+ <code style="font-family:'JetBrains Mono',monospace;color:var(--accent)">remember</code>, and+ <code style="font-family:'JetBrains Mono',monospace;color:var(--accent)">skill-done</code> event is signed and logged.+ Solana ships an analog using Metaplex Core NFTs plus signed SPL Memo attestations — same+ shape, no custom program required.+ </p>+ <div class="layer-pills">+ <span class="pill">ERC-8004</span>+ <span class="pill">ERC-721 tokens</span>+ <span class="pill">EIP-712 signing</span>+ <span class="pill">EIP-7710 delegation</span>+ <span class="pill">Foundry tested</span>+ <span class="pill solana">Solana SIWS + Metaplex</span>+ <span class="pill">IPFS pinning</span>+ </div>+ </div>+ </div>++ <div class="layer">+ <div class="layer-id">+ <span class="num">L2</span>+ Agent Runtime+ </div>+ <div>+ <div class="layer-name">An LLM brain, with a body that <em>feels</em>.</div>+ <p class="layer-desc">+ The runtime drives a Claude tool-loop with up to eight iterations per turn and six+ built-in tools (<code style="font-family:'JetBrains Mono',monospace;color:var(--accent)">wave</code>,+ <code style="font-family:'JetBrains Mono',monospace;color:var(--accent)">lookAt</code>,+ <code style="font-family:'JetBrains Mono',monospace;color:var(--accent)">play_clip</code>,+ <code style="font-family:'JetBrains Mono',monospace;color:var(--accent)">setExpression</code>,+ <code style="font-family:'JetBrains Mono',monospace;color:var(--accent)">speak</code>,+ <code style="font-family:'JetBrains Mono',monospace;color:var(--accent)">remember</code>).+ The Empathy Layer is not a state machine — it’s a continuous weighted blend of five+ emotions (celebration, concern, curiosity, empathy, patience), each with its own decay+ half-life, driving the avatar’s morph targets and head pose every frame. Skills are+ self-contained bundles distributable over IPFS, Arweave, or HTTP. Memory is file-based+ with four storage modes (local, IPFS, encrypted-IPFS, none).+ </p>+ <div class="layer-pills">+ <span class="pill">Claude tool-loop</span>+ <span class="pill">8-iteration limit</span>+ <span class="pill">Empathy Layer</span>+ <span class="pill">Skill registry</span>+ <span class="pill">Web Speech + ElevenLabs</span>+ <span class="pill">YAML-front-matter memory</span>+ </div>+ </div>+ </div>++ <div class="layer">+ <div class="layer-id">+ <span class="num">L1</span>+ Viewer+ </div>+ <div>+ <div class="layer-name">three.js r176, Khronos-grade glTF.</div>+ <p class="layer-desc">+ WebGL 2.0 rendering with full glTF 2.0 / GLB support: Draco geometry compression,+ KTX2 texture compression, Meshopt mesh optimization, HDR environment maps, PBR materials,+ skinned animation, morph targets, and embedded cameras. Validation is line-level via the+ Khronos gltf-validator. Drag-and-drop loading, OrbitControls with configurable+ auto-rotation, and a real-time dat.GUI for live tweaking.+ </p>+ <div class="layer-pills">+ <span class="pill">three.js r176</span>+ <span class="pill">Draco / KTX2 / Meshopt</span>+ <span class="pill">PBR + HDR</span>+ <span class="pill">glTF validator</span>+ <span class="pill">Drag-and-drop</span>+ <span class="pill">dat.GUI</span>+ </div>+ </div>+ </div>++ <div class="layer">+ <div class="layer-id">+ <span class="num">B</span>+ Backend+ </div>+ <div>+ <div class="layer-name">~153 serverless endpoints. ~3,600 lines of API.</div>+ <p class="layer-desc">+ Vercel functions on Neon Postgres, Cloudflare R2, and Upstash Redis. A full OAuth 2.1+ server (RFC 6749 + PKCE, RFC 7591 dynamic registration, RFC 7009 revocation, RFC 7662+ introspection, RFC 8414 discovery, RFC 9728 protected-resource discovery). An MCP server+ over HTTP — 759 lines, JSON-RPC 2.0, listed on the official Model Context Protocol+ Registry as <code style="font-family:'JetBrains Mono',monospace;color:var(--accent)">io.github.nirholas/three.ws</code>.+ Cron jobs for the ERC-8004 crawler, EIP-7710 delegation indexer, DCA strategy execution,+ and recurring on-chain subscriptions.+ </p>+ <div class="layer-pills">+ <span class="pill">OAuth 2.1 + PKCE</span>+ <span class="pill">MCP over HTTP</span>+ <span class="pill">Listed on MCP Registry</span>+ <span class="pill">Neon Postgres</span>+ <span class="pill">Cloudflare R2</span>+ <span class="pill">Upstash Redis</span>+ <span class="pill">4 cron jobs</span>+ <span class="pill">OpenAPI 3.1</span>+ </div>+ </div>+ </div>+ </div>++ <div class="repo-strip reveal" style="margin-top: 2rem;">+ <div>+ <div class="lab">Repo commits</div>+ <div class="v">291</div>+ </div>+ <div>+ <div class="lab">API endpoints</div>+ <div class="v">~153</div>+ </div>+ <div>+ <div class="lab">Frontend modules</div>+ <div class="v">~80</div>+ </div>+ <div>+ <div class="lab">Stars · forks</div>+ <div class="v">24 · 2</div>+ </div>+ </div>+ </div>+</section>++<!-- ═══════════ LAUNCH NUMBERS ═══════════ -->+<section id="numbers" class="metrics-bg">+ <div class="container">+ <div class="section-header reveal">+ <div class="section-eyebrow">02 · Launch in numbers</div>+ <h2 class="section-title">Eleven days <em>of signal.</em></h2>+ <p class="section-lede">+ Pulled directly from X analytics for <a href="https://x.com/trythreews" style="color:var(--accent);text-decoration:underline;">@trythreews</a>+ between April 29 and May 9. No filtering, no averaging tricks — the headline numbers below+ and the charts further down come from the same screenshot.+ </p>+ </div>++ <div class="metrics-grid reveal">+ <div class="metric-card">+ <div class="metric-label">+ Impressions+ <svg class="metric-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>+ </div>+ <div class="metric-value">267.8<span class="unit">K</span></div>+ <div class="metric-context">Tweet views during the launch window. Roughly <span class="accent">~24K/day average</span> across 11 days.</div>+ </div>++ <div class="metric-card">+ <div class="metric-label">+ Engagement Rate+ <svg class="metric-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="3 17 9 11 13 15 21 7"/><polyline points="14 7 21 7 21 14"/></svg>+ </div>+ <div class="metric-value">9.4<span class="unit">%</span></div>+ <div class="metric-context">For reference, X benchmarks <span class="accent">"good" at 0.5–1%</span>. We’re an order of magnitude above that.</div>+ </div>++ <div class="metric-card">+ <div class="metric-label">+ Engagements+ <svg class="metric-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M14 9V5a3 3 0 0 0-6 0v4"/><rect x="3" y="9" width="18" height="12" rx="2"/></svg>+ </div>+ <div class="metric-value">25.3<span class="unit">K</span></div>+ <div class="metric-context">Likes, replies, reposts, bookmarks, and shares combined. <span class="accent">~395 actions/day.</span></div>+ </div>++ <div class="metric-card">+ <div class="metric-label">+ Profile Visits+ <svg class="metric-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="8" r="4"/><path d="M4 21v-2a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v2"/></svg>+ </div>+ <div class="metric-value">5.1<span class="unit">K</span></div>+ <div class="metric-context">People who clicked through to <span class="accent">@trythreews</span> after seeing a tweet.</div>+ </div>++ <div class="metric-card">+ <div class="metric-label">+ Likes+ <svg class="metric-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M19 14c1.5-1.5 3-3.5 3-6a4 4 0 0 0-7-2.7A4 4 0 0 0 8 8c0 2.5 1.5 4.5 3 6l5 5 3-5z"/></svg>+ </div>+ <div class="metric-value">7.2<span class="unit">K</span></div>+ <div class="metric-context">The largest engagement category by volume.</div>+ </div>++ <div class="metric-card">+ <div class="metric-label">+ Reposts+ <svg class="metric-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="17 1 21 5 17 9"/><path d="M3 11V9a4 4 0 0 1 4-4h14"/><polyline points="7 23 3 19 7 15"/><path d="M21 13v2a4 4 0 0 1-4 4H3"/></svg>+ </div>+ <div class="metric-value">1.5<span class="unit">K</span></div>+ <div class="metric-context">Second-degree reach — reposts are how strangers find the project.</div>+ </div>++ <div class="metric-card">+ <div class="metric-label">+ Replies+ <svg class="metric-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>+ </div>+ <div class="metric-value">845</div>+ <div class="metric-context">Active conversation, not just passive views — the kind of signal that matters for a developer launch.</div>+ </div>++ <div class="metric-card">+ <div class="metric-label">+ Bookmarks · Shares+ <svg class="metric-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"/></svg>+ </div>+ <div class="metric-value">198 <span class="unit" style="color:var(--text-dim)">·</span> 61</div>+ <div class="metric-context">Bookmarks signal “come back to this” intent — the highest-quality engagement type.</div>+ </div>+ </div>++ <!-- Charts -->+ <div class="charts-grid reveal">+ <div class="chart-card">+ <h3>Daily impressions</h3>+ <div class="chart-sub">APR 29 → MAY 9 · 2026</div>+ <svg class="chart-svg" viewBox="0 0 700 280" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" aria-label="Bar chart of daily X impressions from April 29 to May 9, 2026">+ <defs>+ <linearGradient id="barGrad" x1="0" y1="0" x2="0" y2="1">+ <stop offset="0%" stop-color="#00ff88" stop-opacity="1"/>+ <stop offset="100%" stop-color="#00cc6d" stop-opacity="0.55"/>+ </linearGradient>+ <linearGradient id="peakGrad" x1="0" y1="0" x2="0" y2="1">+ <stop offset="0%" stop-color="#14F195" stop-opacity="1"/>+ <stop offset="100%" stop-color="#9945FF" stop-opacity="0.6"/>+ </linearGradient>+ </defs>++ <!-- horizontal grid -->+ <g stroke="#2a2a2f" stroke-width="1">+ <line x1="50" y1="40" x2="690" y2="40" stroke-dasharray="2 4"/>+ <line x1="50" y1="100" x2="690" y2="100" stroke-dasharray="2 4"/>+ <line x1="50" y1="160" x2="690" y2="160" stroke-dasharray="2 4"/>+ <line x1="50" y1="220" x2="690" y2="220" stroke-dasharray="2 4"/>+ </g>++ <!-- y-axis labels (max ~48k) -->+ <g font-family="JetBrains Mono, monospace" font-size="9" fill="#5c5c66">+ <text x="42" y="44" text-anchor="end">45K</text>+ <text x="42" y="104" text-anchor="end">30K</text>+ <text x="42" y="164" text-anchor="end">15K</text>+ <text x="42" y="224" text-anchor="end">0</text>+ </g>++ <!-- baseline -->+ <line x1="50" y1="220" x2="690" y2="220" stroke="#3d3d44" stroke-width="1"/>++ <!--+ Bars from screenshot, approx values (in thousands):+ Apr29 24, Apr30 18, May1 22, May2 13, May3 13, May4 28, May5 47, May6 28, May7 29, May8 25, May9 19+ Scale: 220 baseline, 40 = 45K → each K = (220-40)/45 = 4 px+ x positions: 11 bars across 50..690 (640 wide). bar width 38, gap = (640 - 11*38)/12 ≈ 18.5+ -->+ <g>+ <!-- Apr29 24K -->+ <rect x="69" y="124" width="38" height="96" fill="url(#barGrad)" rx="2"/>+ <!-- Apr30 18K -->+ <rect x="125" y="148" width="38" height="72" fill="url(#barGrad)" rx="2"/>+ <!-- May1 22K -->+ <rect x="181" y="132" width="38" height="88" fill="url(#barGrad)" rx="2"/>+ <!-- May2 13K -->+ <rect x="237" y="168" width="38" height="52" fill="url(#barGrad)" rx="2"/>+ <!-- May3 13K -->+ <rect x="293" y="168" width="38" height="52" fill="url(#barGrad)" rx="2"/>+ <!-- May4 28K -->+ <rect x="349" y="108" width="38" height="112" fill="url(#barGrad)" rx="2"/>+ <!-- May5 47K (peak) -->+ <rect x="405" y="32" width="38" height="188" fill="url(#peakGrad)" rx="2"/>+ <!-- May6 28K -->+ <rect x="461" y="108" width="38" height="112" fill="url(#barGrad)" rx="2"/>+ <!-- May7 29K -->+ <rect x="517" y="104" width="38" height="116" fill="url(#barGrad)" rx="2"/>+ <!-- May8 25K -->+ <rect x="573" y="120" width="38" height="100" fill="url(#barGrad)" rx="2"/>+ <!-- May9 19K -->+ <rect x="629" y="144" width="38" height="76" fill="url(#barGrad)" rx="2"/>+ </g>++ <!-- peak callout -->+ <g font-family="JetBrains Mono, monospace" font-size="9.5" fill="#14F195">+ <text x="424" y="22" text-anchor="middle">PEAK · 47K</text>+ <line x1="424" y1="26" x2="424" y2="32" stroke="#14F195" stroke-width="1"/>+ </g>++ <!-- x-axis labels -->+ <g font-family="JetBrains Mono, monospace" font-size="9" fill="#5c5c66" text-anchor="middle">+ <text x="88" y="244">Apr 29</text>+ <text x="144" y="244">Apr 30</text>+ <text x="200" y="244">May 1</text>+ <text x="256" y="244">May 2</text>+ <text x="312" y="244">May 3</text>+ <text x="368" y="244">May 4</text>+ <text x="424" y="244">May 5</text>+ <text x="480" y="244">May 6</text>+ <text x="536" y="244">May 7</text>+ <text x="592" y="244">May 8</text>+ <text x="648" y="244">May 9</text>+ </g>+ </svg>++ <div class="chart-note">+ The May 5 peak coincides with our Google Cloud partnership announcement (the single+ highest-performing tweet of the week, ~6.9K views and 263 likes on its own).+ Steady-state baseline since launch sits at <span style="color:var(--accent)">~22K+ impressions/day</span> — the chart shape is a launch surge, exactly what week one+ should look like.+ </div>+ </div>++ <div class="chart-card">+ <h3>Follows over time</h3>+ <div class="chart-sub">NET NEW FOLLOWS · DAILY</div>+ <svg class="chart-svg" viewBox="0 0 500 280" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" aria-label="Bar chart of daily new followers from April 29 to May 9, 2026">+ <defs>+ <linearGradient id="followGrad" x1="0" y1="0" x2="0" y2="1">+ <stop offset="0%" stop-color="#00ff88" stop-opacity="1"/>+ <stop offset="100%" stop-color="#00cc6d" stop-opacity="0.55"/>+ </linearGradient>+ <linearGradient id="followPeak" x1="0" y1="0" x2="0" y2="1">+ <stop offset="0%" stop-color="#14F195" stop-opacity="1"/>+ <stop offset="100%" stop-color="#9945FF" stop-opacity="0.6"/>+ </linearGradient>+ </defs>++ <g stroke="#2a2a2f" stroke-width="1">+ <line x1="50" y1="40" x2="490" y2="40" stroke-dasharray="2 4"/>+ <line x1="50" y1="100" x2="490" y2="100" stroke-dasharray="2 4"/>+ <line x1="50" y1="160" x2="490" y2="160" stroke-dasharray="2 4"/>+ <line x1="50" y1="220" x2="490" y2="220" stroke-dasharray="2 4"/>+ </g>++ <g font-family="JetBrains Mono, monospace" font-size="9" fill="#5c5c66">+ <text x="42" y="44" text-anchor="end">1.2K</text>+ <text x="42" y="104" text-anchor="end">692</text>+ <text x="42" y="164" text-anchor="end">342</text>+ <text x="42" y="224" text-anchor="end">0</text>+ </g>++ <line x1="50" y1="220" x2="490" y2="220" stroke="#3d3d44" stroke-width="1"/>++ <!--+ Follower data approx (peak ~1.2K on May 5):+ Apr29 30, Apr30 8, May1 12, May2 5, May3 8, May4 980, May5 1200, May6 700, May7 360, May8 80, May9 30+ scale: y=220 base, 40 = 1200 → 1 follower ≈ 0.15px+ 11 bars across 50..490 (440 wide), bar w 26, gap (440 - 11*26)/12 ≈ 12.8+ -->+ <g>+ <rect x="63" y="216" width="26" height="4" fill="url(#followGrad)" rx="2"/>+ <rect x="103" y="218" width="26" height="2" fill="url(#followGrad)" rx="2"/>+ <rect x="143" y="217" width="26" height="3" fill="url(#followGrad)" rx="2"/>+ <rect x="183" y="219" width="26" height="1" fill="url(#followGrad)" rx="2"/>+ <rect x="223" y="218" width="26" height="2" fill="url(#followGrad)" rx="2"/>+ <rect x="263" y="73" width="26" height="147" fill="url(#followGrad)" rx="2"/>+ <rect x="303" y="40" width="26" height="180" fill="url(#followPeak)" rx="2"/>+ <rect x="343" y="115" width="26" height="105" fill="url(#followGrad)" rx="2"/>+ <rect x="383" y="166" width="26" height="54" fill="url(#followGrad)" rx="2"/>+ <rect x="423" y="208" width="26" height="12" fill="url(#followGrad)" rx="2"/>+ <rect x="463" y="216" width="26" height="4" fill="url(#followGrad)" rx="2"/>+ </g>++ <g font-family="JetBrains Mono, monospace" font-size="9.5" fill="#14F195">+ <text x="316" y="32" text-anchor="middle">+1.2K · MAY 5</text>+ </g>++ <g font-family="JetBrains Mono, monospace" font-size="8.5" fill="#5c5c66" text-anchor="middle">+ <text x="76" y="244">A29</text>+ <text x="116" y="244">A30</text>+ <text x="156" y="244">M1</text>+ <text x="196" y="244">M2</text>+ <text x="236" y="244">M3</text>+ <text x="276" y="244">M4</text>+ <text x="316" y="244">M5</text>+ <text x="356" y="244">M6</text>+ <text x="396" y="244">M7</text>+ <text x="436" y="244">M8</text>+ <text x="476" y="244">M9</text>+ </g>+ </svg>++ <div class="chart-note">+ A clean <span style="color:var(--accent)">May 4–7 spike</span> drove most of the +359+ verified followers and the rise to 3,675 total. The cluster maps directly to the partnership+ announcements; week two is for converting that audience into users.+ </div>+ </div>+ </div>++ <div class="audience-band reveal">+ <div>+ <h3>1,010 members in the X community.<br>From zero. In a week.</h3>+ <p>+ The <a href="https://x.com/i/communities" style="color:var(--accent);text-decoration:underline;">three.ws X+ community</a> is the gathered audience — developers, agent-curious builders, and a+ crew of folks following along live. It’s where the next wave of agent owners will come from.+ </p>+ </div>+ <div class="audience-stat">+ <div class="num">1,010</div>+ <div class="lab">Members · 7 days</div>+ </div>+ </div>+ </div>+</section>++<!-- ═══════════ SIGNAL HIGHLIGHTS ═══════════ -->+<section id="signal">+ <div class="container">+ <div class="section-header reveal">+ <div class="section-eyebrow">03 · Outside signal</div>+ <h2 class="section-title">Where <em>the project showed up.</em></h2>+ <p class="section-lede">+ Beyond the analytics dashboard, three.ws landed on the directories, registries, and platforms+ that matter most for an open-source developer tool.+ </p>+ </div>++ <div class="next-grid reveal">+ <div class="next-card">+ <div class="phase">MCP REGISTRY · <span class="status shipped">LIVE</span></div>+ <h3>Listed on the official Model Context Protocol Registry.</h3>+ <p>+ three.ws is published as <code style="font-family:'JetBrains Mono',monospace;color:var(--accent)">io.github.nirholas/three.ws</code>+ on registry.modelcontextprotocol.io and discoverable via PulseMCP’s curated directory.+ Any MCP-aware client (Claude Desktop included) can connect and drive avatars over JSON-RPC.+ </p>+ </div>++ <div class="next-card">+ <div class="phase">CLOUD MARKETPLACE · <span class="status shipped">LIVE</span></div>+ <h3>Available on Alibaba Cloud Marketplace.</h3>+ <p>+ The platform shipped as a partner listing on Alibaba Cloud, our first cloud-marketplace+ distribution channel. The associated launch tweet pulled <strong>~7.1K impressions</strong>+ on its own.+ </p>+ </div>++ <div class="next-card">+ <div class="phase">PARTNERSHIP · <span class="status shipped">ANNOUNCED</span></div>+ <h3>Joining forces with Google Cloud.</h3>+ <p>+ The Google Cloud announcement was the single highest-engagement post of the week+ (<strong>~6.9K impressions, 263 likes, 24 reposts</strong>) and the cloud infrastructure+ backing the next phase of the platform.+ </p>+ </div>++ <div class="next-card">+ <div class="phase">AUDIO · <span class="status shipped">LIVE</span></div>+ <h3>Featured on Amazon Music & Spotify.</h3>+ <p>+ The “Inside The 3D Agent Web” podcast episode is published on Amazon Music and the+ companion blog “Beyond Chatbots: Why Your AI Agent Needs a 3D Body” went out via the+ Spotify-on-chain ecosystem. Two more distribution surfaces, one more week.+ </p>+ </div>+ </div>+ </div>+</section>++<!-- ═══════════ WHAT'S NEXT ═══════════ -->+<section id="next" class="metrics-bg">+ <div class="container">+ <div class="section-header reveal">+ <div class="section-eyebrow">04 · What’s next</div>+ <h2 class="section-title">Phase 0 is <em>shipped.</em><br>Phase 1 is <em>in build.</em></h2>+ <p class="section-lede">+ The roadmap closes the gap from “use a 3D artist” to “take a selfie”.+ Four phases, scoped end-to-end in the public README.+ </p>+ </div>++ <div class="next-grid reveal">+ <div class="next-card">+ <div class="phase">PHASE 0 · <span class="status shipped">SHIPPED</span></div>+ <h3>Foundations.</h3>+ <p>+ WebGL viewer, LLM agent runtime, ERC-8004 identity contracts, OAuth 2.1 server,+ MCP endpoint, and the <code style="font-family:'JetBrains Mono',monospace;color:var(--accent)"><agent-3d></code>+ web component — everything you read about above. Live at three.ws today.+ </p>+ </div>++ <div class="next-card">+ <div class="phase">PHASE 1 · <span class="status">IN PROGRESS</span></div>+ <h3>Selfie → Avatar engine.</h3>+ <p>+ Three selfies (left, center, right), GPU-backed multi-view face reconstruction, and a rigged,+ animatable avatar minted as a draft ERC-8004 token in under sixty seconds. Mobile-first+ capture UX with realtime quality gates.+ </p>+ </div>++ <div class="next-card">+ <div class="phase">PHASE 2 · <span class="status">NEXT</span></div>+ <h3>Agent personalization.</h3>+ <p>+ ElevenLabs voice cloning from 3–10 seconds of speech, persona extraction from a short+ onboarding interview, and consented memory seeding from connected accounts — the+ avatar isn’t just <em>you</em>, the agent <em>acts like</em> you.+ </p>+ </div>++ <div class="next-card">+ <div class="phase">PHASE 3 · <span class="status">NEXT</span></div>+ <h3>On-chain economy.</h3>+ <p>+ Reputation markets staking on agents’ signed action histories, EIP-7710 skill+ royalties paid to skill authors per-call, and agent-to-agent autonomous payments through+ delegated signer wallets.+ </p>+ </div>+ </div>+ </div>+</section>++<!-- ═══════════ FOOTER ═══════════ -->+<footer>+ <div class="container">+ <div class="foot-grid">+ <div>+ <div class="foot-brand">three<span class="dot">.</span>ws</div>+ <p style="color:var(--text-muted); margin-top:0.6rem; max-width: 380px; font-size: 0.95rem;">+ Open-source 3D AI agent platform. Apache 2.0. Built with three.js, Claude, and a belief+ that AI deserves a body.+ </p>+ </div>+ <div class="foot-links">+ <a href="https://three.ws">three.ws</a>+ <a href="https://github.com/nirholas/three.ws">GitHub</a>+ <a href="https://x.com/trythreews">@trythreews</a>+ <a href="https://registry.modelcontextprotocol.io/?q=three.ws">MCP Registry</a>+ </div>+ </div>+ <div class="foot-meta">+ Recap window: APR 29 → MAY 9 · 2026 · Source: X Analytics for @trythreews + repo at github.com/nirholas/three.ws+ </div>+ </div>+</footer>++<script>+ // Reveal-on-scroll+ const observer = new IntersectionObserver((entries) => {+ entries.forEach(entry => {+ if (entry.isIntersecting) {+ entry.target.classList.add('in');+ observer.unobserve(entry.target);+ }+ });+ }, { threshold: 0.12, rootMargin: '0px 0px -60px 0px' });++ document.querySelectorAll('.reveal').forEach(el => observer.observe(el));+</script>++</body>+</html>