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.

Add community sentiment pulse to Oracle coin drawer

nirholas4d40c01ccee1
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f01e59f1f..ba4ccb44d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -39,6 +39,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Oracle social signal — X posts now feed into coin conviction scores** — The Oracle's Narrative pillar now receives real-time social signal from X. When a coin's $SYMBOL is mentioned in a tweet, the post's reach and engagement — views, likes, retweets — translate into a virality boost that raises the Oracle's conviction score. KOL accounts (verified smart-money voices on X) apply a 1.5× multiplier. The POST /api/oracle/social endpoint accepts raw tweet batches from any scraper, and the three.surf chart tool ships a --push-social flag that pipes its tweet analysis directly into the Oracle after each run. (`/oracle`) `[feature, improvement]`
- **Oracle wallet drawer: trader profile and copy-trades links** — When you open a wallet from the Oracle's Top Wallets leaderboard, the drawer now shows 'Trader profile ↗' and 'Copy trades →' links below the track record — connecting the wallet reputation system directly to copy trading. The wallet list rows also gain a hover-reveal '→' button that opens the trader profile without needing to open the drawer first. (`/oracle`) `[improvement]`
- **Oracle: Activity feed and Agent leaderboard** — Two new tabs on the Oracle page. Activity shows a live trading floor — every Oracle-armed agent action (buy/outcome/PnL) in real time, filterable by mode, tier, and outcome. Agents ranks every conviction agent by their real track record: win rate, realized PnL, and ROI across all graded calls. Subscribe to copy the top performers directly from the leaderboard. (`/oracle`) `[feature]`
+- **Oracle: Community sentiment pulse in coin drawer** — The Oracle coin drawer now shows a Community Pulse section pulled live from pump.fun comments. After the conviction score loads, a background fetch reads recent comments and classifies them as bullish, bearish, or mixed, with positive / negative / neutral percentage bars and a sample of real comments. Coins with fewer than three comments are silently skipped. This adds the crowd-sentiment layer alongside Oracle's technical conviction pillars. (`/oracle`) `[feature]`
- **Oracle: Conviction score history sparkline** — The coin conviction drawer now shows a 48-hour score history sparkline. As Oracle re-scores a coin, each meaningful change (≥3 points) is recorded. The drawer surfaces the trend — rising, stable, or falling — so you can see whether conviction is building or rolling over before making a move. (`/oracle`) `[feature, improvement]`
- **Oracle: Conviction-weighted position sizing** — Oracle agents can now scale their position size by conviction strength. Enable 'Scale by conviction' in the Arm your agent panel to have the engine buy up to 1.5× the base size for the highest-scoring coins (score 100) and 1.0× at the minimum threshold. Positions are still capped by the daily SOL budget — this rewards the highest-conviction calls without increasing risk on lower-scoring entries. (`/oracle`) `[feature, improvement]`
- **Oracle: New / Top sort toggle on conviction feed** — The live conviction feed now has a Top / New toggle. Top (default) ranks coins by conviction score so the highest-confidence plays surface first. New sorts by when the coin was scored — useful for catching fresh launches the moment Oracle processes them before the wider market. No extra network request: the sort switches client-side from the already-loaded feed. (`/oracle`) `[improvement]`
diff --git a/data/changelog.json b/data/changelog.json
index 8d6acba9f..9d77f80e8 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": "Oracle: Community sentiment pulse in coin drawer",
+ "summary": "The Oracle coin drawer now shows a Community Pulse section pulled live from pump.fun comments. After the conviction score loads, a background fetch reads recent comments and classifies them as bullish, bearish, or mixed, with positive / negative / neutral percentage bars and a sample of real comments. Coins with fewer than three comments are silently skipped. This adds the crowd-sentiment layer alongside Oracle's technical conviction pillars.",
+ "tags": ["feature"],
+ "link": "/oracle"
+ },
{
"date": "2026-06-16",
"title": "Activity: Outcome filter on agent trade feed",
diff --git a/public/changelog.json b/public/changelog.json
index e1a124c11..548b7cb12 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-16T07:30:01.908Z",
+ "generated_at": "2026-06-16T07:38:56.743Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -342,6 +342,16 @@
"feature"
]
},
+ {
+ "date": "2026-06-16",
+ "type": "update",
+ "title": "Oracle: Community sentiment pulse in coin drawer",
+ "summary": "The Oracle coin drawer now shows a Community Pulse section pulled live from pump.fun comments. After the conviction score loads, a background fetch reads recent comments and classifies them as bullish, bearish, or mixed, with positive / negative / neutral percentage bars and a sample of real comments. Coins with fewer than three comments are silently skipped. This adds the crowd-sentiment layer alongside Oracle's technical conviction pillars.",
+ "link": "/oracle",
+ "tags": [
+ "feature"
+ ]
+ },
{
"date": "2026-06-16",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 8f1ea2323..699b82944 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -270,6 +270,14 @@
<category>feature</category>
<description>Two new tabs on the Oracle page. Activity shows a live trading floor — every Oracle-armed agent action (buy/outcome/PnL) in real time, filterable by mode, tier, and outcome. Agents ranks every conviction agent by their real track record: win rate, realized PnL, and ROI across all graded calls. Subscribe to copy the top performers directly from the leaderboard.</description>
</item>
+ <item>
+ <title>Oracle: Community sentiment pulse in coin drawer</title>
+ <link>https://three.ws/oracle</link>
+ <guid isPermaLink="false">2026-06-16:Oracle: Community sentiment pulse in coin drawer</guid>
+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>The Oracle coin drawer now shows a Community Pulse section pulled live from pump.fun comments. After the conviction score loads, a background fetch reads recent comments and classifies them as bullish, bearish, or mixed, with positive / negative / neutral percentage bars and a sample of real comments. Coins with fewer than three comments are silently skipped. This adds the crowd-sentiment layer alongside Oracle's technical conviction pillars.</description>
+ </item>
<item>
<title>Oracle: Conviction score history sparkline</title>
<link>https://three.ws/oracle</link>
diff --git a/public/features.json b/public/features.json
index 0e17ab01c..3aea31a19 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-16T07:30:01.892Z",
+ "generated_at": "2026-06-16T07:38:56.721Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/src/oracle.js b/src/oracle.js
index e24826e86..26b1339a1 100644
--- a/src/oracle.js
+++ b/src/oracle.js
@@ -839,6 +839,7 @@ function renderDrawer(d) {
${narr ? `<div class="dr-sec">Narrative</div><div style="font-size:13.5px;color:var(--ink)">${esc(narr.narrative || '')}</div>
<div class="coin-meta" style="margin-top:8px"><span class="chip cat">${esc(narr.category)}</span><span class="chip">virality <b>${narr.virality ?? '—'}</b></span><span class="chip">${esc(narr.source || '')}</span></div>` : ''}
<div class="dr-sec">Why this score</div>${reasons}
+ <div id="communityPulseWrap"></div>
${structurePanel(d.components?.structure)}
<div class="dr-sec">Who's in <span style="color:var(--faint)">(${(d.whos_in || []).length})</span></div>${whos}
${out ? `<div class="dr-sec">Outcome</div><div class="coin-meta">
@@ -848,8 +849,9 @@ function renderDrawer(d) {
<div id="tradeTape" class="trade-tape"></div>
`;
- // Fetch and render conviction score history sparkline.
+ // Fetch and render conviction score history sparkline + community sentiment.
loadScoreHistory(c.mint);
+ loadSentimentPulse(c.mint);
// Tear down any previous tape, then mount fresh for this coin.
state.tape?.destroy();
@@ -910,6 +912,57 @@ async function loadScoreHistory(mint) {
wrap.innerHTML = renderSparkline(data.points, data.trend);
}
+async function loadSentimentPulse(mint) {
+ const wrap = $('#communityPulseWrap');
+ if (!wrap) return;
+ try {
+ const res = await fetch('/api/social/sentiment-pulse', {
+ method: 'POST',
+ headers: { 'content-type': 'application/json' },
+ body: JSON.stringify({ token: mint }),
+ signal: AbortSignal.timeout(10000),
+ });
+ if (!res.ok) { if ($('#communityPulseWrap')) $('#communityPulseWrap').innerHTML = ''; return; }
+ const d = await res.json();
+ const el = $('#communityPulseWrap');
+ if (!el) return;
+ if (!d.ok || !d.overall || d.overall.count < 3) { el.innerHTML = ''; return; }
+ const o = d.overall;
+ const scoreColor = o.score >= 60 ? 'var(--up)' : o.score <= 40 ? 'var(--down)' : 'var(--muted)';
+ const sentLabel = o.score >= 60 ? 'bullish' : o.score <= 40 ? 'bearish' : 'mixed';
+ const sentChipCls = o.score >= 60 ? 'sm' : o.score <= 40 ? 'flag' : '';
+ const exHtml = (o.examples || []).slice(0, 2).map(
+ (ex) => `<div class="reason" style="font-size:11.5px;opacity:.75"><span class="rdot nar"></span><span>${esc(ex)}</span></div>`
+ ).join('');
+ el.innerHTML = `
+ <div class="dr-sec">Community pulse <span style="color:var(--faint);font-weight:400;font-size:10px">pump.fun · ${o.count} comments</span></div>
+ <div class="coin-meta" style="margin-bottom:8px">
+ <span class="chip ${sentChipCls}" style="color:${scoreColor}">${sentLabel} · ${o.score}</span>
+ </div>
+ <div class="str-grid">
+ <div class="str-row">
+ <span class="str-lbl">Positive</span>
+ <div class="str-track"><div class="str-fill" style="width:${Math.round(o.posPct)}%;background:var(--up)"></div></div>
+ <span class="str-val" style="color:var(--up)">${Math.round(o.posPct)}%</span>
+ </div>
+ <div class="str-row">
+ <span class="str-lbl">Negative</span>
+ <div class="str-track"><div class="str-fill" style="width:${Math.round(o.negPct)}%;background:var(--down)"></div></div>
+ <span class="str-val" style="color:var(--down)">${Math.round(o.negPct)}%</span>
+ </div>
+ <div class="str-row">
+ <span class="str-lbl">Neutral</span>
+ <div class="str-track"><div class="str-fill" style="width:${Math.round(o.neuPct)}%;background:var(--muted)"></div></div>
+ <span class="str-val" style="color:var(--muted)">${Math.round(o.neuPct)}%</span>
+ </div>
+ </div>
+ ${exHtml}`;
+ } catch {
+ const el = $('#communityPulseWrap');
+ if (el) el.innerHTML = '';
+ }
+}
+
function renderSparkline(points, trend) {
const W = 220; const H = 40; const PAD = 4;
const scores = points.map((p) => Number(p.score));