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(structure): reword the template gallery row so it does not name another crypto project

nirholas0f633835a291
diff --git a/STRUCTURE.md b/STRUCTURE.md
index fc4f3e767..0daab0d10 100644
--- a/STRUCTURE.md
+++ b/STRUCTURE.md
@@ -90,7 +90,7 @@ packages, a generated standalone GitHub mirror). See
| Trader + earnings leaderboard | [pages/leaderboard.html](pages/leaderboard.html) `→ /leaderboard`, controller [src/leaderboard.js](src/leaderboard.js), Earned tab [src/leaderboard-earned.js](src/leaderboard-earned.js), styles [src/leaderboard.css](src/leaderboard.css); APIs [api/sniper/leaderboard.js](api/sniper/leaderboard.js) `→ GET /api/sniper/leaderboard` (trading, `getLeaderboard` in [api/_lib/trader-stats.js](api/_lib/trader-stats.js)) and [api/leaderboard/earnings.js](api/leaderboard/earnings.js) `→ GET /api/leaderboard/earnings` (earned, read model [api/_lib/agent-earnings.js](api/_lib/agent-earnings.js)) | Live | Two boards on one page, with the tab and window in the URL (`?tab=earned&window=7d`) so any view is shareable. Trading ranks agents by a provable sniper track record (score, realized P&L, win rate, ROI). Earned ranks public agents by what they earned in 24h, 7d, 30d or all time: creator fees from their coins plus service income (x402 skill sales and hires), each shown beside the total in SOL with USD, with rank movement against the previous window and the agent's coin. Every Earned row comes from the same computation as the agent's own Earned card, which links back with its rank ("#1 this week"). Designed empty window (launch a coin), stale-snapshot notice and retryable error. Docs: [docs/api-reference.md](docs/api-reference.md#earnings-leaderboard). Tests: [tests/agent-earnings-board.test.js](tests/agent-earnings-board.test.js); live cross-check [scripts/check-earnings-board.mjs](scripts/check-earnings-board.mjs) |
| Funded launch intents | Pairs [api/pump/pairs.js](api/pump/pairs.js) + [api/_lib/pump-launch-pairs.js](api/_lib/pump-launch-pairs.js), intents [api/pump/launch-intents.js](api/pump/launch-intents.js) + [api/_lib/pump-funded-launch.js](api/_lib/pump-funded-launch.js), page [pages/launch-intent.html](pages/launch-intent.html) `→ /launch/intents` + [src/launch/launch-intent-page.js](src/launch/launch-intent-page.js), CLI `three-ws agent launch --intent`, migration `20261011000000_pump_funded_launch_intents.sql` | Live | A launch priced up front and paid by the agent wallet: quote, paid, submitted, confirmed, indexed. Only a same-site session can fund or confirm (a bearer can create, read and dry-run), the funding proof is once-only and replayable, the creator fee is picked inside the range the program allows, and a devnet lane rehearses it with no real funds. Docs: [docs/launch-intents.md](docs/launch-intents.md). Tests: [tests/pump-funded-launch.test.js](tests/pump-funded-launch.test.js) |
| create-agent (one command, one 3D character) | [packages/create-agent/](packages/create-agent) (client [src/forge.js](packages/create-agent/src/forge.js), scaffold [src/scaffold.js](packages/create-agent/src/scaffold.js), CLI [bin/create-agent.js](packages/create-agent/bin/create-agent.js)), server tools [api/_mcp-studio/tools.js](api/_mcp-studio/tools.js) | Live | `npm create @three-ws/agent "a friendly cartoon astronaut"` generates a textured figure, rigs it, downloads the GLB, and writes a folder with a working demo page and the embed snippet. No account and no API key: it rides the public, keyless JSON-RPC tools on [/api/mcp-studio](api/_mcp-studio) (`forge_avatar`, `forge_free`, `rig_mesh`) that the platform already exposes to MCP clients. A rigged character reliably outlives the endpoint's inline wait, so the client collects the returned poll handle and, when the job that finished was only the mesh, rigs it before reporting done: that is what the `stage` field on a pending result exists for. Progress is real elapsed time, never an invented bar. Docs [docs/create-agent.md](docs/create-agent.md). Tests: [tests/create-agent.test.js](tests/create-agent.test.js) |
-| Agent persona template gallery (create wizard) | Catalog [data/agent-templates.json](data/agent-templates.json), module [src/create-agent-templates.js](src/create-agent-templates.js), dialog + strip in [pages/create-agent.html](pages/create-agent.html) `→ /create-agent`, wiring `wireTemplates` in [src/create-agent.js](src/create-agent.js) | Live | "Start from a template" in step 1 of the wizard: 26 Solana-first finance personas (whale watching, wallet safety, yield, launch vetting, tax planning) in a searchable, tag-filterable grid with a preview pane. One click prefills persona, greeting, category and skills (name, description and tags only fill what is empty), with Undo and a jump to the Personality step. Rewritten from the owner's defi-agents repo; every Sperax-branded persona dropped, tools are real MCP tool names, no addresses, no third-party coins. The new `finance` category is also offered by the marketplace filter, the agent editor and the spec generator. Docs [docs/create-agent.md](docs/create-agent.md). Tests: [tests/agent-templates.test.js](tests/agent-templates.test.js), [tests/create-agent-templates.test.js](tests/create-agent-templates.test.js), [tests/e2e/create-agent-templates.spec.js](tests/e2e/create-agent-templates.spec.js) |
+| Agent persona template gallery (create wizard) | Catalog [data/agent-templates.json](data/agent-templates.json), module [src/create-agent-templates.js](src/create-agent-templates.js), dialog + strip in [pages/create-agent.html](pages/create-agent.html) `→ /create-agent`, wiring `wireTemplates` in [src/create-agent.js](src/create-agent.js) | Live | "Start from a template" in step 1 of the wizard: 26 Solana-first finance personas (whale watching, wallet safety, yield, launch vetting, tax planning) in a searchable, tag-filterable grid with a preview pane. One click prefills persona, greeting, category and skills (name, description and tags only fill what is empty), with Undo and a jump to the Personality step. Rewritten from the owner's defi-agents repo; every persona branded for another project dropped, tools are real MCP tool names, no addresses, no third-party coins. The new `finance` category is also offered by the marketplace filter, the agent editor and the spec generator. Docs [docs/create-agent.md](docs/create-agent.md). Tests: [tests/agent-templates.test.js](tests/agent-templates.test.js), [tests/create-agent-templates.test.js](tests/create-agent-templates.test.js), [tests/e2e/create-agent-templates.spec.js](tests/e2e/create-agent-templates.spec.js) |
| Glance (agent cards for home screens, READMEs and chat) | Page [public/glance/index.html](public/glance/index.html) `-> /glance` (+ [glance-page.js](public/glance/glance-page.js), [glance.css](public/glance/glance.css)), hosted element [public/glance/element.js](public/glance/element.js), endpoints [api/glance/card.js](api/glance/card.js) / [api/glance/mine.js](api/glance/mine.js) / [api/glance/token.js](api/glance/token.js) / [api/glance/template.js](api/glance/template.js), model [api/_lib/glance-card.js](api/_lib/glance-card.js), SVG [api/_lib/glance-svg.js](api/_lib/glance-svg.js), PNG [api/_lib/glance-png.js](api/_lib/glance-png.js), widget tokens [api/_lib/glance-tokens.js](api/_lib/glance-tokens.js) (`glance_widget_tokens`), Adaptive Card [api/_lib/glance-adaptive.js](api/_lib/glance-adaptive.js), Windows widget worker [public/glance-sw.js](public/glance-sw.js) (imported by the VitePWA service worker, manifest `widgets` member in [vite.config.js](vite.config.js)), Android home screen widget [solana-mobile/android-overlay/](solana-mobile/android-overlay/README.md) (applied by [solana-mobile/scripts/apply-overlay.mjs](solana-mobile/scripts/apply-overlay.mjs) inside `build-apk.sh`), macOS and iOS WidgetKit widget [apple/](apple/README.md) (shared [apple/GlanceKit/](apple/GlanceKit), extension [apple/GlanceWidget/](apple/GlanceWidget), Mac app [apple/macos/](apple/macos), an iOS target in [ios/native/App/App.xcodeproj](ios/native/App)), npm client [packages/agent-glance/](packages/agent-glance) | Live | One agent reduced to what fits in an OS widget slot: name, one live number (actions in the last 24h), and a link back. The same model renders five ways from one endpoint (JSON, SVG, PNG, Adaptive Card, and the `<agent-glance>` element), which is what keeps a new surface a rendering job rather than a data job. Windows 11 installs the widget straight from the PWA manifest (no store submission). Android ships it in the app (1.1+): a WorkManager-refreshed `AppWidgetProvider` that fetches the PNG with a revocable per-account widget token minted on `/glance`, keeps the last card offline, and opens the agent on tap. macOS and iOS run one WidgetKit extension over the same PNG and the same token, in small, medium and large: the Mac ships as a Developer ID menu bar app that holds the token and feeds the widget, and the iPhone gets the extension inside the existing Capacitor app. Both fetch the card in each theme so the widget follows the reader's appearance. `npm run check:apple-widget` proves both Xcode projects and the client-to-server contract without a Mac in the room. Deliberately not the 3D embed: no widget host on any of these platforms can run WebGL, so the body stays at [/widgets](public/widgets-gallery/index.html) and the status lives here. Private avatars never leak (the thumbnail is attached only for a public or unlisted avatar; everything else draws a generated monogram). Spec [specs/GLANCE_CARD.md](specs/GLANCE_CARD.md), docs [docs/glance.md](docs/glance.md), [docs/native-widgets.md](docs/native-widgets.md). Tests: [tests/glance-card.test.js](tests/glance-card.test.js), [tests/glance-png.test.js](tests/glance-png.test.js), [tests/glance-tokens.test.js](tests/glance-tokens.test.js), [tests/glance-sw.test.js](tests/glance-sw.test.js), [tests/agent-glance-sdk.test.js](tests/agent-glance-sdk.test.js), guard [scripts/check-apple-widget.mjs](scripts/check-apple-widget.mjs) |
| Daily Match (agent output arena) | [pages/daily-match.html](pages/daily-match.html) `→ /daily-match`, backend [api/leaderboard/daily-match.js](api/leaderboard/daily-match.js) | Live | Live daily standings ranking public agents by real output shipped since 00:00 UTC: agent_actions events, sniper + pump trades, confirmed skill sales, and coin launches, with realized sniper P&L shown for context (never scored). Computed live per request (no rollup cron), resets naturally at UTC midnight; includes yesterday's champion and a live-output feed. Reputation-first: no payouts hang off the score. Format adopted with credit from Bowyer's Arena (bowyer.app/arena), who build their agent pages on three.ws avatars. |
| KOL Tracker | [pages/tracker.html](pages/tracker.html) `→ /tracker`, backend [api/kol/[action].js](api/kol/%5Baction%5D.js) `→ GET /api/kol/tracker?window=&limit=`, aggregator [src/kol/tracker.js](src/kol/tracker.js), wallet list [src/kol/wallet-store.js](src/kol/wallet-store.js) (bundled [src/kol/wallets.json](src/kol/wallets.json) + admin R2 imports via `POST /api/kol/import-gmgn`), FIFO P&L engine [src/kol/wallet-pnl.js](src/kol/wallet-pnl.js), cached X follower/avatar lookup [src/kol/x-profile.js](src/kol/x-profile.js) | Live | Solana crypto KOLs ranked by realized P&L computed from each tracked wallet's own on-chain trade history (24h/7d/30d), with win rate, volume, and trade count — every number traceable to real trades, never a competitor's computed leaderboard. A wallet only shows an X handle/avatar/follower-count when an admin has explicitly attached a verified `xHandle` via `import-gmgn`'s `xHandles` map (never inferred or scraped); unattached wallets rank by wallet address alone. Rows with no configured trade source (`PUMPFUN_BOT_URL`) fall back to an imported `pnlUsd`/`winRate` labeled with its `pnlSource` rather than fabricating on-chain numbers. Prewarm cron: [api/cron/kol-tracker-refresh.js](api/cron/kol-tracker-refresh.js). |