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.

Home: Top Traders widget; Watchlist: add by mint/URL paste

nirholasbe428fc68c26
diff --git a/data/changelog.json b/data/changelog.json
index 95dc4c364..1dd82ac75 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-16",
+ "title": "Home page: Top Traders widget + Oracle proof trades in coin drawer",
+ "summary": "The home page now shows a live Top Traders widget ranked by 7-day composite score with direct links to copy each trader. The Oracle coin drawer now loads a proof-trades section showing every agent exit on that specific coin — multiple, P&L, and a one-click copy link — closing the loop between conviction and evidence. Trade feed cards also link coin images and symbols directly to their Oracle conviction page.",
+ "tags": ["feature", "improvement"],
+ "link": "/oracle"
+ },
{
"date": "2026-06-16",
"title": "Agents Index — browse every public 3D AI agent on three.ws",
diff --git a/pages/home.html b/pages/home.html
index a18032ecb..e2fe09620 100644
--- a/pages/home.html
+++ b/pages/home.html
@@ -4414,6 +4414,42 @@
</div>
</section>
+<!-- ── TOP TRADERS ──────────────────────────────────────────────────── -->
+<section class="block">
+ <div class="wrap-1280">
+ <div class="feat-split rev reveal">
+ <div class="feat-text">
+ <p class="feat-eyebrow">Trader leaderboard · copy trading</p>
+ <h3 class="feat-h">Follow the best.<br/><em>Non-custodially.</em></h3>
+ <p class="feat-body">
+ Every three.ws AI agent has a verifiable track record — every entry and exit linked to its on-chain transaction. Find the highest-scoring traders, mirror their strategy with your own wallet and risk rules, and get a Telegram alert the moment a buy intent lands.
+ </p>
+ <ul class="feat-list">
+ <li><strong>On-chain proof</strong> — every number is traceable to its Solscan transaction</li>
+ <li><strong>Your wallet, your rules</strong> — set max per trade, daily budget, and Oracle floor</li>
+ <li><strong>Telegram notifications</strong> — real-time alerts for every buy intent</li>
+ <li><strong>$THREE fee settlement</strong> — performance fees paid to leaders in $THREE</li>
+ </ul>
+ <div style="display:flex;gap:10px;flex-wrap:wrap">
+ <a class="btn btn--sm btn--primary" href="/leaderboard">See all traders <span class="arrow">→</span></a>
+ <a class="btn btn--sm" href="/claim-wallet">Claim your wallet →</a>
+ </div>
+ </div>
+ <div class="feat-visual">
+ <div class="feat-visual-label">Top traders this week</div>
+ <div class="feat-visual-inner" style="padding:0;overflow:hidden">
+ <div id="hlt-items" class="hoc-loading">
+ <div class="hoc-sk"></div><div class="hoc-sk"></div><div class="hoc-sk"></div>
+ </div>
+ <div style="padding:12px 16px;border-top:1px solid var(--hairline)">
+ <a class="btn btn--sm" href="/leaderboard" style="width:100%;text-align:center;justify-content:center">Full leaderboard →</a>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+</section>
+
<!-- ── PAY-PER-CALL EARN ──────────────────────────────────────────────────── -->
<section class="block">
<div class="wrap-1280">
@@ -5026,6 +5062,46 @@
el.innerHTML = '<div style="padding:28px 16px;text-align:center"><a class="btn btn--sm" href="/trades">View trades →</a></div>';
}
})();
+
+ // ── Home Leaderboard mini-cards ──────────────────────────────────
+ (async () => {
+ const el = document.getElementById('hlt-items');
+ if (!el) return;
+ try {
+ const r = await fetch('/api/sniper/leaderboard?network=mainnet&window=7d&sort=score&limit=5');
+ if (!r.ok) throw new Error(r.status);
+ const { leaderboard: traders = [] } = await r.json();
+ el.className = '';
+ el.innerHTML = '';
+ if (!traders.length) {
+ el.innerHTML = '<div style="padding:28px 16px;text-align:center;color:var(--text-3);font-size:13px">Rankings updating…</div>';
+ return;
+ }
+ traders.slice(0, 3).forEach((t, i) => {
+ const pnlSol = t.realized_pnl_sol != null && t.realized_pnl_sol > 0 ? `+${Number(t.realized_pnl_sol).toFixed(2)} ◎` : null;
+ const winRate = t.win_rate != null ? `${Math.round(t.win_rate * 100)}% WR` : null;
+ const score = t.score != null ? `${t.score} score` : null;
+ const MEDAL = ['🥇', '🥈', '🥉'][i] || `#${i+1}`;
+ const a = document.createElement('a');
+ a.className = 'hoc-item';
+ a.href = `/trader/${encodeURIComponent(t.agent_id || '')}`;
+ a.setAttribute('aria-label', `${t.agent_name || 'Trader'} — rank ${i+1} · ${pnlSol || ''}`);
+ a.innerHTML = `
+ <div class="hoc-score" style="font-size:18px;line-height:1;background:rgba(255,255,255,0.05);border-color:rgba(255,255,255,0.1)">
+ ${MEDAL}
+ </div>
+ <div class="hoc-info">
+ <div class="hoc-sym" style="font-size:13.5px">${t.agent_name ? t.agent_name.slice(0, 20) : 'Agent'}</div>
+ <div class="hoc-name">${[pnlSol, winRate].filter(Boolean).join(' · ') || '—'}</div>
+ </div>
+ ${score != null ? `<span class="hoc-tier" style="color:var(--text-3);background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.08)">${score}</span>` : ''}`;
+ el.appendChild(a);
+ });
+ } catch {
+ el.className = '';
+ el.innerHTML = '<div style="padding:28px 16px;text-align:center"><a class="btn btn--sm" href="/leaderboard">View leaderboard →</a></div>';
+ }
+ })();
</script>
<script>
diff --git a/pages/watchlist.html b/pages/watchlist.html
index 22d2644f2..718ee01f7 100644
--- a/pages/watchlist.html
+++ b/pages/watchlist.html
@@ -48,6 +48,18 @@
Coins you're tracking, with live market caps and graduation status. Tap any card for the
full profile. Your list is stored privately in this browser.
</p>
+ <form id="wl-add-form" class="wl-add-form" autocomplete="off">
+ <input
+ id="wl-add-input"
+ class="wl-add-input"
+ type="text"
+ placeholder="Paste a mint address or pump.fun URL to add…"
+ spellcheck="false"
+ aria-label="Mint address or pump.fun URL"
+ />
+ <button type="submit" class="wl-btn wl-btn-primary wl-add-btn">Add</button>
+ </form>
+ <div id="wl-add-msg" class="wl-add-msg" aria-live="polite" hidden></div>
<div class="wl-hero-row">
<span id="wl-count" class="wl-count" aria-live="polite"></span>
<div class="wl-hero-ctas">
diff --git a/src/watchlist.css b/src/watchlist.css
index d0986ab4f..8f831a879 100644
--- a/src/watchlist.css
+++ b/src/watchlist.css
@@ -97,6 +97,38 @@ body {
color: var(--ink-dim);
line-height: 1.55;
}
+.wl-add-form {
+ display: flex;
+ gap: 8px;
+ margin-bottom: 16px;
+ width: 100%;
+ max-width: 640px;
+}
+.wl-add-input {
+ flex: 1;
+ background: var(--panel, rgba(255,255,255,.04));
+ border: 1px solid var(--line, rgba(255,255,255,.1));
+ border-radius: 8px;
+ padding: 9px 13px;
+ color: var(--ink);
+ font-size: var(--text-sm);
+ font-family: var(--font-mono);
+ transition: border-color 0.18s;
+ min-width: 0;
+}
+.wl-add-input::placeholder { color: var(--ink-dim); font-family: var(--font-base); }
+.wl-add-input:focus { outline: none; border-color: var(--accent, #7c6aff); }
+.wl-add-btn { flex-shrink: 0; }
+.wl-add-msg {
+ font-size: var(--text-xs);
+ padding: 6px 10px;
+ border-radius: 6px;
+ margin-bottom: 12px;
+}
+.wl-add-msg-ok { background: rgba(52,211,153,.12); color: #34d399; }
+.wl-add-msg-warn { background: rgba(251,191,36,.1); color: #fbbf24; }
+.wl-add-msg-err { background: rgba(248,113,113,.1); color: #f87171; }
+
.wl-hero-row {
display: flex;
align-items: center;
diff --git a/src/watchlist.js b/src/watchlist.js
index a200c78de..4262a1a8b 100644
--- a/src/watchlist.js
+++ b/src/watchlist.js
@@ -246,10 +246,10 @@ function renderEmpty() {
el('div', { class: 'wl-empty' }, [
el('div', { class: 'wl-empty-glyph', 'aria-hidden': 'true' }, [mintIdenticon('three.ws-watchlist-empty')]),
el('h2', { text: 'Nothing on your watchlist yet' }),
- el('p', { text: 'Tap ☆ Watch on any coin to pin it here. Your list lives privately in this browser and updates with live market data.' }),
+ el('p', { text: 'Paste a mint address or pump.fun URL above to add any coin instantly. Or tap ☆ Watch on any coin profile to pin it here.' }),
el('div', { class: 'wl-empty-ctas' }, [
el('a', { class: 'wl-btn wl-btn-primary', href: '/launches', text: 'Explore launches' }),
- el('a', { class: 'wl-btn', href: '/radar', text: 'Open the radar' }),
+ el('a', { class: 'wl-btn', href: '/oracle', text: 'Open Oracle' }),
]),
]),
);
@@ -421,6 +421,73 @@ function startParticleField() {
});
}
+// ── add by mint / URL ────────────────────────────────────────────────────────
+
+function parseMintFromInput(raw) {
+ const s = raw.trim();
+ // pump.fun/coin/<mint> or pump.fun/token/<mint>
+ const urlMatch = s.match(/pump\.fun\/(?:coin|token)\/([1-9A-HJ-NP-Za-km-z]{32,44})/);
+ if (urlMatch) return urlMatch[1];
+ // bare mint address
+ if (MINT_RE.test(s)) return s;
+ return null;
+}
+
+function addMint(mint) {
+ const list = readList();
+ if (list.includes(mint)) return 'already';
+ writeList([mint, ...list]);
+ render();
+ return 'added';
+}
+
+function showAddMsg(msg, tone = 'ok') {
+ const el = document.getElementById('wl-add-msg');
+ if (!el) return;
+ el.textContent = msg;
+ el.className = `wl-add-msg wl-add-msg-${tone}`;
+ el.hidden = false;
+ clearTimeout(el._t);
+ el._t = setTimeout(() => { el.hidden = true; }, 3500);
+}
+
+const addForm = document.getElementById('wl-add-form');
+const addInput = document.getElementById('wl-add-input');
+
+if (addForm && addInput) {
+ addForm.addEventListener('submit', (e) => {
+ e.preventDefault();
+ const mint = parseMintFromInput(addInput.value);
+ if (!mint) {
+ showAddMsg('Paste a valid Solana mint address or pump.fun URL.', 'err');
+ addInput.focus();
+ return;
+ }
+ const result = addMint(mint);
+ if (result === 'already') {
+ showAddMsg(`Already on your watchlist.`, 'warn');
+ } else {
+ showAddMsg(`Added — scroll down to see it.`, 'ok');
+ addInput.value = '';
+ }
+ });
+
+ // Auto-submit on paste if the pasted value is a complete mint/URL
+ addInput.addEventListener('paste', (e) => {
+ const pasted = (e.clipboardData || window.clipboardData)?.getData('text') || '';
+ const mint = parseMintFromInput(pasted);
+ if (mint) {
+ e.preventDefault();
+ const result = addMint(mint);
+ if (result === 'already') {
+ showAddMsg('Already on your watchlist.', 'warn');
+ } else {
+ showAddMsg(`Added — scroll down to see it.`, 'ok');
+ }
+ }
+ });
+}
+
// ── boot ─────────────────────────────────────────────────────────────────────
clearBtn.addEventListener('click', () => {