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: enhance coin pages with price moves and on-chain safety metrics
udvk336cde846ec4
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.mdindex 5662cd35f..6a250b56a 100644--- a/ARCHITECTURE.md+++ b/ARCHITECTURE.md@@ -2836,3 +2836,364 @@ The codebase references **~260 distinct `process.env.*` keys** across `api/`; `a---*This document is the authoritative architecture reference for three.ws. For surface-level routing, see `STRUCTURE.md`. For API endpoint details, consult `api/openapi-json.js`. For on-chain deployments, see `contracts/DEPLOYMENTS.md`.*++---++## Appendix: Complete Reference Catalogs++The catalogs below are the output of an exhaustive automated sweep of the codebase — every top-level directory, every file — enumerating the platform surface in full. They are the long-form companion to the curated sections above. Where a count here disagrees with a summary above, the appendix (counted directly from source) is authoritative.++### Complete Route & Page Map++Two layers resolve paths: **`vercel.json`** (`routes` array, 932 entries — production) and **`vite.config.js`** (dev-server `fileMap` + regex rewrites mirroring prod). Dynamic segments use `:param`.++**Core / Marketing / 3D:** `/` → `pages/home.html`; `/home*` 301→`/`; `/what-is`, `/pitch`, `/tour`, `/features` (+ `/features/{ar,forge,scan,play,walk,studio,marketplace,agent-exchange,deploy}`), `/playground`, `/coin3d`, `/hero-demo`, `/constellation`, `/galaxy`, `/cosmos`, `/genome`; `/coin`→`/demo/coin`.++**Agent:** `/agents` → `public/agents/index.html`; `/agents/:id` → `pages/agent-detail.html`; `/agent/:id` 301→`/agents/:id`; `/agent/new`, `/agent/:id/{edit,mind,embed,wallet}`; `/my-agents`; `/discover` (+`/discover/detail.html`); `/agent-studio`; `/agent-badge.html`, `/agent-passport.html`; `/a/:chainId/:agentId` (+`/edit`,`/embed`), `/a/me`, `/a/sol/:asset/.well-known/agent-card.json`→`/api/agents/solana`; `/skills`, `/brain`, `/guardian`, `/reasoning-ledger` (`/ledger/:agentId`).++**Trading / Market:** `/trader/:id`, `/trades`, `/signals` (+`/signals/:slug`), `/terminal`, `/strategies`, `/strategy-lab`, `/swarms`, `/mirror`, `/vaults`, `/labor-market`, `/alpha-copilot`, `/smart-money`, `/oracle` (+`/oracle/arm`,`/arm`), `/radar`, `/coin-intel`, `/trending`, `/activity`, `/watchlist`, `/leaderboard`, `/pulse`, `/pump-live`, `/pump-dashboard`, `/pump-visualizer`, `/pumpfun`, `/gmgn`, `/autopilot` (+`/autopilot-activity`), `/arbitrage`, `/compose`, `/agent-trade`, `/clash`, `/arena` (`/play/arena`).++**3D Worlds:** `/worlds`, `/world-lines`, `/city`, `/agora`, `/club`, `/theater`, `/stage`, `/communities` (`/communities/:mint`, `/town`), `/community`, `/agenc/{embodied,room}`, `/embodiment/embed`, `/play` (+`/play/ufo`,`/play/agent-wallet`), `/game/*` 308→`/play`, `/scene-studio/app`.++**Creation / Studio / Avatars:** `/start`, `/create` (+`/create/{selfie,prompt,character,video,next,studio}`, `/create-review`, `/creating`), `/genesis`, `/scan`, `/segment`, `/scene`, `/dad`, `/forge` (+`/forge/embed`,`/forge-studio`,`/forge-nim`,`/nim-forge`,`/forge-spark`), `/import/rpm`, `/avatar-studio` (dev serves `character-studio/build/`), `/avatar-studio-demo`, `/avatars/:id` (+`/edit`,`/ar`), `/avatar-sdk`, `/avatar-artifact`, `/avatar-wallet-chat`, `/embed/avatar` (`/:handle`), `/characters`, `/character/:id`, `/gallery`, `/gallery-picker`, `/pose` (+`/pose-mini`), `/animations`, `/mocap-studio`, `/overlay-control`, `/voice`, `/xr`, `/ar`, `/hydrate`, `/first-meet`, `/store/:slug`, `/internal/avaturn-forge.html`.++**Launch / Token / $THREE:** `/launch`, `/launchpad`, `/launches` (+`/launches/:mint`), `/launch-week`, `/three`, `/three-live`, `/three-token`, `/threews/claim`, `/claim-wallet`, `/mint-success`, `/bulk-launch` (`/admin/bulk-launch`), `/p/:slug`, `/demo/coin` (`/:mint`), `/bounties` (+`/bounty/:id`), `/go`.++**x402 / Payments:** `/x402` → `public/x402-stripe.html`; `/x402/studio`; `/ca2x402`; `/pay` (+`/pay/calls/:txSig`, `/pay/c/:slug`); `/bazaar`; `/paywall`; `/crypto-demo.html`, `/wallet-connect-demo.html`, `/studio-deposit-harness.html`; `.well-known/x402[.json]`→`/api/wk`; `.well-known/did.json`→`/api/x402/did`.++**Auth / Identity / Wallet:** `/login`, `/register`, `/forgot-password`, `/reset-password`, `/settings`, `/profile` (`/u/:handle`), `/@:handle`, `/wallet.html`, `/vanity-wallet` (+`/vanity/{verify,gallery,bounties}`), `/eth-vanity`, `/evm-wallet`, `/lookup`, `/siwx-test.html`, `/extension/{auth-callback,privacy,terms}`, `/persona/{authorize,demo}`, `.well-known/jwks.json`→`/api/auth/persona`.++**Marketplace / Widgets / Embeds:** `/marketplace` (+`/marketplace/{tools,skills,animations,onchain}` and `/:id`; `/marketplace/agents/:id`→`/agents/:id`; `/marketplace/avatars/:id`→`/avatars/:id`; `/marketplace/analytics`; `/marketplace-walk`), `/collection`, `/widgets` (`public/widgets-gallery/`), `/widget`, `/widget-demo.html`, `/embed` (+`/embed-demo`, `/embed-example.html`, `/embed/v1/preview`, `/embed/walk`), `/walk` → `pages/walk-landing.html` (+`/walk/app`,`/walk-embed`,`/walk-leaderboard`,`/walk-analytics`), `/wk/:avatar`→`/temporary`, `/temporary`, `/artifact` (+`/artifact-example.html`,`/artifact/snippet.html`), `/widget-studio`→`/studio`, `/studio` → `public/studio/index.html`, `/apps-sdk/studio-viewer.html`, `/chat/forge-viewer.html`, `/lobehub/iframe` (`/sperax/iframe`), `/demos-embed/{agents,avatar-only,forge,gallery,selfie,walk}`.++**Dashboard (dashboard-next SPA):** `/dashboard` (+`/dashboard-next`); `/dashboard/{avatars,community-avatars,agents,library,widgets,walk,developers,three-token,holders,analytics,monetize,account,referrals,copy,irl-placements,sniper,settings,tokens,portfolio,api,brain,creator,landscape,prelaunch-radar,transactions,wallet-grinder}` → `pages/dashboard-next/:slug.html`; `/dashboard/:slug` (auto); `/dashboard/edit/:id`; `/dashboard/x402` + `/dashboard/x402-admin` → `public/dashboard/*` (classic); `/dashboard/{wallets,sessions,actions,embed-policy,memory,strategy,voice,sns,delegation,agent-pumpfun,storage,usage}` 301→dashboard-next; `/dashboard-classic/*` 301→`/dashboard/*`. Classic dashboard pages still on disk (`public/dashboard/*.html`) reachable via 301.++**IBM / Cloud partners:** `/ibm/{hello,hello.live,x402-demo}`, `/aws`, `/aws-marketplace/{welcome,error}`, `/dappbay` 302→`dappbay.bnbchain.org/detail/three`, `/providers`.++**Demos:** `/demos` (+`/demos/:slug` ~28 demos incl. `bonding-curve`, `brain`, `erc8004`, `eas-reputation`, `lipsync-{mic,tts}`, `voice-clone`, `usdz-ar`, `react-sdk`, `skill-royalty`, `persona-extract`, `livepeer-inference`, `audio2face`, `halfbody-xr`, `selfie-fit`, `memory-seed`, `create-v2`, `checkout`, `walk-embed-sdk`, `3d-home`, …); `/demos/agents/:slug` (~17: `auto-rig`, `face-mocap`, `gemini-live`, `high-five`, `skateboard`, `trampoline`, `wrecking-ball`, `pickup-drop`, `sit-in-body`, `scroll-inertia`, `cursor-follower`, `builds-button`, `climb-title`, `holds-cta`, `fall-from-top`, `falls-asleep`, `walks-gutter`); `/demo` → `pages/demo-economy.html`; `/demo/avatar-os` (+`/{studio,selfie,combined}`); `/lipsync` (`/mic`); `/live`, `/agent-economy`, `/economy`, `/agent-exchange`, `/labs`, `/fact-checker`, `/unstoppable`, `/shopper`, `/tutor`, `/agi`, `/irl`, `/cz` (+`/cz/offline`), `/next`, `/forever`.++**Docs / Blog / News / Legal:** `/docs` (SPA fetching `public/docs/*.md`) + `/docs/:topic`, `/docs/tutorials/:slug`, `/docs/widgets`, `/docs/walk` (+`/docs/walk/:sub` 9 pages), `/docs/walk-embed-api`; `/tutorials` (+`/tutorials/:slug`), `/glossary`; `/blog`, `/blog/:slug` 301→`/changelog`; `/changelog` (+`/changelog/:slug`); `/news` (+`/news/:slug` ~95 entries); `/events/:slug`; `/legal/{privacy,tos,content-policy,eula,aws-marketplace-eula}`, `/irl-privacy`; `/sitemap` (+`/pages`,`/directory`,`/everything`,`/all-pages` 308→`/sitemap`).++**Identity / Reputation / Validation / Proof:** `/reputation`, `/validation`, `/proof`, `/integrity`, `/status`, `/pricing`, `/x-pricing`, `/billing`, `/credits`, `/support`.++**App / Deploy:** `/app` → `pages/app-next.html`; `/app-classic` → `pages/app.html`; `/app-next` 301→`/app`; `/app-demo`; `/deploy`, `/showcase` → `pages/app.html`; `/chat` 301→`/app` (dev proxied to `:5174`).++**Admin / Internal:** `/admin/{news,sdp,index.html}`, `/admin/bulk-launch`, `/dashboard/x402-admin`, `/internal/avaturn-forge.html`.++**System / Static / `.well-known`:** `/404` (catch-all `/(.*)`), `/500`, `/robots.txt`, `/llms.txt`, `/llms-full.txt`, `/sitemap.xml`→`/api/sitemap`, `/sitemap/{core,agents,avatars,widgets,profiles}.xml`→`/api/sitemap/[type]`, `/changelog.{json,xml}` (static, build-generated), `/rss.xml`, `/rss/announcements.xml`→`/api/rss/announcements`, `/openapi.json`→`/api/openapi-json`, `/agent-3d/versions.json` + `/agent-3d/:ver/agent-3d.js` (CDN lib), `.well-known/{solana/actions.json, chat-plugin.json, sperax-plugin.json, x402.json, agent-attestation-schemas, three-vanity.json, oauth-authorization-server, oauth-protected-resource}`→`/api/wk`, `.well-known/did.json`→`/api/x402/did`, `.well-known/jwks.json`→`/api/auth/persona`, `/footer.html`, `/nav.html` (shared partials); stable unhashed bundles `/footer-bot.js`, `/walk-companion.js`, `/walk-playground.js`, `/feature-tour.js`, `/notifications.js`, `/nav-tier-badge.js`, `/agent-bus.js`, `/i18n.js`, `/error-reporter.js`.++**Counts:** `vercel.json` = 932 route entries (~420 HTML/dir-index, ~65 redirects, rest API rewrites + asset/header routes); `pages/` ≈ 210 HTML, `public/` ≈ 230 HTML (incl. ~95 `news/`, demos, dashboard-classic, docs/walk). `vite.config.js` deliberately mirrors prod so dev matches.++### Complete API Directory Index++All **145 directories** under `api/`. `_`-prefixed dirs are shared internals; `[bracket].js` are dynamic routes.++| Directory | Files | Purpose |+|---|---|---|+| `_lib/` | 326 `.js` + 19 sub-pkgs | Shared utility layer (see catalog below). |+| `_mcp/` `_mcp3d/` `_mcp-studio/` `_mcpagent/` `_mcpbazaar/` `_mcpibm/` | 17/7/5/3/3/5 | Impl dirs behind the remote MCP servers (auth, catalog, dispatch, pricing, render, tools). |+| `_providers/` | 10 | 3D/image gen provider adapters (gcp, huggingface, meshy, nvidia, nvidia-cosmos, replicate, rodin, stability, tripo) + BYOK registry. |+| `_studio/` | 3 | Studio MCP tool registry/dispatch. |+| `actions/` | avatar, avatar-icon | Farcaster/embed action endpoints. |+| `admin/` | 11 | Admin console (revenue, health, bulk-launch, withdrawals, register-agents, club/news/user subdirs). |+| `agenc/` | [action] | AgenC / watsonx Orchestrate dispatcher. |+| `agent-3d/` | versions | 3D asset version listing. |+| `agent-economy/` | status, transact | Two-agent demo economy. |+| `agent-trade/` | demo (SSE), skill | Live A2A trade demo + tradeable skill. |+| `agent/` | activity, dreams, reflect, send-sol, wallet | Single-agent runtime. |+| `agents/` | ~60+ incl `[id]/`, a2a-* (call/cart-verify/hire/mandate/paid), solana*/onchain/, register/, sas/, ens/, pumpfun/, endpoint-shopper-run, networth, copilot, recovery | Central agent surface (identity, A2A, trading/strategy/mirror, ERC-8004 register, Solana ops, portfolio). |+| `agi/` | state | AGI global state. |+| `agora/` | [action], act | Agora citizen actions. |+| `aixbt/` | chat, grounding, intel, projects, _shared | aixbt intelligence proxy. |+| `alerts/` | rules, rules/ | Alert rule CRUD. |+| `animations/` | [id], clips, presign, sell, thumbnail | Animation clip marketplace. |+| `api-keys/` | [id] | API-key management. |+| `assets/` | index | Asset listing. |+| `auth/` | [action], extension-token, github/, persona/, privy/, saml/, session(s)/, siwe/, siws/, wallets/, x/ | Auth: sessions, OAuth, Privy, SAML, SIWE/SIWS, persona, wallet-linking. |+| `autopilot/` | activity, config, proposals | Memory-grounded autopilot. |+| `avatar/` | optimize, presign-audio, presign-glb, render, video-generate, video-status | Single-avatar ops + talking-video. |+| `avatars/` | [id]/, mine, featured, fork, from-forge, draft/, thumbnail, view | Avatar collection CRUD. |+| `aws-marketplace/` | issue-key, link, register, subscription | AWS Marketplace SaaS fulfillment. |+| `bazaar/` | arbitrage, context, list, providers, search | x402 bazaar marketplace. |+| `billing/` | fee-info, invoices, receipts, revenue, summary, payout-wallets/, withdrawals/ | Billing dashboard. |+| `bounties/` | [id]/, leaderboard | Bounty board. |+| `brain/` | chat | Portable-brain chat. |+| `ca2x402/` | resolve | CA → x402 endpoint resolver. |+| `chat-plugin/` | [tool] | LobeHub/ChatGPT plugin tool dispatcher. |+| `chat/` | config, mcp, models, proxy | Chat proxy (LLM proxy, model list, MCP, brand config). |+| `clash/` | [action] | Coin Clash battle actions. |+| `club/` | leaderboard, presence, tips, tips-stream | Club tips/presence/leaderboard (+ SSE). |+| `coin/` | [mint]/ | Per-mint coin detail. |+| `community/` | auth/, capabilities, holder-pass, world-gate, worlds, ws-ticket, messages, me, wallet/ | CoinCommunities-gated layer. |+| `copy/` | earnings, executions, settle-fee, smart-wallets, subscriptions | Copy-trading. |+| `cosmetics/` | catalog, earnings, leaderboard, owned, split | Avatar cosmetics shop + creator splits. |+| `creators/` | [id], skill-analytics | Creator profiles + analytics. |+| `credits/` | deposit, index | Prepaid credit wallet. |+| `crews/` | [tag], index | Crews/clans. |+| `cron/` | 32 files | Scheduled jobs (fanouts, attest, reputation, seeding, sweeps, health) — 61 schedules in vercel.json. |+| `custody/` | anchor, integrity | Custodial-wallet anchors + integrity proofs. |+| `cz/` | claim | CZ campaign claim. |+| `dad/` | generate | Persona/"dad" generation. |+| `dashboard/` | prefs | Dashboard preferences. |+| `demo/` | economy, coin/ | Demo surfaces. |+| `developer/` | mcp-test, usage, webhooks, webhooks/ | Developer portal. |+| `embed/` | resolve | Resolve embeddable widget/agent. |+| `erc8004/` | [action], register-confirm | ERC-8004 registry register + confirm + validate. |+| `forever/` | inscribe, status | Permanent inscription (Arweave/Ordinals). |+| `frames/` | walk | Farcaster Frame. |+| `friends/` | index, messages, presence-ticket, search | Social graph. |+| `galaxy/` | flows | Agent-galaxy money-cam flow feed. |+| `genome/` | breed, edges, lineage, preview, stud | Agent genome breeding/lineage. |+| `guardian/` | assess | Granite Guardian assessment. |+| `ibm/` | attest, galaxy, oracle, twin, vision | IBM Granite product surfaces. |+| `inference/` | livepeer | Livepeer inference proxy. |+| `insights/` | revenue-vision | AI revenue insights. |+| `intel/` | smart-money, wallet/ | Smart-money + wallet intel. |+| `irl/` | agent-card, agent-summary, drops, fix-token, interactions(+stream), pins, privacy, report, world-lines | IRL/AR layer. |+| `jobs/` | flush-usage-events | Usage-event flush. |+| `keys/` | [id], index | API/provider key store. |+| `kol/` | [action], trades | KOL actions + trades. |+| `labor/` | post, bid, award, deliver, settle, bounty, feed, policy, agent, tick | Agent Labor Market. |+| `launch/` | mm | Launch market-maker copilot. |+| `launchpad/` | get, invoke, list, publish | Paid-service launchpad. |+| `ledger/` | [agentId], verify/ | Reasoning ledger read + verify. |+| `llm/` | anthropic, health | LLM proxy + health. |+| `lobehub/` | [action] | LobeHub plugin dispatcher. |+| `marketplace/` | [action], analytics, animations, asset-price, buy-asset, check-skill-access, purchase(+-as-agent,-bundle), reviews, set-skill-price, start-trial, theme | Skill/asset marketplace. |+| `memory/` | context, curate, graph, search | Agent memory (context, KG, search). |+| `mirror/` | leaderboard | Mirror-trade leaderboard. |+| `mocap/` | [id], clips | Motion-capture library. |+| `monetization/` | prices, revenue, wallet, withdrawals | Creator monetization. |+| `nft/` | mint-scene(+confirm), resolve | Scene NFT minting. |+| `notifications/` | [id]/, index, preferences, read-all, track | In-app notifications. |+| `oauth/` | [action] | OAuth flow dispatcher. |+| `og/` | agent, sealed-drop, three-token-badge | OG image generators. |+| `onboarding/` | [action] | Onboarding dispatcher. |+| `onramp/` | link | Fiat on-ramp link. |+| `oracle/` | 24 files (action-stream, feed, stream, leaderboard, backtest, coin, signal, social, watch, follow, movers, wins, og, …) | Granite Oracle product surface. |+| `pay/` | deal | Pay-by-deal. |+| `payments/` | intent, purchase-skill, evm/, solana/, _config | Unified payment intents. |+| `permissions/` | [action] | ERC-7710 permission grant/redeem dispatcher. |+| `persona/` | extract, preview | Persona extraction from social seeds. |+| `pinning/` | [action] | IPFS pinning dispatcher. |+| `platform/` | stats | Platform-wide stats. |+| `play/` | builds, nonce, refresh, verify | /play sandbox + play-pass. |+| `plugins/` | [action] | Plugin registry dispatcher. |+| `portfolio/` | [action] | Portfolio command dispatcher. |+| `pump-bounties/` | [id], stats | pump.fun GO bounty board. |+| `pump/` | 35 files ([action], launch-prep/-agent/-detail/-og, curve, price-history, coin-intel, intel(+enrich), safety, smart-money, autopilot, trades-stream, helius-webhook, withdraw-prep/-confirm, …) | pump.fun surface. |+| `purchase/` | skill | Skill purchase. |+| `push/` | subscribe | Web-push subscription. |+| `referral/` | visit | Referral visit tracking. |+| `registry/` | resolve | Agent/name registry resolution. |+| `render/` | avatar-clip, glb | Server render endpoints. |+| `reputation/` | leaderboard | Reputation leaderboard. |+| `rider/` | check, firebase, info, webhook | Rider-pass system. |+| `rss/` | announcements | Announcements RSS. |+| `scene/` | gate-check, gate-create | Token-gated 3D scene access. |+| `sdp/` | [...path] | Solana Data Platform proxy. |+| `seed/` | farcaster, github, x, synthesize | Persona seeding from socials. |+| `share/` | x | Share-to-X. |+| `signals/` | feed, feeds, marketplace, stream, subscribe, _common | Signal marketplace. |+| `sitemap/` | [type] | Dynamic sitemap generator. |+| `skills/` | [id]/, categories, index, license-onchain, mint, review | Skill catalog + on-chain license. |+| `sniper/` | compile, backtest, close, radar(+stream), leaderboard, status, strategy, stream, trader, history | Sniper strategy lab. |+| `social/` | sentiment, sentiment-pulse | Social sentiment. |+| `stage/` | host, index, tip | Living Stages. |+| `studio/` | retexture-region | Studio retexture endpoint. |+| `studio-assets/` | [...path] | Studio asset proxy. |+| `subscriptions/` | index, plans, subscribe, verify | Creator subscriptions. |+| `swarms/` | [id], index | Trading swarms. |+| `three/` `three-token/` `token/` | [action] each | $THREE tier/access + token data dispatchers. |+| `threews/` | me, subdomain | three.ws identity + SNS subdomain. |+| `tournaments/` | [id], index | Social Trading Arena tournaments. |+| `traders/` | preview | Trader track-record preview. |+| `trades/` | feed | Live trade feed. |+| `trading/` | scan | Trade-opportunity scanner. |+| `tts/` | speak, edge, eleven(+-clone), voices, eleven/ | Text-to-speech. |+| `tutor/` | session | AI tutor session. |+| `tx/` | explain, solana/ | Transaction explainer. |+| `usage/` | summary | Usage summary. |+| `user/` | provider-keys, wallet/ | Per-user provider keys + wallet. |+| `users/` | [username]/, by-subdomain, earnings, lookup, me/, referral-claim/-code, referrals | User profiles. |+| `v1/` | _catalog, _providers, agents/, market/, sentiment, x/, index | Versioned public API gateway. |+| `vanity/` | bounties, cert, drops, gallery, og | Vanity-address grind market. |+| `vaults/` | [id], deposit, redeem, trade, claim-fees, ledger, index | Trading vaults. |+| `walk/` | session, pilot, metrics, leaderboard, analytics, control/ | Walk/embodiment experience. |+| `wallet/` | balances | Wallet balances. |+| `watsonx/` | embed | watsonx embedding proxy. |+| `webhooks/` | replicate, solana-pay | Inbound webhooks. |+| `widgets/` | [id]/, index, oembed, og, page, view, _demo-fixtures | Embeddable widgets. |+| `world/` | [action] | Per-world persistence dispatcher. |+| `x/` | post, draft, schedule, analytics, reviews, status, triggers | X (Twitter) automation. |+| `x402/` | 34 files (forge, mint-to-mesh(+batch), token-intel, crypto-intel, three-intel, skill-call, skill-marketplace, pay-by-name, agent-bouncer, agent-reputation, onchain-identity-verify, pump-agent-audit, pump-launch, fact-check, dance-tip, asset-download, animation-download, vanity(+-verifiable), symbol-availability, model-check, permit2-paid-demo, club-cover, cosmetic-purchase, my-receipts, did, service, admin/) | Paid x402 endpoint catalog (each file = a monetized service). |+| `x402-pay/` | og | OG image for x402 payment pages. |++### Complete `api/_lib/` Utility Catalog++**326 top-level `.js` modules** + **19 sub-packages** (`a2a`, `a2f-protos`, `club`, `coin`, `copy`, `evm`, `format`, `market`, `migrations`, `oracle`, `pricing`, `pump-intel`, `riva-protos`, `services`, `sniper`, `solana`, `token`, `trust`, `x402`). Nothing in `_lib` is itself a route. Grouped by domain:++- **DB / cache / storage / infra:** `db.js`, `db-retry.js`, `schema.sql`, `migrations/`, `cache.js`, `redis.js`, `redis-usage.js`, `skill-price-cache.js`, `r2.js`, `ipfs-pin.js`, `storage-mode.js`, `forge-cache.js`, `qstash.js`, `resilience.js` (cockatiel), `sse-poll-breaker.js`, `env.js`, `http.js`, `http-params.js`, `ids.js`, `sentry.js`, `axiom.js`, `rate-limit.js`.+- **Auth / security / crypto:** `auth.js`, `account-auth.js`, `admin.js`, `zauth.js`, `crypto.js`, `secret-box.js` (AES-256-GCM), `provider-keys.js`, `csrf.js`, `ssrf.js`, `ssrf-guard.js`, `fetch-model.js`, `pii.js`, `moderation.js` (NemoGuard), `granite-guardian.js`, `identity-integrity.js`, `siwe.js`, `siws.js`, `siwx-server.js`, `siwx-storage.js`, `saml.js`, `privy.js`, `audit.js`.+- **Solana / on-chain:** `solana/` (connection, rpc-fallback, confirm, gasless-tx, idl, programs, sdk-bridge), `solana-wallet.js`, `solana-signers.js`, `solana-transfer.js`, `solana-collection.js`, `solana-token-meta.js`, `token-metadata.js`, `onchain.js`, `onchain-deploy.js`, `agent-registry.js`, `agent-invocation-onchain.js`; attestations: `attest-event.js`, `sas.js`, `solana-attestations.js`, `solana-validation-attest.js`, `validation-attest.js`, `tournament-attest.js`, `trader-score-attest.js`, `ledger-anchor.js`, `brain-anchor.js`, `custody-proof.js`; `helius.js`, `balances.js`, `three-brand.js`, `threews-sns.js`.+- **EVM / x402:** `x402/` (a2a-client/server, access-control, api-keys, audit-log, auth-hints, bazaar-client/helpers, idempotency-cache, offer-receipt-issuer/server, payment-identifier-client/server, paywall-handler, receipt-storage), `x402.js`, `x402-spec.js`, `x402-paid-endpoint.js`, `x402-prices.js`, `x402-errors.js`, `x402-buyer-fetch.js`, `x402-buyer-axios.js`, `x402-user-payer.js`, `x402-spending-cap/-ledger/-price.js`, `x402-solana-confirm.js`, `x402-bsc-direct.js`, `x402-builder-code.js`, `evm/rpc.js`, `evm-transfer.js`, `evm-payment-verify.js`, `erc8004-chains.js`, `a2a/` (cart-mandate, mandate, reputation-gate, spend-ledger), `aws-marketplace.js`, `aws-marketplace-bridge.js`.+- **LLM / embeddings / vision / voice:** `llm.js`, `chat-models.js`, `llm-pricing.js`, `llm-health.js`, `provider-health.js`, `strip-reasoning.js`, `orchestrate.js`, `watsonx.js`, `watsonx-forecast.js`, `embeddings.js`, `agent-embeddings.js`, `embedding-math.js`, `chunker.js`, `text-extract.js`, `rerank.js`, `vision.js`, `avatar-alt-text.js`, `forge-image-validate.js`, `a2f-nvidia.js`, `asr-nvidia.js`, `tts-nvidia.js`, `tts-voices.js`, `elevenlabs.js`, `a2f-protos/`, `riva-protos/`.+- **Forge / 3D / avatars:** `forge-tiers/-options/-store/-events/-health/-lane-health/-scale/-job-token/-provider-key/-high-payment/-consumption-payment.js`, `glb-compress/-inspect/-quality/-themer.js`, `model-inspect.js`, `rig-inspect.js`, `provider-result-url.js`, `avatars.js`, `avatar-agent/-render/-wallet.js`, `bake.js`, `accessories.js`, `auto-rig.js`, `auto-rig-eligibility.js`, `avaturn-headless.js`, `avaturn-seed.js`, `reconstruct-finalize.js`, `regen-provider.js`, `render-glb.js`, `render-clip.js`, `networth-model.js`, `genome.js`, `genome-agent.js`, `fork-royalties.js`, `remix-royalty.js`.+- **Pump / oracle / intel / market:** `pump.js`, `pump-go/-launch/-launch-feed/-quote/-pricing/-platform-fee/-swap-ix/-trade-args/-vanity/-claims.js`, `pump-alert-eval/-runner.js`, `pumpfun-mcp.js`, `pumpfun-ws-feed.js`, `pump-intel/` (enrich, funder-graph, news-matcher, smart-money-xref), `oracle/` (agent-eval, alerts, archetype, conviction, known-wallets, narrative, news-context, settle, sources, store), `aixbt.js`, `birdeye.js`, `gmgn-feed.js`, `smart-money.js`, `coin-communities.js`, `channel-feed-sources.js`, `signal-engine.js`, `alpha-read.js`, `token-market.js`, `market/` (ohlcv, token-market), `coin/` (cohorts, creator-fees, distribution, holders, three-holders, treasury, payouts, randomness).+- **Trading / vault / labor / tournament / copy / mirror / swarms:** `execution-engine.js`, `trade-firewall.js`, `orders.js`, `market-maker.js`, `strategy-schema/-compiler/-backtest.js`, `agent-strategy-runtime.js`, `sniper/notify.js`, `vault-store/-wallet/-auth/-trade/-transfer/-accounting/-jupiter.js`, `agent-labor.js`, `labor-auth/-economics/-escrow/-match/-settle.js`, `tournament-engine/-store/-scoring/-settlement.js`, `copy-engine.js`, `copy-earnings.js`, `agent-mirror.js`, `mirror-engine.js`, `mirror-stats.js`, `swarms.js`, `syndicate.js`, `trader-stats.js`, `treasury-autopilot.js`, `trust/` (access, proof-of-reserves, reputation-store, solana-bouncer, wallet-reputation).+- **Agent / memory / spend policy:** `agent-wallet/-identity/-delegate/-economy/-pumpfun/-recovery/-usdc-transfer/-paid-services.js`, `economy-shape.js`, `agent-spend-policy.js`, `agent-trade-guards.js`, `spend-policy-rules.js`, `spend-policy-compiler.js`, `wallet-capabilities.js`, `wallet-intents.js`, `wallet-anomaly.js`, `anomaly-events.js`, `memory-store.js`, `memory-entities.js`, `reasoning-ledger.js`, `reflection.js`, `autopilot.js`, `persona-store.js`, `seed-default-agent.js`, `seed-prompts.js`, `circulation.js`, `circulation-personas.js`, `brain-bundle.js`, `brain-sign.js`, `galaxy.js`, `galaxy-flows.js`.+- **Billing / usage / monetization / skills:** `metering.js`, `usage.js`, `monetization.js`, `services/MonetizationService.js`, `credits.js`, `credit-deposit.js`, `fee.js`, `payout.js`, `splits.js`, `royalty.js`, `patronage.js`, `skill-access/-runtime/-pricing-rules/-nft.js`, `skill-license-issue/-onchain/-verify.js`, `purchase-confirm.js`, `marketplace-platform-fee.js`, `nft-gate.js`, `subscription-billing/-checkout/-pricing.js`, `pricing/` (catalog, charge-three, name-rarity), `token/` (allowance, buyback, config, payments, price, quote, rewards), `three-access.js`, `three-gate.js`, `three-tier.js`, `require-three.js`, `holder-pass.js`, `account-tier.js`, `play-pass.js`, `referrals.js`, `referral-rewards.js`, `activation.js`, `sdp.js`.+- **IRL / community / world / club / stage:** `irl-auth/-bake/-drops/-presence.js`, `geohash.js`, `world-lines.js`, `sealed-drop-store.js`, `sealed-drop-funding.js`, `resolve-recipient.js`, `world-store/-gate/-service-auth.js`, `crews-store.js`, `friends-store.js`, `presence-store.js`, `diorama-store.js`, `builds-store.js`, `clash.js`, `clash-store.js`, `club/` (chain, cover-pass, payouts, sweep), `stage-bridge.js`, `stage-split.js`, `agora-human.js`, `agora-policy.js`.+- **Notifications / comms / distribution:** `notify.js`, `notify-prefs.js`, `alerts.js`, `alert-delivery.js`, `web-push.js`, `email.js`, `newsletter.js`, `webhook-dispatch.js`, `x-post.js`, `indexnow.js`, `rss-feed.js`, `feed.js`.+- **MCP / aggregator / validation / misc:** `mcp-dispatch.js`, `mcp-batch-price.js`, `mcp-error-sanitize.js`, `mcp-getting-started.js`, `pump-pricing.js`, `aggregator.js`, `gateway.js`, `validate.js` (zod schemas), `embed.js`, `embed-policy.js`, `widget-types.js`, `cosmetics.js`, `cosmetics-economy.js`, `cosmetics-ownership.js`, `pump-vanity.js`, `vanity-bounty-store.js`, `vanity-bounty-payout.js`, `vanity-cert-store.js`, `vanity-gallery-store.js`, `vanity-service-key.js`, `bounty-judge.js`, `bounty-likes.js`, `provider-job-error.js`, `format/links.js`.++### Complete MCP Tool Reference++three.ws exposes MCP tools across **8 remote HTTP servers** + **32 stdio/npm servers** (`mcp-server`, `mcp-bridge`, 30 `packages/*-mcp`).++**Remote HTTP servers:**++- **Core — `POST /api/mcp`** (OAuth scopes or x402 USDC; prices `api/_lib/pump-pricing.js`): `getting_started`(free), `list_my_avatars`, `get_avatar`, `search_public_avatars`, `render_avatar`($0.005), `render_avatar_image`, `delete_avatar`, `get_embed_code`, `validate_model`($0.01), `inspect_model`($0.01), `optimize_model`($0.05), `list_animations`, `apply_animation`($0.02), `text_to_animation`, `solana_agent_reputation`, `solana_agent_attestations`, `solana_agent_passport`, `pumpfun_recent_claims`, `pumpfun_token_intel`, `pumpfun_creator_intel`, `pumpfun_recent_graduations`, `call_agent`, `register_agent`, `identity_check`, `remember`, `recall`, `forget`, `oracle_top_plays`, `oracle_coin`, `oracle_arm_watch`, `oracle_watch_status`, `trader_leaderboard`, `trader_profile`, `copy_subscribe`, `copy_status` (~35).+- **3D Studio — `POST /api/mcp-3d`** (OAuth or x402; `api/_mcp3d/pricing.js`): `getting_started`, `text_to_3d`(tier), `image_to_3d`(tier), `generation_status`, `preview_3d`, `remove_background`($0.01), `remesh_model`($0.02), `stylize_model`($0.02), `segment_model`($0.02), `retexture_model`($0.05), `retexture_region`($0.05), `auto_rig_model`($0.05), `pose_model`($0.01), `direct_prompt`($0.01), `generate_material`($0.01), `save_avatar`, `create_agent_persona`, `get_agent_persona`, `persona_say`, `inspect_model`, `optimize_model`, `list_animations`, `apply_animation`($0.01) (24).+- **Free Studio — `POST /api/mcp-studio`** (no auth): `forge_free`, `text_to_avatar`, `mesh_forge`, `rig_mesh`, `forge_avatar` (5).+- **Agent Wallet — `POST /api/mcp-agent`** (OAuth + x402 from agent wallet): `getting_started`, `wallet_status`, `find_services`, `pay_and_call`(variable), `provision_wallet`, `monetize_endpoint` (6).+- **Bazaar — `POST /api/mcp-bazaar`**: `getting_started`, `search_services`, `browse_services`, `get_service` (4).+- **IBM Granite — `POST /api/ibm-mcp`** (x402 USDC Base/Solana): `ibm_granite_getting_started`, `ibm_granite_chat`($0.02), `ibm_granite_code`($0.025), `ibm_granite_embed`($0.005), `ibm_granite_analyze`($0.04), `ibm_granite_forecast`($0.05) (6).+- **Pump.fun — `POST /api/pump-fun-mcp`** (mostly free; 4 gated tools need Bearer or $0.001 x402): `search_tokens`, `get_token_details`, `get_bonding_curve`, `get_token_trades`, `get_trending_tokens`, `get_new_tokens`, `get_graduated_tokens`, `get_king_of_the_hill`, `get_creator_profile`, `get_token_holders`, `pumpfun_vanity_mint`*, `pumpfun_watch_whales`*, `pumpfun_list_claims`, `pumpfun_watch_claims`*, `pumpfun_first_claims`, `sns_resolve`, `sns_reverseLookup`, `social_cashtag_sentiment`, `kol_leaderboard`, `pumpfun_quote_swap`, `social_x_post_impact`, `get_coin_intel`, `get_oracle_conviction`, `pumpfun_upload_metadata`*, `pumpfun_bot_status` (25; * = gated).+- **Viewer/Chat — `POST /api/chat/mcp`** (Bearer required): `setWireframe`, `setSkeleton`, `setGrid`, `setAutoRotate`, `setBgColor`, `setTransparentBg`, `setEnvironment`, `takeScreenshot`, `loadModel`, `runValidation`, `showMaterialEditor` (11).++**stdio / npm servers:**++- **`@three-ws/mcp-server`** (x402 USDC, mostly Solana): `forge_free`(free), `mesh_forge`($0.25), `rig_mesh`($0.20), `forge_avatar`($0.45), `text_to_avatar`($0.15), `get_pose_seed`($0.001), `pump_snapshot`($0.005), `sentiment_pulse`($0.003), `aixbt_intel`($0.01), `aixbt_projects`($0.01), `ens_sns_resolve`($0.0005), `vanity_grinder`($0.05), `agent_reputation`($0.01), `agent_delegate_action`($0.01), `agent_hire_discover`($0.01), `agent_hire`($0.05), `agenc_get_agent`($0.001), `agenc_get_task`($0.001), `agenc_list_tasks`($0.001) (19).+- **`@three-ws/mcp-bridge`** (x402 universal payer): `call_paid_endpoint`, `list_bazaar_tools`, `refresh_bazaar`, + 0–N dynamic `paid_<slug>` (cap `MCP_BRIDGE_DISCOVER_LIMIT`=20).+- **`@three-ws/activity-mcp`**: `get_trending_agents`, `get_trending_coins`, `get_holder_leaderboard`, `get_tier_info`, `get_feed_events`.+- **`@three-ws/agenc-mcp`**: `get_agent`, `get_task`, `link_agent`, `list_tasks`, `query_x402_services`.+- **`@three-ws/agora-mcp`**: `agora_board`, `agora_citizens`, `agora_passport`, `agora_professions`, `agora_pulse`, `agora_register`, `agora_claim_task`, `agora_complete_task`, `agora_post_task`.+- **`@three-ws/alerts-mcp`**: `create_alert_rule`, `update_alert_rule`, `delete_alert_rule`, `list_alert_rules`, `get_alert_history`.+- **`@three-ws/audio-mcp`**: `text_to_speech`, `speech_to_text`, `audio_to_face`, `motion_capture_clips`, `motion_capture_clip`.+- **`@three-ws/autopilot-mcp`**: `get_autopilot_config`, `set_autopilot_config`, `compute_trust`, `generate_proposals`, `list_proposals`, `adjust_proposal`, `dryrun_proposal`, `dismiss_proposal`, `execute_proposal`, `undo_action`, `list_autopilot_activity`.+- **`@three-ws/avatar-agent`**: `spawn_avatar`, `dress_avatar`, `generate_avatar`, `render_avatar`, `thumbnail_glb`, `viewer_url`, `list_avatars`, `list_animations`, `inspect_glb`, `validate_glb`, `optimize_glb`, `speak`, `ens_sns_resolve`, `wallet_create`, `wallet_balance`, `wallet_send`, `pump_buy`, `pump_launch`, `pump_collect_fees`, `pump_snapshot` (20).+- **`@three-ws/billing-mcp`**: `get_billing_summary`, `query_usage`, `export_billing_history`, `get_receipt`, `get_revenue`, `get_fee_info`.+- **`@three-ws/brain-mcp`**: `list_providers`, `chat`.+- **`@three-ws/clash-mcp`**: `get_clash_state`, `get_clash_leaderboard`, `enlist_faction`, `rally_faction`.+- **`@three-ws/copy-mcp`**: `list_subscriptions`, `create_subscription`, `update_subscription`, `cancel_subscription`, `get_executions`, `record_execution`, `get_earnings`.+- **`@three-ws/intel-mcp`**: `smart_money_coin`, `wallet_intel`, `signal_feed`, `kol_leaderboard`, `kol_trades`, `copy_smart_wallets`.+- **`@three-ws/kol-mcp`**: `get_wallet_portfolio`, `get_wallet_trades`.+- **`@three-ws/loom-mcp`**: `get_loom_feed`, `get_creation`, `submit_creation`.+- **`@three-ws/ibm-watsonx-mcp`** (your own IBM creds): `watsonx_chat`, `watsonx_forecast`, `watsonx_generate`, `watsonx_embed`, `watsonx_tokenize`, `watsonx_list_models`.+- **`@three-ws/ibm-x402-mcp`** (x402): `ibm_granite_getting_started`, `ibm_granite_chat`($0.02), `ibm_granite_code`($0.025), `ibm_granite_embed`($0.005), `ibm_granite_analyze`($0.04), `ibm_granite_forecast`($0.05).+- **`@three-ws/marketplace-mcp`**: `browse_agents`, `browse_skills`, `agent_detail`, `agent_categories`, `skill_categories`.+- **`@three-ws/naming-mcp`**: `sns_resolve`, `sns_reverse`, `threews_availability`.+- **`@three-ws/notifications-mcp`**: `list_notifications`, `mark_read`, `delete_notification`, `get_preferences`, `set_preferences`, `register_push_device`, `unregister_push_device`.+- **`@three-ws/portfolio-mcp`**: `get_portfolio_summary`, `get_portfolio_history`, `get_portfolio_asset`, `get_wallet_balances`, `get_trades_feed`, `send_transfer`.+- **`@three-ws/provenance-mcp`**: `append_agent_action`, `list_agent_actions`, `query_action`.+- **`@three-ws/pumpfun-mcp`** (proxies `/api/pump-fun-mcp`): 22 tools mirroring the remote pump.fun server (+ legacy camelCase aliases).+- **`@three-ws/scene-mcp`**: `compose_scene`, `get_scene`, `list_scenes`.+- **`@three-ws/signals-mcp`**: `list_signal_feeds`, `get_mirror_leaderboard`, `get_subscriptions`, `subscribe_signal`(x402 live mode), `set_subscription_status`.+- **`@three-ws/three-token-mcp`**: `three_price`, `three_balance`, `three_burn` (capped $100, REQUIRE_CONFIRM).+- **`@three-ws/avatar-mcp`** (free): `render_avatar`, `avatar_embed_code`, `get_avatar` + a `showcase-avatar` MCP-App prompt/resource.+- **`@three-ws/tutor-mcp`**: `load_session`, `close_session`.+- **`@three-ws/vanity-mcp`**: `vanity_quote`, `vanity_appraise`, `vanity_board`, `vanity_open`, `vanity_stats`, `vanity_leaderboard`, `vanity_config`, `vanity_gallery`.+- **`@three-ws/vision-mcp`**: `analyze_image`, `describe_image`, `get_vision_status`.+- **`@three-ws/x402-mcp`**: `x402_wallet`, `find_services`, `inspect_endpoint`, `pay_and_call`(capped MAX_PAY_USD $1).++### Complete Environment Variable Reference++Tiers: **CRITICAL** = `req()` in `api/_lib/env.js` (cold-start throw) or prod-fail-closed; **Required** = feature returns 501/503 without it; **Optional** = safe fallback/default; **Test/Ops** = scripts/CI/platform only. Names only — never values.++- **CRITICAL `req()` (cold-start risk):** `DATABASE_URL`, `S3_ENDPOINT`, `S3_ACCESS_KEY_ID`, `S3_SECRET_ACCESS_KEY`, `S3_BUCKET`, `S3_PUBLIC_DOMAIN`, `JWT_SECRET`, `AGENT_RELAYER_KEY`, `AWS_MP_ACCESS_KEY_ID`, `AWS_MP_SECRET_ACCESS_KEY`, `AWS_MP_PRODUCT_CODE`.+- **Prod fail-closed (throw only in production):** `MULTIPLAYER_SHARED_SECRET`/`HOLDER_PASS_SECRET`, `THREE_TREASURY_WALLET`, `THREE_REWARDS_WALLET`, `THREE_QUOTE_SECRET`. Money receivers fail-closed by design (no default): `X402_PAY_TO_SOLANA`/`_BASE`/`_BSC`, `X402_FEE_PAYER_SOLANA`.+- **Database / cache / storage:** `R2_ENDPOINT`/`R2_ACCOUNT_ID`/`R2_BUCKET`/`R2_ACCESS_KEY_ID`/`R2_SECRET_ACCESS_KEY`, `AWS_ENDPOINT_URL_S3`/`AWS_ACCESS_KEY_ID`/`AWS_SECRET_ACCESS_KEY`, `UPSTASH_REDIS_REST_URL`/`_TOKEN` (aliases `three_KV_REST_API_URL/TOKEN`, `KV_REST_API_URL/TOKEN`), `UPSTASH_CACHE_REST_URL`/`_TOKEN`, `UPSTASH_EMAIL`, `UPSTASH_MANAGEMENT_API_KEY`, `UPSTASH_REDIS_STORE_ID`, `REDIS_URL`/`REDIS_URI`, `QSTASH_TOKEN`/`QSTASH_CURRENT_SIGNING_KEY`/`QSTASH_NEXT_SIGNING_KEY`.+- **Auth / session / encryption:** `JWT_KID`, `WALLET_ENCRYPTION_KEY`, `WALLET_CAPABILITY_SECRET`, `SESSION_SECRET`, `HOLDER_PASS_SECRET`, `CSRF_DISABLED`, `PASSWORD_ROUNDS`, `PRIVY_APP_ID`/`VITE_PRIVY_APP_ID`/`PRIVY_APP_SECRET`/`PRIVY_JWKS_ENDPOINT`, `GITHUB_OAUTH_CLIENT_ID`/`_SECRET`, `X_OAUTH_CLIENT_ID`/`_SECRET`, `PERSONA_JWKS_PRIVATE_KEY_PEM`/`_PUBLIC_KEY_PEM`/`PERSONA_JWKS_KID`/`PERSONA_STORE_DIR`/`PERSONA_TTL_SEC`, `SIWX_VERIFY_MODE`, `ADMIN_ADDRESSES`, `CHAT_ADMIN_KEY`, `SAML_IDP_*` (ENTITY_ID/SSO_URL/SLO_URL/CERT/METADATA_URL), `SAML_SP_*` (ENTITY_ID/PRIVATE_KEY/CERT), `SAML_WANT_ASSERTIONS_SIGNED`/`_WANT_RESPONSE_SIGNED`/`_SIGNATURE_ALGORITHM`/`_IDENTIFIER_FORMAT`/`_CLOCK_SKEW_MS`/`_ALLOW_IDP_INITIATED`/`_BUTTON_LABEL`.+- **Solana / on-chain:** `SOLANA_RPC_URL` (+aliases `SOLANA_RPC`/`SOLANA_MAINNET_RPC`/`NEXT_PUBLIC_SOLANA_RPC_URL`), `SOLANA_RPC_URL_DEVNET`/`SOLANA_DEVNET_RPC`, `SOLANA_RPC_URLS`/`_FALLBACK_URLS`, `HELIUS_API_KEY`/`HELIUS_WEBHOOK_AUTH`, `SOLANA_USDC_MINT`/`DEVNET_USDC_MINT`, `NEXT_PUBLIC_SOLANA_ALT_ADDRESS`, `TREASURY_KEYPAIR`/`PLATFORM_TREASURY_KEYPAIR`, `MAINNET_RPC_URL`, `JITO_BLOCK_ENGINE_URL`/`JITO_BUNDLE_URL`/`JITO_TIP_SOL`, `ALCHEMY_API_KEY`/`ANKR_API_KEY`/`DRPC_API_KEY`, `SOLANA_AGENT_COLLECTION_MAINNET`/`_DEVNET`/`_AUTHORITY_KEY`, `THREEWS_SOL_PARENT_DOMAIN`/`_PARENT_SECRET_BASE58`, `STOREFRONT_ORIGIN`, `BUBBLEGUM_MERKLE_TREE`/`_TREE_AUTHORITY`, `NFT_STORAGE_TOKEN`/`WEB3_STORAGE_TOKEN`/`PINATA_JWT`/`FILEBASE_KEY`/`_SECRET`, `BTC_INSCRIPTION_RECEIVE_ADDRESS`/`ORDINALSBOT_API_KEY`/`_BASE_URL`, `AGENC_RPC_URL`/`AGENC_DEVNET_RPC_URL`/`AGENC_BRIDGE_URL`.+- **EVM / x402:** `AGENT_RELAYER_ADDRESS`, `PERMISSIONS_RELAYER_ENABLED`, `BASE_RPC_URL`/`BASE_SEPOLIA_RPC_URL`/`SEPOLIA_RPC_URL`, `RPC_URL_<CHAINID>`, `EVM_RPC_URL`, `EVM_PRIVATE_KEY`/`EVM_TREASURY_PRIVATE_KEY`/`PRIVATE_KEY`, `EVM_MIN_CONFIRMATIONS`, `X402_ASSET_MINT_SOLANA`/`X402_ASSET_ADDRESS_BASE`/`_ARBITRUM`/`_BSC`, `X402_MAX_AMOUNT_REQUIRED`, `X402_IDEMPOTENCY_TTL_SECONDS`, `X402_FACILITATOR_URL_SOLANA`/`_BASE`/`_TOKEN_*`/`_TIMEOUT_MS`, `CDP_API_KEY_ID`/`_SECRET`, `X402_CDP_FACILITATOR_URL`, `X402_ACCEPT_THREE_SOLANA`/`X402_THREE_AMOUNT_SOLANA`, `X402_EVM_NETWORKS`, `X402_BUILDER_CODE_APP`/`_WALLET`, `X402_MAX_PER_CALL_ATOMIC`/`_PER_HOUR_ATOMIC`/`_PER_DAY_ATOMIC`, `INTERNAL_API_KEY`, `OFFER_RECEIPT_SIGNING_PRIVATE_KEY`/`_FORMAT`/`_JWK`/`_JWS_ALG`, `SERVER_DOMAIN`, `A2A_MANDATE_SECRET`, `A2A_PAYER_PRIVATE_KEY`/`A2A_PAYER_SOLANA_SECRET`, `A2A_REPUTATION_RPC_URL`, `VALIDATOR_PRIVATE_KEY`, `ETHERSCAN_API_KEY`/`BASESCAN_API_KEY`, `ERC8004_CRAWL_LOOKBACK`, `SPLITS_SIGNER_PRIVATE_KEY`, `MARKETPLACE_PAYER_KEYPAIR`/`MARKETPLACE_PLATFORM_FEE_BPS`/`_WALLET`, `ZAUTH_API_KEY`/`_DEBUG`/`_API_ENDPOINT`/`_SCAN_URL`/`_CIRCUIT_*`/`_REFUND_*`.+- **MCP / bridge:** `MCP_RESOURCE`, `MCP_REGISTRY_TOKEN`, `MCP_AGENT_TALK_ENDPOINT`, `MCP_POSE_PREVIEW_BASE`, `MCP_SVM_PAYMENT_ADDRESS`, `MCP_VANITY_PRICE_USD`, `MCP_BRIDGE_EVM_PRIVATE_KEY`/`_SVM_PRIVATE_KEY`, `MCP_BRIDGE_ALLOWED_HOSTS`/`_ALLOWED_PAYTO`/`_ALLOW_HTTP`, `MCP_BRIDGE_BAZAAR_URL`/`_DISCOVER_LIMIT`, `MCP_BRIDGE_MAX_DEPOSIT_ATOMIC`/`_MAX_PRICE_PER_CALL_ATOMIC`/`_MAX_TOTAL_ATOMIC`, `X402_BRIDGE_PORT`/`_ALLOWED_ENDPOINT_ORIGINS`/`_MAX_USDC_MICROS`.+- **LLM providers:** `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`/`OPENAI_BASE_URL`, `GROQ_API_KEY`, `NVIDIA_API_KEY`, `OPENROUTER_API_KEY`/`OPENROUTER_FALLBACK_KEYS`, `DASHSCOPE_API_KEY`, `MODELSCOPE_API_KEY`, `GEMINI_API_KEY`/`GOOGLE_API_KEY`/`GOOGLE_GENAI_API_KEY`/`GOOGLE_CLOUD_PROJECT`, `WATSONX_API_KEY`/`_PROJECT_ID`/`_SPACE_ID`/`_URL`/`_MODEL_ID`/`_API_VERSION`/`_GUARDIAN_MODEL_ID`/`_VISION_MODEL_ID`/`_ORCHESTRATE_*`, `GUARDIAN_SEND_CAP_USD`/`GUARDIAN_DISABLE`, `LIVEPEER_API_KEY`, `LONGCAT_WORKER_URL`/`_KEY`, `OMNI_URL`/`NIM_URL`, `CHAT_MODEL`/`CHAT_MAX_TOKENS`/`CHAT_URL`, `KNOWLEDGE_RERANK_ENABLED`, `ANON_MODERATION_DISABLED`/`_MODEL`/`_TIMEOUT_MS`, `VOYAGE_API_KEY`, `BRAVE_API_KEY`, `TAVILY_API_KEY`/`EXA_API_KEY`/`SERPER_API_KEY`/`SERPAPI_API_KEY`, `BIRDEYE_API_KEY`/`GMGN_COOKIE`, `NEYNAR_API_KEY`, `TWITTER_BEARER_TOKEN`/`X_API_BEARER`, `AIXBT_API_KEY`/`_API_BASE`.+- **Voice / 3D gen:** `ELEVENLABS_API_KEY`, `NVIDIA_ASR_FUNCTION_ID`/`NVIDIA_A2F_FUNCTION_ID`/`NVIDIA_COSMOS_INVOKE_URL`, `LIVEKIT_API_KEY`/`_SECRET`/`_SERVER_URL`, `GCP_PROJECT`/`GCP_REGION`/`GCP_SERVICE_ACCOUNT_JSON`, `GCP_RECONSTRUCTION_URL`/`_KEY`, `GCP_TRIPOSG_URL`/`GCP_HUNYUAN3D_URL`/`GCP_REMESH_URL`/`GCP_TEXTURE_URL`/`GCP_STYLIZE_URL`/`GCP_SEGMENT_URL`/`GCP_REMBG_URL`/`GCP_TEXT2MOTION_URL`, `HF_TOKEN`/`HF_RECONSTRUCT_SPACE(S)`, `REPLICATE_API_TOKEN`/`_RECONSTRUCT_MODEL`/`_RERIG_MODEL`/`_POLL_MS`/`_TIMEOUT_MS`/`_WEBHOOK_URL`/`_WEBHOOK_SIGNING_KEY`, `NIM_TRELLIS_URL`/`_KEY`/`MODEL_TRELLIS_URL`, `TRIPO_MODEL_VERSION`, `VERTEX_IMAGEN_MODEL`, `CHROMIUM_PACK_URL`/`CHROME_PATH`/`PUPPETEER_EXECUTABLE_PATH`, `AVATURN_API_KEY`/`_API_URL`/`_SEED_ENABLED`, `MIXAMO_TOKEN`, `AVATAR_REGEN_PROVIDER`, `AUTO_RIG_DAILY_PER_USER`/`_GLOBAL_HOURLY`/`_PRIVATE`/`_REQUIRE_TIER`, `FORGE_ORIGIN`/`FORGE_PREFER_FREE`/`FORGE_FREE_POLL_MS`/`FORGE_PAID_GLOBAL_HOURLY`.+- **Pump.fun / $THREE / treasury:** `PUMP_X402_LAUNCHER_SECRET_KEY_B64`, `PUMP_CRON_RELAYER_SECRET_KEY_B64`, `PUMP_DEFAULT_AGENT_MINT`/`_NETWORK`, `PUMP_PLATFORM_FEE_BPS`/`_WALLET`, `PUMP_GRADUATIONS_SOURCE`/`GRADUATIONS_LIST_KEY`/`_MAX_LEN`, `PUMPFUN_BOT_TOKEN`/`_URL`/`PUMPFUN_MCP_URL`, `PUMP_COINS_V2_BASE`/`PUMP_FRONTEND_BASE`, `PUMPKIT_WEBHOOK_SECRET`, `THREE_WS_MARK_ENFORCE`/`ALLOW_UNMARKED_MINT`, `THREE_TOKEN_MINT`/`THREE_MINT`/`THREE_TOKEN_DECIMALS`, `THREE_PRIZE_PAYOUT_KEY`, `THREE_BURN_ADDRESS`, `THREE_QUOTE_TTL_S`, `THREE_ALLOWANCE_DELEGATE_SECRET_KEY_B64`, `THREE_BUYBACK_ENABLED`/`_SECRET_KEY_B64`/`_MIN_USD`/`_MAX_USD`/`_COMMIT_BPS`/`_SLIPPAGE_BPS`, `BUYBACK_BPS`, `PLATFORM_FEE_BPS`, `REWARDS_DISTRIBUTOR_SECRET`, `REFLECTION_DAILY_CAP`/`_DEBOUNCE_MS`/`REFLECT_SWEEP_BATCH`, `REFERRAL_COMMISSION_BPS`, `RIDER_VAULT_ADDRESS`/`_HELIUS_WEBHOOK_SECRET`, `CREDITS_DEPOSIT_WALLET_SOLANA`, `PURCHASE_RECEIPT_KEY`, `VANITY_SERVICE_KEY`/`VANITY_BOUNTY_PAYOUT_KEY`/`VANITY_DROP_FUNDING_KEY`, `COIN_TREASURY_SECRET_KEY_B64`, `COSMETIC_SPLIT_TREASURY_SECRET_KEY_B64`, `CLUB_SOLANA_TREASURY_SECRET_KEY_B64`/`CLUB_EVM_TREASURY_PRIVATE_KEY`/`CLUB_BASE_RPC_URL`/`CLUB_SWEEP_DUST_ATOMICS`.+- **Comms / observability:** `TELEGRAM_BOT_TOKEN`/`TELEGRAM_CHANGELOG_CHAT_ID`/`_ALERTS_CHAT_ID`/`_ORACLE_CHAT_ID`/`_SNIPER_CHAT_ID`, `RESEND_API_KEY`/`_AUDIENCE_ID`, `EMAIL_FROM`/`_REPLY_TO`, `SENTRY_DSN`/`_ENVIRONMENT`/`_RELEASE`, `AXIOM_TOKEN`/`_DATASET`/`_URL`, `VAPID_PUBLIC_KEY`/`_PRIVATE_KEY`/`_SUBJECT`, `DEV_TO_API_KEY`, `MEDIUM_INTEGRATION_TOKEN`/`_AUTHOR_ID`, `THREEWS_TWITTER_URL`.+- **Cron / multiplayer / games / ops:** `CRON_SECRET`, `WEBHOOK_SECRET`/`ALLOW_UNSIGNED_WEBHOOKS`, `IRL_FIX_SECRET`/`IRL_X402_ALLOWED_HOSTS`, `X402_SWEEP_MAX_PRICE_USD`, `NODE_ENV`/`VERCEL_ENV`, `PUBLIC_APP_ORIGIN`, `MULTIPLAYER_SHARED_SECRET`/`_INTERNAL_URL`/`_URL`/`_API_BASE`, `REALM_TRANSFER_SECRET`, `WORLD_URL`/`WORLDS_URL`/`WORLD_API_BASE`, `GAME_SERVER_URL`, `WALK_URL`/`WALK_BASE`/`WALK_EMBED_BASE`, `GAME_TOKEN_MINT`/`_DECIMALS`/`_TREASURY`/`_SECRET`/`_REWARDS`, `PLAY_GATE_MINT`/`_MIN`/`_SYMBOL`, `HOLDER_MIN_USD`, `AGORA_MAINNET_ENABLED`/`_RECONCILE_MS`/`_DEVNET_MAX_SOL_PER_TASK`/`_MAX_THREE_PER_TASK`/`_THREE_MINT`/`_THREE_TOKEN_ACCOUNT`, `ORACLE_*` (MODE/NETWORK/GLOBAL_KILL/MAX_TRADE_SOL/USE_JITO/ALERT_MIN_TIER/intervals), `SNIPER_MODE`/`_NETWORK`/`_HEARTBEAT_MS`, `ORDERS_MODE`/`_NETWORK`/`SETTLE_MS`, `DCA_ALLOWED_TOKEN_OUT`/`_CHAIN_ID`, `CIRCULATION_*`, `SMART_GRAPH`/`_INTERVAL_MS`, `CLASH_*` (EPOCH_MS/MAX_FACTIONS/MAX_POWER_PER_WALLET/PASS_SECRET/WAR_RESULT_SECRET), `AUTOPILOT_COMPUTE_TREASURY`, `AGENT_WALLET_ALLOWED_ORIGINS`/`_MAX_USDC_MICROS`/`_DAILY_USDC_MICROS`, `AGENT_TRADE_NETWORK`/`_PRICE_SOL`/`AGENT_INVOCATION_NETWORK`/`_PROGRAM_ID`, `LABOR_ESCROW_SECRET_BASE58`/`LABOR_SKILL_ROYALTY_BPS`, `SKILL_LICENSE_ENFORCE`/`_MINTER_KEY`/`_PROGRAM_ID`/`SKILL_NFT_NETWORK`, `ATTEST_AGENT_SECRET_KEY`/`SAS_AUTHORITY_SECRET`, `CUSTODY_ANCHOR_NETWORK`/`_SNAPSHOT_NETWORK`, `ALLOWED_ORIGINS`, `COINBASE_PAY_APP_ID`, `VITE_WALLETCONNECT_PROJECT_ID`, `CZ_REGISTRY_CONTRACT`/`CZ_AGENT_ID`/`_NAME`, `SDP_API_BASE`/`_KEY`, `STUDIO_API_BASE`/`_PUBLIC_BASE`, `THREEWS_API_BASE`/`_ORIGIN`/`THREE_WS_API_BASE`/`_BASE`/`_API_KEY`.+- **Test/Ops only (not request surface):** `SMOKE_*`, `X402_BUYER_*`/`X402_TEST_*`/`X402_PAYER_*`, `TEST_EMAIL`/`_PASSWORD`, `GH_TOKEN`/`GITHUB_TOKEN`, `CC_*`, `DEV_API_PROXY`/`DEV_API_UPSTREAM`, `CI`/`DEBUG`/`DRY_RUN`/`HEADED`/`STRICT_A11Y`/`SKIP_NETWORK_TESTS`/`CONFIRM_MAINNET*`/`VERIFY_ONCHAIN_CHAINS`, Vercel/Codespaces platform vars.++> Fallback chains: secrets cascade `dedicated → WALLET_ENCRYPTION_KEY → JWT_SECRET`; Redis `UPSTASH_REDIS_REST_* → three_KV_* → KV_*`; Base RPC `BASE_RPC_URL → CLUB_BASE_RPC_URL → RPC_URL_8453`; `HELIUS_API_KEY` auto-derives from `SOLANA_RPC_URL`.++### SDK & Package API Surface++**Top-level SDKs:**++- **@three-ws/sdk** 0.2.0 (`sdk/`) — cross-chain agent kit. `AgentKit`, `AgentPanel`, `loadAvatar`, `agentRegistration`, `agentCard`, `aiPlugin`, `connectWallet`, `registerAgent`, `pinToIPFS`, `buildRegistrationJSON`, `getIdentityRegistry`, `IDENTITY/REPUTATION/VALIDATION_REGISTRY_ABI`, `REGISTRY_DEPLOYMENTS`, `PermissionsClient`, `AgentClient`, `PaymentRequiredError`. Subpaths `./solana` (`signInWithSolana`, `registerSolanaAgent`, `startSolanaCheckout`, `confirmSolanaPayment`), `./solana-attestations` (`attestFeedback/Validation/Revoke/Dispute`, `createTask`, `acceptTask`, `fetchReputation`), `./permissions`, `./styles`.+- **@three-ws/solana-agent** 0.2.0 — `SolanaAgent`, `KeypairWalletProvider`, `BrowserWalletProvider`, `WalletAdapterProvider`, `transferSol`, `transferSpl`, `jupiterSwap`, `getSwapQuote`, `getOrCreateAta`, `getTokenBalance`, `stakeSOL`/`unstakeSOL`, `buildAndSend`, `fetchLookupTables`, `estimatePriorityFee`/`estimateComputeUnits`, `memoInstruction`; errors `SolanaAgentError`/`TransactionRejectedError`/`WalletNotConnectedError`/`SwapError`/`SimulationError`/`ConfirmationTimeoutError`. Subpaths `./wallet`, `./x402-exact`, `./solana-agent-kit`, `./vanity`.+- **@three-ws/agent-payments** 3.2.0 — `./solana`: `PumpAgent`, `PumpAgentOffline`, `PumpTradeClient`, PDA helpers, decoders, `subscribeToAgentEvents`; `./evm`: `EvmAgent`, `EvmAgentOffline`, `AGENT_PAYMENTS_ABI`, `EVM_CHAINS`, `getInvoiceId`; `./a2a`: `payA2A`, `requestA2AQuote`, `submitA2APayment`, `buildEvmExactPayload`, `A2A_X402_EXTENSION_URI`.+- **@three-ws/agent-protocol-sdk** 0.2.0 — `invokeSkill`, `deriveAgentPda`, `IDL`, `AGENT_INVOCATION_PROGRAM_ID`, `MAX_SKILL_NAME_LEN`, `MAX_PARAMETERS_LEN`.+- **@three-ws/agent-ui** 0.2.0 — `createAgentUI`, `createRenderer`, `loadAvatar`, `createAnimator`, `moveTo`, `walkTo`, `standOn`, `fallOnto`, `runOff`, `interceptNavigation`, `dust`, `impactPulse`, `proximityShadow`, `scan`. `./bundle`, `./styles`.+- **@three-ws/avatar** 0.2.0 — `<agent-3d>` (`Agent3DElement`), `<agent-stage>` (`AgentStageElement`), `Viewer`, `Runtime`, `SceneController`, `Memory`, `Skill`, `SkillRegistry`, `defineElement`. Subpaths `./creator` (`AvatarCreator`, `saveBlob`), `./viewer` (`<three-ws-viewer>`), `./agent` (`ensureAgent3D`), `./react` (`<Avatar>`, `<AgentAvatar>`, `useAvatar`).+- **@three-ws/walk** 0.1.0 — `createWalkCompanion`, `launchPlayground`, `WALK_AVATARS`, `getAvatar`, `createAvatarPicker`, `loadWalkAvatar`, `resolveConfig`. `./roster`, `./style.css`.+- **@three-ws/page-agent** 0.1.0 — `<page-agent>` (`PageAgentElement`), `PageAgent`, `collectSegments`, `mount`, `AvatarStage`, `SpeechNarrator`, `AvatarPicker`, `createLipsync`, `AGENTS`. `./catalog`, `./global`.+- **@three-ws/tour** 0.1.0 — `createFeatureTour`, `TourDirector`, `resolveTourConfig`, `loadCurriculum`, `buildPlaylist`, `buildCurriculum`. Bin `tour-build-curriculum`. `./curriculum(.schema.json)`.++**Feature packages** (`packages/*`; all share `ThreeWsError`/`PaymentRequiredError`/`DEFAULT_BASE_URL`):++- **forge** 0.1.0 — `createForge`, `forge`, `rig`, `catalog`. **names** 0.1.0 — `resolve`, `reverseLookup`, `checkSubdomain`, `mintSubdomain`, `claimSubdomain`, `resolvePayee`, `payByName`. **intel** 0.1.0 — `sentiment`, `intel`, `projects`, `snapshot`. **vanity** 0.1.0 — `grind`, `grindViaApi`, `validatePattern`, `expectedAttempts`, `base58Encode`. **reputation** 0.1.0 — `reputation`, `leaderboard`, `validation`, `attest`, `SUPPORTED_CHAINS`. **voice** 0.1.0 — `transcribe`, `speak`, `say`, `lipsync`, `voices`. **x402-server** 0.1.0 — `createX402Server`, `buildChallenge`, `verifyPayment`, `settlePayment`, `paid`, `feeSplit`, `X402_VERSION`, `MAX_FEE_BPS`. **x402-fetch** 1.0.1 — `withX402`, `wrapFetchWithPayment`, `privateKeyToWallet`. **agent-memory** 0.1.0 — `AgentMemory`, `createAgentMemory`. **agenc** 0.1.0 — `listTasks`, `getTask`, `getAgent`. **guardian** 0.1.0 — `check`, `govern`, `moderate`, `risks`, `RISKS`, `BLOCK_THRESHOLD`. **glb-tools** 0.1.0 — `inspect`, `theme`, `bake`. **agent-guards** 0.1.0 — `policy`, `guard`, `checkKillSwitch`, `checkPerTradeCap`, `checkDailyBudgetLamports`, `checkPriceImpact`, `checkAllowlist`, `TRADE_LIMIT_DEFAULTS`. **skill-license** 0.1.0 — `mintLicense`, `verifyLicense`, `getLicense`, `skillSeed`, `PROGRAM_ID`. **mocap** 0.1.0 — `saveClip`, `getClip`, `listClips`. **strategies** 0.1.0 — `dca`, `copy`, `mirror`, `killSwitch`, `createStrategy`, `forkStrategy`, `leaderboard`. **pumpfun-skills** 0.1.0 — `createCoin`, `swap`, `collectFees`, `sharingConfig`, `coinFees`. **irl** 0.1.0 — `checkIn`, `nearby`, `placePin`, `myPins`, `interact`, `encodeGeohash`. **pose** 0.1.0 — `poseSeed`, `presetPose`, `listPresetGroups`, `PRESETS`. **avatar-schema** 0.2.0 — `validate`, `assertValid`, `schema`, `SCHEMA_VERSION`. **react** 1.0.0 — `<Agent3D>`, `<WalkEmbed>`. **viewer-presets** 0.2.0 — `buildLightRig`, `LIGHT_CONFIG`, `floorReflectionConfig`, `bloomConfig`. **avatar-cli** 0.2.0 — CLI `three-ws-avatar {init,validate,hash,preview}`. **vscode-x402** 0.1.0 — VS Code commands `threewsX402.{refresh,search,setFilters,inspect,openService,pay,setWalletKey,clearWalletKey,scaffoldEndpoint}`.++### Key Algorithms & Internal Mechanisms++**1. Animation retargeting (`src/animation-retarget.js`).** Clips store absolute local rotations baked against `cz.glb` (A-pose Avaturn). Per canonical bone, `bindCorrections()` computes a pair `{L,R}` so `q' = L·q·R` re-expresses a keyframe as the same world-space delta on a differently-proportioned/posed target: `L = Rt·WT⁻¹·WS·Rs⁻¹`, `R = WS⁻¹·WT` (Rs/Rt = source/target local bind, WS/WT = world bind). Falls back to local-only `L = Rt·Rs⁻¹, R = I` when world rests are unknown; corrections within `BIND_EPSILON=1e-6` of identity omitted (matching rigs round-trip exactly). Root-motion: the `Hips.position` track is rotated by the inverse of the target hips-parent world rotation to preserve travel direction. Hip scaling: `targetY/sourceY` clamped `[0.2,5]`; raw Object3D graphs use **local** height (world Y ÷ parent scale) so cm-native Mixamo armatures (`scale 0.01`) don't collapse. Clip accepted only at `matched/total ≥ MIN_COVERAGE=0.5`; `rig.resetPose()` runs before measuring.++**2. Bone canonicalization (`src/glb-canonicalize.js`).** `canonicalizeBoneName` → one of 52 canonical bones: strip namespaces (`Character1:`), strip vendor prefixes (`mixamorig`, `Armature_`, Rigify `DEF/ORG/MCH`, `CC_Base_`, `Bip001`), collapse separators+lowercase, resolve against LOOKUP → UNREAL_ALIASES → EXTRA_ALIASES (lower tables never shadow canonical). De-dup retry strips trailing `_NN`/`.NNN` only if the full name didn't resolve. **Mixamo armature fix:** Mixamo bakes +90°X on armature / −90°X on Hips; the fix folds armature rotation into children, zeroes it, collapses Hips to identity — only when armature scale is uniform, and **verified by comparing every joint's world matrix before/after within `1e-4`** (reverts entirely on mismatch). GLB rewrite re-pads the JSON chunk to 4 bytes and repacks BIN verbatim.++**3. Coin intelligence scoring (`workers/agent-sniper/intel/`).** `computeSignals` is pure/deterministic (missing data → `null`, never fabricated). `bundleScore` = `(density·0.5 + clustering·0.5)·(0.6 + 0.4·walletMult)` over a 3s burst; `snipeRatio` = buy-volume share in first 5s; concentration ranks per-wallet net buys (top-1/5/10 share); organic score blends buyer diversity, arrival-time Shannon entropy, (1−bundle), (1−snipe), (1−whale), penalized for dev-sell + fresh-wallet swarms. `summarizeRisk` → transparent 0–100. Classification is 3-layered (ordered-keyword heuristic seed → `matchNewsHeadline` → LLM refinement with XML-delimited fields), never fails. **Online learning** (`learn.js`): `labelOutcomes` derives ground truth (`graduated`/`pumped ≥3×`/`rugged ≤0.25×`/`flat`) after a min age; `trainWeights` computes per-signal **Pearson correlation** vs binary good-label (≥50 samples) and persists weights + conditional win-rates; `learnedScore` = logistic squash `1/(1+e^(−Σwᵢvᵢ))` (null → fall back to baseline).++**4. Oracle conviction (`workers/oracle/score-loop.js` → `api/_lib/oracle/conviction.js`).** `convict()` is pure: four pillars scored 0–100 with weights **pedigree 0.34 · structure 0.30 · narrative 0.18 · momentum 0.18**. Pedigree anchors on smart-money composite ± proven/flagged-wallet adjustments; structure anchors on `30 + organic·0.55` minus bundle/concentration/dev-sold/cluster, several imposing a **hard cap** on the final score; narrative blends classifier virality with category prior weighted by confidence; momentum from buy/sell share + dev-buy sizing. Final `score = min(weightedSum, structure.cap)` — pedigree/narrative can't paper over a bundle. Tiers: `prime ≥86, strong ≥72, lean ≥56, watch ≥34, avoid`. History row only when score moves ≥3.++**5. Tiered agent memory (`api/_lib/memory-store.js`).** Letta/MemGPT model: working (pinned + `tier='working'`, `WORKING_TOKEN_BUDGET=2000`), recall, archival. Embeddings free-first: NVIDIA NIM `nv-embedqa-e5-v5@1024` ingest default, OpenAI `text-embedding-3-small@256` backstop — stored as **JSONB arrays tagged with the embedder** (not a pgvector column), cosine computed in JS **strictly within each embedder space** (`cosine` returns 0 on dimensionality mismatch — guards silent cross-space comparison). Search lazily embeds ≤24 rows/call, filters `minScore≥0.25`, fills shortfall with salience-ranked substring matches (never empty). Every surfaced row bumps `access_count`, `last_accessed_at=now()`, `salience=LEAST(1.0, salience+0.02)`; a Zep/Graphiti temporal KG mines entities into nodes + co-occurrence edges.++**6. A2A spend ledger / TOCTOU (`api/_lib/a2a/spend-ledger.js`, `reserveSpendUsd`).** Mandate budget enforced by Redis **`INCRBY`-then-rollback**: increment first, `DECRBY` if over cap (no funds held), `EXPIRE` set on first write. `spent()` **fails closed** (can't prove headroom → throw); `release()` floors at 0. Per-agent daily USD ceiling (`reserveSpendUsd`, `agent-trade-guards.js`) uses a **Postgres advisory lock** + pending custody reservation row to stop K concurrent calls each reading the same pre-spend total — also runs freeze gate, withdraw allowlist, NL policy eval, per-tx ceiling, capability metering, post-reserve anomaly guard.++**7. Custodial keypair encryption (`api/_lib/secret-box.js`).** Single AES-256-GCM primitive (webcrypto, no deps). **v2:** random 16-byte salt + 12-byte IV per record, key via **HKDF-SHA256** from `WALLET_ENCRYPTION_KEY`, emits `"v2:"+base64(salt‖iv‖ct+tag)`. **Fails closed in production** on missing/short key (no silent `JWT_SECRET` downgrade — a JWT leak must not decrypt wallets). Legacy v1 (no tag, `JWT_SECRET` + constant salt) still decrypts for old records; all new writes are v2.++**8. Vanity grind protocol (`crates/vanity-grinder`, `src/solana/vanity/`).** WASM `grind`: `pubkey_from_seed` = `SHA-512(seed) → low 32 → EdwardsPoint::mul_base_clamped → compress` (bit-identical to `SigningKey`, minus overhead); seeds enumerated by overwriting low 4 bytes of a CSPRNG `start_seed` with a wrapping counter. **Proof-of-grind cert** (`three-pog/v1`): canonical key-sorted JSON over `SIGNED_FIELDS`, domain-tag `three-pog/cert/v1`, `certId = SHA-256(domain‖stableStringify(address,pattern,format,nonce))`, Ed25519 attestation sig; `verifyProofOfGrind` recomputes every claim (validity, binding, difficulty `58^len`, freshness, first-cert-for-address, rotation-aware sig). Split-key non-custody assertion `P1 + a2·B == address` (server only ever knew offset `a2`). **Sealed delivery** `x25519-hkdf-sha256-aes256gcm/v1` (ECIES, ephemeral X25519 + HKDF + AES-256-GCM, epk bound as AAD, forward-secret w.r.t. server).++**9. Honeypot / firewall (`api/_lib/trade-firewall.js`, `api/pump/safety.js`).** `assessTradeSafety` runs checks concurrently, never throws (outage → `warn`, never fake `allow`). SPL authority audit: non-null `freezeAuthority` = fatal; `mintAuthority` = warn. Venue+reserves check. **Simulated buy→sell round-trip**: packs both legs in one v0 message, simulates on live RPC (`sigVerify:false, replaceRecentBlockhash:true`); revert on sell leg or ~0 SOL out = honeypot → fatal. Score starts 100, subtracts penalties; `block` if any fatal flag or ≤45, `warn` if ≤70. Authority/curve reads cached 8s; **round-trip never cached**. Logged to `firewall_decisions`.++**10. Granite Guardian gate (`api/_lib/granite-guardian.js`).** 12-risk taxonomy, each an independent watsonx classifier pass; default input risks `[jailbreak,harm,violence,unethical_behavior,social_bias]` run concurrently. Each pass recovers a real unsafe-probability by softmaxing Yes/No logprobs (`logprobs:true, top_logprobs:5`); `decide` → allow/review/block at `FLAG_THRESHOLD=0.55`. `governSend` adds a model-independent `sendCapUsd` (default $25). **Hash-chained audit:** stores only SHA-256 of content + decision + `prev` hash; `verifyAuditChain` re-derives from `GENESIS_HASH`.++**11. LLM failover (`api/_lib/chat-models.js`, `api/chat.js`).** `DEFAULT_PROVIDER_ORDER = [groq, openrouter, nvidia, anthropic, openai]` — free lanes first, paid as last-resort backstop (prod paid keys routinely 401/over-quota). `MODEL_CATALOG` annotates `{provider, tools, moderationGated}`; `usableModels` drops tool-incapable or moderation-gated models from auto-chains. `api/chat.js` skips providers in health cooldown (recent 429/5xx/timeout) + unconfigured keys, bounds the loop by `TOTAL_BUDGET_MS=25000` + `MAX_FALLBACK_ATTEMPTS=4` (per-call abort at `min(15000, remaining)`); auth/billing failures cool the whole provider; exhausted-within-budget → clean **503 + Retry-After:20**.++### Specifications, Protocols & Platform Constants++Hard, load-bearing specifics from `specs/` and `docs/`. (The $THREE hold-to-access tier ladder is documented above under On-chain & Solana / $THREE.)++**Mint-mark `3ws`** (`docs/mint-mark.md`, `src/solana/vanity/brand.js`) — address-prefix convention baked into the Ed25519 keypair; every three.ws-launched mint's pubkey starts with `3ws` (case-insensitive). `THREE_WS_MARK='3ws'`, frozen `THREE_WS_VANITY={prefix:'3ws',ignoreCase:true}`; grind ~49,000 keypairs @ ~25,000/s → <1s. Kill-switch `THREE_WS_MARK_ENFORCE` (default ON, fail-closed); enforced in `launch-prep`/`launch-agent`; unbranded → `400 unbranded_mint`. **Exempt:** `api/x402/pump-launch.js` (arbitrary caller mint).++**Persona Hub JWT** (`docs/persona-hub.md`, `api/auth/persona/[action].js`) — ES256 (P-256) when `PERSONA_JWKS_PRIVATE_KEY_PEM` set, else HS256(`JWT_SECRET`); `kid` default `persona-es256-1`. TTL `PERSONA_TTL_SEC=86400` (24h), no refresh/revocation. Claims: `iss=https://three.ws`, `sub=userId`, `aud=tenant_origin`, `scope="persona:read avatar:read"`, `token_use="persona"`, `avatar{id,name,url,thumbnail_url}`, `jti`. Endpoints `GET /me`, `POST /issue`, `GET /verify?token=&audience=`, `GET /.well-known/jwks.json`. Widget `<three-ws-signin>` (`public/persona/widget.js`), events `three-ws:authorized`/`cancelled`. Allowed origins `three.ws`, `*.three.ws`, dev localhost.++**Agent Manifest** (`specs/AGENT_MANIFEST.md`) — `$schema=https://3d-agent.io/schemas/manifest/0.2.json`, `spec="agent-manifest/0.2"` (v0.2 added `permissions`). Bundle: `manifest.json` (req) + `instructions.md`, `SKILL.md`, `body.glb`, `poster.webp`, `skills/`, `memory/MEMORY.md`, `attestations/`. Fields: `id{chain,registry,agentId,owner}`, `body{uri,format(gltf-binary|gltf|vrm),rig,boundingBoxHeight}`, `brain{provider,model,instructions,temperature(0.7),maxTokens(4096),thinking(auto)}`, `voice{tts,stt}`, `skills[]`, `memory{mode,index,maxTokens(8192)}`, `tools[]` (default `["wave","lookAt","play_clip","setExpression"]`), `attestations[]`, `permissions`. **3D Agent Card v1** is a strict superset of ERC-8004 registration v1 via ERC-721 `tokenURI`; required `model{uri(ipfs),format,sha256}` — consumers MUST treat mismatched hash as unverified.++**Skill spec** (`specs/SKILL_SPEC.md`, `spec="skill/0.1"`) — bundle `manifest.json` + `SKILL.md`; `tools.json` uses `input_schema`. Code runs in a **shared Web Worker** (no DOM/window/localStorage/navigator), handler loaded via `blob:` URL; `ctx.*` calls are structured-clone postMessage round-trips, **30s timeout each**; network only via `ctx.fetch`. Trust `any|whitelist|owned-only` (default `owned-only`), integrity hashes verified pre-exec; `trusted-main-thread` opt-out only for owned/whitelist. Events `perform-skill`/`skill-done{result:{ok,output,sentiment∈[−1,1]}}`/`skill-error`. Built-ins: `greet`, `present-model`, `validate-model`, `remember`, `think`, `sign-action`, `help`.++**Permissions ERC-7710/7715** (`specs/PERMISSIONS_SPEC.md`) — DelegationManager `0xdb9B1e94B5b69Df7e401DDbedE43491141047dB3` (same address all chains via CREATE2). Caveat enforcers (`src/erc7710/abi.js` `CAVEAT_ENFORCERS`): AllowedTargets, ERC20TransferAmount, ERC20PeriodTransfer, NativeTokenTransferAmount, NativeTokenPeriodTransfer, Timestamp, LimitedCalls. Envelope `{delegate,delegator,authority,caveats[{enforcer,terms}],salt,signature(EIP-712)}`, id = `delegation_hash` keccak256. API `/api/permissions/{grant,list,revoke,redeem,metadata,verify}`. `redeemFromSkill` rate-limited 5/min/tab. Spec defaults mainnet-disabled (Base Sepolia 84532 + Sepolia 11155111); `agent_delegations` table tracks `status(active|revoked|expired)`, `redemption_count`.++**Memory spec** (`specs/MEMORY_SPEC.md`, `memory/0.1`) — salience bonus: feedback +0.3, user +0.2, project +0.1, reference +0.0; rank = salience × recency (7-day half-life); `important:true` pins to 1.0. Retrieval budget default 8192 tokens (~4 chars/token); MEMORY.md index truncated beyond 200 lines. Modes `local` (key `agent:<id>:memory`, max 150 entries / 200 timeline rows), `ipfs`, `encrypted-ipfs` (ECIES/libsodium sealed box), `none`. Spec-level recall = substring (vector search deferred; the live server engine uses cosine).++**Embed/Host protocol** (`specs/EMBED_HOST_PROTOCOL.md`, envelope `v:1`) — `{v:1, type:"<host|embed>.<cat>", id?, payload}`. Host→embed: `host.hello`, `host.chat.message`, `host.action`, `host.theme`, `host.response`. Embed→host: `embed.ready`, `embed.event` (`agent.speaking|idle|emote|error`), `embed.error`, `embed.request` (5000ms default timeout). EMBED_SPEC bridge **forbids `'*'`** origin. Delegation message types (v0.2+) `host/embed.permissions.{query,redeem,redeemed,error}`. `embedPolicy{mode:allowlist|denylist|open, hosts[]}` stored as `agent_identities.embed_policy` JSONB. **Stage** (`stage/0.1`): `<agent-stage formation=row|circle|freeform>` (row spacing 1.1m), one renderer/stage, tools `observe_agents`/`say_to_agent`.++**`<agent-3d>` web component** (`docs/web-component.md`) — CDN `/agent-3d/<ver>/agent-3d.js` (immutable; channel tags 5-min), current **v1.5.2**. Methods: `say`, `ask`, `wave`, `lookAt`, `play`, `speak`, `clearConversation`, `installSkill`/`uninstallSkill`, `expressEmotion(trigger,weight)`, `setMode`/`setPosition`/`setSize`, `pause`, `destroy`, `activateAR`. Events: `agent:ready`, `agent:load-progress{phase}`, `agent:error`, `brain:message`/`thinking`, `voice:*`, `skill:loaded`/`tool-called`, `memory:write`, `ar-status`. CSS vars `--agent-{bubble-radius,accent,surface,on-surface,chat-font,mic-glow,shadow}`. iframe `sandbox="allow-scripts allow-same-origin"`; collapses to 56px pill below 480px.++**Widget API** (`docs/widget-api.md`) — shell `/widget`, loader `embed.js`, client `widget-client.js`, global `ThreeWidget.attach`. Types `turntable`(default), `talking-agent`. **JSON-RPC 2.0** over postMessage: `viewer.{getInfo,setBackground,setAutoRotate,setEnvironment}`, `camera.{getLookAt,setLookAt,recenter}`, `animation.{list,play,stop}`, `screenshot.capture`, `model.{load,export}`, `ping`; events `viewer.ready`/`model.loaded`/`widget.revealed`. WebGL context cap ~16/tab.++**Claude Artifact** (`specs/CLAUDE_ARTIFACT.md`) — `GET /api/artifact?agent=|model=&theme=&idle=&bg=` → one self-contained HTML (three.js + GLB inlined). SSRF whitelist (`*.r2.cloudflarestorage.com`, `*.amazonaws.com`, `storage.googleapis.com`, `three.ws`, `*.vercel.app`, …); GLB max 6MB raw → 413; fetch timeout 8s; rate `widgetRead` 600/min/IP; strict CSP (`default-src 'none'`); GLB via `GLTFLoader.parse(atob(...))`, never `.load(url)`.++**On-chain attestations.** Solana: Memo program `MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr`; AgenC devnet `6UcJzbTEemBz3aY5wK5qKHGMD7bdRsmR4smND29gB2ab`; mainnet genesis `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`. Seven permissionless kinds (SPL Memos): `threews.{feedback,stake,validation,task,accept,dispute,revoke}.v1` (stake ≥0.001 SOL). SAS schemas `threews.verified-client.v1`, `threews.audited-validation.v1` (authority `SAS_AUTHORITY_SECRET`). EVM ERC-8004 registries (CREATE2, same address per chain): Identity `0x8004A169FB4a3325136EB29fA0ceB6D2e539a432`, Reputation `0x8004BAa17C55a88189AE136b182e5fdA19dE9b63` (scores −100…+100, optional ≥0.001 ETH stake), Validation testnet `0x8004Cb1BF31DAf7788923b405b754f57acEB4272`. Platform validator EOA `0x93Bc7EfB0059B784465619FC73C2db8D01b1CD04` (kind `glb-schema`). **Metaplex Core collection** `56Gnsb7Jjg1N9c8V7EAnDC4HmQbQjsEueSUA3EK5272H` ("three.ws Agents", 500-bps royalty plugin, ~0.004 SOL/agent mint).++**x402 wire constants** — `X402_VERSION=2`, scheme `exact`. USDC: Solana `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v`, Base `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`, Arbitrum `0xaf88d065e77c8cC2239327C5EDb3A432268e5831`. Facilitators: PayAI `https://facilitator.payai.network`, Coinbase CDP `https://api.cdp.coinbase.com/platform/v2/x402` (Base+Arbitrum). CAIP-2: Base `eip155:8453`, Arbitrum `eip155:42161`, BSC `eip155:56`, Solana `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`. $THREE accepted as second Solana settlement asset (`acceptThree:true`, opt-in `X402_ACCEPT_THREE_SOLANA`).++**AI model IDs.** NVIDIA (`NVIDIA_API_KEY`, NIM base `integrate.api.nvidia.com/v1`): text→3D `microsoft/trellis` (steps 10–50, prompt ≤77 chars), text→image `black-forest-labs/flux.1-schnell`, default LLM `meta/llama-3.3-70b-instruct`, vision `nvidia/nemotron-nano-12b-v2-vl`→`meta/llama-3.2-11b-vision-instruct`, embeddings `nvidia/nv-embedqa-e5-v5` (1024-dim, ≤512 tok)→`baai/bge-m3`, rerank `nvidia/rerank-qa-mistral-4b`, safety `nvidia/llama-3.1-nemoguard-8b-content-safety`→`meta/llama-guard-4-12b`, TTS `magpie-tts-multilingual`. IBM watsonx: chat `ibm/granite-3-8b-instruct`, embeddings `ibm/granite-embedding-278m-multilingual`, forecast `ibm/granite-ttm-{512|1024|1536}-96-r2`, vision `ibm/granite-vision-3-2-2b`, governance `ibm/granite-guardian-3-8b`; Identity Firewall similarity ≥93% = block, 86–93% = review. i18n provider ladder: groq (default) → gemini (CJK) → openrouter → nvidia → openai → anthropic; glossary `doNotTranslate` includes `$THREE`, contract address, `x402`, `USDC`, `Solana`, `IBM watsonx.ai`.++**Pump platform fee** (`docs/pump-platform-fee.md`) — `PUMP_PLATFORM_FEE_BPS` default 0 (off), hard-capped 500 (5%); recipient `PUMP_PLATFORM_FEE_WALLET` → treasury fallback; buy fee added on top, sell fee from proceeds.++**Distribution / syndication** — Listings (live): AWS Marketplace, Alibaba Cloud Intl, BNB Chain Dappbay (`dappbay.bnbchain.org/detail/three`). News syndication: WebSub hub, Dev.to (`DEV_TO_API_KEY`), Medium (`MEDIUM_INTEGRATION_TOKEN`, create-only), HackerNoon (RSS auto-import), CoinMarketCap (manual); `POST /api/admin/news/resyndicate`; store `data/rss/items.json`. **X Spaces agent** (`xspace-agent`): Puppeteer+CDP headless Chromium → WebRTC audio → STT→LLM→TTS; presets agent-zero/comedian/crypto-degen/educator/interviewer/tech-analyst; Docker `ghcr.io/nirholas/xspace-agent`.++**Agora / AgenC** (`docs/agora.md`) — AgenC agent PDA `["agent",agentId]`: `reputation` u16 (start 5000), `stake` u64 (≥0.001 SOL), `capabilities` bitmask. Professions (bits 0–7): Fetcher, Sculptor, Scribe, Cartographer, Crier, Appraiser, Verifier, Namekeeper — each WORK module emits `proofHash=sha256(deliverable)`. Task types Exclusive/Competitive/Collaborative; loop IDLE→SEEK→CLAIM→BUSY/WORK→PROVE→SPEND. On-chain currency = $THREE on mainnet (devnet uses SOL/synthetic). Identity bridge `sha256` namespaces `AgenC/three.ws/{erc8004|mpl-core|handle|composite}/v1`.++**zauth suite** (`docs/zauth/*`, vendored 2026-06-10) — API host `api.zauth.inc`. RepoScan x402 $0.05/scan (trust score 0–100), `GET /api/bot/scan`, `GET /api/bot/progress/:scanId` (SSE), `POST /x402/reposcan`. Provider Hub `@zauthx402/sdk` Express middleware `zauthProvider(apiKey)` with auto-refunds (per-refund/daily/monthly caps). Free directory `GET https://api.zauth.inc/api/directory`.++**Spec schema snippets** (`specs/schema/*.sql`) — `agent_subscriptions`(`period_seconds>0`, `status active|canceled|paused`), `dca_strategies`(`dca/0.1`, `chain_id` default 84532, `period_seconds IN (86400,604800)`, `slippage_bps` 1–500), `indexer_state`(`(contract,chain_id)` unique, `last_indexed_block`), `voice-cloning`(`agent_identities.voice_provider/voice_id/voice_cloned_at`), `embed-policy`(`agent_identities.embed_policy` JSONB).diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 5216ef0e5..0fa353769 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -18,6 +18,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Avatar Studio avatars come alive — pick from 16 motions** — Your avatar no longer stands frozen in a stiff T-pose while you dress it. Avatar Studio now plays a natural looping idle the moment it loads — proof the avatar is fully rigged — and a new Animate tab lets you drive the rig live: 16 curated motions including Idle, Wave, Cheer, Celebrate, Flex, Dance, Shuffle, Rumba, Thriller, Capoeira and more. Looping motions become your avatar's resting idle, so when you Save, your avatar is captured in the relaxed stance you chose rather than a rigid pose. One-shot moves like Wave and Celebrate play once and settle back to idle automatically. (`/avatar-studio`) `[feature, improvement]`- **Brain page simplified — pick a personality in one tap** — Building an agent personality no longer requires picking an archetype, clicking Generate, reviewing a six-field card, choosing an agent from a dropdown, and hitting Save. Now it's one tap: pick a vibe (Sharp Analyst, Crypto Native, Casual Builder, and five more), and it applies and saves to your agent instantly. For custom personalities, type a description and press Enter — no separate button. The agent auto-selects from your roster at the top of the page. A slim status bar confirms the active persona with options to test it in the Playground, customize it, or clear it. (`/brain`) `[improvement]`- **Claim Wallet is now a full Wallet Intelligence dashboard** — Paste any Solana address and /claim-wallet now reads its complete pump.fun record like a pro terminal: realized P&L in SOL and live USD, win rate, smart-money score with a gauge, total volume, and a real micro equity-curve sparkline. Below that, a trade-analysis panel (net flow, average buy/sold, hold time, transaction count), a reputation panel (early-entry win rate, dump rate, dumps, coins created), an ROI distribution bar that buckets every closed position from >5× down to rugs, and a category mix of what the wallet actually trades. The centerpiece is a full sortable trade ledger — realized P&L, ROI with an inline bar, bought/sold, buy/sell transaction counts, hold duration and last activity per coin — and every row opens that coin's complete launch page with its live chart, holders and bubblemap. 7D / 30D / All-time toggles, instant filters (hide dust, open positions only, created coins), copy address, share, and a one-click signature-verified claim are all wired. Every number traces to a real on-chain trade — no placeholders. (`/claim-wallet`) `[feature, improvement]`+- **Coin pages now show price moves and on-chain safety at a glance** — Every coin's launch page (/launches/<mint>) gained a richer market header. A new metrics strip shows price moves across 5m, 1h, 6h, and 24h — computed live from real trade history, and only quoting a window once there's enough history to back it, so a brand-new coin never shows a fake 24h number. Alongside it, an on-chain safety panel surfaces the same checks the autonomous sniper runs before trading: whether the mint and freeze authorities are revoked (can the dev print more supply or freeze your tokens?), where real liquidity sits, and an overall 0–100 safety score. The coin header also now lists total supply. On the /launches feed, every card leads with the coin's age, the same at-a-glance freshness cue pro terminals open with. (`/launches`) `[feature, improvement]`- **Coin Radar upgraded — a live market-pulse banner, smart-money signals, search, sort and a list view** — The Coin Radar now opens with a market-pulse banner that reads the whole room at a glance: launches observed in the last 24 hours (and the last hour), a health-mix bar splitting them into healthy / mixed / risky, the share carrying danger flags, how many a reputation-scored wallet touched, and the graduated-versus-rugged tally from labeled outcomes. Every coin card surfaces signals the engine always measured but never showed — a smart-money badge counting reputation-scored buyers, a news-driven badge when a launch matches a live headline, funding-cluster and graduated/rugged badges, plus market cap, top-10 concentration and net SOL flow. You can now search by name, ticker or mint, sort by newest, quality, smart money, buyers or volume, filter to only smart-money or news-driven coins, and switch between the card grid and a dense list view. The detail drawer gained a Smart money section listing the notable wallets with their win rates, a News-driven source link, and richer signals (coordination, top-5 concentration, funding clusters, buy/sell ratio, net flow, first-seen market cap). Power users get keyboard shortcuts: / to search, g and l for grid and list, r to refresh. Every filter, sort and view is saved in the URL so a radar view is shareable. (`/radar`) `[feature, improvement]`- **Community Avatars — dedicated gallery page in the sidebar** — The community tab from the Avatars page is now its own first-class destination: /dashboard/community-avatars. Browse every public avatar on the platform with full search, rig filters, tag chips, and sort controls — all without needing to navigate through your own avatar library first. Accessible directly from the Explore section of the dashboard sidebar. (`/dashboard/community-avatars`) `[feature]`- **Default avatars render again everywhere** — Avatars stopped appearing across the site — the homepage hero, guest avatars, and any embed that falls back to the default character all showed an empty frame. The default avatar was being loaded from an asset host that had gone offline. It now loads from three.ws itself, so default avatars render again on every page and in every embed. `[fix]`diff --git a/data/changelog.json b/data/changelog.jsonindex 80108b5d1..79c9f3d56 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,13 @@{"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-06-26",+ "title": "Coin pages now show price moves and on-chain safety at a glance",+ "summary": "Every coin's launch page (/launches/<mint>) gained a richer market header. A new metrics strip shows price moves across 5m, 1h, 6h, and 24h — computed live from real trade history, and only quoting a window once there's enough history to back it, so a brand-new coin never shows a fake 24h number. Alongside it, an on-chain safety panel surfaces the same checks the autonomous sniper runs before trading: whether the mint and freeze authorities are revoked (can the dev print more supply or freeze your tokens?), where real liquidity sits, and an overall 0–100 safety score. The coin header also now lists total supply. On the /launches feed, every card leads with the coin's age, the same at-a-glance freshness cue pro terminals open with.",+ "tags": ["feature", "improvement"],+ "link": "/launches"+ },{"date": "2026-06-26","title": "Animation Studio — avatars no longer break when you switch animations",diff --git a/pages/avatar-engines.html b/pages/avatar-engines.htmlnew file mode 100644index 000000000..d32f1027b--- /dev/null+++ b/pages/avatar-engines.html@@ -0,0 +1,375 @@+<!doctype html>+<html lang="en">+ <head>+ <script>/* three.ws theme boot — no-flash */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>+ <meta charset="utf-8" />+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />+ <title>Avatar Engines Atlas · three.ws</title>+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />+ <meta name="description" content="A curated, factual atlas of the open-source and commercial engines that build high-quality and photoreal 3D human avatars — technique, license, compute, and exactly how three.ws uses each one." />+ <meta name="theme-color" content="#000000" />+ <link rel="canonical" href="https://three.ws/avatar-engines" />++ <meta property="og:type" content="website" />+ <meta property="og:site_name" content="three.ws" />+ <meta property="og:title" content="Avatar Engines Atlas · three.ws" />+ <meta property="og:description" content="Every major engine for high-quality and photoreal 3D human avatars — Gaussian-splat heads, image→human, text→avatar, and the rigs three.ws already animates. Technique, license, and integration status for each." />+ <meta property="og:url" content="https://three.ws/avatar-engines" />+ <meta property="og:image" content="https://three.ws/api/page-og?s=build&t=Avatar+Engines+Atlas&d=Every+major+engine+for+high-quality+and+photoreal+3D+human+avatars+%E2%80%94+technique%2C+license%2C+and+how+three.ws+uses+each.&p=%2Favatar-engines" />+ <meta name="twitter:card" content="summary_large_image" />+ <meta name="twitter:site" content="@trythreews" />+ <meta name="twitter:title" content="Avatar Engines Atlas · three.ws" />+ <meta name="twitter:description" content="A curated atlas of high-quality and photoreal 3D avatar engines, with license and integration status." />+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=build&t=Avatar+Engines+Atlas&d=Every+major+engine+for+high-quality+and+photoreal+3D+human+avatars+%E2%80%94+technique%2C+license%2C+and+how+three.ws+uses+each.&p=%2Favatar-engines" />++ <link rel="icon" href="/favicon.ico" sizes="any" />+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />+ <link rel="apple-touch-icon" href="/apple-touch-icon.png" />+ <link rel="manifest" href="/site.webmanifest" />+ <link rel="stylesheet" href="/style.css" />+ <link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/footer.css" />+ <link rel="stylesheet" href="/fonts/fonts.css" />++ <style>+ .ae-page {+ min-height: 100vh;+ background: var(--bg, #050505);+ color: var(--text, #f6f6f6);+ font-family: var(--font-body, 'Inter', system-ui, sans-serif);+ -webkit-font-smoothing: antialiased;+ }++ /* ── Hero ──────────────────────────────────────────────── */+ .ae-hero {+ max-width: 1120px;+ margin: 0 auto;+ padding: 64px 24px 28px;+ }+ .ae-chip {+ display: inline-flex;+ align-items: center;+ gap: 6px;+ padding: 4px 11px;+ background: rgba(255, 255, 255, 0.05);+ border: 1px solid var(--hairline, #1c1c1c);+ border-radius: 20px;+ font-size: 11px;+ color: var(--text-2, #a8a8a8);+ letter-spacing: 0.05em;+ text-transform: uppercase;+ margin-bottom: 20px;+ }+ .ae-dot {+ width: 6px;+ height: 6px;+ border-radius: 50%;+ background: #4ade80;+ animation: ae-pulse 2.4s ease-out infinite;+ }+ @keyframes ae-pulse {+ 0%, 100% { opacity: 1; }+ 50% { opacity: 0.35; }+ }+ .ae-hero h1 {+ font-family: var(--font-display, 'Space Grotesk', sans-serif);+ font-size: clamp(30px, 5vw, 50px);+ font-weight: 700;+ letter-spacing: -0.025em;+ margin: 0 0 14px;+ line-height: 1.05;+ }+ .ae-hero p {+ color: var(--text-2, #a8a8a8);+ font-size: 16px;+ line-height: 1.6;+ margin: 0;+ max-width: 680px;+ }++ /* ── Stat row ──────────────────────────────────────────── */+ .ae-stats {+ display: flex;+ flex-wrap: wrap;+ gap: 28px;+ margin-top: 28px;+ }+ .ae-stat-n {+ font-family: var(--font-display, 'Space Grotesk', sans-serif);+ font-size: 26px;+ font-weight: 700;+ line-height: 1;+ }+ .ae-stat-l {+ font-size: 12px;+ color: var(--text-3, #8a8a8a);+ margin-top: 5px;+ }++ /* ── Controls ──────────────────────────────────────────── */+ .ae-controls {+ position: sticky;+ top: 0;+ z-index: 30;+ background: color-mix(in srgb, var(--bg, #050505) 88%, transparent);+ backdrop-filter: blur(14px);+ -webkit-backdrop-filter: blur(14px);+ border-bottom: 1px solid var(--hairline, #1c1c1c);+ }+ .ae-controls-inner {+ max-width: 1120px;+ margin: 0 auto;+ padding: 14px 24px;+ display: flex;+ flex-wrap: wrap;+ gap: 12px;+ align-items: center;+ }+ .ae-search {+ flex: 1 1 220px;+ display: flex;+ align-items: center;+ gap: 8px;+ padding: 8px 12px;+ background: var(--surface-1, #111);+ border: 1px solid var(--hairline, #1c1c1c);+ border-radius: 9px;+ transition: border-color 0.15s;+ }+ .ae-search:focus-within { border-color: var(--hairline-strong, #2a2a2a); }+ .ae-search svg { flex: 0 0 auto; color: var(--text-3, #8a8a8a); }+ .ae-search input {+ flex: 1;+ background: none;+ border: none;+ outline: none;+ color: var(--text, #f6f6f6);+ font-size: 13px;+ font-family: inherit;+ }+ .ae-search input::placeholder { color: var(--text-4, #6e6e6e); }+ .ae-select {+ appearance: none;+ background: var(--surface-1, #111) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;+ border: 1px solid var(--hairline, #1c1c1c);+ border-radius: 9px;+ color: var(--text, #f6f6f6);+ font-size: 13px;+ font-family: inherit;+ padding: 9px 30px 9px 12px;+ cursor: pointer;+ transition: border-color 0.15s;+ }+ .ae-select:hover { border-color: var(--hairline-strong, #2a2a2a); }+ .ae-select:focus-visible { outline: 2px solid var(--accent, #fff); outline-offset: 2px; }+ .ae-toggle {+ display: inline-flex;+ align-items: center;+ gap: 8px;+ padding: 9px 13px;+ background: var(--surface-1, #111);+ border: 1px solid var(--hairline, #1c1c1c);+ border-radius: 9px;+ font-size: 13px;+ color: var(--text-2, #a8a8a8);+ cursor: pointer;+ transition: border-color 0.15s, color 0.15s, background 0.15s;+ user-select: none;+ }+ .ae-toggle:hover { border-color: var(--hairline-strong, #2a2a2a); color: var(--text, #f6f6f6); }+ .ae-toggle[aria-pressed='true'] {+ background: var(--accent, #fff);+ color: #000;+ border-color: var(--accent, #fff);+ }+ .ae-toggle .ae-tg-box {+ width: 14px; height: 14px; border-radius: 4px;+ border: 1.5px solid currentColor; opacity: 0.6;+ display: inline-flex; align-items: center; justify-content: center;+ }+ .ae-toggle[aria-pressed='true'] .ae-tg-box { opacity: 1; }++ /* ── Layout ────────────────────────────────────────────── */+ .ae-main { max-width: 1120px; margin: 0 auto; padding: 8px 24px 80px; }+ .ae-count { font-size: 12px; color: var(--text-3, #8a8a8a); padding: 18px 2px 6px; }++ .ae-family { margin-top: 26px; }+ .ae-family-head { margin: 0 0 4px; }+ .ae-family-head h2 {+ font-family: var(--font-display, 'Space Grotesk', sans-serif);+ font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0;+ }+ .ae-family-head p { font-size: 13px; color: var(--text-3, #8a8a8a); margin: 5px 0 0; max-width: 640px; }++ .ae-grid {+ display: grid;+ grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));+ gap: 14px;+ margin-top: 16px;+ }++ /* ── Card ──────────────────────────────────────────────── */+ .ae-card {+ display: flex;+ flex-direction: column;+ background: var(--surface-1, #111);+ border: 1px solid var(--hairline, #1c1c1c);+ border-radius: 13px;+ padding: 18px;+ transition: border-color 0.18s, transform 0.18s, background 0.18s;+ }+ .ae-card:hover { border-color: var(--hairline-strong, #2a2a2a); transform: translateY(-2px); background: var(--surface-2, #181818); }+ .ae-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }+ .ae-card h3 {+ font-family: var(--font-display, 'Space Grotesk', sans-serif);+ font-size: 16px; font-weight: 700; margin: 0; letter-spacing: -0.01em;+ }+ .ae-card .ae-org { font-size: 12px; color: var(--text-3, #8a8a8a); margin: 3px 0 0; }+ .ae-rep {+ flex: 0 0 auto;+ font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;+ padding: 3px 8px; border-radius: 6px; white-space: nowrap;+ border: 1px solid var(--hairline-strong, #2a2a2a); color: var(--text-2, #a8a8a8);+ }+ .ae-rep[data-rep='gaussian'] { color: #c4b5fd; border-color: #4c3f7a; background: rgba(124,93,243,0.1); }+ .ae-rep[data-rep='nerf'] { color: #93c5fd; border-color: #2c4a6e; background: rgba(59,130,246,0.1); }+ .ae-rep[data-rep='mesh'] { color: #86efac; border-color: #2d5a3d; background: rgba(34,197,94,0.09); }+ .ae-rep[data-rep='gltf'] { color: #fcd34d; border-color: #6b561f; background: rgba(234,179,8,0.09); }+ .ae-rep[data-rep='parametric'] { color: #f0abfc; border-color: #6b3a6e; background: rgba(217,70,239,0.09); }++ .ae-blurb { font-size: 13px; line-height: 1.55; color: var(--text-2, #a8a8a8); margin: 12px 0 14px; }++ .ae-meta { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; font-size: 12px; margin-bottom: 14px; }+ .ae-meta dt { color: var(--text-4, #6e6e6e); white-space: nowrap; }+ .ae-meta dd { color: var(--text-2, #a8a8a8); margin: 0; }++ .ae-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }+ .ae-tag {+ font-size: 11px; padding: 3px 9px; border-radius: 20px;+ border: 1px solid var(--hairline-strong, #2a2a2a); color: var(--text-3, #8a8a8a);+ display: inline-flex; align-items: center; gap: 5px;+ }+ .ae-tag--ok { color: #86efac; border-color: #2d5a3d; }+ .ae-tag--no { color: var(--text-3, #8a8a8a); }+ .ae-tag .ae-tdot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }++ .ae-int {+ display: flex; align-items: center; gap: 8px;+ font-size: 12px; padding: 9px 11px; border-radius: 9px; margin-bottom: 14px;+ background: var(--surface-0, #0b0b0b); border: 1px solid var(--hairline, #1c1c1c);+ }+ .ae-int-badge {+ flex: 0 0 auto; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;+ padding: 3px 8px; border-radius: 6px;+ }+ .ae-int-badge[data-tone='live'], .ae-int-badge[data-tone='forge'] { background: rgba(74,222,128,0.14); color: #4ade80; }+ .ae-int-badge[data-tone='splat'] { background: rgba(124,93,243,0.16); color: #c4b5fd; }+ .ae-int-badge[data-tone='interop'] { background: rgba(234,179,8,0.14); color: #fcd34d; }+ .ae-int-badge[data-tone='reference'] { background: rgba(255,255,255,0.06); color: var(--text-3, #8a8a8a); }+ .ae-int span { color: var(--text-3, #8a8a8a); line-height: 1.4; }++ .ae-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }+ .ae-btn {+ display: inline-flex; align-items: center; gap: 6px;+ padding: 8px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 500;+ text-decoration: none; border: 1px solid var(--hairline-strong, #2a2a2a);+ color: var(--text, #f6f6f6); cursor: pointer; transition: background 0.15s, border-color 0.15s, opacity 0.15s;+ background: transparent;+ }+ .ae-btn:hover { background: var(--surface-2, #181818); border-color: var(--text-4, #6e6e6e); }+ .ae-btn:focus-visible { outline: 2px solid var(--accent, #fff); outline-offset: 2px; }+ .ae-btn--primary { background: var(--accent, #fff); color: #000; border-color: var(--accent, #fff); }+ .ae-btn--primary:hover { background: #e3e3e3; opacity: 1; }+ .ae-btn svg { flex: 0 0 auto; }++ /* ── Empty state ───────────────────────────────────────── */+ .ae-empty {+ text-align: center; padding: 80px 24px; color: var(--text-3, #8a8a8a);+ }+ .ae-empty h3 { font-size: 17px; color: var(--text, #f6f6f6); margin: 0 0 8px; font-family: var(--font-display, 'Space Grotesk', sans-serif); }+ .ae-empty p { font-size: 14px; margin: 0 0 18px; }++ .ae-foot-note {+ max-width: 1120px; margin: 0 auto; padding: 0 24px 60px;+ font-size: 12px; line-height: 1.6; color: var(--text-4, #6e6e6e);+ }+ .ae-foot-note a { color: var(--text-3, #8a8a8a); }++ @media (max-width: 560px) {+ .ae-hero { padding-top: 44px; }+ .ae-grid { grid-template-columns: 1fr; }+ .ae-stats { gap: 20px; }+ }+ </style>+ </head>+ <body>+ <div class="ae-page">+ <div id="nav-container"></div>+ <script type="module" src="/nav.js"></script>++ <header class="ae-hero">+ <span class="ae-chip"><span class="ae-dot"></span> Avatar Engines Atlas</span>+ <h1>Every engine for a high-quality human avatar.</h1>+ <p>+ A factual map of the open-source and commercial systems that build realistic and+ high-quality 3D avatars — Gaussian-splat heads, single-photo humans, text→avatar+ generators, and the rigs three.ws already animates. For each: what it makes, what it+ runs on, what its license permits, and exactly how three.ws uses it.+ </p>+ <div class="ae-stats" id="ae-stats" aria-hidden="true"></div>+ </header>++ <div class="ae-controls">+ <div class="ae-controls-inner">+ <label class="ae-search">+ <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>+ <input id="ae-search" type="search" placeholder="Search engines, techniques, orgs…" autocomplete="off" aria-label="Search avatar engines" />+ </label>+ <select class="ae-select" id="ae-family" aria-label="Filter by family">+ <option value="">All families</option>+ </select>+ <select class="ae-select" id="ae-integration" aria-label="Filter by integration">+ <option value="">Any integration</option>+ <option value="live">Live on three.ws</option>+ <option value="forge">Generate in Forge</option>+ <option value="splat">View in Splat Viewer</option>+ <option value="interop">Interop</option>+ <option value="reference">Reference / self-host</option>+ </select>+ <select class="ae-select" id="ae-sort" aria-label="Sort engines">+ <option value="family">Sort: by family</option>+ <option value="newest">Sort: newest</option>+ <option value="name">Sort: A–Z</option>+ </select>+ <button class="ae-toggle" id="ae-commercial" type="button" aria-pressed="false">+ <span class="ae-tg-box"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3.5"><path d="M5 12l5 5 9-11"/></svg></span>+ Commercial-use only+ </button>+ </div>+ </div>++ <main class="ae-main">+ <div class="ae-count" id="ae-count" aria-live="polite"></div>+ <div id="ae-results"></div>+ <div class="ae-empty" id="ae-empty" hidden>+ <h3>No engines match those filters.</h3>+ <p>Try clearing the search or switching off “commercial-use only”.</p>+ <button class="ae-btn ae-btn--primary" id="ae-reset" type="button">Reset filters</button>+ </div>+ </main>++ <p class="ae-foot-note">+ Listings are reference material compiled from each project's own repository and paper, current as of June 2026.+ License summaries are guidance, not legal advice — confirm terms with the upstream project before any commercial use.+ Non-commercial research engines are linked for self-hosted and academic use and are deliberately not wired into the+ three.ws paid generation pipeline. The only token three.ws references is+ <a href="/three-token">$THREE</a>.+ </p>++ <div id="footer-container"></div>+ <script src="/footer.js" defer></script>+ </div>++ <script type="module" src="/src/avatar-engines.js"></script>+ </body>+</html>diff --git a/public/changelog.json b/public/changelog.jsonindex 956d7fb71..94bd06c5e 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-26T11:18:24.923Z",+ "generated_at": "2026-06-26T11:45:38.767Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -134,6 +134,17 @@"improvement"]},+ {+ "date": "2026-06-26",+ "type": "update",+ "title": "Coin pages now show price moves and on-chain safety at a glance",+ "summary": "Every coin's launch page (/launches/<mint>) gained a richer market header. A new metrics strip shows price moves across 5m, 1h, 6h, and 24h — computed live from real trade history, and only quoting a window once there's enough history to back it, so a brand-new coin never shows a fake 24h number. Alongside it, an on-chain safety panel surfaces the same checks the autonomous sniper runs before trading: whether the mint and freeze authorities are revoked (can the dev print more supply or freeze your tokens?), where real liquidity sits, and an overall 0–100 safety score. The coin header also now lists total supply. On the /launches feed, every card leads with the coin's age, the same at-a-glance freshness cue pro terminals open with.",+ "link": "/launches",+ "tags": [+ "feature",+ "improvement"+ ]+ },{"date": "2026-06-26","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 7ae7940e5..d64370c66 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -102,6 +102,14 @@<category>feature</category><description>Paste any Solana address and /claim-wallet now reads its complete pump.fun record like a pro terminal: realized P&L in SOL and live USD, win rate, smart-money score with a gauge, total volume, and a real micro equity-curve sparkline. Below that, a trade-analysis panel (net flow, average buy/sold, hold time, transaction count), a reputation panel (early-entry win rate, dump rate, dumps, coins created), an ROI distribution bar that buckets every closed position from >5× down to rugs, and a category mix of what the wallet actually trades. The centerpiece is a full sortable trade ledger — realized P&L, ROI with an inline bar, bought/sold, buy/sell transaction counts, hold duration and last activity per coin — and every row opens that coin's complete launch page with its live chart, holders and bubblemap. 7D / 30D / All-time toggles, instant filters (hide dust, open positions only, created coins), copy address, share, and a one-click signature-verified claim are all wired. Every number traces to a real on-chain trade — no placeholders.</description></item>+ <item>+ <title>Coin pages now show price moves and on-chain safety at a glance</title>+ <link>https://three.ws/launches</link>+ <guid isPermaLink="false">2026-06-26:Coin pages now show price moves and on-chain safety at a glance</guid>+ <pubDate>Fri, 26 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>Every coin's launch page (/launches/<mint>) gained a richer market header. A new metrics strip shows price moves across 5m, 1h, 6h, and 24h — computed live from real trade history, and only quoting a window once there's enough history to back it, so a brand-new coin never shows a fake 24h number. Alongside it, an on-chain safety panel surfaces the same checks the autonomous sniper runs before trading: whether the mint and freeze authorities are revoked (can the dev print more supply or freeze your tokens?), where real liquidity sits, and an overall 0–100 safety score. The coin header also now lists total supply. On the /launches feed, every card leads with the coin's age, the same at-a-glance freshness cue pro terminals open with.</description>+ </item><item><title>Coin Radar upgraded — a live market-pulse banner, smart-money signals, search, sort and a list view</title><link>https://three.ws/radar</link>diff --git a/public/features.json b/public/features.jsonindex 73fb2e3c2..4ac11f0b9 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-26T11:18:24.898Z",+ "generated_at": "2026-06-26T11:45:38.745Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/src/avatar-engines-data.js b/src/avatar-engines-data.jsnew file mode 100644index 000000000..49a7148e3--- /dev/null+++ b/src/avatar-engines-data.js@@ -0,0 +1,651 @@+// Avatar Engines Atlas — the curated, factual registry of the open-source and+// commercial engines that produce high-quality / photoreal human avatars.+//+// This is a *reference* surface, not an endorsement: it tells a builder, for+// each engine, what it makes, what it eats, what it runs on, what its license+// permits, and exactly how (or whether) three.ws can use it today. The+// `integration` field is the honest answer to "can I click a button here and+// get an avatar?" — see INTEGRATIONS below.+//+// Licensing is load-bearing. Many of the highest-fidelity research engines+// (ECON, ICON, the Max-Planck body/face models, the Gaussian-Splatting stack)+// ship under *non-commercial research* licenses. three.ws is a commercial+// platform, so those are surfaced for self-hosted/academic use and flagged+// `commercial: false` — they are deliberately NOT wired into the paid+// generation backend. Only `commercial: true` mesh engines deep-link into the+// live /forge pipeline.+//+// Each entry's facts (repo, venue, license, representation) are sourced from the+// project's own repository/paper. Keep this file the single source of truth;+// the /avatar-engines page renders straight from it.++// How three.ws relates to each engine, in plain terms.+export const INTEGRATIONS = Object.freeze({+ live: Object.freeze({+ id: 'live',+ label: 'Live on three.ws',+ blurb: 'Already wired into a three.ws product surface you can use right now.',+ tone: 'live',+ }),+ forge: Object.freeze({+ id: 'forge',+ label: 'Generate in Forge',+ blurb: 'Commercially licensed and reachable through the live /forge text/image → GLB pipeline.',+ tone: 'forge',+ }),+ splat: Object.freeze({+ id: 'splat',+ label: 'View in Splat Viewer',+ blurb: 'Produces Gaussian-splat / radiance-field output you can drop straight into the three.ws splat viewer.',+ tone: 'splat',+ }),+ interop: Object.freeze({+ id: 'interop',+ label: 'Interop',+ blurb: 'Emits a standard rigged format (glTF/VRM/FBX) the three.ws viewer and animation pipeline already understand.',+ tone: 'interop',+ }),+ reference: Object.freeze({+ id: 'reference',+ label: 'Reference / self-host',+ blurb: 'Run it yourself — license or compute profile keeps it out of the commercial pipeline. Linked here for builders.',+ tone: 'reference',+ }),+});++// Representation the engine outputs — drives the "can the three.ws animation+// pipeline drive it?" intuition. Mesh/glTF → yes; gaussian/nerf → needs the+// splat/volume renderer, not the skinned-mesh animator.+export const REPRESENTATIONS = Object.freeze({+ mesh: { id: 'mesh', label: 'Mesh', note: 'Skinned/standard polygon mesh — riggable, GLB-exportable.' },+ gltf: { id: 'gltf', label: 'glTF / VRM', note: 'Standard rigged avatar format — loads directly in the viewer.' },+ parametric: { id: 'parametric', label: 'Parametric model', note: 'A statistical body/face model (SMPL-family) others build on.' },+ gaussian: { id: 'gaussian', label: '3D Gaussians', note: 'Gaussian-splat radiance field — photoreal, needs a splat renderer.' },+ nerf: { id: 'nerf', label: 'Neural field', note: 'NeRF/volumetric — photoreal, rendered by ray-marching, not rigged.' },+});++// Engine families, ordered the way the page presents them.+export const FAMILIES = Object.freeze([+ {+ id: 'photoreal-head',+ label: 'Photoreal head avatars',+ blurb: 'Gaussian-splat and neural-field heads reconstructed from video — the current state of the art for realistic faces.',+ },+ {+ id: 'image-to-human',+ label: 'Image → 3D human',+ blurb: 'Turn one photo (or a few) into a posed, clothed, textured 3D human you can rig.',+ },+ {+ id: 'text-to-avatar',+ label: 'Text / image → 3D avatar',+ blurb: 'Generative pipelines that author a whole avatar from a prompt — the same lane three.ws Forge lives in.',+ },+ {+ id: 'parametric',+ label: 'Parametric body & face models',+ blurb: 'The statistical human models almost every method above is built on. The foundation layer.',+ },+ {+ id: 'production',+ label: 'Production & interop',+ blurb: 'Battle-tested avatar formats and platforms — the rigs three.ws already loads and animates.',+ },+]);++// The registry. `commercial` = license permits commercial use as-is.+export const ENGINES = Object.freeze([+ // ── Photoreal head avatars ───────────────────────────────────────────────+ {+ id: 'gaussian-avatars',+ name: 'GaussianAvatars',+ org: 'Qian et al. · TU Munich / Toyota',+ year: 2024,+ venue: 'CVPR 2024 Highlight',+ family: 'photoreal-head',+ representation: 'gaussian',+ input: 'Multi-view face video',+ output: 'Rigged 3D Gaussians on a FLAME mesh',+ license: 'Non-commercial research (Gaussian-Splatting + FLAME)',+ commercial: false,+ compute: 'GPU training, per-subject',+ integration: 'splat',+ integrationNote: 'Export the trained splat and inspect it in the three.ws Splat Viewer. Animation is driven by FLAME, not the skinned-mesh pipeline.',+ blurb: 'Photorealistic, fully controllable head avatars: 3D Gaussians rigged to a parametric face model for expression and pose transfer.',+ links: {+ repo: 'https://github.com/ShenhanQian/GaussianAvatars',+ paper: 'https://arxiv.org/abs/2312.02069',+ demo: 'https://shenhanqian.github.io/gaussian-avatars',+ },+ },+ {+ id: 'gaussian-head-avatar',+ name: 'Gaussian Head Avatar',+ org: 'Xu et al. · NeRSemble',+ year: 2024,+ venue: 'CVPR 2024',+ family: 'photoreal-head',+ representation: 'gaussian',+ input: 'Multi-view face video',+ output: 'Controllable 3D Gaussian head',+ license: 'Non-commercial research',+ commercial: false,+ compute: 'GPU training, per-subject',+ integration: 'splat',+ integrationNote: 'Ultra-high-fidelity splat output — view exported scenes in the three.ws Splat Viewer.',+ blurb: 'Ultra high-fidelity head avatars via controllable dynamic 3D Gaussians, targeting 2K-resolution rendering.',+ links: {+ repo: 'https://github.com/YuelangX/Gaussian-Head-Avatar',+ paper: 'https://arxiv.org/abs/2312.03029',+ demo: 'https://yuelangx.github.io/gaussianheadavatar/',+ },+ },+ {+ id: 'insta',+ name: 'INSTA',+ org: 'Zielinski et al. · MPI',+ year: 2023,+ venue: 'CVPR 2023',+ family: 'photoreal-head',+ representation: 'nerf',+ input: 'Monocular face video (~10 min train)',+ output: 'Instant volumetric head avatar (NeRF)',+ license: 'Non-commercial research',+ commercial: false,+ compute: 'GPU training (minutes)',+ integration: 'reference',+ integrationNote: 'Neural-field output — rendered by ray-marching, not the three.ws splat/mesh pipelines. Linked for builders self-hosting.',+ blurb: 'Instant Volumetric Head Avatars — trains a deformable NeRF head from a short monocular video in about ten minutes.',+ links: {+ repo: 'https://github.com/Zielon/INSTA',+ paper: 'https://arxiv.org/abs/2211.12499',+ demo: 'https://zielon.github.io/insta/',+ },+ },+ {+ id: 'imavatar',+ name: 'IMavatar',+ org: 'Zheng et al. · ETH / MPI',+ year: 2022,+ venue: 'CVPR 2022',+ family: 'photoreal-head',+ representation: 'nerf',+ input: 'Monocular face video',+ output: 'Implicit morphable head avatar',+ license: 'Non-commercial research',+ commercial: false,+ compute: 'GPU training, per-subject',+ integration: 'reference',+ integrationNote: 'Implicit field representation — self-host for research. Not wired into the commercial pipeline.',+ blurb: 'Implicit Morphable head Avatars — learns an animatable implicit head with expression and pose control from video.',+ links: {+ repo: 'https://github.com/zhengyuf/IMavatar',+ paper: 'https://arxiv.org/abs/2112.07471',+ demo: 'https://ait.ethz.ch/projects/2022/IMavatar/',+ },+ },+ {+ id: 'geneface',+ name: 'GeneFace++',+ org: 'Ye et al. · Zhejiang Univ.',+ year: 2023,+ venue: 'arXiv / ICLR lineage',+ family: 'photoreal-head',+ representation: 'nerf',+ input: 'Audio + target portrait video',+ output: 'Audio-driven talking-head (NeRF)',+ license: 'MIT (code) · research models',+ commercial: false,+ compute: 'GPU training + inference',+ integration: 'reference',+ integrationNote: 'Produces lip-synced talking-head video from speech. Pair conceptually with the three.ws audio2face/voice lane; self-host the renderer.',+ blurb: 'Generalized and stable audio-driven talking-face generation — real-time lip-sync from arbitrary speech.',+ links: {+ repo: 'https://github.com/yerfor/GeneFacePlusPlus',+ paper: 'https://arxiv.org/abs/2305.00787',+ demo: 'https://genefaceplusplus.github.io/',+ },+ },++ // ── Image → 3D human ─────────────────────────────────────────────────────+ {+ id: 'pifuhd',+ name: 'PIFuHD',+ org: 'Saito et al. · Meta AI',+ year: 2020,+ venue: 'CVPR 2020 Oral',+ family: 'image-to-human',+ representation: 'mesh',+ input: 'Single full-body photo',+ output: 'High-resolution clothed mesh (.obj)',+ license: 'CC BY-NC 4.0 (non-commercial)',+ commercial: false,+ compute: 'GPU inference (Colab available)',+ integration: 'reference',+ integrationNote: 'The classic single-image human. Non-commercial license keeps it out of the paid pipeline — self-host or use the official Colab.',+ blurb: 'Pixel-aligned implicit function at high resolution — the reference single-image clothed-human reconstruction baseline.',+ links: {+ repo: 'https://github.com/facebookresearch/pifuhd',+ paper: 'https://arxiv.org/abs/2004.00452',+ demo: 'https://shunsukesaito.github.io/PIFuHD/',+ },+ },+ {+ id: 'econ',+ name: 'ECON',+ org: 'Xiu et al. · Max Planck',+ year: 2023,+ venue: 'CVPR 2023 Highlight',+ family: 'image-to-human',+ representation: 'mesh',+ input: 'Single photo (loose clothing / hard poses)',+ output: 'Detailed clothed mesh',+ license: 'Non-commercial research (Max Planck)',+ commercial: false,+ compute: 'GPU inference',+ integration: 'reference',+ integrationNote: 'State-of-the-art single-image humans, even in loose clothing. Try the authors’ Hugging Face Space; license blocks commercial wiring.',+ blurb: 'Explicit Clothed humans Optimized via Normal integration — combines implicit detail with explicit SMPL-X structure for robust in-the-wild reconstruction.',+ links: {+ repo: 'https://github.com/YuliangXiu/ECON',+ paper: 'https://arxiv.org/abs/2212.07422',+ demo: 'https://huggingface.co/spaces/Yuliang/ECON',+ },+ },+ {+ id: 'icon',+ name: 'ICON',+ org: 'Xiu et al. · Max Planck',+ year: 2022,+ venue: 'CVPR 2022',+ family: 'image-to-human',+ representation: 'mesh',+ input: 'Single photo',+ output: 'Clothed mesh (normal-guided)',+ license: 'Non-commercial research (Max Planck)',+ commercial: false,+ compute: 'GPU inference',+ integration: 'reference',+ integrationNote: 'Predecessor to ECON; SMPL-conditioned implicit reconstruction. Hugging Face Space available; non-commercial only.',+ blurb: 'Implicit Clothed humans Obtained from Normals — local-feature implicit reconstruction conditioned on an SMPL body prior.',+ links: {+ repo: 'https://github.com/YuliangXiu/ICON',+ paper: 'https://arxiv.org/abs/2112.09127',+ demo: 'https://huggingface.co/spaces/Yuliang/ICON',+ },+ },+ {+ id: 'sith',+ name: 'SiTH',+ org: 'Ho et al. · ETH Zürich',+ year: 2024,+ venue: 'CVPR 2024',+ family: 'image-to-human',+ representation: 'mesh',+ input: 'Single photo',+ output: 'Full textured 3D human mesh',+ license: 'Non-commercial research',+ commercial: false,+ compute: 'GPU inference (diffusion)',+ integration: 'reference',+ integrationNote: 'Diffusion-based back-view hallucination + mesh reconstruction. Self-host for research.',+ blurb: 'Single-view Textured Human reconstruction — image-conditioned diffusion hallucinates the unseen back, then lifts both views to a textured mesh.',+ links: {+ repo: 'https://github.com/SiTH-Diffusion/SiTH',+ paper: 'https://arxiv.org/abs/2311.15855',+ demo: 'https://ait.ethz.ch/sith',+ },+ },+ {+ id: 'pifu',+ name: 'PIFu',+ org: 'Saito et al. · USC / Meta',+ year: 2019,+ venue: 'ICCV 2019',+ family: 'image-to-human',+ representation: 'mesh',+ input: 'Single or multi-view photo',+ output: 'Textured clothed mesh',+ license: 'Custom research (non-commercial)',+ commercial: false,+ compute: 'GPU inference',+ integration: 'reference',+ integrationNote: 'The original pixel-aligned implicit function — foundational. Self-host for research and study.',+ blurb: 'The original Pixel-aligned Implicit Function for clothed-human digitization — the method PIFuHD and most of this column descend from.',+ links: {+ repo: 'https://github.com/shunsukesaito/PIFu',+ paper: 'https://arxiv.org/abs/1905.05172',+ demo: 'https://shunsukesaito.github.io/PIFu/',+ },+ },++ // ── Text / image → 3D avatar ─────────────────────────────────────────────+ {+ id: 'trellis',+ name: 'TRELLIS',+ org: 'Microsoft Research',+ year: 2024,+ venue: 'arXiv 2024',+ family: 'text-to-avatar',+ representation: 'mesh',+ input: 'Text prompt or image',+ output: 'Textured 3D asset (mesh + radiance)',+ license: 'MIT',+ commercial: true,+ compute: 'Cloud API (NVIDIA NIM / self-host)',+ integration: 'live',+ integrationNote: 'Powers the free three.ws Forge lane (forge_free) end-to-end — text/image → rig-ready GLB. Click straight through to /forge.',+ blurb: 'Structured 3D latents for versatile, high-quality generation — the MIT-licensed engine behind the free three.ws text/image → 3D lane.',+ links: {+ repo: 'https://github.com/microsoft/TRELLIS',+ paper: 'https://arxiv.org/abs/2412.01506',+ demo: '/forge',+ },+ cta: { label: 'Generate in Forge', href: '/forge' },+ },+ {+ id: 'tada',+ name: 'TADA!',+ org: 'Liao et al. · MPI / ETH',+ year: 2024,+ venue: '3DV 2024',+ family: 'text-to-avatar',+ representation: 'mesh',+ input: 'Text prompt',+ output: 'Animatable SMPL-X avatar (mesh + texture)',+ license: 'Non-commercial research (SMPL-X)',+ commercial: false,+ compute: 'GPU optimization (per-prompt)',+ integration: 'reference',+ integrationNote: 'Outputs a CG-ready, riggable SMPL-X avatar — conceptually closest to Forge’s text→avatar lane, but SMPL-X licensing keeps it self-host.',+ blurb: 'Text to Animatable Digital Avatars — optimizes a displacement-enhanced SMPL-X body plus a texture map into a holistic, animation-ready avatar.',+ links: {+ repo: 'https://github.com/TingtingLiao/TADA',+ paper: 'https://arxiv.org/abs/2308.10899',+ demo: 'https://tada.is.tue.mpg.de/',+ },+ },+ {+ id: 'humangaussian',+ name: 'HumanGaussian',+ org: 'Liu et al. · NTU / Shanghai AI Lab',+ year: 2024,+ venue: 'CVPR 2024 Highlight',+ family: 'text-to-avatar',+ representation: 'gaussian',+ input: 'Text prompt',+ output: '3D human as SMPL-X-anchored Gaussians',+ license: 'Non-commercial research',+ commercial: false,+ compute: 'GPU optimization (per-prompt)',+ integration: 'splat',+ integrationNote: 'Generates a full-body Gaussian human from text — export the splat and view it in the three.ws Splat Viewer.',+ blurb: 'Text-driven 3D human generation that anchors Gaussian splats to an SMPL-X body, with a structure-aware SDS for fast, detailed results.',+ links: {+ repo: 'https://github.com/alvinliu0/HumanGaussian',+ paper: 'https://arxiv.org/abs/2311.17061',+ demo: 'https://alvinliu0.github.io/projects/HumanGaussian',+ },+ },+ {+ id: 'avatarclip',+ name: 'AvatarCLIP',+ org: 'Hong et al. · NTU',+ year: 2022,+ venue: 'SIGGRAPH 2022',+ family: 'text-to-avatar',+ representation: 'nerf',+ input: 'Text prompt (shape + appearance + motion)',+ output: 'SMPL-based neural avatar + animation',+ license: 'Non-commercial research',+ commercial: false,+ compute: 'GPU optimization',+ integration: 'reference',+ integrationNote: 'Zero-shot text-driven generation and animation. Neural representation — self-host for research.',+ blurb: 'Zero-shot text-driven generation and animation of 3D avatars — CLIP-guided shape, texture, and motion from a single description.',+ links: {+ repo: 'https://github.com/hongfz16/AvatarCLIP',+ paper: 'https://arxiv.org/abs/2205.08535',+ demo: 'https://hongfz16.github.io/projects/AvatarCLIP.html',+ },+ },+ {+ id: 'dreamhuman',+ name: 'DreamHuman',+ org: 'Kolotouros et al. · Google',+ year: 2023,+ venue: 'NeurIPS 2023',+ family: 'text-to-avatar',+ representation: 'nerf',+ input: 'Text prompt',+ output: 'Animatable pose-conditioned NeRF human',+ license: 'Research (paper + page; no official weights)',+ commercial: false,+ compute: 'GPU optimization',+ integration: 'reference',+ integrationNote: 'Text → animatable deformable NeRF human. Reference method; linked for completeness.',+ blurb: 'Generates animatable 3D human avatars from text using a deformable, pose-conditioned NeRF guided by 2D diffusion priors.',+ links: {+ repo: 'https://dream-human.github.io/',+ paper: 'https://arxiv.org/abs/2306.09329',+ demo: 'https://dream-human.github.io/',+ },+ },++ // ── Parametric body & face models ────────────────────────────────────────+ {+ id: 'smplx',+ name: 'SMPL-X',+ org: 'Pavlakos et al. · Max Planck',+ year: 2019,+ venue: 'CVPR 2019',+ family: 'parametric',+ representation: 'parametric',+ input: 'Pose + shape + expression params',+ output: 'Expressive body+hands+face mesh',+ license: 'Non-commercial research (Max Planck)',+ commercial: false,+ compute: 'CPU/GPU (real-time)',+ integration: 'reference',+ integrationNote: 'The expressive body model underpinning TADA, ECON, HumanGaussian and most methods here. Foundation layer, non-commercial.',+ blurb: 'SMPL eXpressive — one differentiable model unifying body, hands, and face. The substrate nearly every method on this page builds on.',+ links: {+ repo: 'https://github.com/vchoutas/smplx',+ paper: 'https://arxiv.org/abs/1904.05866',+ demo: 'https://smpl-x.is.tue.mpg.de/',+ },+ },+ {+ id: 'smpl',+ name: 'SMPL',+ org: 'Loper et al. · Max Planck',+ year: 2015,+ venue: 'SIGGRAPH Asia 2015',+ family: 'parametric',+ representation: 'parametric',+ input: 'Pose + shape params',+ output: 'Skinned body mesh',+ license: 'Non-commercial research (Max Planck)',+ commercial: false,+ compute: 'CPU/GPU (real-time)',+ integration: 'reference',+ integrationNote: 'The original learned body model — the common language of 3D human research. Non-commercial.',+ blurb: 'A Skinned Multi-Person Linear body model — the field-defining parametric human that started the modern 3D-body era.',+ links: {+ repo: 'https://github.com/vchoutas/smplx',+ paper: 'https://files.is.tue.mpg.de/black/papers/SMPL2015.pdf',+ demo: 'https://smpl.is.tue.mpg.de/',+ },+ },+ {+ id: 'flame',+ name: 'FLAME',+ org: 'Li et al. · Max Planck',+ year: 2017,+ venue: 'SIGGRAPH Asia 2017',+ family: 'parametric',+ representation: 'parametric',+ input: 'Shape + pose + expression params',+ output: 'Articulated head & face mesh',+ license: 'Non-commercial research (Max Planck)',+ commercial: false,+ compute: 'CPU/GPU (real-time)',+ integration: 'reference',+ integrationNote: 'The head model that rigs GaussianAvatars and most photoreal-head methods. Foundation layer, non-commercial.',+ blurb: 'Faces Learned with an Articulated Model and Expressions — the standard parametric head that drives the photoreal-head column.',+ links: {+ repo: 'https://github.com/Rubikplayer/flame-fitting',+ paper: 'https://arxiv.org/abs/2003.09232',+ demo: 'https://flame.is.tue.mpg.de/',+ },+ },+ {+ id: 'star',+ name: 'STAR',+ org: 'Osman et al. · Max Planck',+ year: 2020,+ venue: 'ECCV 2020',+ family: 'parametric',+ representation: 'parametric',+ input: 'Pose + shape params',+ output: 'Sparse-corrective body mesh',+ license: 'Non-commercial research (Max Planck)',+ commercial: false,+ compute: 'CPU/GPU (real-time)',+ integration: 'reference',+ integrationNote: 'A more accurate, sparser successor to SMPL. Foundation layer, non-commercial.',+ blurb: 'Sparse Trained Articulated human body Regressor — a successor to SMPL with realistic, localized pose-dependent deformations.',+ links: {+ repo: 'https://github.com/ahmedosman/STAR',+ paper: 'https://arxiv.org/abs/2008.08535',+ demo: 'https://star.is.tue.mpg.de/',+ },+ },++ // ── Production & interop ──────────────────────────────────────────────────+ {+ id: 'mixamo',+ name: 'Mixamo',+ org: 'Adobe',+ year: 2008,+ venue: 'Commercial service',+ family: 'production',+ representation: 'gltf',+ input: 'Uploaded humanoid mesh',+ output: 'Auto-rigged character + animation library',+ license: 'Free for use (Adobe terms)',+ commercial: true,+ compute: 'Cloud service',+ integration: 'live',+ integrationNote: 'The three.ws animation pipeline canonicalizes against the Mixamo skeleton — every Mixamo rig drives the pre-baked clip library.',+ blurb: 'Adobe’s auto-rigger and animation library — the de-facto humanoid skeleton the three.ws retargeting pipeline is built around.',+ links: {+ repo: 'https://www.mixamo.com/',+ paper: 'https://www.mixamo.com/',+ demo: '/animations',+ },+ cta: { label: 'Animation Gallery', href: '/animations' },+ },+ {+ id: 'ready-player-me',+ name: 'Ready Player Me',+ org: 'Ready Player Me',+ year: 2020,+ venue: 'Commercial platform',+ family: 'production',+ representation: 'gltf',+ input: 'Selfie or config',+ output: 'Rigged glTF avatar (half/full body)',+ license: 'Commercial SDK (free tier)',+ commercial: true,+ compute: 'Cloud API',+ integration: 'interop',+ integrationNote: 'Exports standard rigged glTF — loads directly in the three.ws viewer and animates through the canonicalize/retarget pipeline.',+ blurb: 'Cross-app avatar platform with open glTF output and broad SDK support — drop its GLBs straight into the three.ws viewer.',+ links: {+ repo: 'https://github.com/readyplayerme',+ paper: 'https://readyplayer.me/',+ demo: 'https://readyplayer.me/',+ },+ },+ {+ id: 'univrm',+ name: 'VRM / UniVRM',+ org: 'VRM Consortium · pixiv',+ year: 2018,+ venue: 'Open standard',+ family: 'production',+ representation: 'gltf',+ input: 'glTF-based avatar',+ output: 'VRM rigged avatar (interoperable)',+ license: 'MIT',+ commercial: true,+ compute: 'Client',+ integration: 'interop',+ integrationNote: 'three.ws already maps VRM/VRoid bone names in glb-canonicalize.js — VRM avatars animate out of the box.',+ blurb: 'The open, glTF-based standard for interoperable humanoid avatars — the dominant rig format for VTuber and metaverse pipelines.',+ links: {+ repo: 'https://github.com/vrm-c/UniVRM',+ paper: 'https://vrm.dev/en/',+ demo: 'https://vrm.dev/en/',+ },+ },+ {+ id: 'three-vrm',+ name: 'three-vrm',+ org: 'pixiv',+ year: 2020,+ venue: 'Open-source library',+ family: 'production',+ representation: 'gltf',+ input: 'VRM file',+ output: 'Three.js-rendered VRM avatar',+ license: 'MIT',+ commercial: true,+ compute: 'Client (Three.js)',+ integration: 'interop',+ integrationNote: 'The Three.js VRM loader — same renderer family as the three.ws viewer, so VRM heads/bodies render with no extra runtime.',+ blurb: 'The official Three.js loader for VRM avatars — spring-bone physics, expressions, and look-at, in the browser.',+ links: {+ repo: 'https://github.com/pixiv/three-vrm',+ paper: 'https://pixiv.github.io/three-vrm/packages/three-vrm/docs/',+ demo: 'https://pixiv.github.io/three-vrm/packages/three-vrm/examples/',+ },+ },+ {+ id: 'avaturn',+ name: 'Avaturn',+ org: 'Avaturn',+ year: 2022,+ venue: 'Commercial platform',+ family: 'production',+ representation: 'gltf',+ input: 'Single selfie',+ output: 'Realistic rigged glTF avatar',+ license: 'Commercial SDK',+ commercial: true,+ compute: 'Cloud API',+ integration: 'interop',+ integrationNote: 'The Avaturn skeleton is the canonical target three.ws retargets onto — its avatars are first-class in the animation pipeline.',+ blurb: 'Photo-to-avatar that outputs realistic, rigged glTF bodies — the skeleton convention the three.ws animation system canonicalizes to.',+ links: {+ repo: 'https://avaturn.me/',+ paper: 'https://avaturn.me/',+ demo: 'https://avaturn.me/',+ },+ },+]);++// ── Derived helpers (pure) ───────────────────────────────────────────────────++export function enginesByFamily(familyId) {+ return ENGINES.filter((e) => e.family === familyId);+}++export function engineStats() {+ const total = ENGINES.length;+ const commercial = ENGINES.filter((e) => e.commercial).length;+ const live = ENGINES.filter((e) => e.integration === 'live' || e.integration === 'forge').length;+ const splat = ENGINES.filter((e) => e.integration === 'splat').length;+ return { total, commercial, live, splat, families: FAMILIES.length };+}diff --git a/src/avatar-engines.js b/src/avatar-engines.jsnew file mode 100644index 000000000..daf05ef93--- /dev/null+++ b/src/avatar-engines.js@@ -0,0 +1,274 @@+// Avatar Engines Atlas — renders the curated engine registry into a filterable,+// searchable, deep-linkable catalog. Pure client render from avatar-engines-data.js;+// no network. Filters reflect into the URL query so a filtered view is shareable.++import {+ ENGINES,+ FAMILIES,+ INTEGRATIONS,+ REPRESENTATIONS,+ engineStats,+} from './avatar-engines-data.js';++const $ = (sel, root = document) => root.querySelector(sel);++// ── Small DOM helpers ────────────────────────────────────────────────────────+function el(tag, attrs = {}, children = []) {+ const node = document.createElement(tag);+ for (const [k, v] of Object.entries(attrs)) {+ if (v == null || v === false) continue;+ if (k === 'class') node.className = v;+ else if (k === 'text') node.textContent = v;+ else if (k.startsWith('data-') || k === 'href' || k === 'type' || k === 'target' || k === 'rel' || k === 'aria-pressed' || k === 'aria-label' || k === 'value' || k === 'hidden')+ node.setAttribute(k, v);+ else node[k] = v;+ }+ for (const c of [].concat(children)) {+ if (c == null) continue;+ node.appendChild(typeof c === 'string' ? document.createTextNode(c) : c);+ }+ return node;+}++function icon(path, size = 13) {+ const ns = 'http://www.w3.org/2000/svg';+ const svg = document.createElementNS(ns, 'svg');+ svg.setAttribute('width', size);+ svg.setAttribute('height', size);+ svg.setAttribute('viewBox', '0 0 24 24');+ svg.setAttribute('fill', 'none');+ svg.setAttribute('stroke', 'currentColor');+ svg.setAttribute('stroke-width', '2');+ svg.setAttribute('stroke-linecap', 'round');+ svg.setAttribute('stroke-linejoin', 'round');+ const p = document.createElementNS(ns, 'path');+ p.setAttribute('d', path);+ svg.appendChild(p);+ return svg;+}++const ICONS = {+ external: 'M15 3h6v6 M10 14 21 3 M21 14v7H3V3h7',+ arrow: 'M5 12h14 M13 5l7 7-7 7',+ doc: 'M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z M14 2v6h6',+ cube: 'M21 16V8a2 2 0 0 0-1-1.7l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.7l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z M3.3 7 12 12l8.7-5 M12 22V12',+};++// ── State, synced to the URL ─────────────────────────────────────────────────+const state = {+ q: '',+ family: '',+ integration: '',+ sort: 'family',+ commercialOnly: false,+};++function readUrl() {+ const p = new URLSearchParams(location.search);+ state.q = p.get('q') || '';+ state.family = p.get('family') || '';+ state.integration = p.get('int') || '';+ state.sort = p.get('sort') || 'family';+ state.commercialOnly = p.get('commercial') === '1';+}++function writeUrl() {+ const p = new URLSearchParams();+ if (state.q) p.set('q', state.q);+ if (state.family) p.set('family', state.family);+ if (state.integration) p.set('int', state.integration);+ if (state.sort && state.sort !== 'family') p.set('sort', state.sort);+ if (state.commercialOnly) p.set('commercial', '1');+ const qs = p.toString();+ history.replaceState(null, '', qs ? `?${qs}` : location.pathname);+}++// ── Filtering + sorting (pure) ───────────────────────────────────────────────+function matches(engine) {+ if (state.family && engine.family !== state.family) return false;+ if (state.integration && engine.integration !== state.integration) return false;+ if (state.commercialOnly && !engine.commercial) return false;+ if (state.q) {+ const hay = `${engine.name} ${engine.org} ${engine.blurb} ${engine.input} ${engine.output} ${engine.license} ${engine.venue}`.toLowerCase();+ if (!hay.includes(state.q.toLowerCase())) return false;+ }+ return true;+}++function sortEngines(list) {+ const copy = list.slice();+ if (state.sort === 'name') copy.sort((a, b) => a.name.localeCompare(b.name));+ else if (state.sort === 'newest') copy.sort((a, b) => b.year - a.year || a.name.localeCompare(b.name));+ return copy;+}++// ── Card render ──────────────────────────────────────────────────────────────+function linkBtn(href, label, { primary = false, external = true } = {}) {+ const isInternal = href.startsWith('/');+ const attrs = {+ class: `ae-btn${primary ? ' ae-btn--primary' : ''}`,+ href,+ };+ if (!isInternal && external) {+ attrs.target = '_blank';+ attrs.rel = 'noopener noreferrer';+ }+ return el('a', attrs, [+ label,+ isInternal ? icon(ICONS.arrow, 12) : icon(ICONS.external, 12),+ ]);+}++function card(engine) {+ const rep = REPRESENTATIONS[engine.representation];+ const integ = INTEGRATIONS[engine.integration];++ const top = el('div', { class: 'ae-card-top' }, [+ el('div', {}, [+ el('h3', { text: engine.name }),+ el('p', { class: 'ae-org', text: `${engine.org} · ${engine.year}` }),+ ]),+ el('span', { class: 'ae-rep', 'data-rep': engine.representation, title: rep?.note || '' }, rep?.label || engine.representation),+ ]);++ const meta = el('dl', { class: 'ae-meta' }, [+ el('dt', { text: 'Input' }), el('dd', { text: engine.input }),+ el('dt', { text: 'Output' }), el('dd', { text: engine.output }),+ el('dt', { text: 'Runs on' }), el('dd', { text: engine.compute }),+ el('dt', { text: 'Venue' }), el('dd', { text: engine.venue }),+ ]);++ const tags = el('div', { class: 'ae-tags' }, [+ el('span', { class: `ae-tag ${engine.commercial ? 'ae-tag--ok' : 'ae-tag--no'}` }, [+ el('span', { class: 'ae-tdot' }),+ engine.commercial ? 'Commercial-use OK' : 'Non-commercial',+ ]),+ el('span', { class: 'ae-tag', title: 'License' }, engine.license),+ ]);++ const integBox = el('div', { class: 'ae-int' }, [+ el('span', { class: 'ae-int-badge', 'data-tone': integ?.tone || 'reference', text: integ?.label || 'Reference' }),+ el('span', { text: engine.integrationNote }),+ ]);++ // Actions: primary CTA (forge/splat/live deep-link) then repo / paper.+ const actions = el('div', { class: 'ae-actions' });+ if (engine.cta) {+ actions.appendChild(linkBtn(engine.cta.href, engine.cta.label, { primary: true }));+ } else if (engine.integration === 'splat') {+ actions.appendChild(linkBtn('/splat', 'Open Splat Viewer', { primary: true }));+ }+ if (engine.links?.repo) actions.appendChild(linkBtn(engine.links.repo, repoLabel(engine.links.repo)));+ if (engine.links?.paper && engine.links.paper !== engine.links.repo)+ actions.appendChild(linkBtn(engine.links.paper, 'Paper'));+ if (engine.links?.demo && engine.links.demo !== engine.cta?.href && !engine.links.demo.startsWith('/') && engine.links.demo !== engine.links.repo && engine.links.demo !== engine.links.paper)+ actions.appendChild(linkBtn(engine.links.demo, 'Demo'));++ return el('article', { class: 'ae-card', 'data-id': engine.id }, [top, el('p', { class: 'ae-blurb', text: engine.blurb }), meta, tags, integBox, actions]);+}++function repoLabel(url) {+ if (url.includes('github.com')) return 'GitHub';+ if (url.includes('huggingface.co')) return 'Hugging Face';+ return 'Project';+}++// ── Render ───────────────────────────────────────────────────────────────────+function renderStats() {+ const s = engineStats();+ const host = $('#ae-stats');+ host.innerHTML = '';+ const items = [+ [s.total, 'engines'],+ [s.families, 'families'],+ [s.live, 'live in three.ws'],+ [s.commercial, 'commercial-use'],+ ];+ for (const [n, l] of items) {+ host.appendChild(el('div', {}, [el('div', { class: 'ae-stat-n', text: String(n) }), el('div', { class: 'ae-stat-l', text: l })]));+ }+}++function renderFamilyOptions() {+ const sel = $('#ae-family');+ for (const f of FAMILIES) sel.appendChild(el('option', { value: f.id, text: f.label }));+}++function render() {+ const results = $('#ae-results');+ const empty = $('#ae-empty');+ const count = $('#ae-count');+ results.innerHTML = '';++ const filtered = ENGINES.filter(matches);+ count.textContent = `${filtered.length} of ${ENGINES.length} engine${ENGINES.length === 1 ? '' : 's'}`;++ if (filtered.length === 0) {+ empty.hidden = false;+ return;+ }+ empty.hidden = true;++ // Grouped by family unless an explicit sort is chosen.+ if (state.sort === 'family' && !state.family) {+ for (const fam of FAMILIES) {+ const group = filtered.filter((e) => e.family === fam.id);+ if (!group.length) continue;+ const section = el('section', { class: 'ae-family' }, [+ el('div', { class: 'ae-family-head' }, [el('h2', { text: fam.label }), el('p', { text: fam.blurb })]),+ el('div', { class: 'ae-grid' }, group.map(card)),+ ]);+ results.appendChild(section);+ }+ } else {+ const sorted = sortEngines(filtered);+ results.appendChild(el('div', { class: 'ae-grid' }, sorted.map(card)));+ }+}++function syncControls() {+ $('#ae-search').value = state.q;+ $('#ae-family').value = state.family;+ $('#ae-integration').value = state.integration;+ $('#ae-sort').value = state.sort;+ const t = $('#ae-commercial');+ t.setAttribute('aria-pressed', String(state.commercialOnly));+}++function apply() {+ writeUrl();+ render();+}++let _searchTimer = null;++function init() {+ if (!$('#ae-results')) return;+ readUrl();+ renderStats();+ renderFamilyOptions();+ syncControls();+ render();++ $('#ae-search').addEventListener('input', (e) => {+ state.q = e.target.value;+ clearTimeout(_searchTimer);+ _searchTimer = setTimeout(apply, 120);+ });+ $('#ae-family').addEventListener('change', (e) => { state.family = e.target.value; apply(); });+ $('#ae-integration').addEventListener('change', (e) => { state.integration = e.target.value; apply(); });+ $('#ae-sort').addEventListener('change', (e) => { state.sort = e.target.value; apply(); });+ $('#ae-commercial').addEventListener('click', () => {+ state.commercialOnly = !state.commercialOnly;+ $('#ae-commercial').setAttribute('aria-pressed', String(state.commercialOnly));+ apply();+ });+ $('#ae-reset').addEventListener('click', () => {+ Object.assign(state, { q: '', family: '', integration: '', sort: 'family', commercialOnly: false });+ syncControls();+ apply();+ });+}++if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', init);+else init();diff --git a/src/launch-detail.css b/src/launch-detail.cssindex ad5927b4d..446ffa77a 100644--- a/src/launch-detail.css+++ b/src/launch-detail.css@@ -650,5 +650,78 @@ body {.ld-skel-avatar { width: 72px; height: 72px; border-radius: var(--radius-md); }.ld-skel-stack { flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--space-sm); }.ld-skel-chart { height: 200px; }+.ld-skel-strip { height: 58px; }@keyframes ld-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }@media (prefers-reduced-motion: reduce) { .ld-skel { animation: none; } }++/* ── Market metrics — multi-timeframe moves + on-chain safety ──────────────── */++.ld-metrics-body {+ display: grid;+ grid-template-columns: 1fr 1fr;+ gap: var(--space-lg);+}+@media (max-width: 720px) { .ld-metrics-body { grid-template-columns: 1fr; } }+.ld-metrics-block { min-width: 0; }+.ld-metrics-h {+ margin: 0 0 var(--space-sm);+ font-size: var(--text-2xs);+ text-transform: uppercase;+ letter-spacing: 0.12em;+ color: var(--ink-dim);+ font-weight: var(--weight-semibold);+}++/* Multi-timeframe price-move strip */+.ld-mtf { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xs); }+.ld-mtf-cell {+ display: flex;+ flex-direction: column;+ align-items: center;+ gap: 2px;+ padding: var(--space-sm) var(--space-xs);+ border: 1px solid var(--stroke);+ border-radius: var(--radius-md);+ background: var(--surface-2);+}+.ld-mtf-label { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-dim); }+.ld-mtf-val { font-family: var(--font-mono); font-size: var(--text-md); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }+.ld-mtf-empty {+ display: flex;+ align-items: center;+ gap: var(--space-sm);+ min-height: 58px;+ margin: 0;+ font-size: var(--text-sm);+ color: var(--ink-dim);+}++/* On-chain safety / trust strip */+.ld-trust-head { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }+.ld-verdict-pill {+ font-size: var(--text-2xs);+ font-weight: var(--weight-semibold);+ text-transform: uppercase;+ letter-spacing: 0.08em;+ padding: 3px var(--space-sm);+ border-radius: var(--radius-pill);+ border: 1px solid;+}+.ld-pill-good { color: var(--success); border-color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); }+.ld-pill-warn { color: var(--warn); border-color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }+.ld-pill-danger { color: var(--danger); border-color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }+.ld-pill-muted { color: var(--ink-dim); border-color: var(--stroke); }+.ld-trust-score { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--ink-dim); }+.ld-trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xs); }+.ld-trust {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: var(--space-sm);+ padding: var(--space-xs) var(--space-sm);+ border: 1px solid var(--stroke);+ border-radius: var(--radius-md);+ background: var(--surface-2);+}+.ld-trust-k { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-dim); }+.ld-trust-v { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: var(--weight-semibold); white-space: nowrap; }diff --git a/src/launches.js b/src/launches.jsindex 44b141328..20121da5c 100644--- a/src/launches.js+++ b/src/launches.js@@ -477,6 +477,18 @@ function launchCard(launch, index, { featured = false } = {}) {: `https://pump.fun/${launch.mint}`;const badges = el('div', { class: 'lx-badges' });+ // Age leads the badge row — the at-a-glance "how fresh is this" GMGN-style+ // terminals open with. Available from the registry row immediately, before the+ // per-card market fetch resolves, so it never waits on pump.fun.+ if (launch.created_at) {+ badges.appendChild(+ el('span', {+ class: 'lx-badge lx-badge-age',+ title: `Launched ${timeAgo(launch.created_at)}`,+ text: timeAgo(launch.created_at),+ }),+ );+ }if (isDevnet) badges.appendChild(el('span', { class: 'lx-badge', text: 'Devnet' }));if (Number(launch.buyback_bps) > 0) {badges.appendChild(