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
Oracle: add Hot sort mode by momentum pillar score
nirholasa8b8ce233050
diff --git a/pages/oracle.html b/pages/oracle.htmlindex 0672289ab..14d70f95f 100644--- a/pages/oracle.html+++ b/pages/oracle.html@@ -470,6 +470,7 @@</select><div class="seg" id="sortSeg" aria-label="Sort order" style="margin-left:auto"><button data-fsort="score" class="on">Top</button>+ <button data-fsort="hot">Hot</button><button data-fsort="new">New</button></div><div style="position:relative;flex:1;min-width:230px;max-width:320px"><input class="sel" id="mintSearch" placeholder="Search symbol or paste mint…" aria-label="Search by symbol, name, or paste a mint address" autocomplete="off" style="width:100%" /></div>diff --git a/src/oracle.js b/src/oracle.jsindex 2896a653d..d4ddb716e 100644--- a/src/oracle.js+++ b/src/oracle.js@@ -29,6 +29,16 @@ function toggleOracleWatch(mint) {}// ── tiny helpers ─────────────────────────────────────────────────────────────+function setMeta(prop, content) {+ let el = document.querySelector(`meta[property="${prop}"], meta[name="${prop}"]`);+ if (!el) {+ el = document.createElement('meta');+ document.head.appendChild(el);+ }+ el.setAttribute(prop.startsWith('og:') || prop.startsWith('twitter:') ? 'property' : 'name', prop);+ el.setAttribute('content', content || '');+}+const esc = (s) => String(s ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));const shortAddr = (a) => (a && a.length > 10 ? `${a.slice(0, 4)}…${a.slice(-4)}` : a || '');const fmtSol = (n) => (n == null ? '—' : `${Number(n) < 0.01 && Number(n) > 0 ? Number(n).toFixed(4) : Number(n).toFixed(2)}◎`);@@ -89,7 +99,7 @@ const state = {tier: '',category: '',minScore: 0,- sort: 'score', // 'score' | 'new'+ sort: 'score', // 'score' | 'hot' | 'new'label: '',feed: new Map(), // mint -> item, preserves SSE + initial loades: null,@@ -298,7 +308,9 @@ async function loadFeed() {function renderFeed() {const sorter = state.sort === 'new'? (a, b) => new Date(b.scored_at || 0) - new Date(a.scored_at || 0)- : (a, b) => b.score - a.score;+ : state.sort === 'hot'+ ? (a, b) => (Number(b.pillars?.momentum) || 0) - (Number(a.pillars?.momentum) || 0)+ : (a, b) => b.score - a.score;const items = [...state.feed.values()].sort(sorter);$('#ctFeed').textContent = items.length ? items.length : '';if (!items.length) return renderFeedEmpty('empty');@@ -901,6 +913,19 @@ function renderDrawer(d) {loadScoreHistory(c.mint);loadSentimentPulse(c.mint);+ // Update OG / Twitter meta so shared links carry the coin's conviction card.+ const ogImg = `https://three.ws/api/oracle/og?mint=${encodeURIComponent(c.mint)}`;+ const ogTitle = `$${c.symbol || c.mint.slice(0, 8)} — ${c.score ?? '?'}/100 ${c.tier || ''} conviction · Oracle`;+ const ogDesc = `Oracle scored this launch ${c.score ?? '?'}/100 (${c.tier || 'unscored'}). Who · How · What · Move — all fused into one signal.`;+ setMeta('og:title', ogTitle);+ setMeta('og:description', ogDesc);+ setMeta('og:image', ogImg);+ setMeta('og:url', `https://three.ws/oracle?mint=${encodeURIComponent(c.mint)}`);+ setMeta('twitter:card', 'summary_large_image');+ setMeta('twitter:title', ogTitle);+ setMeta('twitter:description', ogDesc);+ setMeta('twitter:image', ogImg);+// Tear down any previous tape, then mount fresh for this coin.state.tape?.destroy();state.tape = null;