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 social share to Oracle Proof win cards

nirholas33d4c481b977
diff --git a/src/oracle.js b/src/oracle.js
index acc6fafc5..366945efe 100644
--- a/src/oracle.js
+++ b/src/oracle.js
@@ -45,6 +45,15 @@ function ago(ts) {
}
function solscan(addr) { return `https://solscan.io/account/${addr}`; }
function pumpUrl(mint) { return `https://pump.fun/coin/${mint}`; }
+function winTweet(w) {
+ const sym = (w.symbol || w.mint.slice(0, 6)).toUpperCase();
+ const ath = w.ath_multiple != null ? `${Number(w.ath_multiple).toFixed(1)}×` : 'graduated';
+ const score = w.score != null ? `${w.score}/100 ${w.tier}` : w.tier;
+ const url = `https://three.ws/oracle?mint=${encodeURIComponent(w.mint)}`;
+ const text = `Oracle called $${sym} (${score} conviction) — it went ${ath} 🔮\n\nproof.not.promises @trythreews\n${url}`;
+ return `https://twitter.com/intent/tweet?text=${encodeURIComponent(text)}`;
+}
+
function tweetConviction(c) {
const tier = c.tier || 'watch';
const score = c.score ?? '—';
@@ -508,6 +517,7 @@ function winCardHtml(w, idx) {
<div class="win-links">
<a class="win-link" href="${esc(w.pump_url)}" target="_blank" rel="noopener" onclick="event.stopPropagation()">pump.fun ↗</a>
<a class="win-link" href="${esc(w.oracle_url)}" onclick="event.stopPropagation()">Oracle ↗</a>
+ <a class="win-link" style="margin-left:auto;color:var(--muted)" href="${esc(winTweet(w))}" target="_blank" rel="noopener" onclick="event.stopPropagation()" title="Share on X">Share ↗</a>
</div>
</div>
</a>`;