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
Launch-detail: show pump.fun creator fee-sharing earnings
nirholas24420851a7a5
diff --git a/api/pump/launch-detail.js b/api/pump/launch-detail.jsindex aa88915f1..4d0e33ac0 100644--- a/api/pump/launch-detail.js+++ b/api/pump/launch-detail.js@@ -50,6 +50,47 @@ function safeR2Url(key) {}}+// Creator fee-sharing earnings — what the coin's creator has actually earned+// from pump.fun's creator-reward program. Two public pump.fun endpoints (the+// same ones the pump.fun frontend calls): coin metadata → creator wallet, then+// the creator's fee-sharing totals filtered to this mint. Best-effort and+// timeout-bounded; degrades to null so it never blocks or slows the page.+const PUMP_FRONTEND_V3 = 'https://frontend-api-v3.pump.fun';+const PUMP_SWAP_API = 'https://swap-api.pump.fun';++async function fetchCreatorFees(mint, network) {+ if (network !== 'mainnet') return null;+ try {+ const metaResp = await fetch(`${PUMP_FRONTEND_V3}/coins-v2/${mint}`, {+ headers: { accept: 'application/json' },+ signal: AbortSignal.timeout(5000),+ });+ if (!metaResp.ok) return null;+ const meta = await metaResp.json();+ const creator = meta?.creator || meta?.creator_address;+ if (!creator || typeof creator !== 'string') return null;++ const totResp = await fetch(+ `${PUMP_SWAP_API}/v1/fee-sharing/account/${creator}/totals?mint=${mint}`,+ { headers: { accept: 'application/json' }, signal: AbortSignal.timeout(5000) },+ );+ if (!totResp.ok) return null;+ const t = await totResp.json();+ const earnedSol = Number(t?.shareholderTotalEarned?.sol);+ if (!Number.isFinite(earnedSol)) return null;+ return {+ creator,+ earned_sol: earnedSol,+ earned_usd: Number(t?.shareholderTotalEarned?.usd) || null,+ claimed_sol: Number(t?.shareholderClaimed?.sol) || 0,+ unclaimed_sol: Number(t?.shareholderUnclaimed?.sol) || 0,+ mint_count: t?.mintCount != null ? Number(t.mintCount) : null,+ };+ } catch {+ return null;+ }+}+// Short-lived per-instance cache — the page is read far more than coins are// observed, and every underlying query is cheap-but-not-free.const CACHE = new Map();@@ -152,12 +193,15 @@ async function buildDetail(mint, network) {max(created_at) as last_burn_atfrom pump_buyback_runs where mint_id=${reg.id}`;- const burnsFeed = await sql`- select id, currency_mint, tx_signature, burn_amount, created_at- from pump_buyback_runs- where mint_id=${reg.id} and status='confirmed'- order by created_at desc limit 8- `;+ const [burnsFeed, creatorFees] = await Promise.all([+ sql`+ select id, currency_mint, tx_signature, burn_amount, created_at+ from pump_buyback_runs+ where mint_id=${reg.id} and status='confirmed'+ order by created_at desc limit 8+ `,+ fetchCreatorFees(mint, network),+ ]);economics = {confirmed_payments: stats?.confirmed_payments ?? 0,unique_payers: stats?.unique_payers ?? 0,@@ -169,6 +213,7 @@ async function buildDetail(mint, network) {last_burn_at: burnRow?.last_burn_at ?? null,},burns_feed: burnsFeed,+ creator_fees: creatorFees,};// The launching agent's verifiable PnL — same truth layer as thediff --git a/public/features.json b/public/features.jsonindex 8f86eda9d..0b44578f1 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-16T02:11:58.958Z",+ "generated_at": "2026-06-16T02:57:48.293Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/public/sitemap/index.html b/public/sitemap/index.htmlindex 7b93cf38d..3de7f87f3 100644--- a/public/sitemap/index.html+++ b/public/sitemap/index.html@@ -56,20 +56,6 @@.sm-brand img { width: 24px; height: 24px; border-radius: 5px; }.sm-brand:hover { text-decoration: none; }</style>-- <meta property="og:type" content="website">- <meta property="og:site_name" content="three.ws">- <meta property="og:title" content="Sitemap · three.ws">- <meta property="og:description" content="Human-readable index of every page on three.ws.">- <meta property="og:url" content="https://three.ws/sitemap">- <meta property="og:image" content="https://three.ws/og-image.png">- <meta property="og:image:width" content="1200">- <meta property="og:image:height" content="630">- <meta name="twitter:card" content="summary_large_image">- <meta name="twitter:title" content="Sitemap · three.ws">- <meta name="twitter:description" content="Human-readable index of every page on three.ws.">- <meta name="twitter:image" content="https://three.ws/og-image.png">- <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Sitemap","description":"Human-readable index of every page on three.ws.","url":"https://three.ws/sitemap","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script></head><body><header class="sm-topbar">diff --git a/src/launch-detail.js b/src/launch-detail.jsindex 1c02cf551..5a952a1f5 100644--- a/src/launch-detail.js+++ b/src/launch-detail.js@@ -769,7 +769,10 @@ function renderEconomics() {return;}- if (buybackBps <= 0 && (!econ || econ.confirmed_payments === 0)) {+ const creatorFees = econ?.creator_fees;+ const hasCreatorFees = !!creatorFees && Number(creatorFees.earned_sol) > 0;++ if (buybackBps <= 0 && (!econ || econ.confirmed_payments === 0) && !hasCreatorFees) {section(target,'Economics',@@ -796,6 +799,13 @@ function renderEconomics() {metric('Paid calls', compact(econ?.confirmed_payments || 0), `${compact(econ?.unique_payers || 0)} payers`),metric('Burn runs', compact(econ?.burns?.runs || 0)),burned > 0 ? metric('Supply burned', compact(burned / 1e6)) : null,+ hasCreatorFees+ ? metric(+ 'Creator earned',+ fmtSol(Number(creatorFees.earned_sol), { sign: false }),+ creatorFees.earned_usd != null ? fmtUsd(Number(creatorFees.earned_usd), { sign: false }) : null,+ )+ : null,]),]);diff --git a/vercel.json b/vercel.jsonindex 5b5e69555..fc68f440b 100644--- a/vercel.json+++ b/vercel.json@@ -125,6 +125,10 @@"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}","maxDuration": 30},+ "api/pump/smart-money.js": {+ "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",+ "maxDuration": 30+ },"api/**/*.js": {"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}","maxDuration": 30@@ -1699,6 +1703,10 @@"src": "/api/pump/coin-intel","dest": "/api/pump/coin-intel.js"},+ {+ "src": "/api/pump/smart-money",+ "dest": "/api/pump/smart-money.js"+ },{"src": "/api/pump/build-metadata","dest": "/api/pump/[action]?action=build-metadata"