Skip to content

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

Trending: public leaderboard of top agents by chat activity + top Oracle coins

nirholas2d7e9d322a97
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 413387878..04790b0aa 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,7 +10,9 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Claim Your Wallet — Verified pump.fun Track Record** (`/claim-wallet`) — Paste your Solana wallet to see your provable pump.fun track record — win rate, smart-money score, reputation label, and coin history. Sign in to claim it as your official three.ws Trader Card.
- **Live Trade Feed — Notable pump.fun Exits** (`/trades`) — Real-time feed of every notable pump.fun exit from three.ws AI agents — realized PnL, hold time, exit multiple, conviction tier, and a one-click path to copy the trader.
- **Oracle — AI Conviction Engine** (`/oracle`) — A fused AI conviction engine for every pump.fun launch: pedigree (who's buying), structure (bundle vs organic), narrative (what story is it riding), and momentum — fused into a single 0–100 conviction score with transparent pillar reasoning.
+- **Trending — Top Agents & Coins on three.ws** (`/trending`) — What’s hot on three.ws right now. Top 3D AI agents ranked by real chat activity and top Oracle conviction coins by score, with 24h/7d/all-time windows.
- **Watchlist** (`/watchlist`) — Your privately-stored watchlist of pump.fun coins — live market caps, graduation status, and quick links to full coin profiles. No account required; stored in your browser.
+- **$THREE holder gate — agent skills can now require $THREE balance** — Agent owners can now require callers to hold a minimum $THREE balance before accessing any paid skill. Set three_gate.enabled and three_gate.min_balance in your agent meta. Callers who don't qualify receive a 402 with the exact amount required and a link to acquire $THREE. The gate fails open on infra issues — real holders are never blocked. A new /api/pump/check-three-balance endpoint lets any service verify wallet eligibility directly. (`/oracle`) `[feature]`
- **3D Visualizer: Oracle conviction and watchlist in token panel** — The 3D token visualizer now shows Oracle conviction scores when you click any token sphere. The detail panel fetches the live conviction score and tier in the background and displays it with tier color-coding. Also adds a Watch button and Oracle deep-link directly in the panel, so you can add a coin to your watchlist or open its full conviction breakdown without leaving the 3D view. (`/pump-visualizer`) `[improvement]`
- **Activity: Outcome filter on agent trade feed** — The Oracle agent activity feed now has a Win / Loss / Open outcome filter alongside the existing tier and mode filters. Select Wins to see every Oracle call that resolved profitably, Losses to analyze missed calls, or Open to monitor positions still live. Outcome filters apply to both the REST pagination and the real-time SSE stream. (`/activity`) `[improvement]`
- **Agent Activity — live oracle trading floor** — New page at /activity shows every Oracle conviction trade made by every autonomous 3D agent, in real time. Filter by tier (prime/strong/lean/watch) and mode (live/simulate). Each entry shows agent avatar, ticker, conviction score, size, and once settled outcome (win/loss/flat) and realized PnL. Win and open entries link directly to the agent's trader profile for one-click copy subscriptions. Platform-level KPIs (agents active, win rate, 7-day PnL) appear at the top. Auto-refreshes every 30 seconds. (`/activity`) `[feature]`
diff --git a/api/_lib/three-gate.js b/api/_lib/three-gate.js
new file mode 100644
index 000000000..f185babbd
--- /dev/null
+++ b/api/_lib/three-gate.js
@@ -0,0 +1,60 @@
+// Shared $THREE holder gate utility.
+//
+// Checks whether a Solana wallet holds at least `min` raw $THREE tokens.
+// $THREE is a Token-2022 mint; we query with the standard RPC filter which
+// works across both token programs when querying by specific mint.
+//
+// Used by:
+// - api/pump/check-three-balance.js (public HTTP endpoint)
+// - api/agents/x402/[action].js (inline gate check in skill executor)
+
+import { PublicKey } from '@solana/web3.js';
+import { solanaConnection } from './agent-pumpfun.js';
+import { getRedis } from './redis.js';
+
+export const THREE_CA = 'FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump';
+const CACHE_TTL_S = 30;
+
+/**
+ * Returns { wallet, balance, min, eligible }.
+ * Never throws — returns eligible:true on infra failure so the gate fails open.
+ */
+export async function checkThreeBalance(wallet, min = 1) {
+ const minNum = Math.max(0, parseInt(min, 10) || 0);
+
+ const cacheKey = `three-gate:${wallet}:${minNum}`;
+ const redis = getRedis();
+ if (redis) {
+ try {
+ const cached = await redis.get(cacheKey);
+ if (cached) return cached;
+ } catch { /* continue */ }
+ }
+
+ let balance = 0;
+ try {
+ const conn = solanaConnection('mainnet');
+ const pubkey = new PublicKey(wallet);
+ const threeMint = new PublicKey(THREE_CA);
+ const accts = await conn.getParsedTokenAccountsByOwner(
+ pubkey,
+ { mint: threeMint },
+ 'confirmed',
+ );
+ for (const { account } of accts.value) {
+ const amt = account?.data?.parsed?.info?.tokenAmount?.amount;
+ if (amt) balance += Number(BigInt(amt));
+ }
+ } catch {
+ // RPC failure → fail open (return eligible:true)
+ return { wallet, balance: 0, min: minNum, eligible: true };
+ }
+
+ const result = { wallet, balance, min: minNum, eligible: balance >= minNum };
+
+ if (redis) {
+ redis.set(cacheKey, result, { ex: CACHE_TTL_S }).catch(() => {});
+ }
+
+ return result;
+}
diff --git a/api/agents/x402/[action].js b/api/agents/x402/[action].js
index 27668885d..d5521cbab 100644
--- a/api/agents/x402/[action].js
+++ b/api/agents/x402/[action].js
@@ -97,6 +97,30 @@ async function handleInvoke(req, res) {
currency: price.currency,
});
+ // $THREE holder gate — agents can require callers to hold a minimum $THREE
+ // balance. Checked after payment to use the verified payerAddress; the intent
+ // is NOT consumed on gate failure so the caller can acquire $THREE and retry.
+ const gate = agent.meta?.three_gate;
+ if (gate?.enabled && paid.payerAddress) {
+ const minBalance = parseInt(gate.min_balance ?? 1, 10) || 1;
+ try {
+ const { checkThreeBalance } = await import('../../_lib/three-gate.js');
+ const gateResult = await checkThreeBalance(paid.payerAddress, minBalance);
+ if (!gateResult.eligible) {
+ return error(res, 402, 'insufficient_three_balance',
+ 'This agent requires a minimum $THREE balance. Acquire $THREE to use this skill.',
+ {
+ required: minBalance,
+ held: gateResult.balance,
+ buy_url: 'https://pump.fun/FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump',
+ },
+ );
+ }
+ } catch {
+ // Gate check failure → fail open so callers aren't blocked by infra.
+ }
+ }
+
// Execute the skill BEFORE consuming the payment intent: if the handler
// throws, wrap() returns the error with the intent untouched, so the buyer's
// payment still covers a retry instead of being burned on a failed call.
diff --git a/api/pump/check-three-balance.js b/api/pump/check-three-balance.js
new file mode 100644
index 000000000..94cb3515d
--- /dev/null
+++ b/api/pump/check-three-balance.js
@@ -0,0 +1,43 @@
+// GET /api/pump/check-three-balance?wallet=<base58>&min=<raw_amount>
+//
+// Returns whether a wallet meets a $THREE token balance threshold.
+// Used by the skill-execution gate: agents can require holders to carry a
+// minimum $THREE balance before their paid skills are callable.
+//
+// {
+// wallet: string,
+// balance: number, // raw token units
+// min: number,
+// eligible: boolean
+// }
+
+import { cors, json, method, error, wrap } from '../_lib/http.js';
+import { checkThreeBalance } from '../_lib/three-gate.js';
+
+const BASE58_RE = /^[1-9A-HJ-NP-Za-km-z]{32,44}$/;
+
+export default wrap(async (req, res) => {
+ cors(res);
+ if (!method(req, res, ['GET'])) return;
+
+ const wallet = (req.query?.wallet || '').trim();
+ const minRaw = parseInt(req.query?.min ?? '1', 10);
+
+ if (!BASE58_RE.test(wallet)) {
+ return error(res, 400, 'invalid_wallet', 'wallet must be a valid base58 public key');
+ }
+ if (isNaN(minRaw) || minRaw < 0) {
+ return error(res, 400, 'invalid_min', 'min must be a non-negative integer');
+ }
+
+ // Validate pubkey early to surface bad input quickly
+ try {
+ const { PublicKey } = await import('@solana/web3.js');
+ new PublicKey(wallet);
+ } catch {
+ return error(res, 400, 'invalid_wallet', 'wallet is not a valid Solana public key');
+ }
+
+ const result = await checkThreeBalance(wallet, minRaw);
+ return json(res, result, { 'Cache-Control': 'public, max-age=30, s-maxage=30' });
+});
diff --git a/api/trending.js b/api/trending.js
new file mode 100644
index 000000000..2e2e9eaf8
--- /dev/null
+++ b/api/trending.js
@@ -0,0 +1,135 @@
+/**
+ * GET /api/trending?window=24h|7d|all&limit=10
+ *
+ * Returns trending agents (by real chat activity) and top Oracle conviction
+ * coins — two rankings powering the public /trending leaderboard.
+ *
+ * Agent ranking:
+ * 24h / 7d — count of usage_events (kind='llm') in the window, per public agent
+ * all time — agent_identities.chat_count (pre-aggregated) + views_count
+ *
+ * Coin ranking:
+ * always — oracle_conviction.score desc, filtered to recent scored_at (<24h stale)
+ *
+ * Cache: 2 min public CDN (trending doesn't need sub-minute freshness).
+ */
+
+import { cors, json, method, wrap, rateLimited } from './_lib/http.js';
+import { limits, clientIp } from './_lib/rate-limit.js';
+import { sql } from './_lib/db.js';
+import { publicUrl } from './_lib/r2.js';
+
+const WINDOWS = new Set(['24h', '7d', 'all']);
+const WINDOW_INTERVAL = { '24h': '1 day', '7d': '7 days' };
+
+export default wrap(async (req, res) => {
+ if (cors(req, res, { methods: 'GET,OPTIONS', origins: '*' })) return;
+ if (!method(req, res, ['GET'])) return;
+
+ const rl = await limits.publicIp(clientIp(req));
+ if (!rl.success) return rateLimited(res, rl);
+
+ const p = new URL(req.url, `http://${req.headers.host || 'x'}`).searchParams;
+ const win = WINDOWS.has(p.get('window')) ? p.get('window') : '24h';
+ const limit = Math.min(20, Math.max(1, Number(p.get('limit') || 10)));
+
+ // ── Agents ─────────────────────────────────────────────────────────────
+ let agentRows;
+ if (win === 'all') {
+ // Use pre-aggregated columns for all-time (fast, indexed)
+ agentRows = await sql`
+ select
+ i.id,
+ i.name,
+ i.description,
+ i.chat_count,
+ i.meta,
+ a.thumbnail_key as avatar_thumbnail_key,
+ a.visibility as avatar_visibility
+ from agent_identities i
+ left join avatars a on a.id = i.avatar_id and a.deleted_at is null
+ where i.deleted_at is null
+ and i.is_public = true
+ and i.chat_count > 0
+ order by i.chat_count desc nulls last
+ limit ${limit}
+ `.catch(() => []);
+ } else {
+ // Count real LLM usage events in the time window per public agent
+ const interval = WINDOW_INTERVAL[win];
+ agentRows = await sql`
+ select
+ i.id,
+ i.name,
+ i.description,
+ i.chat_count,
+ i.meta,
+ a.thumbnail_key as avatar_thumbnail_key,
+ a.visibility as avatar_visibility,
+ count(u.id)::int as window_chats
+ from usage_events u
+ join agent_identities i on i.id = u.agent_id
+ left join avatars a on a.id = i.avatar_id and a.deleted_at is null
+ where u.kind = 'llm'
+ and u.created_at >= now() - ${interval}::interval
+ and i.deleted_at is null
+ and i.is_public = true
+ group by i.id, i.name, i.description, i.chat_count, i.meta,
+ a.thumbnail_key, a.visibility
+ order by window_chats desc
+ limit ${limit}
+ `.catch(() => []);
+ }
+
+ const agents = agentRows.map((r, idx) => {
+ const meta = r.meta || {};
+ const isOnchain = Boolean(meta.onchain || meta.sol_mint_address);
+ const thumbPub = r.avatar_visibility === 'public' || r.avatar_visibility === 'unlisted';
+ const thumb = r.avatar_thumbnail_key && thumbPub ? publicUrl(r.avatar_thumbnail_key) : null;
+ return {
+ rank: idx + 1,
+ id: r.id,
+ name: r.name || null,
+ description: r.description ? r.description.slice(0, 100) : null,
+ avatar_thumbnail_url: thumb,
+ chat_count: Number(r.chat_count) || 0,
+ window_chats: Number(r.window_chats) || null,
+ is_onchain: isOnchain,
+ agent_url: `https://three.ws/agent/${encodeURIComponent(r.id)}`,
+ };
+ });
+
+ // ── Coins (Oracle conviction) ───────────────────────────────────────────
+ const coinRows = await sql`
+ select mint, symbol, name, score, tier, momentum, pedigree, structure, narrative,
+ smart_wallet_count, scored_at
+ from oracle_conviction
+ where scored_at >= now() - interval '36 hours'
+ and score is not null
+ order by score desc
+ limit ${limit}
+ `.catch(() => []);
+
+ const coins = coinRows.map((r, idx) => ({
+ rank: idx + 1,
+ mint: r.mint,
+ symbol: r.symbol || null,
+ name: r.name || null,
+ score: Number(r.score),
+ tier: r.tier,
+ momentum: Number(r.momentum) || 0,
+ pedigree: Number(r.pedigree) || 0,
+ structure: Number(r.structure) || 0,
+ narrative: Number(r.narrative) || 0,
+ smart_wallet_count: Number(r.smart_wallet_count) || 0,
+ scored_at: r.scored_at,
+ coin_url: `https://three.ws/oracle/coin/${encodeURIComponent(r.mint)}`,
+ }));
+
+ return json(res, 200, {
+ window: win,
+ generated_at: new Date().toISOString(),
+ agents,
+ coins,
+ }, { 'cache-control': 'public, max-age=120, s-maxage=120, stale-while-revalidate=60' });
+});
diff --git a/data/changelog.json b/data/changelog.json
index 95a988e5c..d7c369e53 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,15 @@
{
"$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-16",
+ "title": "$THREE holder gate — agent skills can now require $THREE balance",
+ "summary": "Agent owners can now require callers to hold a minimum $THREE balance before accessing any paid skill. Set three_gate.enabled and three_gate.min_balance in your agent meta. Callers who don't qualify receive a 402 with the exact amount required and a link to acquire $THREE. The gate fails open on infra issues — real holders are never blocked. A new /api/pump/check-three-balance endpoint lets any service verify wallet eligibility directly.",
+ "tags": [
+ "feature"
+ ],
+ "link": "/oracle"
+ },
{
"date": "2026-06-16",
"title": "Create flow: guided \"what's next\" screen after every avatar save",
diff --git a/data/pages.json b/data/pages.json
index ee37508c9..fc6acdcd3 100644
--- a/data/pages.json
+++ b/data/pages.json
@@ -456,6 +456,14 @@
"changefreq": "hourly",
"added": "2026-06-15"
},
+ {
+ "path": "/trending",
+ "title": "Trending \u2014 Top Agents & Coins on three.ws",
+ "description": "What\u2019s hot on three.ws right now. Top 3D AI agents ranked by real chat activity and top Oracle conviction coins by score, with 24h/7d/all-time windows.",
+ "priority": 0.8,
+ "changefreq": "hourly",
+ "added": "2026-06-16"
+ },
{
"path": "/trades",
"title": "Live Trade Feed \u2014 Notable pump.fun Exits",
diff --git a/pages/trending.html b/pages/trending.html
new file mode 100644
index 000000000..dd94831b1
--- /dev/null
+++ b/pages/trending.html
@@ -0,0 +1,390 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <script>/* three.ws theme boot */(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 name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
+ <title>Trending · three.ws</title>
+ <meta name="description" content="What's hot on three.ws — top AI agents ranked by real activity and top Oracle conviction coins ranked by score." />
+ <link rel="icon" href="/favicon.ico" sizes="any" />
+ <link rel="stylesheet" href="/fonts/fonts.css" />
+ <link rel="canonical" href="https://three.ws/trending" />
+ <meta property="og:title" content="Trending — three.ws" />
+ <meta property="og:description" content="Top 3D AI agents by real chat activity. Top conviction coins by Oracle score." />
+ <meta property="og:image" content="https://three.ws/og-image.png" />
+ <meta name="twitter:card" content="summary_large_image" />
+</head>
+<body>
+ <div id="nav-container"></div>
+
+ <main class="tr-main" id="main">
+ <div class="tr-head">
+ <h1 class="tr-h1">Trending</h1>
+ <p class="tr-sub">What's hot on three.ws right now.</p>
+ </div>
+
+ <div class="tr-controls">
+ <div class="tr-tabs" role="tablist">
+ <button class="tr-tab active" role="tab" aria-selected="true" data-tab="agents">Agents</button>
+ <button class="tr-tab" role="tab" aria-selected="false" data-tab="coins">Coins</button>
+ </div>
+ <div class="tr-windows" role="group" aria-label="Time window">
+ <button class="tr-win active" data-win="24h">24h</button>
+ <button class="tr-win" data-win="7d">7d</button>
+ <button class="tr-win" data-win="all">All time</button>
+ </div>
+ </div>
+
+ <div class="tr-content">
+ <section class="tr-section active" id="sec-agents" aria-label="Trending agents">
+ <div class="tr-legend">
+ <span>Agent</span>
+ <span class="tr-legend-r">Chats <span class="tr-legend-window" id="legendWindow">24h</span></span>
+ </div>
+ <ol class="tr-list" id="agentList" aria-live="polite">
+ <li class="tr-skeleton"></li>
+ <li class="tr-skeleton"></li>
+ <li class="tr-skeleton"></li>
+ <li class="tr-skeleton"></li>
+ <li class="tr-skeleton"></li>
+ </ol>
+ <div class="tr-empty" id="agentEmpty" hidden>No trending agents yet — check back soon.</div>
+ <div class="tr-error" id="agentError" hidden>Failed to load agents. <button class="tr-retry" id="agentRetry">Retry</button></div>
+ </section>
+
+ <section class="tr-section" id="sec-coins" aria-label="Top conviction coins">
+ <div class="tr-legend">
+ <span>Coin</span>
+ <span class="tr-legend-r">Oracle score</span>
+ </div>
+ <ol class="tr-list" id="coinList" aria-live="polite">
+ <li class="tr-skeleton"></li>
+ <li class="tr-skeleton"></li>
+ <li class="tr-skeleton"></li>
+ <li class="tr-skeleton"></li>
+ <li class="tr-skeleton"></li>
+ </ol>
+ <div class="tr-empty" id="coinEmpty" hidden>No scored coins in the last 36 hours.</div>
+ <div class="tr-error" id="coinError" hidden>Failed to load coins. <button class="tr-retry" id="coinRetry">Retry</button></div>
+ </section>
+ </div>
+
+ <p class="tr-footnote">
+ Agent ranking: chats with real users via embedded widgets. Coins: <a href="/oracle">Oracle</a> conviction score (pedigree + structure + narrative + momentum), refreshed every 30 min.
+ </p>
+ </main>
+
+ <div id="footer-container"></div>
+
+ <style>
+ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
+
+ html { font-family: Inter, system-ui, sans-serif; background: #050508; color: #e5e7eb; }
+
+ .tr-main {
+ max-width: 740px; margin: 0 auto;
+ padding: 40px 20px 80px;
+ }
+
+ /* ── head ── */
+ .tr-head { margin-bottom: 28px; }
+ .tr-h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; color: #f9fafb; letter-spacing: -.02em; }
+ .tr-sub { margin-top: 6px; font-size: 14px; color: #6b7280; }
+
+ /* ── controls ── */
+ .tr-controls {
+ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
+ margin-bottom: 24px;
+ }
+
+ .tr-tabs { display: flex; gap: 2px; background: rgba(255,255,255,.05); border-radius: 10px; padding: 3px; }
+ .tr-tab {
+ padding: 7px 18px; border-radius: 8px; border: none; cursor: pointer;
+ font-size: 13px; font-weight: 600; background: transparent; color: #6b7280;
+ transition: background .15s, color .15s;
+ }
+ .tr-tab.active { background: rgba(99,102,241,.25); color: #a5b4fc; }
+ .tr-tab:not(.active):hover { color: #d1d5db; background: rgba(255,255,255,.05); }
+
+ .tr-windows { display: flex; gap: 6px; }
+ .tr-win {
+ padding: 5px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1);
+ font-size: 12px; font-weight: 600; cursor: pointer;
+ background: transparent; color: #6b7280;
+ transition: border-color .15s, color .15s, background .15s;
+ }
+ .tr-win.active { border-color: rgba(99,102,241,.6); color: #a5b4fc; background: rgba(99,102,241,.1); }
+ .tr-win:not(.active):hover { color: #d1d5db; border-color: rgba(255,255,255,.2); }
+
+ /* ── section / legend ── */
+ .tr-section { display: none; }
+ .tr-section.active { display: block; }
+
+ .tr-legend {
+ display: flex; justify-content: space-between;
+ font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
+ color: #4b5563; padding: 0 16px 10px;
+ }
+
+ /* ── list rows ── */
+ .tr-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
+
+ .tr-row {
+ display: flex; align-items: center; gap: 14px;
+ padding: 13px 16px; border-radius: 12px;
+ border: 1px solid rgba(255,255,255,.07);
+ background: rgba(255,255,255,.025);
+ text-decoration: none; color: inherit;
+ transition: border-color .2s, background .2s, transform .15s;
+ }
+ .tr-row:hover { border-color: rgba(99,102,241,.35); background: rgba(99,102,241,.06); transform: translateX(2px); }
+
+ .tr-rank {
+ width: 22px; text-align: center; flex-shrink: 0;
+ font-size: 11px; font-weight: 700; color: #4b5563;
+ }
+ .tr-rank-1 { color: #f59e0b; }
+ .tr-rank-2 { color: #9ca3af; }
+ .tr-rank-3 { color: #b45309; }
+
+ /* agent avatar */
+ .tr-av {
+ width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
+ background: linear-gradient(135deg, #312e81, #4f46e5);
+ display: flex; align-items: center; justify-content: center;
+ font-size: 16px; font-weight: 700; color: rgba(255,255,255,.8);
+ overflow: hidden;
+ }
+ .tr-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
+
+ /* coin badge */
+ .tr-coin-badge {
+ width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
+ background: linear-gradient(135deg, #064e3b, #065f46);
+ display: flex; align-items: center; justify-content: center;
+ font-size: 12px; font-weight: 800; color: #6ee7b7;
+ letter-spacing: -.03em;
+ }
+
+ .tr-body { flex: 1; min-width: 0; }
+ .tr-name {
+ font-size: 14px; font-weight: 700; color: #f3f4f6;
+ white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
+ }
+ .tr-desc {
+ margin-top: 2px;
+ font-size: 12px; color: #6b7280;
+ white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
+ }
+
+ .tr-meta { text-align: right; flex-shrink: 0; }
+ .tr-metric { font-size: 15px; font-weight: 700; color: #f3f4f6; }
+ .tr-metric-label { font-size: 10px; color: #6b7280; margin-top: 1px; }
+
+ /* tier pill */
+ .tr-tier {
+ display: inline-flex; align-items: center; gap: 4px;
+ font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
+ padding: 2px 7px; border-radius: 6px; border: 1px solid;
+ }
+ .tr-tier-prime { color: #f59e0b; border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.08); }
+ .tr-tier-strong { color: #10b981; border-color: rgba(16,185,129,.3); background: rgba(16,185,129,.08); }
+ .tr-tier-lean { color: #3b82f6; border-color: rgba(59,130,246,.3); background: rgba(59,130,246,.08); }
+ .tr-tier-watch { color: #8b5cf6; border-color: rgba(139,92,246,.3); background: rgba(139,92,246,.08); }
+ .tr-tier-avoid { color: #6b7280; border-color: rgba(107,114,128,.2); background: rgba(107,114,128,.05); }
+
+ /* onchain badge */
+ .tr-onchain {
+ font-size: 9px; font-weight: 700; letter-spacing: .08em;
+ color: #10b981; border: 1px solid rgba(16,185,129,.3);
+ padding: 1px 5px; border-radius: 4px; margin-left: 6px;
+ }
+
+ /* skeleton */
+ .tr-skeleton {
+ height: 68px; border-radius: 12px;
+ background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.04) 100%);
+ background-size: 200% 100%;
+ animation: skeleton-sweep 1.4s ease-in-out infinite;
+ }
+ @keyframes skeleton-sweep { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
+
+ .tr-empty, .tr-error {
+ padding: 40px 20px; text-align: center;
+ font-size: 14px; color: #6b7280;
+ }
+ .tr-retry {
+ margin-left: 8px; color: #6366f1; background: none; border: none; cursor: pointer;
+ font-size: 14px; text-decoration: underline;
+ }
+
+ .tr-footnote {
+ margin-top: 32px;
+ font-size: 12px; color: #4b5563; line-height: 1.6;
+ border-top: 1px solid rgba(255,255,255,.06); padding-top: 16px;
+ }
+ .tr-footnote a { color: #6366f1; text-decoration: none; }
+ .tr-footnote a:hover { color: #a5b4fc; }
+
+ @media (max-width: 480px) {
+ .tr-controls { flex-direction: column; align-items: flex-start; }
+ .tr-desc { display: none; }
+ }
+ </style>
+
+ <script type="module">
+ import '/src/nav.js';
+ import '/src/footer.js';
+
+ const $ = (s) => document.querySelector(s);
+ const $$ = (s) => document.querySelectorAll(s);
+ const esc = (s) => String(s ?? '').replace(/[&<>"']/g, (c) =>
+ ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' })[c]);
+
+ let currentTab = 'agents';
+ let currentWin = '24h';
+ let cache = {}; // cache[key] = data
+
+ // ── Tab switching ───────────────────────────────────────────────────
+ $$('.tr-tab').forEach(btn => {
+ btn.addEventListener('click', () => {
+ const tab = btn.dataset.tab;
+ if (tab === currentTab) return;
+ currentTab = tab;
+ $$('.tr-tab').forEach(b => { b.classList.toggle('active', b.dataset.tab === tab); b.setAttribute('aria-selected', String(b.dataset.tab === tab)); });
+ $$('.tr-section').forEach(s => s.classList.toggle('active', s.id === `sec-${tab}`));
+ });
+ });
+
+ // ── Window switching ────────────────────────────────────────────────
+ $$('.tr-win').forEach(btn => {
+ btn.addEventListener('click', () => {
+ const win = btn.dataset.win;
+ if (win === currentWin) return;
+ currentWin = win;
+ $$('.tr-win').forEach(b => b.classList.toggle('active', b.dataset.win === win));
+ $('#legendWindow').textContent = { '24h': '24h', '7d': '7d', 'all': 'all time' }[win];
+ loadData();
+ });
+ });
+
+ // ── Retry buttons ───────────────────────────────────────────────────
+ $('#agentRetry').addEventListener('click', loadData);
+ $('#coinRetry').addEventListener('click', loadData);
+
+ // ── Tier pill ───────────────────────────────────────────────────────
+ function tierPill(tier) {
+ if (!tier) return '';
+ return `<span class="tr-tier tr-tier-${esc(tier)}">${esc(tier)}</span>`;
+ }
+
+ // ── Compact number ──────────────────────────────────────────────────
+ const compact = new Intl.NumberFormat('en', { notation: 'compact', maximumFractionDigits: 1 });
+ function fmt(n) { return n == null ? '—' : compact.format(Number(n)); }
+
+ // ── Render agents ───────────────────────────────────────────────────
+ function renderAgents(agents) {
+ const list = $('#agentList');
+ const empty = $('#agentEmpty');
+ const error = $('#agentError');
+
+ error.hidden = true;
+ if (!agents.length) { list.innerHTML = ''; empty.hidden = false; return; }
+ empty.hidden = true;
+
+ list.innerHTML = agents.map(a => {
+ const count = currentWin === 'all' ? a.chat_count : (a.window_chats ?? a.chat_count);
+ const initial = (a.name || 'A')[0].toUpperCase();
+ const avHtml = a.avatar_thumbnail_url
+ ? `<img src="${esc(a.avatar_thumbnail_url)}" alt="" loading="lazy" />`
+ : esc(initial);
+ const onchainBadge = a.is_onchain ? '<span class="tr-onchain">◈ on-chain</span>' : '';
+ const rankCls = a.rank <= 3 ? ` tr-rank-${a.rank}` : '';
+ return `<li>
+ <a class="tr-row" href="${esc(a.agent_url)}">
+ <span class="tr-rank${rankCls}">${a.rank}</span>
+ <span class="tr-av">${avHtml}</span>
+ <span class="tr-body">
+ <span class="tr-name">${esc(a.name || 'Unnamed agent')}${onchainBadge}</span>
+ ${a.description ? `<span class="tr-desc">${esc(a.description)}</span>` : ''}
+ </span>
+ <span class="tr-meta">
+ <span class="tr-metric">${fmt(count)}</span>
+ <span class="tr-metric-label">chats</span>
+ </span>
+ </a>
+ </li>`;
+ }).join('');
+ }
+
+ // ── Render coins ────────────────────────────────────────────────────
+ function renderCoins(coins) {
+ const list = $('#coinList');
+ const empty = $('#coinEmpty');
+ const error = $('#coinError');
+
+ error.hidden = true;
+ if (!coins.length) { list.innerHTML = ''; empty.hidden = false; return; }
+ empty.hidden = true;
+
+ list.innerHTML = coins.map(c => {
+ const sym = (c.symbol || '?').slice(0, 5);
+ const rankCls = c.rank <= 3 ? ` tr-rank-${c.rank}` : '';
+ return `<li>
+ <a class="tr-row" href="${esc(c.coin_url)}">
+ <span class="tr-rank${rankCls}">${c.rank}</span>
+ <span class="tr-coin-badge">$${esc(sym)}</span>
+ <span class="tr-body">
+ <span class="tr-name">$${esc(c.symbol || '—')}</span>
+ <span class="tr-desc">${tierPill(c.tier)} · momentum ${c.momentum}/100 · wallets ${fmt(c.smart_wallet_count)}</span>
+ </span>
+ <span class="tr-meta">
+ <span class="tr-metric">${c.score}</span>
+ <span class="tr-metric-label">/100 score</span>
+ </span>
+ </a>
+ </li>`;
+ }).join('');
+ }
+
+ // ── Skeleton states ─────────────────────────────────────────────────
+ function setSkeletons(listId, count = 5) {
+ const list = $('#' + listId);
+ list.innerHTML = Array.from({ length: count }, () => '<li class="tr-skeleton"></li>').join('');
+ }
+
+ // ── Load ────────────────────────────────────────────────────────────
+ async function loadData() {
+ const key = currentWin;
+ if (cache[key]) {
+ renderAgents(cache[key].agents);
+ renderCoins(cache[key].coins);
+ return;
+ }
+
+ setSkeletons('agentList');
+ setSkeletons('coinList');
+ $('#agentEmpty').hidden = true;
+ $('#agentError').hidden = true;
+ $('#coinEmpty').hidden = true;
+ $('#coinError').hidden = true;
+
+ try {
+ const r = await fetch(`/api/trending?window=${encodeURIComponent(key)}&limit=10`);
+ if (!r.ok) throw new Error('HTTP ' + r.status);
+ const data = await r.json();
+ cache[key] = data;
+ renderAgents(data.agents || []);
+ renderCoins(data.coins || []);
+ } catch {
+ $('#agentList').innerHTML = '';
+ $('#coinList').innerHTML = '';
+ $('#agentError').hidden = false;
+ $('#coinError').hidden = false;
+ }
+ }
+
+ loadData();
+ </script>
+</body>
+</html>
diff --git a/public/changelog.json b/public/changelog.json
index bb53a719b..78e5e3d7c 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-16T10:26:03.275Z",
+ "generated_at": "2026-06-16T10:35:10.776Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -46,6 +46,16 @@
"launch"
]
},
+ {
+ "date": "2026-06-16",
+ "type": "launch",
+ "title": "Trending — Top Agents & Coins on three.ws",
+ "summary": "What’s hot on three.ws right now. Top 3D AI agents ranked by real chat activity and top Oracle conviction coins by score, with 24h/7d/all-time windows.",
+ "link": "/trending",
+ "tags": [
+ "launch"
+ ]
+ },
{
"date": "2026-06-16",
"type": "launch",
@@ -56,6 +66,16 @@
"launch"
]
},
+ {
+ "date": "2026-06-16",
+ "type": "update",
+ "title": "$THREE holder gate — agent skills can now require $THREE balance",
+ "summary": "Agent owners can now require callers to hold a minimum $THREE balance before accessing any paid skill. Set three_gate.enabled and three_gate.min_balance in your agent meta. Callers who don't qualify receive a 402 with the exact amount required and a link to acquire $THREE. The gate fails open on infra issues — real holders are never blocked. A new /api/pump/check-three-balance endpoint lets any service verify wallet eligibility directly.",
+ "link": "/oracle",
+ "tags": [
+ "feature"
+ ]
+ },
{
"date": "2026-06-16",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 84290efd7..18da6df35 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -38,6 +38,14 @@
<category>launch</category>
<description>A fused AI conviction engine for every pump.fun launch: pedigree (who's buying), structure (bundle vs organic), narrative (what story is it riding), and momentum — fused into a single 0–100 conviction score with transparent pillar reasoning.</description>
</item>
+ <item>
+ <title>Trending — Top Agents &amp; Coins on three.ws</title>
+ <link>https://three.ws/trending</link>
+ <guid isPermaLink="false">2026-06-16:Trending — Top Agents &amp; Coins on three.ws</guid>
+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>
+ <category>launch</category>
+ <description>What’s hot on three.ws right now. Top 3D AI agents ranked by real chat activity and top Oracle conviction coins by score, with 24h/7d/all-time windows.</description>
+ </item>
<item>
<title>Watchlist</title>
<link>https://three.ws/watchlist</link>
@@ -46,6 +54,14 @@
<category>launch</category>
<description>Your privately-stored watchlist of pump.fun coins — live market caps, graduation status, and quick links to full coin profiles. No account required; stored in your browser.</description>
</item>
+ <item>
+ <title>$THREE holder gate — agent skills can now require $THREE balance</title>
+ <link>https://three.ws/oracle</link>
+ <guid isPermaLink="false">2026-06-16:$THREE holder gate — agent skills can now require $THREE balance</guid>
+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>Agent owners can now require callers to hold a minimum $THREE balance before accessing any paid skill. Set three_gate.enabled and three_gate.min_balance in your agent meta. Callers who don't qualify receive a 402 with the exact amount required and a link to acquire $THREE. The gate fails open on infra issues — real holders are never blocked. A new /api/pump/check-three-balance endpoint lets any service verify wallet eligibility directly.</description>
+ </item>
<item>
<title>3D Visualizer: Oracle conviction and watchlist in token panel</title>
<link>https://three.ws/pump-visualizer</link>
diff --git a/public/features.json b/public/features.json
index de033339b..ca8607566 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-16T10:26:03.264Z",
+ "generated_at": "2026-06-16T10:35:10.765Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
@@ -556,6 +556,16 @@
"tags": [],
"showcase": false
},
+ {
+ "path": "/trending",
+ "title": "Trending — Top Agents & Coins on three.ws",
+ "description": "What’s hot on three.ws right now. Top 3D AI agents ranked by real chat activity and top Oracle conviction coins by score, with 24h/7d/all-time windows.",
+ "added": "2026-06-16",
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
{
"path": "/trades",
"title": "Live Trade Feed — Notable pump.fun Exits",
diff --git a/public/llms-full.txt b/public/llms-full.txt
index 23133a95a..cfacfef12 100644
--- a/public/llms-full.txt
+++ b/public/llms-full.txt
@@ -338,6 +338,12 @@ URL: https://three.ws/leaderboard
Pump.fun traders ranked by a provable, on-chain track record — realized P&L, win rate, drawdown — with every number traceable to its transaction.
+### Trending — Top Agents & Coins on three.ws
+
+URL: https://three.ws/trending
+
+What’s hot on three.ws right now. Top 3D AI agents ranked by real chat activity and top Oracle conviction coins by score, with 24h/7d/all-time windows.
+
### Live Trade Feed — Notable pump.fun Exits
URL: https://three.ws/trades
diff --git a/public/llms.txt b/public/llms.txt
index 78aaee421..2c682f862 100644
--- a/public/llms.txt
+++ b/public/llms.txt
@@ -77,6 +77,7 @@ On-chain features: pay-per-call, token launches, vanity wallets.
- [Launch a Coin](https://three.ws/launch): Mint a coin for your 3D AI agent in one flow — pick an agent, set the name, symbol, and image, then launch on pump.fun straight from your wallet with an optional three.ws-branded vanity mint.
- [Agent Launches](https://three.ws/launches): Live public feed of every coin launched by a three.ws agent — market caps, graduation status, and the agent behind each launch.
- [Trader Leaderboard](https://three.ws/leaderboard): Pump.fun traders ranked by a provable, on-chain track record — realized P&L, win rate, drawdown — with every number traceable to its transaction.
+- [Trending — Top Agents & Coins on three.ws](https://three.ws/trending): What’s hot on three.ws right now. Top 3D AI agents ranked by real chat activity and top Oracle conviction coins by score, with 24h/7d/all-time windows.
- [Live Trade Feed — Notable pump.fun Exits](https://three.ws/trades): Real-time feed of every notable pump.fun exit from three.ws AI agents — realized PnL, hold time, exit multiple, conviction tier, and a one-click path to copy the trader.
- [Claim Your Wallet — Verified pump.fun Track Record](https://three.ws/claim-wallet): Paste your Solana wallet to see your provable pump.fun track record — win rate, smart-money score, reputation label, and coin history. Sign in to claim it as your official three.ws Trader Card.
- [Pay (x402)](https://three.ws/pay): Pay-per-call gateway: invoke any x402-protocol paid API with a USDC micro-transaction.
diff --git a/public/nav-data.js b/public/nav-data.js
index a6bbd479f..dc26d89aa 100644
--- a/public/nav-data.js
+++ b/public/nav-data.js
@@ -59,6 +59,12 @@ export const NAV_GROUPS = [
{
label: 'Discover',
items: [
+ {
+ title: 'Trending',
+ href: '/trending',
+ badge: 'New',
+ desc: 'Top agents by real activity + top Oracle conviction coins',
+ },
{
title: 'What is three.ws?',
href: '/what-is',
@@ -167,6 +173,16 @@ export const NAV_GROUPS = [
href: '/pump-visualizer',
desc: 'Trending tokens in 3D',
},
+ {
+ title: 'All Launches',
+ href: '/launches',
+ desc: 'Every agent-launched coin — full history',
+ },
+ {
+ title: 'Token in 3D',
+ href: '/coin3d',
+ desc: 'View any token as a cinematic 3D scene',
+ },
],
},
{
diff --git a/public/sitemap/index.html b/public/sitemap/index.html
index 4fa289b27..81eec51d8 100644
--- a/public/sitemap/index.html
+++ b/public/sitemap/index.html
@@ -65,7 +65,7 @@
<main class="sm-wrap">
<div class="sm-hero">
<h1>Sitemap</h1>
- <p>All 274 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>
+ <p>All 275 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>
<div class="sm-formats">
<a href="/sitemap.xml"><code>sitemap.xml</code> · for search engines</a>
<a href="/llms.txt"><code>llms.txt</code> · for AI agents</a>
@@ -77,7 +77,7 @@
</div>
<div class="sm-filter">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>
- <input id="sm-filter-input" type="search" placeholder="Filter 274 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />
+ <input id="sm-filter-input" type="search" placeholder="Filter 275 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />
<kbd aria-hidden="true">/</kbd>
</div>
<p class="sm-filter-count" id="sm-filter-count" role="status" aria-live="polite"></p>
@@ -452,7 +452,7 @@
<section class="sm-section" id="crypto">
<header>
- <h2>Crypto<span class="sm-count" data-count>43</span></h2>
+ <h2>Crypto<span class="sm-count" data-count>44</span></h2>
<p class="sm-section-desc">On-chain features: pay-per-call, token launches, vanity wallets.</p>
</header>
<ul class="sm-list">
@@ -491,6 +491,13 @@
<span class="sm-desc">Pump.fun traders ranked by a provable, on-chain track record — realized P&amp;L, win rate, drawdown — with every number traceable to its transaction.</span>
</a>
</li>
+ <li>
+ <a href="/trending">
+ <span class="sm-title">Trending — Top Agents &amp; Coins on three.ws</span>
+ <span class="sm-path">/trending</span>
+ <span class="sm-desc">What’s hot on three.ws right now. Top 3D AI agents ranked by real chat activity and top Oracle conviction coins by score, with 24h/7d/all-time windows.</span>
+ </a>
+ </li>
<li>
<a href="/trades">
<span class="sm-title">Live Trade Feed — Notable pump.fun Exits</span>
diff --git a/vercel.json b/vercel.json
index e30fe11c8..40454f15c 100644
--- a/vercel.json
+++ b/vercel.json
@@ -597,6 +597,10 @@
"src": "/create/next/?",
"dest": "/create-next.html"
},
+ {
+ "src": "/trending/?",
+ "dest": "/trending.html"
+ },
{
"src": "/trades/?",
"dest": "/trades.html"
@@ -1799,6 +1803,10 @@
"src": "/api/pump/smart-money",
"dest": "/api/pump/smart-money.js"
},
+ {
+ "src": "/api/pump/check-three-balance",
+ "dest": "/api/pump/check-three-balance.js"
+ },
{
"src": "/api/pump/launch-og",
"dest": "/api/pump/launch-og.js"
@@ -1947,6 +1955,10 @@
"src": "/api/sniper/leaderboard",
"dest": "/api/sniper/leaderboard.js"
},
+ {
+ "src": "/api/trending",
+ "dest": "/api/trending.js"
+ },
{
"src": "/api/trades/feed",
"dest": "/api/trades/feed.js"