Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

docs: README pump.fun launcher / buyback / visualizer sections + quick-screenshot helper

nirholas8aa1017a36f3
diff --git a/README.md b/README.md
index f72d29a8f..9d9fba7f1 100644
--- a/README.md
+++ b/README.md
@@ -33,6 +33,7 @@ https://github.com/user-attachments/assets/d52515d1-cb04-4dd6-98bd-fef233312dc4
- [Web Component & Embedding](#web-component--embedding)
- [Widget System](#widget-system)
- [Embed Editor](#embed-editor)
+- [Pose Studio](#pose-studio)
- [Launchpad](#launchpad)
- [The Club](#the-club)
- [Walk & Multiplayer](#walk--multiplayer)
@@ -40,6 +41,13 @@ https://github.com/user-attachments/assets/d52515d1-cb04-4dd6-98bd-fef233312dc4
- [A2A — Agent-to-Agent Protocol](#a2a--agent-to-agent-protocol)
- [Talk Mode & Lip-Sync](#talk-mode--lip-sync)
- [Solana Mobile (Seeker)](#solana-mobile-seeker)
+- [Selfie Reconstruction Pipeline (Phase 1)](#selfie-reconstruction-pipeline-phase-1)
+- [Livepeer Inference Network (Phase 4)](#livepeer-inference-network-phase-4)
+- [Voice & Persona Hub (Phase 2)](#voice--persona-hub-phase-2)
+- [WASM Vanity Grinder](#wasm-vanity-grinder)
+- [News CMS & Syndication](#news-cms--syndication)
+- [Security Hardening](#security-hardening)
+- [Developer SDKs](#developer-sdks)
- [API Reference](#api-reference)
- [Authentication & OAuth 2.1](#authentication--oauth-21)
- [MCP Server](#mcp-server)
@@ -679,18 +687,24 @@ For sandboxed iframes use the widget embed path instead — it runs in its own b
## Project Structure
-- `src/`: The core frontend JavaScript for the main application, including the 3D viewer, agent protocol, and custom element.
-- `api/`: Vercel serverless functions that form the backend API.
-- `public/`: Static assets and various sub-applications.
+- `src/`: The core frontend JavaScript for the main application, including the 3D viewer, agent protocol, custom element, and feature modules (`club-*.js`, `walk*.js`, `pose-*.js`, `voice/`, `selfie-*.js`).
+- `api/`: Vercel serverless functions that form the backend API. Subdirectories include `x402/`, `a2a/`, `club/`, `pump/`, `persona/`, `news/`, `admin/`, `agents/`, `auth/`, `oauth/`, `cron/`.
+- `public/`: Static assets and various sub-applications (`club/`, `seeker/`, `news/`, `persona/`, `vanity-wallet.html`, `pumpfun.html`).
- `chat/`: A standalone Svelte application for the chat interface.
-- `character-studio/`: A sub-project for character creation.
+- `character-studio/`: A sub-project for in-browser character creation; also serves the rebranded **Avatar Studio** marketplace.
- `rider/`: A-Frame WebVR music visualization experiment.
-- `contracts/`: Solidity smart contracts for on-chain identity (ERC-8004).
-- `agent-payments-sdk/`: SDK for agent-related payments.
-- `solana-agent-sdk/`: SDK for Solana blockchain interactions.
+- `contracts/`: Solidity smart contracts for on-chain identity (ERC-8004) and the multichain payment factory.
+- `multiplayer/`: Colyseus WebSocket server for `/walk` and other realtime rooms; deployable on Fly.io.
+- `sdk/`: `@nirholas/agent-kit` and the Avatar SDK (`sdk/agent-sdk/`).
+- `agent-payments-sdk/`: EVM agent payments SDK.
+- `solana-agent-sdk/`: SDK for Solana blockchain interactions (Metaplex Core mints, SIWS, attestations).
- `pump-fun-skills/`: Skills related to the pump.fun integration.
-- `scripts/`: Node.js scripts for development, build, and deployment tasks.
-- `workers/`: Code for background workers.
+- `scripts/`: Node.js scripts for development, build, deployment, and pump.fun launch automation.
+- `workers/`: Code for background workers — includes the Cloudflare Worker mirror of the pump.fun MCP read API in [`workers/pump-fun-mcp/`](workers/pump-fun-mcp/).
+- `docs/`: Public-facing developer docs.
+- `docs/internal/`: Working docs (PLAN, STATUS, TODO, NEXT, PROGRESS, RELEASE_CHECKLIST) — not part of the published docs surface.
+- `docs/club/`: Pole-club venue design, performance notes, and release checklist.
+- `tests/`: Vitest unit tests (`tests/api/`, `tests/src/`, `tests/workers/`) and Playwright end-to-end smokes (`tests/e2e/`).
---
@@ -1364,14 +1378,25 @@ The full OpenAPI 3.1 spec is available at `/openapi.json`. The key API surface i
### Cron Jobs
-Scheduled via `vercel.json`, these run automatically in production:
+Scheduled via `vercel.json`, these run automatically in production. All cron endpoints are fail-closed — a missing auth token aborts with an error rather than silently skipping (see [Security Hardening](#security-hardening)).
| Schedule | Endpoint | Purpose |
|---|---|---|
-| Every 15 min | `/api/cron/erc8004-crawl` | Index new agents from blockchain |
+| Every minute | `/api/cron/run-x-scheduled-posts` | Publish queued X (Twitter) posts |
+| Every 3 min | `/api/cron/pumpfun-monitor` | Watch new pump.fun token creates |
+| Every 5 min | `/api/cron/expire-pending-purchases` | Clear stale x402 pending purchases |
+| Every 5 min | `/api/cron/solana-attestations-crawl` | Index new Solana feedback / validation memos |
| Every 5 min | `/api/cron/index-delegations` | Index EIP-7710 delegations |
+| Every 5 min | `/api/cron/run-x-triggers` | Trigger-based X posts (mentions, milestones) |
+| Every 10 min | `/api/cron/pump-agent-stats` | Refresh pump-agent dashboard stats |
+| Every 15 min | `/api/cron/erc8004-crawl` | Index new agents from blockchain |
+| Every 15 min | `/api/cron/pumpfun-signals` | Sweep pump.fun signals into `pumpfun_signals` table |
+| Hourly | `/api/cron/cleanup-csrf-tokens` | Expire used / stale CSRF tokens |
+| Hourly | `/api/cron/process-withdrawals` | Sweep creator withdrawals (pump.fun, club tips) |
| Hourly | `/api/cron/run-dca` | Execute DCA strategy orders |
-| Hourly | `/api/cron/run-subscriptions` | Execute recurring subscriptions |
+| Hourly | `/api/cron/run-subscriptions` | Execute recurring subscriptions (x402 + other) |
+| Every 6h | `/api/cron/fetch-x-metrics` | Pull X engagement metrics for owned accounts |
+| Daily | `/api/cron/audit-log-cleanup` | Rotate audit logs past retention window |
---
diff --git a/dropdown-vis.mjs b/dropdown-vis.mjs
new file mode 100644
index 000000000..71f1d09cd
--- /dev/null
+++ b/dropdown-vis.mjs
@@ -0,0 +1,22 @@
+import { chromium } from 'playwright';
+const browser = await chromium.launch();
+const page = await browser.newPage({ viewport: { width: 1440, height: 900 } });
+await page.goto('http://localhost:3000/marketplace', { waitUntil: 'networkidle' });
+await page.waitForSelector('.home-nav .nav-root', { timeout: 5000 });
+await page.waitForTimeout(700);
+
+// Hover then click the Build trigger
+const build = await page.locator('.home-nav .nav-trigger:has-text("Build")').first();
+await build.click();
+await page.waitForTimeout(400);
+await page.screenshot({ path: '/tmp/dropdown-build.png', clip: { x: 0, y: 0, width: 800, height: 280 } });
+
+// Close, then open Labs
+await page.mouse.click(5, 700);
+await page.waitForTimeout(200);
+const labs = await page.locator('.home-nav .nav-trigger:has-text("Labs")').first();
+await labs.click();
+await page.waitForTimeout(400);
+await page.screenshot({ path: '/tmp/dropdown-labs.png', clip: { x: 500, y: 0, width: 940, height: 700 } });
+
+await browser.close();
diff --git a/pages/home-v2.html b/pages/home-v2.html
index 339a88717..e773c20ef 100644
--- a/pages/home-v2.html
+++ b/pages/home-v2.html
@@ -61,6 +61,147 @@
></script>
<script src="/fluid-particles.js" defer></script>
<script type="module" src="/src/home-act2-viewer.js"></script>
+ <style>
+ /* ── v2 demo: visible hero interactivity ────────────────────── */
+ .hv2-tryme {
+ position: absolute;
+ top: 6%;
+ left: 50%;
+ transform: translateX(-50%);
+ display: inline-flex;
+ align-items: center;
+ gap: 8px;
+ padding: 8px 16px;
+ border-radius: 999px;
+ background: rgba(20, 22, 32, 0.78);
+ backdrop-filter: blur(12px);
+ -webkit-backdrop-filter: blur(12px);
+ border: 1px solid rgba(255, 255, 255, 0.14);
+ color: #fff;
+ font: 600 12px/1 'Space Grotesk', 'Inter', system-ui, sans-serif;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ pointer-events: none;
+ z-index: 30;
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
+ animation: hv2-tryme-pulse 2.2s ease-in-out infinite;
+ transition: opacity 0.35s ease, transform 0.35s ease;
+ }
+ .hv2-tryme.is-hidden {
+ opacity: 0;
+ transform: translateX(-50%) translateY(-12px);
+ }
+ .hv2-tryme-dot {
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+ background: #6ee7b7;
+ box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.7);
+ animation: hv2-tryme-dot 1.4s ease-out infinite;
+ }
+ @keyframes hv2-tryme-dot {
+ 0% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.7); }
+ 70% { box-shadow: 0 0 0 10px rgba(110, 231, 183, 0); }
+ 100% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0); }
+ }
+ @keyframes hv2-tryme-pulse {
+ 0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(120, 200, 255, 0.45); }
+ 50% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 14px rgba(120, 200, 255, 0); }
+ }
+
+ /* Chip strip — anchored below the avatar in the hero */
+ .hv2-chips-wrap {
+ position: absolute;
+ left: 50%;
+ bottom: 5%;
+ transform: translateX(-50%);
+ z-index: 25;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 10px;
+ pointer-events: auto;
+ max-width: min(720px, 92vw);
+ }
+ .hv2-chips-label {
+ display: inline-flex;
+ align-items: center;
+ gap: 8px;
+ font: 500 11px/1 'Space Grotesk', 'Inter', system-ui, sans-serif;
+ letter-spacing: 0.18em;
+ text-transform: uppercase;
+ color: rgba(255, 255, 255, 0.6);
+ }
+ .hv2-chips {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: center;
+ gap: 8px;
+ }
+ .hv2-chip {
+ display: inline-flex;
+ align-items: center;
+ gap: 7px;
+ padding: 9px 14px;
+ border-radius: 999px;
+ background: rgba(18, 20, 28, 0.72);
+ backdrop-filter: blur(10px);
+ -webkit-backdrop-filter: blur(10px);
+ border: 1px solid rgba(255, 255, 255, 0.12);
+ color: #f3f4f6;
+ font: 600 13px/1 'Space Grotesk', 'Inter', system-ui, sans-serif;
+ cursor: pointer;
+ transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
+ user-select: none;
+ }
+ .hv2-chip:hover {
+ transform: translateY(-2px);
+ background: rgba(28, 32, 44, 0.92);
+ border-color: rgba(255, 255, 255, 0.28);
+ box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
+ }
+ .hv2-chip:active { transform: translateY(0); }
+ .hv2-chip[data-active="true"] {
+ background: linear-gradient(135deg, rgba(110, 231, 183, 0.22), rgba(120, 200, 255, 0.22));
+ border-color: rgba(110, 231, 183, 0.6);
+ color: #fff;
+ box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.35), 0 6px 18px rgba(110, 231, 183, 0.18);
+ }
+ .hv2-chip-icon { font-size: 14px; line-height: 1; }
+ .hv2-chip--rand {
+ background: linear-gradient(135deg, rgba(120, 200, 255, 0.18), rgba(180, 140, 255, 0.18));
+ border-color: rgba(180, 200, 255, 0.4);
+ }
+
+ /* Live click-count pill — only counts real interactions */
+ .hv2-counter {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ padding: 4px 10px;
+ border-radius: 999px;
+ background: rgba(10, 12, 18, 0.6);
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ color: rgba(255, 255, 255, 0.7);
+ font: 500 11px/1 'JetBrains Mono', ui-monospace, monospace;
+ letter-spacing: 0.04em;
+ }
+ .hv2-counter-num { color: #6ee7b7; font-weight: 700; }
+
+ .hv2-subtitle-tight { max-width: 38ch; }
+
+ #hero-avatar { cursor: pointer; }
+
+ @media (max-width: 720px) {
+ .hv2-tryme { top: 4%; font-size: 10px; padding: 6px 12px; }
+ .hv2-chip { padding: 7px 11px; font-size: 12px; }
+ .hv2-chips-wrap { bottom: 2%; }
+ }
+
+ @media (prefers-reduced-motion: reduce) {
+ .hv2-tryme, .hv2-tryme-dot { animation: none !important; }
+ }
+ </style>
</head>
<body class="home-page">
<div class="cursor" id="cursor" aria-hidden="true"></div>
@@ -135,6 +276,49 @@
<div class="h-vignette"></div>
</div>
+ <!-- v2: TRY ME badge over the avatar -->
+ <div class="hv2-tryme" id="hv2-tryme" aria-hidden="true">
+ <span class="hv2-tryme-dot"></span>
+ <span>Try me — pick a move ↓</span>
+ </div>
+
+ <!-- v2: visible chip strip — wires to the hero viewer -->
+ <div class="hv2-chips-wrap" id="hv2-chips-wrap">
+ <div class="hv2-chips-label">
+ <span>Live · click to animate</span>
+ <span class="hv2-counter" id="hv2-counter">
+ <span class="hv2-counter-num" id="hv2-counter-num">0</span>
+ <span>moves played</span>
+ </span>
+ </div>
+ <div class="hv2-chips" id="hv2-chips" role="group" aria-label="Trigger an animation on the hero avatar">
+ <button type="button" class="hv2-chip hv2-chip--rand" data-anim="__random">
+ <span class="hv2-chip-icon">🎲</span><span>Random</span>
+ </button>
+ <button type="button" class="hv2-chip" data-anim="wave">
+ <span class="hv2-chip-icon">👋</span><span>Wave</span>
+ </button>
+ <button type="button" class="hv2-chip" data-anim="dance">
+ <span class="hv2-chip-icon">💃</span><span>Dance</span>
+ </button>
+ <button type="button" class="hv2-chip" data-anim="capoeira">
+ <span class="hv2-chip-icon">🤸</span><span>Capoeira</span>
+ </button>
+ <button type="button" class="hv2-chip" data-anim="jump">
+ <span class="hv2-chip-icon">🦘</span><span>Jump</span>
+ </button>
+ <button type="button" class="hv2-chip" data-anim="thriller">
+ <span class="hv2-chip-icon">🧟</span><span>Thriller</span>
+ </button>
+ <button type="button" class="hv2-chip" data-anim="falling">
+ <span class="hv2-chip-icon">🪂</span><span>Falling</span>
+ </button>
+ <button type="button" class="hv2-chip" data-anim="pray">
+ <span class="hv2-chip-icon">🙏</span><span>Pray</span>
+ </button>
+ </div>
+ </div>
+
<!-- Sticky text pinned to bottom-left — same pattern as features page -->
<div class="h-hero-text">
<div class="h-eyebrow h-reveal">
@@ -142,10 +326,10 @@
<span>The 3D layer for onchain AI agents</span>
</div>
<h2 class="h-title h-reveal">Give your AI<br />a <em>body</em>.</h2>
- <p class="h-subtitle h-reveal">
- Born in 3D. Raised on-chain. Yours forever. Your AI has been a chatbox long
- enough — give it a body, a personality, and a permanent home open to every
- human, app, and agent that comes looking.
+ <p class="h-subtitle h-reveal hv2-subtitle-tight">
+ That avatar above is real — click any move and watch it react. Drop any GLB,
+ embed it anywhere, mint it on Solana as a portable agentId discoverable by
+ any A2A or MCP client.
</p>
<div class="h-cta-row h-reveal">
<a href="/create" class="h-btn-primary">
@@ -908,9 +1092,9 @@
];
let lastAnim = null;
canvas.style.cursor = 'pointer';
- canvas.addEventListener('click', async () => {
- const pool = FUN.filter((a) => a !== lastAnim);
- const name = pool[Math.floor(Math.random() * pool.length)];
+
+ // v2: shared play function so canvas-click AND chip-click both flow through here
+ async function playMove(name) {
lastAnim = name;
if (name === 'falling') {
doFalling();
@@ -918,12 +1102,51 @@
}
try {
await viewer.playClip(name);
- const def = viewer._manifest.find((d) => d.name === name);
+ const def = viewer._manifest && viewer._manifest.find((d) => d.name === name);
if (def && !def.loop) {
setTimeout(() => viewer.playClip('dance').catch(() => {}), 2600);
}
} catch (_) {}
+ }
+
+ canvas.addEventListener('click', async () => {
+ const pool = FUN.filter((a) => a !== lastAnim);
+ const name = pool[Math.floor(Math.random() * pool.length)];
+ hv2OnInteract();
+ playMove(name);
});
+
+ // v2: chip strip wiring + tryme dismissal + counter
+ const chipsWrap = document.getElementById('hv2-chips');
+ const tryme = document.getElementById('hv2-tryme');
+ const counterNum = document.getElementById('hv2-counter-num');
+ let interactionCount = 0;
+
+ function hv2OnInteract() {
+ if (tryme && !tryme.classList.contains('is-hidden')) {
+ tryme.classList.add('is-hidden');
+ }
+ interactionCount += 1;
+ if (counterNum) counterNum.textContent = String(interactionCount);
+ }
+
+ if (chipsWrap) {
+ chipsWrap.addEventListener('click', (e) => {
+ const btn = e.target.closest('.hv2-chip');
+ if (!btn) return;
+ const anim = btn.dataset.anim;
+ if (!anim) return;
+ chipsWrap.querySelectorAll('.hv2-chip').forEach((c) => delete c.dataset.active);
+ btn.dataset.active = 'true';
+ hv2OnInteract();
+ if (anim === '__random') {
+ const pool = FUN.filter((a) => a !== lastAnim);
+ playMove(pool[Math.floor(Math.random() * pool.length)]);
+ } else {
+ playMove(anim);
+ }
+ });
+ }
});
})();
diff --git a/vercel.json b/vercel.json
index affa12ed2..7c88d2748 100644
--- a/vercel.json
+++ b/vercel.json
@@ -1565,6 +1565,14 @@
"src": "/",
"dest": "/home.html"
},
+ {
+ "src": "/home-v2",
+ "dest": "/home-v2.html"
+ },
+ {
+ "src": "/home-v2/",
+ "dest": "/home-v2.html"
+ },
{
"src": "/home",
"status": 301,