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
hood-alerts: single-file landing, deploy configs, SEO plumbing
nirholas00a4200b5195
diff --git a/robinhood/hood-alerts/README.md b/robinhood/hood-alerts/README.mdindex 48aa0083f..1b5e53bc0 100644--- a/robinhood/hood-alerts/README.md+++ b/robinhood/hood-alerts/README.md@@ -7,6 +7,22 @@ X (Twitter) auto-posting, backed by one shared detection engine that watches lauwhale trades, Stock Token price moves, on-chain premium/discount arbitrage, holder milestones, andliquidity-pull rug warnings. Free tier plus x402 USDG premium.+## Website++The docs site (`docs/`) is a single self-contained `index.html` (inline CSS + JS, zero external+requests, works from `file://`). Its centerpiece is a **configurable alert wire**: set the rules+with physical faders and switches (whale size, premium band, which detectors run) and watch+simulated Robinhood Chain events fire down the wire in real time and stack into a live ticker.+It is the same gate the Telegram and Discord bots run, made visible. Deploy the folder anywhere+static:++[](https://dash.cloudflare.com/?to=/:account/pages/new)+[](https://app.netlify.com/start)+[](https://vercel.com/new)++`wrangler.toml`, `netlify.toml`, and `vercel.json` are checked in and all point at `docs/`; on+GitHub Pages, set Settings → Pages → Deploy from a branch → `main` → `/docs`.+## What it detects| Detector | Topic | Source |@@ -252,10 +268,12 @@ premium-wiring guide: the `docs/` site.## Docs site (GitHub Pages)-`docs/` is a static, hand-built site (no framework, no build step): open `docs/index.html` locally,-or serve it from GitHub Pages. Its landing page renders a **live** premium/discount feed client-side-straight from the public RPC (real Chainlink feeds vs real DEX pools, no server). One-time setup:-Settings -> Pages -> Deploy from a branch -> `main` -> `/docs`.+`docs/` is a single self-contained `index.html` (no framework, no build step, inline CSS + JS, zero+external requests, works from `file://`): open `docs/index.html` locally, or serve it from GitHub+Pages. Its centerpiece is the **configurable alert wire** described under [Website](#website) above:+faders and switches for the rule set, and a self-contained event simulation that fires matching+alerts down the wire into a live ticker so you can see exactly what the gate does before wiring a+bot. One-time setup: Settings -> Pages -> Deploy from a branch -> `main` -> `/docs`.## Architecture notesdiff --git a/robinhood/hood-alerts/docs/404.html b/robinhood/hood-alerts/docs/404.htmlnew file mode 100644index 000000000..d4c902c8d--- /dev/null+++ b/robinhood/hood-alerts/docs/404.html@@ -0,0 +1,42 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8" />+<meta name="viewport" content="width=device-width, initial-scale=1" />+<title>hood-alerts: signal lost (404)</title>+<meta name="robots" content="noindex" />+<link rel="canonical" href="https://nirholas.github.io/hood-alerts/" />+<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' fill='%230b0b0c'/><g fill='none' stroke='%23e9e6df' stroke-width='2' stroke-linecap='round'><path d='M3 16 L12 16 L15 8 L18 24 L21 16 L29 16'/></g><circle cx='24' cy='16' r='2.4' fill='%23e9e6df'/></svg>" />+<style>+ *{margin:0;padding:0;box-sizing:border-box}+ :root{--ink:#0b0b0c;--paper:#e9e6df;--graphite:#8b877f;+ --mono:ui-monospace,"SFMono-Regular","Menlo","Consolas",monospace;+ --grot:"Helvetica Neue","Inter","Arial",system-ui,sans-serif}+ body{background:var(--ink);color:var(--paper);font-family:var(--grot);min-height:100vh;+ display:flex;flex-direction:column;justify-content:center;padding:clamp(24px,6vw,88px);gap:22px}+ .eyebrow{font:600 11px/1 var(--mono);letter-spacing:.34em;text-transform:uppercase;color:var(--graphite)}+ h1{font-size:clamp(48px,11vw,140px);font-weight:700;letter-spacing:-.03em;line-height:.9}+ p{max-width:52ch;font-size:clamp(16px,1.7vw,21px);color:#b3afa6;line-height:1.5}+ svg{width:clamp(180px,42vw,340px);height:auto}+ .lane{stroke:rgba(233,230,223,.2);stroke-width:1}+ .sig{fill:none;stroke:var(--paper);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;+ stroke-dasharray:220;stroke-dashoffset:0;animation:flat 3s var(--ease,cubic-bezier(.16,1,.3,1)) infinite}+ @keyframes flat{0%{stroke-dashoffset:220}45%,55%{stroke-dashoffset:0}100%{stroke-dashoffset:-220}}+ @media(prefers-reduced-motion:reduce){.sig{animation:none;stroke-dashoffset:0}}+ a{display:inline-flex;align-self:flex-start;text-decoration:none;border:1px solid rgba(233,230,223,.3);color:var(--paper);+ font:600 12px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;padding:15px 22px;+ transition:background .25s,color .25s}+ a:hover{background:var(--paper);color:var(--ink)}+</style>+</head>+<body>+ <div class="eyebrow">404 / signal lost</div>+ <svg viewBox="0 0 240 60" aria-hidden="true">+ <line class="lane" x1="0" y1="30" x2="240" y2="30"/>+ <path class="sig" d="M0 30 L70 30 L82 10 L96 50 L108 30 L240 30"/>+ </svg>+ <h1>Off the wire.</h1>+ <p>No detector fired for that path, because it doesn't exist. Head back to the wire, flip a switch, and watch the ticker fill.</p>+ <a href="https://nirholas.github.io/hood-alerts/">back to the wire</a>+</body>+</html>diff --git a/robinhood/hood-alerts/docs/_headers b/robinhood/hood-alerts/docs/_headersnew file mode 100644index 000000000..8ccd12762--- /dev/null+++ b/robinhood/hood-alerts/docs/_headers@@ -0,0 +1,7 @@+/*+ X-Content-Type-Options: nosniff+ Referrer-Policy: strict-origin-when-cross-origin+ Permissions-Policy: geolocation=(), microphone=(), camera=()+ X-Frame-Options: SAMEORIGIN+/*.html+ Cache-Control: public, max-age=0, must-revalidatediff --git a/robinhood/hood-alerts/docs/app.js b/robinhood/hood-alerts/docs/app.jsdeleted file mode 100644index 36d09d896..000000000--- a/robinhood/hood-alerts/docs/app.js+++ /dev/null@@ -1,141 +0,0 @@-// Live Robinhood Chain (4663) premium/discount feed, rendered client-side from-// the public RPC. Read-only: this is exactly the arb signal hood-alerts fires-// as its premium detector, computed live in your browser. No wallet, no keys.-(() => {- const SEL_LATEST_ROUND = '0xfeaf968c' // latestRoundData()- const SEL_SLOT0 = '0x3850c7bd' // slot0()- const Q192 = 2n ** 192n-- const els = {- block: document.getElementById('live-block'),- updated: document.getElementById('live-updated'),- count: document.getElementById('live-count'),- cards: document.getElementById('live-cards'),- error: document.getElementById('live-error'),- }- if (!els.cards) return-- let cfg = null-- const word = (hex, i) => BigInt('0x' + hex.slice(2 + i * 64, 2 + (i + 1) * 64))-- async function rpc(method, params) {- const res = await fetch(cfg.rpc, {- method: 'POST',- headers: { 'content-type': 'application/json' },- body: JSON.stringify({ jsonrpc: '2.0', id: 1, method, params }),- })- if (!res.ok) throw new Error('rpc ' + res.status)- const body = await res.json()- if (body.error) throw new Error(body.error.message || 'rpc error')- return body.result- }-- const call = (to, data) => rpc('eth_call', [{ to, data }, 'latest'])-- function sqrtToPrice0in1(sqrtP, dec0, dec1) {- // token1 per token0, decimal-adjusted, as a JS number.- const num = sqrtP * sqrtP * 10n ** BigInt(dec0) * 10n ** 18n- const den = Q192 * 10n ** BigInt(dec1)- return Number(num / den) / 1e18- }-- async function ethUsd() {- try {- const r = await fetch('https://robinhoodchain.blockscout.com/api/v2/stats', { headers: { accept: 'application/json' } })- if (!r.ok) return null- const b = await r.json()- const p = b.coin_price ? Number(b.coin_price) : NaN- return Number.isFinite(p) && p > 0 ? p : null- } catch {- return null- }- }-- function fmtUsd(n) {- if (n >= 1000) return '$' + n.toLocaleString('en-US', { maximumFractionDigits: 2 })- return '$' + n.toFixed(2)- }-- async function loadMarket(m, eth) {- const [feedRes, slotRes] = await Promise.all([call(m.feed, SEL_LATEST_ROUND), call(m.pool, SEL_SLOT0)])- const answer = word(feedRes, 1)- const feedUsd = Number(answer) / 10 ** m.feedDecimals- const sqrtP = word(slotRes, 0)- const price0in1 = sqrtToPrice0in1(sqrtP, m.decimals0, m.decimals1)- if (!(price0in1 > 0)) return null- const stockInQuote = m.stockIs0 ? price0in1 : 1 / price0in1- let dexUsd- if (m.quote === 'USDG') dexUsd = stockInQuote- else if (eth) dexUsd = stockInQuote * eth- else return null- const premiumPct = ((dexUsd - feedUsd) / feedUsd) * 100- return { ...m, feedUsd, dexUsd, premiumPct }- }-- function renderCard(r) {- const abs = Math.abs(r.premiumPct)- const cls = abs < 0.25 ? 'flat' : r.premiumPct >= 0 ? 'prem' : 'disc'- const label = abs < 0.25 ? 'in line' : (r.premiumPct >= 0 ? '+' : '') + r.premiumPct.toFixed(2) + '%'- const word = r.premiumPct >= 0 ? 'premium' : 'discount'- const el = document.createElement('div')- el.className = 'card'- el.innerHTML =- '<div class="row"><span class="sym">' + r.symbol + '</span>' +- '<span class="badge ' + cls + '">' + label + '</span></div>' +- '<div class="prices">' +- '<span>DEX mid <b>' + fmtUsd(r.dexUsd) + '</b> · ' + r.quote + ' pool</span>' +- '<span>Chainlink <b>' + fmtUsd(r.feedUsd) + '</b></span>' +- (abs >= 0.25 ? '<span>trading at a ' + abs.toFixed(2) + '% ' + word + ' on-chain</span>' : '') +- '</div>' +- '<div class="links">' +- '<a href="https://three.ws/markets/robinhood/stock/' + r.symbol + '" target="_blank" rel="noopener">Chart</a>' +- '<a href="https://robinhoodchain.blockscout.com/address/' + r.pool + '" target="_blank" rel="noopener">Pool</a>' +- '</div>'- return el- }-- async function refresh() {- try {- const [blockHex, eth] = await Promise.all([rpc('eth_blockNumber', []), ethUsd()])- if (els.block) els.block.textContent = '#' + parseInt(blockHex, 16).toLocaleString('en-US')- const results = []- for (const m of cfg.markets) {- try {- const r = await loadMarket(m, eth)- if (r) results.push(r)- } catch {- // one bad pool should not sink the feed- }- }- results.sort((a, b) => Math.abs(b.premiumPct) - Math.abs(a.premiumPct))- els.cards.innerHTML = ''- for (const r of results) els.cards.appendChild(renderCard(r))- if (els.count) els.count.textContent = results.length- if (els.updated) els.updated.textContent = new Date().toLocaleTimeString()- if (els.error) els.error.style.display = 'none'- } catch (e) {- if (els.error) {- els.error.style.display = 'block'- els.error.textContent = 'Live feed unavailable right now (' + (e.message || 'network') + '). The public RPC may be rate-limiting; it retries automatically.'- }- }- }-- async function boot() {- try {- const res = await fetch('./live-markets.json')- cfg = await res.json()- } catch {- if (els.error) {- els.error.style.display = 'block'- els.error.textContent = 'Could not load market list.'- }- return- }- await refresh()- setInterval(refresh, 20000)- }-- boot()-})()diff --git a/robinhood/hood-alerts/docs/commands.html b/robinhood/hood-alerts/docs/commands.htmldeleted file mode 100644index 0c134aac1..000000000--- a/robinhood/hood-alerts/docs/commands.html+++ /dev/null@@ -1,78 +0,0 @@-<!doctype html>-<html lang="en">-<head>- <meta charset="utf-8" />- <meta name="viewport" content="width=device-width, initial-scale=1" />- <title>Commands · hood-alerts</title>- <meta name="description" content="Full command reference for the hood-alerts Telegram and Discord bots on Robinhood Chain." />- <link rel="stylesheet" href="styles.css" />-</head>-<body>- <nav class="nav">- <div class="wrap">- <span class="brand"><span class="dot"></span> hood-alerts</span>- <a class="link" href="index.html">Live feed</a>- <a class="link" href="commands.html">Commands</a>- <a class="link" href="premium.html">Premium</a>- <a class="link hide-sm" href="self-host.html">Self-host</a>- <span class="spacer"></span>- <a class="gh" href="https://github.com/nirholas/hood-alerts" target="_blank" rel="noopener">GitHub</a>- </div>- </nav>-- <main class="wrap doc">- <h2>Command reference</h2>- <p class="lead">The same commands work on Telegram (as <code>/watch …</code>) and Discord (as slash commands). In a group or server, config commands are limited to admins; anyone can run <code>list</code>, <code>premium</code>, and <code>help</code>.</p>-- <h3>Watch targets</h3>- <table>- <thead><tr><th>Target</th><th>What you get</th><th>Tier</th></tr></thead>- <tbody>- <tr><td><code>launches</code></td><td>Every new token on NOXA and The Odyssey. Add <code>noxa</code> or <code>odyssey</code> to filter.</td><td>Free</td></tr>- <tr><td><code>graduations</code></td><td>Odyssey bonding curves that fill and migrate to a locked Uniswap v3 pool.</td><td>Free</td></tr>- <tr><td><code>whales [usd]</code></td><td>Trades at or above a USD threshold, chain-wide. Default $5,000.</td><td>Free</td></tr>- <tr><td><code><TICKER></code></td><td>A Stock Token (e.g. <code>TSLA</code>): Chainlink price moves and on-chain premium/discount crossings.</td><td>Free</td></tr>- <tr><td><code><0x address></code></td><td>A specific memecoin: its whale trades, graduation, holder milestones, and liquidity pulls.</td><td>Free</td></tr>- <tr><td><code>premiums [pct]</code></td><td>The Stock Token arbitrage signal: any token trading past a premium/discount threshold vs its oracle. Default 2%.</td><td>Premium</td></tr>- <tr><td><code>rugs [pct]</code></td><td>Liquidity-pull rug early-warning: quote reserves dropping past a threshold. Default 30%.</td><td>Premium</td></tr>- </tbody>- </table>-- <h3>Managing your watches</h3>- <table>- <thead><tr><th>Command</th><th>Does</th></tr></thead>- <tbody>- <tr><td><code>watch <target> [n]</code></td><td>Start watching. Optional threshold: USD for whales/tokens, percent for premiums/rugs/stocks.</td></tr>- <tr><td><code>unwatch <target></code></td><td>Stop watching one target. <code>unwatch all</code> clears everything.</td></tr>- <tr><td><code>list</code></td><td>Your subscriptions, thresholds, tier, digest, and quiet-hour settings.</td></tr>- <tr><td><code>threshold <target> <n></code></td><td>Change a subscription's threshold, e.g. <code>threshold whales 25000</code>.</td></tr>- <tr><td><code>digest on [min]</code> / <code>digest off</code></td><td>Batch alerts into a periodic digest (default every 60 minutes) instead of delivering each one.</td></tr>- <tr><td><code>quiet <from> <to></code></td><td>Quiet hours in UTC, e.g. <code>quiet 22 7</code>. Alerts batch and deliver after. <code>quiet off</code> to disable.</td></tr>- <tr><td><code>premium</code></td><td>Your premium status and how to upgrade.</td></tr>- <tr><td><code>help</code></td><td>The full reference, in-chat.</td></tr>- </tbody>- </table>-- <h3>Examples</h3>- <pre><code>watch launches noxa # only NOXA launches-watch whales 10000 # chain-wide trades ≥ $10k-watch TSLA # TSLA moves + on-chain premium-watch 0x… # one memecoin, fully-watch premiums 3 # Stock Tokens ≥ 3% off oracle (premium)-digest on 120 # one digest every 2 hours-quiet 23 8 # mute 23:00-08:00 UTC</code></pre>-- <div class="callout">Every command answers, always. Unknown commands return help, empty states tell you what to try next ("you watch nothing yet, try <code>watch launches</code>"), and you never see raw JSON.</div>-- <h3>Free vs premium at a glance</h3>- <p>Free: up to 3 subscriptions, alerts batched to a 60-second minimum. Premium: unlimited subscriptions, real-time delivery, and the <code>premiums</code> and <code>rugs</code> detectors. See <a href="premium.html">pricing</a>.</p>- </main>-- <footer>- <div class="wrap">- <div><span class="brand"><span class="dot"></span> hood-alerts</span></div>- <div>Built by <a href="https://x.com/nichxbt">nirholas</a> · <a href="https://three.ws">three.ws</a></div>- </div>- </footer>-</body>-</html>diff --git a/robinhood/hood-alerts/docs/index.html b/robinhood/hood-alerts/docs/index.htmlindex f515b6c51..c2347ab0d 100644--- a/robinhood/hood-alerts/docs/index.html+++ b/robinhood/hood-alerts/docs/index.html@@ -1,122 +1,639 @@<!doctype html><html lang="en"><head>- <meta charset="utf-8" />- <meta name="viewport" content="width=device-width, initial-scale=1" />- <title>hood-alerts · Robinhood Chain alert bots</title>- <meta name="description" content="Real-time Telegram, Discord, and X (Twitter) alerts for Robinhood Chain (4663): memecoin launches, graduations, whale trades, Stock Token price moves, on-chain premium/discount arbitrage, holder milestones, and liquidity-pull rug warnings." />- <link rel="preconnect" href="https://rpc.mainnet.chain.robinhood.com" />- <link rel="stylesheet" href="styles.css" />+<meta charset="utf-8" />+<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />+<title>hood-alerts: set the wire, watch it fire</title>+<meta name="description" content="Real-time alerts for Robinhood Chain (chain 4663). Set the rules with physical faders and switches: whale size, premium band, which detectors run. Synthetic chain events fire down the wire in real time and stack into a live ticker in front of you. Telegram and Discord bots, x402 USDG premium." />+<link rel="canonical" href="https://nirholas.github.io/hood-alerts/" />+<meta name="theme-color" content="#0b0b0c" />+<meta property="og:type" content="website" />+<meta property="og:title" content="hood-alerts: the alert wire" />+<meta property="og:description" content="Tune the alert rules on a physical console and watch Robinhood Chain events fire down the wire into a live ticker. Telegram + Discord bots on one detection engine." />+<meta property="og:url" content="https://nirholas.github.io/hood-alerts/" />+<meta name="twitter:card" content="summary_large_image" />+<meta name="twitter:title" content="hood-alerts: the alert wire" />+<meta name="twitter:description" content="Set the rules with faders and switches; watch Robinhood Chain alerts fire down the wire in real time. Telegram + Discord + x402 premium." />+<meta name="twitter:creator" content="@nichxbt" />+<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' fill='%230b0b0c'/><g fill='none' stroke='%23e9e6df' stroke-width='2' stroke-linecap='round'><path d='M3 16 L12 16 L15 8 L18 24 L21 16 L29 16'/></g><circle cx='24' cy='16' r='2.4' fill='%23e9e6df'/></svg>" />+<script type="application/ld+json">+{"@context":"https://schema.org","@type":"SoftwareApplication","name":"hood-alerts","applicationCategory":"DeveloperApplication","operatingSystem":"Node.js >= 20","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"description":"Real-time alert layer for Robinhood Chain (chain ID 4663): Telegram and Discord bots on one shared detection engine that watches launches, graduations, whale trades, Stock Token price moves, on-chain premium/discount arbitrage, holder milestones, and liquidity-pull rug warnings. Free tier plus x402 USDG premium.","softwareVersion":"0.2.0","author":{"@type":"Person","name":"nirholas","url":"https://x.com/nichxbt"},"downloadUrl":"https://www.npmjs.com/package/hood-alerts","codeRepository":"https://github.com/nirholas/hood-alerts"}+</script>+<style>+ :root{+ --ink:#0b0b0c; --panel:#141417; --panel2:#191a1e; --paper:#e9e6df;+ --graphite:#8b877f; --dim:#b3afa6;+ --line:rgba(233,230,223,.14); --line2:rgba(233,230,223,.30); --line3:rgba(233,230,223,.55);+ --mono:ui-monospace,"SFMono-Regular","JetBrains Mono","Menlo","Consolas",monospace;+ --grot:"Helvetica Neue","Inter","Arial",system-ui,sans-serif;+ --ease:cubic-bezier(.16,1,.3,1);+ --unit:clamp(14px,1.15vw,19px);+ }+ *{margin:0;padding:0;box-sizing:border-box}+ html{-webkit-text-size-adjust:100%; scroll-behavior:smooth}+ body{+ background:var(--ink); color:var(--paper); font-family:var(--grot);+ font-size:var(--unit); line-height:1.5; overflow-x:hidden;+ -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;+ }+ ::selection{background:var(--paper); color:var(--ink)}+ a{color:inherit}+ .mono{font-family:var(--mono); font-feature-settings:"ss01","zero"}++ /* grain + scan on dark */+ body::before{+ content:""; position:fixed; inset:0; z-index:9999; pointer-events:none;+ background:repeating-linear-gradient(0deg,rgba(233,230,223,.02) 0 1px,transparent 1px 3px);+ opacity:.6;+ }+ .scan{position:fixed; left:0; right:0; height:2px; z-index:9998; pointer-events:none;+ background:linear-gradient(90deg,transparent,rgba(233,230,223,.16),transparent);+ animation:scan 8s linear infinite; will-change:transform}+ @keyframes scan{0%{transform:translateY(-10vh)}100%{transform:translateY(110vh)}}+ @media(prefers-reduced-motion:reduce){.scan{display:none} *{animation-duration:.001s!important; transition-duration:.001s!important}}++ /* rail */+ .rail{position:fixed; left:0; top:0; bottom:0; width:56px; z-index:60;+ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;+ border-right:1px solid var(--line); background:var(--ink)}+ .rail b{writing-mode:vertical-rl; transform:rotate(180deg); font:600 11px/1 var(--mono);+ letter-spacing:.35em; text-transform:uppercase; color:var(--graphite); position:absolute; top:16px}+ .rail .stn{writing-mode:vertical-rl; font:500 10px/1 var(--mono); letter-spacing:.28em;+ text-transform:uppercase; color:var(--graphite); padding:14px 0; cursor:pointer;+ transition:color .3s var(--ease); text-decoration:none; opacity:.6}+ .rail .stn:hover{color:var(--paper); opacity:1}+ .rail .stn[aria-current="true"]{color:var(--paper); opacity:1}+ .rail .stn::before{content:"";display:block;width:5px;height:5px;border:1px solid var(--line2);+ border-radius:50%;margin:0 auto 8px;transition:all .3s var(--ease)}+ .rail .stn[aria-current="true"]::before{background:var(--paper);border-color:var(--paper)}+ .rail .carriage{position:absolute;left:-1px;width:2px;background:var(--paper);height:40px;top:0;+ transition:transform .5s var(--ease);will-change:transform}+ main{margin-left:56px}+ @media(max-width:720px){.rail{width:0;border:0}.rail b,.rail .stn,.rail .carriage{display:none}main{margin-left:0}}++ section{position:relative; padding:clamp(58px,9vh,112px) clamp(20px,5vw,88px); border-bottom:1px solid var(--line)}+ .eyebrow{font:600 11px/1 var(--mono); letter-spacing:.34em; text-transform:uppercase;+ color:var(--graphite); display:flex; align-items:center; gap:12px; margin-bottom:24px}+ .eyebrow::after{content:"";flex:1;height:1px;background:var(--line)}+ .eyebrow .n{color:var(--paper)}+ .live{display:inline-flex; align-items:center; gap:7px; color:var(--paper)}+ .live .dot{width:7px;height:7px;border-radius:50%;background:var(--paper);animation:blink 1.4s steps(1) infinite}+ @keyframes blink{50%{opacity:.25}}++ h1,h2{font-family:var(--grot); font-weight:700; letter-spacing:-.03em; line-height:.95}+ h1{font-size:clamp(38px,6vw,84px)}+ h2{font-size:clamp(29px,4.8vw,60px)}+ .lede{max-width:60ch; font-size:clamp(17px,1.7vw,23px); line-height:1.42; color:var(--dim)}++ /* ============ WIRE (hero + signature interaction) ============ */+ #wire{padding-top:clamp(48px,7vh,84px); padding-bottom:clamp(34px,5vh,64px)}+ .boot{font:500 12px/1.7 var(--mono); color:var(--graphite); letter-spacing:.04em; margin-bottom:16px; white-space:pre-wrap; min-height:1.7em}+ @media(max-width:720px){.boot{font-size:10.5px; letter-spacing:0}}+ .boot span{display:inline-block; white-space:pre; opacity:0; animation:type .5s var(--ease) forwards}+ @keyframes type{to{opacity:1}}+ .headline{max-width:16ch}+ .headline .lo{color:var(--graphite)}+ .sub{margin-top:16px; max-width:56ch; font-size:clamp(15px,1.45vw,20px); color:var(--dim)}++ /* the live wire track */+ .track{margin-top:clamp(26px,4vh,44px); position:relative; height:78px; border:1px solid var(--line2);+ background:var(--panel); overflow:hidden}+ .track .lane{position:absolute; left:0; right:0; top:50%; height:1px; background:var(--line); transform:translateY(-50%)}+ .track .cap{position:absolute; top:50%; transform:translateY(-50%); font:600 9.5px/1.3 var(--mono);+ letter-spacing:.16em; text-transform:uppercase; color:var(--graphite); z-index:3}+ .track .cap.src{left:14px; max-width:120px}+ .track .cap.dst{right:14px; text-align:right}+ .track .node{position:absolute; top:50%; transform:translateY(-50%); width:9px; height:9px; z-index:3}+ .track .node.src{left:96px; border:1.5px solid var(--line3); border-radius:50%}+ .track .node.dst{right:150px; border:1.5px solid var(--line3)}+ .gate{position:absolute; top:0; bottom:0; left:46%; width:0; z-index:2; border-left:1.6px dashed var(--line3);+ transition:border-color .2s}+ .gate.flash{border-left-color:var(--paper)}+ .gate .lbl{position:absolute; bottom:6px; left:8px; white-space:nowrap; font:600 9px/1.3 var(--mono);+ letter-spacing:.1em; text-transform:uppercase; color:var(--graphite)}+ .gate .lbl b{color:var(--paper); font-weight:600}+ .pulse{position:absolute; top:50%; left:96px; width:10px; height:10px; margin-top:-5px; z-index:4;+ background:var(--paper); border-radius:50%; will-change:transform,opacity}+ .pulse.fail{background:transparent; border:1.5px solid var(--line3)}+ .meters{display:flex; gap:26px; margin-top:14px; font:600 10px/1 var(--mono); letter-spacing:.14em; text-transform:uppercase; color:var(--graphite)}+ .meters b{color:var(--paper); font-weight:700; font-size:13px}++ .rig{margin-top:clamp(22px,3.4vh,40px); display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr); gap:clamp(20px,3vw,44px); align-items:stretch}+ @media(max-width:900px){.rig{grid-template-columns:1fr; gap:22px}}++ /* console */+ .console{border:1px solid var(--line2); background:var(--panel); padding:20px 22px 24px}+ .console .ch{display:flex; justify-content:space-between; align-items:baseline; margin-bottom:20px}+ .console .ch .t{font:600 10px/1 var(--mono); letter-spacing:.22em; text-transform:uppercase; color:var(--graphite)}+ .fader{margin-bottom:20px}+ .fader .fl{display:flex; justify-content:space-between; align-items:baseline; margin-bottom:11px}+ .fader .fl .k{font:600 11px/1 var(--mono); letter-spacing:.14em; text-transform:uppercase}+ .fader .fl .v{font:700 16px/1 var(--mono); font-feature-settings:"zero"}+ input[type=range]{-webkit-appearance:none; appearance:none; width:100%; height:2px; background:var(--line2); outline:none; cursor:grab; margin:8px 0}+ input[type=range]:active{cursor:grabbing}+ input[type=range]::-webkit-slider-thumb{-webkit-appearance:none; width:14px; height:26px; background:var(--paper); border:0; cursor:grab}+ input[type=range]::-moz-range-thumb{width:14px; height:26px; background:var(--paper); border:0; border-radius:0; cursor:grab}+ input[type=range]:focus-visible{outline:1px solid var(--line3); outline-offset:6px}+ .switches{border-top:1px solid var(--line); padding-top:18px; display:grid; grid-template-columns:1fr 1fr; gap:10px}+ .sw{appearance:none; border:1px solid var(--line2); background:transparent; color:var(--paper);+ display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 13px; cursor:pointer;+ font:600 11px/1 var(--mono); letter-spacing:.08em; text-transform:uppercase; transition:background .2s,border-color .2s}+ .sw:hover{border-color:var(--line3)}+ .sw .st{font-size:9px; letter-spacing:.14em; color:var(--graphite); border:1px solid var(--line2); padding:4px 6px}+ .sw[aria-pressed="true"]{background:var(--paper); color:var(--ink); border-color:var(--paper)}+ .sw[aria-pressed="true"] .st{color:var(--ink); border-color:rgba(11,11,12,.3)}+ .sw .lock{font-size:8px; letter-spacing:.1em; color:var(--graphite)}+ .sw[aria-pressed="true"] .lock{color:rgba(11,11,12,.55)}++ /* ticker */+ .ticker{border:1px solid var(--line2); background:var(--panel); display:flex; flex-direction:column; min-height:340px}+ .ticker .th{display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid var(--line); flex:0 0 auto}+ .ticker .th .t{font:600 10px/1 var(--mono); letter-spacing:.22em; text-transform:uppercase; color:var(--graphite)}+ .feed{position:relative; overflow:hidden; flex:1 1 auto; padding:6px 0}+ .card{display:grid; grid-template-columns:auto 1fr auto; gap:14px; align-items:center; padding:13px 18px;+ border-bottom:1px solid var(--line); animation:drop .5s var(--ease)}+ .card:last-child{border-bottom:0}+ @keyframes drop{from{opacity:0; transform:translateY(-10px)}to{opacity:1; transform:none}}+ .card .g{width:34px; height:34px; border:1px solid var(--line2); display:flex; align-items:center; justify-content:center;+ font:700 11px/1 var(--mono); letter-spacing:.04em}+ .card .body .t{font:600 14.5px/1.25 var(--grot); letter-spacing:-.01em}+ .card .body .s{font:500 11px/1.3 var(--mono); color:var(--graphite); margin-top:4px; letter-spacing:.02em}+ .card .r{text-align:right; white-space:nowrap}+ .card .r .val{font:700 14px/1 var(--mono); font-feature-settings:"zero"}+ .card .r .pl{display:inline-block; margin-top:7px; font:600 8.5px/1 var(--mono); letter-spacing:.12em;+ border:1px solid var(--line2); padding:4px 6px; color:var(--graphite)}+ .feed .empty{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding:24px;+ text-align:center; font:500 13px/1.5 var(--mono); color:var(--graphite); letter-spacing:.02em}++ .scrollcue{margin-top:clamp(18px,3.4vh,34px); font:600 10px/1 var(--mono); letter-spacing:.3em; text-transform:uppercase; color:var(--graphite); display:flex; align-items:center; gap:10px}+ .scrollcue i{display:block; width:26px; height:1px; background:var(--graphite); position:relative; overflow:hidden}+ .scrollcue i::after{content:"";position:absolute;inset:0;background:var(--paper);animation:sweep 2.4s var(--ease) infinite}+ @keyframes sweep{0%{transform:translateX(-100%)}60%,100%{transform:translateX(100%)}}++ /* generic layouts */+ .cols{display:grid; grid-template-columns:1fr 1fr; gap:clamp(30px,5vw,80px); align-items:start}+ @media(max-width:860px){.cols{grid-template-columns:1fr; gap:34px}}+ .rows{border-top:1px solid var(--line); margin-top:clamp(22px,4vh,44px)}+ .rows .r{display:grid; grid-template-columns:200px 150px 1fr; gap:20px; padding:16px 0; border-bottom:1px solid var(--line); align-items:baseline}+ @media(max-width:760px){.rows .r{grid-template-columns:1fr; gap:5px}}+ .rows .r .nm{font:600 14px/1.3 var(--grot); letter-spacing:-.01em}+ .rows .r .tp{font:600 10.5px/1.3 var(--mono); letter-spacing:.06em; text-transform:uppercase; color:var(--graphite)}+ .rows .r .ds{font-size:15px; color:var(--dim); max-width:56ch}++ .install{border:1px solid var(--line2); background:var(--panel); color:var(--paper); padding:22px;+ font:500 13.5px/1.85 var(--mono); position:relative; overflow-x:auto; word-break:break-word}+ .install .c,.install .p,.install .pc{display:block}+ .install .c{color:var(--graphite); margin-top:15px}+ .install .c:first-child{margin-top:0}+ .install .p::before{content:"$ "; color:var(--graphite)}+ .copy{position:absolute; top:12px; right:12px; appearance:none; border:1px solid var(--line2);+ background:transparent; color:var(--paper); font:600 10px/1 var(--mono); letter-spacing:.14em; padding:7px 11px; cursor:pointer; transition:background .2s}+ .copy:hover{background:rgba(233,230,223,.1)}++ .cmdbox{border:1px solid var(--line2); background:var(--panel); padding:22px 24px; font:500 13px/2.1 var(--mono)}+ .cmdbox .l{display:grid; grid-template-columns:150px 1fr; gap:16px; padding:5px 0}+ @media(max-width:560px){.cmdbox .l{grid-template-columns:1fr; gap:2px; padding:8px 0}}+ .cmdbox .l .cmd{color:var(--paper)}+ .cmdbox .l .exp{color:var(--graphite)}++ /* three transports */+ .trio{display:grid; grid-template-columns:repeat(3,1fr); border:1px solid var(--line2); margin-top:12px}+ @media(max-width:820px){.trio{grid-template-columns:1fr}}+ .trio .tp{padding:24px 22px 26px; border-right:1px solid var(--line)}+ .trio .tp:last-child{border-right:0}+ @media(max-width:820px){.trio .tp{border-right:0; border-bottom:1px solid var(--line)}.trio .tp:last-child{border-bottom:0}}+ .trio .tp .bd{font:600 10px/1 var(--mono); letter-spacing:.16em; text-transform:uppercase; color:var(--graphite); margin-bottom:14px}+ .trio .tp h3{font:700 22px/1.05 var(--grot); letter-spacing:-.02em; margin-bottom:10px}+ .trio .tp p{font-size:14.5px; color:var(--dim); line-height:1.5}+ .trio .tp .tag{display:inline-block; margin-top:14px; font:600 9.5px/1 var(--mono); letter-spacing:.1em; text-transform:uppercase; border:1px solid var(--line2); padding:6px 9px; color:var(--graphite)}++ /* pricing */+ .price{display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--line2); margin-top:12px}+ @media(max-width:640px){.price{grid-template-columns:1fr}}+ .price .col{padding:26px 24px}+ .price .col.pro{background:var(--panel); border-left:1px solid var(--line)}+ @media(max-width:640px){.price .col.pro{border-left:0; border-top:1px solid var(--line)}}+ .price .col .tier{font:600 11px/1 var(--mono); letter-spacing:.18em; text-transform:uppercase; color:var(--graphite); margin-bottom:16px}+ .price .col .amt{font:700 40px/.9 var(--grot); letter-spacing:-.03em; margin-bottom:20px}+ .price .col .amt small{font:500 13px/1 var(--mono); color:var(--graphite); letter-spacing:.04em}+ .price ul{list-style:none}+ .price li{font-size:14.5px; color:var(--dim); padding:9px 0 9px 22px; position:relative; border-top:1px solid var(--line)}+ .price li:first-child{border-top:0}+ .price li::before{content:"+"; position:absolute; left:0; color:var(--paper); font-family:var(--mono)}+ .price li.no{color:var(--graphite)}+ .price li.no::before{content:"×"; color:var(--graphite)}++ .btns{display:flex; flex-wrap:wrap; gap:12px; margin-top:26px}+ .btn{appearance:none; text-decoration:none; border:1px solid var(--line2); color:var(--paper); background:transparent;+ font:600 12px/1 var(--mono); letter-spacing:.12em; text-transform:uppercase; padding:15px 22px; cursor:pointer;+ transition:background .25s,color .25s,transform .25s var(--ease),border-color .25s}+ .btn:hover{background:var(--paper); color:var(--ink); border-color:var(--paper); transform:translateY(-2px)}+ .btn.solid{background:var(--paper); color:var(--ink); border-color:var(--paper)}+ .btn.solid:hover{background:transparent; color:var(--paper); border-color:var(--line2)}++ .note{margin-top:22px; border-left:2px solid var(--line3); padding:4px 0 4px 18px; font-size:14.5px; color:var(--dim); max-width:72ch; line-height:1.55}+ .note b{color:var(--paper); font-weight:700}++ footer{padding:clamp(40px,6vh,72px) clamp(20px,5vw,88px); display:flex; flex-wrap:wrap;+ justify-content:space-between; gap:20px; align-items:flex-end}+ footer .big{font:700 clamp(30px,6vw,72px)/.9 var(--grot); letter-spacing:-.03em}+ footer .meta{font:500 12px/1.7 var(--mono); color:var(--graphite); letter-spacing:.02em; text-align:right}+ footer a{text-decoration:none; border-bottom:1px solid var(--line2); transition:border-color .2s}+ footer a:hover{border-color:var(--paper)}++ .rise{opacity:0; transform:translateY(22px); transition:opacity .8s var(--ease),transform .8s var(--ease)}+ .rise.in{opacity:1; transform:none}+</style></head><body>- <nav class="nav">- <div class="wrap">- <span class="brand"><span class="dot"></span> hood-alerts</span>- <a class="link" href="index.html">Live feed</a>- <a class="link hide-sm" href="commands.html">Commands</a>- <a class="link" href="premium.html">Premium</a>- <a class="link hide-sm" href="self-host.html">Self-host</a>- <span class="spacer"></span>- <a class="gh" href="https://github.com/nirholas/hood-alerts" target="_blank" rel="noopener">GitHub</a>+<div class="scan" aria-hidden="true"></div>++<nav class="rail" aria-label="Sections">+ <b>hood·alerts</b>+ <span class="carriage" id="carriage"></span>+ <a class="stn" href="#wire" aria-current="true">Wire</a>+ <a class="stn" href="#detect">Detect</a>+ <a class="stn" href="#bots">Bots</a>+ <a class="stn" href="#premium">Premium</a>+ <a class="stn" href="#host">Host</a>+ <a class="stn" href="#get">Get it</a>+</nav>++<main>+ <!-- ============ WIRE ============ -->+ <section id="wire">+ <p class="boot mono" id="boot"></p>+ <div class="eyebrow"><span class="n">00</span> / THE ALERT WIRE · chain 4663 · <span class="live"><span class="dot"></span>live</span></div>+ <h1 class="headline">Set the wire.<br><span class="lo">Watch it fire.</span></h1>+ <p class="sub">One detection engine watches Robinhood Chain. You set the rules with physical faders and switches; matching events fire down the wire in real time and stack into the ticker. This is the same gate the Telegram and Discord bots run, made visible.</p>++ <div class="track" id="track" aria-hidden="true">+ <span class="cap src">detector</span>+ <span class="node src"></span>+ <span class="lane"></span>+ <span class="gate" id="gate"><span class="lbl" id="gatelbl">gate</span></span>+ <span class="node dst"></span>+ <span class="cap dst">ticker →</span></div>- </nav>-- <header class="hero">- <div class="wrap">- <span class="chip"><span class="live"></span> Live · Robinhood Chain · ID 4663</span>- <h1>Alerts for the chain that<br /><span class="grad">never sleeps.</span></h1>- <p class="sub">Telegram and Discord bots, plus auto-posting to X (Twitter), that watch Robinhood Chain in real time: launches, graduations, whale trades, Stock Token moves, on-chain premium/discount arbitrage, holder milestones, and liquidity-pull rug warnings.</p>- <div class="cta">- <a class="btn primary" href="commands.html">See the commands</a>- <a class="btn ghost" href="#live">Watch it live ↓</a>+ <div class="meters">+ <span>fired <b id="m-fired">0</b></span>+ <span>filtered <b id="m-filtered">0</b></span>+ <span>rate <b id="m-rate">0</b>/min</span>+ </div>++ <div class="rig">+ <div class="console" aria-label="Alert rule console">+ <div class="ch"><span class="t">console · rules</span><span class="t">chain 4663</span></div>+ <div class="fader">+ <div class="fl"><span class="k">whale size ≥</span><span class="v" id="v-whale">$5.0k</span></div>+ <input type="range" id="s-whale" min="1000" max="100000" step="1000" value="5000" aria-label="Whale trade size threshold in USD" />+ </div>+ <div class="fader">+ <div class="fl"><span class="k">premium band ≥</span><span class="v" id="v-prem">3.0%</span></div>+ <input type="range" id="s-prem" min="5" max="200" step="5" value="30" aria-label="Stock Token premium/discount band in percent" />+ </div>+ <div class="switches" id="switches">+ <button class="sw" data-topic="launches" aria-pressed="true">launches<span class="st">on</span></button>+ <button class="sw" data-topic="graduations" aria-pressed="true">graduations<span class="st">on</span></button>+ <button class="sw" data-topic="whales" aria-pressed="true">whales<span class="st">on</span></button>+ <button class="sw" data-topic="premiums" aria-pressed="false">premiums<span class="lock">pro</span><span class="st">off</span></button>+ <button class="sw" data-topic="rugs" aria-pressed="false">rugs<span class="lock">pro</span><span class="st">off</span></button>+ <button class="sw" data-topic="holders" aria-pressed="true">holders<span class="st">on</span></button>+ </div>+ </div>++ <div class="ticker">+ <div class="th"><span class="t">live ticker</span><span class="t"><span class="live"><span class="dot"></span>streaming</span></span></div>+ <div class="feed" id="feed">+ <div class="empty" id="empty">every switch is off. flip one to arm the wire.</div>+ </div></div></div>- </header>-- <section id="live">- <div class="wrap">- <div class="section-head">- <div class="kicker">Live premium detector</div>- <h2>What would be alerting right now</h2>- <p>The Stock Token arbitrage signal, computed in your browser from the public RPC. When a token's DEX mid drifts from its Chainlink oracle, premium subscribers get a card like this.</p>++ <div class="scrollcue"><i></i> what it detects</div>+ </section>++ <!-- ============ DETECT ============ -->+ <section id="detect">+ <div class="eyebrow"><span class="n">01</span> / WHAT IT DETECTS</div>+ <h2>Seven detectors,<br>one shared engine.</h2>+ <p class="lede" style="margin-top:22px">Every event is deduped per fingerprint, routed through a premium / quiet-hours / digest gate, and rendered as a platform-native card with links back to the explorer and three.ws/markets/robinhood.</p>+ <div class="rows" id="detectors"></div>+ </section>++ <!-- ============ BOTS ============ -->+ <section id="bots">+ <div class="eyebrow"><span class="n">02</span> / THREE TRANSPORTS · one router</div>+ <h2>Telegram, Discord,<br>and X, off one gate.</h2>+ <p class="lede" style="margin-top:22px">Both bots share one command router, so the UX is identical modulo native slash-command versus <span class="mono">/command arg</span> syntax. Leave a token unset and that transport simply stays dark; the engine and console transport keep running regardless.</p>++ <div class="trio">+ <div class="tp">+ <div class="bd">01 · inbound</div>+ <h3>Telegram</h3>+ <p>Message the bot, <span class="mono">watch whales 10000</span>, done. Built on grammY; registers its command list on startup. In groups, mutating commands are admin-only.</p>+ <span class="tag">grammY · two-way</span></div>- <div class="feed-meta">- <span>Chain head <b id="live-block">…</b></span>- <span><b id="live-count">…</b> markets tracked</span>- <span>Updated <b id="live-updated">…</b></span>+ <div class="tp">+ <div class="bd">02 · inbound</div>+ <h3>Discord</h3>+ <p>Native slash commands, guild-visible immediately on startup. Built on discord.js; alerts render as embeds. Same router, same topics, same thresholds.</p>+ <span class="tag">discord.js · slash</span></div>- <div id="live-error" class="feed-error" style="display:none"></div>- <div id="live-cards" class="cards">- <div class="skeleton"></div><div class="skeleton"></div><div class="skeleton"></div>+ <div class="tp">+ <div class="bd">03 · broadcast</div>+ <h3>X (Twitter)</h3>+ <p>Broadcast-only. Posts a fixed topic set via the official API v2 (OAuth1, signed in-house) or a self-hosted XActions session. Every post is compacted to 280 chars, URL never truncated.</p>+ <span class="tag">official or xactions</span></div>- <p class="feed-note">Read-only, live from <code>rpc.mainnet.chain.robinhood.com</code>. Prices are already Chainlink multiplier-adjusted. This is display data, not investment advice.</p>+ </div>++ <div class="cmdbox" style="margin-top:36px" aria-label="Bot commands">+ <div class="l"><span class="cmd">watch <what> [n]</span><span class="exp">launches · graduations · whales [usd] · premiums [pct] · rugs [pct] · TICKER · 0xADDRESS</span></div>+ <div class="l"><span class="cmd">unwatch <what|all></span><span class="exp">stop watching a topic, or everything</span></div>+ <div class="l"><span class="cmd">list</span><span class="exp">your active subscriptions</span></div>+ <div class="l"><span class="cmd">threshold <what> <n></span><span class="exp">change a subscription's threshold</span></div>+ <div class="l"><span class="cmd">digest on|off [min]</span><span class="exp">batch alerts into digests (default 60 min)</span></div>+ <div class="l"><span class="cmd">quiet <from> <to></span><span class="exp">quiet hours in UTC, e.g. quiet 22 7</span></div>+ <div class="l"><span class="cmd">premium</span><span class="exp">premium status and how to upgrade</span></div></div></section>- <section>- <div class="wrap">- <div class="section-head">- <div class="kicker">Real alerts, real chain</div>- <h2>Seven detectors, one stream</h2>- <p>Captured from live mainnet during the build. Each renders as an inline card in Telegram and a rich embed in Discord.</p>- </div>- <div class="cards">- <div class="card">- <div class="row"><span class="sym">New launch: on NOXA</span><span class="badge flat">launch</span></div>- <div class="prices"><span>Instant Uniswap v3 pool, no bonding curve</span><span>Creator, first pool, and block, the moment it lists</span></div>- </div>- <div class="card">- <div class="row"><span class="sym">Whale buy</span><span class="badge prem">≥ threshold</span></div>- <div class="prices"><span>Configurable USD floor, per-token or chain-wide</span><span>Odyssey bonding curve and Uniswap v3, valued in USD</span></div>- </div>- <div class="card">- <div class="row"><span class="sym">RKLB premium</span><span class="badge prem">+12.15%</span></div>- <div class="prices"><span>DEX mid <b>$75.32</b> vs Chainlink <b>$67.16</b></span><span>On-chain buyers paying above the oracle</span></div>+ <!-- ============ PREMIUM ============ -->+ <section id="premium">+ <div class="eyebrow"><span class="n">03</span> / FREE VS PREMIUM · x402 on-chain</div>+ <div class="cols">+ <div>+ <h2>The arb signals<br>are paid.<br>The rest is free.</h2>+ <p class="lede" style="margin-top:22px">The premium/discount arbitrage feed and the liquidity-pull rug warning are the premium detectors. Everything else runs free, forever. Premium is paid on Robinhood Chain itself via x402: sign a USDG authorization, and the entitlement activates only once the transfer settles on-chain. A signature alone buys nothing.</p>+ <div class="btns">+ <a class="btn solid" href="https://www.npmjs.com/package/hood-alerts">npm</a>+ <a class="btn" href="https://github.com/nirholas/hood-alerts">source</a>+ <a class="btn" href="https://github.com/nirholas/hood402">hood402 · x402</a></div>- <div class="card">- <div class="row"><span class="sym">MSTR discount</span><span class="badge disc">-8.65%</span></div>- <div class="prices"><span>DEX mid <b>$85.81</b> vs Chainlink <b>$93.94</b></span><span>Trading below oracle on-chain</span></div>+ </div>+ <div>+ <div class="price">+ <div class="col">+ <div class="tier">free</div>+ <div class="amt">$0</div>+ <ul>+ <li>3 subscriptions</li>+ <li>Launches, graduations, whales</li>+ <li>Price moves, holder milestones</li>+ <li>Batched: one alert / 60s, rest fold into a digest</li>+ <li class="no">Premium arb signal</li>+ <li class="no">Liquidity-pull rug warning</li>+ </ul>+ </div>+ <div class="col pro">+ <div class="tier">premium</div>+ <div class="amt">5 <small>USDG / 30 days</small></div>+ <ul>+ <li>Unlimited subscriptions</li>+ <li>Real-time delivery (your quiet hours only)</li>+ <li><b>premiums</b> Stock Token arb signal</li>+ <li><b>rugs</b> liquidity-pull warning</li>+ <li>Paid via x402 USDG, chain 4663</li>+ <li>Settles on-chain before it activates</li>+ </ul>+ </div></div>- <div class="card">- <div class="row"><span class="sym">Liquidity pull</span><span class="badge disc">rug warning</span></div>- <div class="prices"><span>Quote reserves dropped past your threshold</span><span>An early warning, minutes before the chart</span></div>+ </div>+ </div>+ </section>++ <!-- ============ HOST ============ -->+ <section id="host">+ <div class="eyebrow"><span class="n">04</span> / SELF-HOST</div>+ <div class="cols">+ <div>+ <h2>Runs with zero<br>config first.</h2>+ <p class="lede" style="margin-top:22px">With no environment variables the engine still runs: detectors connect to the public Robinhood Chain RPC, alerts print as structured JSON on the console transport, and <span class="mono">/healthz</span> comes up on :8080. That is the smoke-test mode. Add a Telegram and/or Discord token to go live on those platforms.</p>+ <div class="note">The console transport is not a fallback, it's the proof: a fresh self-host confirms the pipeline works on real chain events before you touch a bot token.</div>+ </div>+ <div>+ <div class="install">+ <button class="copy">COPY</button><span class="c"># smoke test: console transport, no tokens</span><span class="p" id="cmd-host">npm install</span><span class="p">npm run dev</span><span class="c"># go live: fill in a bot token, then</span><span class="p">npm run build</span><span class="p">npm start</span><span class="c"># one container: engine + HTTP + both bots</span><span class="p">docker build -f hood-alerts/Dockerfile -t hood-alerts .</span></div>- <div class="card">- <div class="row"><span class="sym">Holder milestone</span><span class="badge flat">1,000</span></div>- <div class="prices"><span>Crossed a holder-count milestone</span><span>Growth signal from Blockscout counters</span></div>+ <div class="cmdbox" style="margin-top:18px">+ <div class="l"><span class="cmd">GET /</span><span class="exp">service metadata + endpoint list</span></div>+ <div class="l"><span class="cmd">GET /healthz</span><span class="exp">uptime, last event, per-type counts</span></div>+ <div class="l"><span class="cmd">GET /premium/status</span><span class="exp">tier + expiry for a chat</span></div>+ <div class="l"><span class="cmd">POST /premium/activate</span><span class="exp">the x402 purchase flow (402 → settle → 200)</span></div></div></div></div></section>- <section>- <div class="wrap">- <div class="section-head">- <div class="kicker">How it works</div>- <h2>One engine. Both platforms. Your rules.</h2>+ <!-- ============ GET ============ -->+ <section id="get">+ <div class="eyebrow"><span class="n">05</span> / GET IT</div>+ <div class="cols">+ <div>+ <h2>Point it at the chain.<br>Flip the switches.</h2>+ <p class="lede" style="margin-top:22px">One long-running process holds the engine, the HTTP server, and both bots. Run it as a warm service with a volume at <span class="mono">/data</span> so subscriptions, entitlements, and the delivery log survive restarts. SIGTERM flushes pending digests before exit.</p>+ <div class="btns">+ <a class="btn solid" href="https://github.com/nirholas/hood-alerts#readme">read the docs</a>+ <a class="btn" href="https://t.me/BotFather">create a bot</a>+ </div></div>- <div class="grid">- <div class="feat"><span class="tag">detect</span><h3>Every event, deduped</h3><p>A single stream consumer fans out to every subscriber with per-event dedup, so you hear about a launch once, not once per pool.</p></div>- <div class="feat"><span class="tag">route</span><h3>Thresholds you set</h3><p>Whale floors in USD, price moves in percent, premium and rug thresholds per subscription. Watch a ticker, a token address, or the whole chain.</p></div>- <div class="feat"><span class="tag">respect</span><h3>Quiet hours and digests</h3><p>Batch alerts into a digest, mute overnight in your timezone, and stay under a hard per-minute cap so you are never flooded.</p></div>- <div class="feat"><span class="tag">group</span><h3>Group-chat ready</h3><p>Add the bot to a Telegram group or Discord server; config commands are admin-only, alerts land for everyone.</p></div>- <div class="feat"><span class="tag">premium</span><h3>Arb and rug detectors</h3><p>The Stock Token premium/discount signal and the liquidity-pull rug warning are the premium tier. Free tier covers launches, whales, and moves.</p></div>- <div class="feat"><span class="tag">host</span><h3>One container</h3><p>Engine plus both bots plus a health endpoint in a single process. Deploy to Cloud Run with min-instances 1 and go.</p></div>- <div class="feat"><span class="tag">broadcast</span><h3>X (Twitter), your choice of mode</h3><p>Official X API v2 (OAuth1, your own developer app) or a free self-hosted <a href="https://github.com/nirholas/XActions" target="_blank" rel="noopener">xactions</a> instance — pick whichever fits, config-driven topics, no code changes.</p></div>+ <div>+ <div class="install">+ <button class="copy">COPY</button><span class="c"># from the parent robinhood/ directory</span><span class="p">docker build -f hood-alerts/Dockerfile \</span><span class="pc"> -t hood-alerts .</span><span class="c"># run as a warm service, volume at /data</span><span class="p">gcloud run deploy hood-alerts \</span><span class="pc"> --min-instances=1 --no-cpu-throttling \</span><span class="pc"> --port=8080</span>+ </div></div></div></section><footer>- <div class="wrap">- <div>- <span class="brand"><span class="dot"></span> hood-alerts</span>- <p class="legal">Stock Tokens are tokenized debt securities (issuer: Robinhood Assets (Jersey) Ltd) and may not be offered, sold, or delivered to US persons (with further limits in Canada, the UK, and Switzerland). hood-alerts displays public on-chain data only and does not offer, solicit, or facilitate any purchase of Stock Tokens. Not investment advice.</p>- </div>- <div>Built by <a href="https://x.com/nichxbt">nirholas</a> · <a href="https://three.ws">three.ws</a></div>+ <div class="big">hood-<br>alerts</div>+ <div class="meta">+ Robinhood Chain 4663 · Telegram · Discord · X<br>+ <a href="https://github.com/nirholas/hood-alerts">github.com/nirholas/hood-alerts</a><br>+ <a href="https://www.npmjs.com/package/hood-alerts">npmjs.com/package/hood-alerts</a><br>+ MIT · built by <a href="https://x.com/nichxbt">@nichxbt</a> · not affiliated with Robinhood Markets</div></footer>+</main>++<script>+"use strict";++/* ---------- boot line ---------- */+(function boot(){+ const el=document.getElementById('boot');+ const line='● detection engine online · chain 4663 · public rpc · dedup + gate armed';+ [...line].forEach((ch,i)=>{ const s=document.createElement('span'); s.textContent=ch; s.style.animationDelay=(i*12+120)+'ms'; el.appendChild(s); });+})();++/* ---------- console state ---------- */+const state = {+ whale: 5000, prem: 3.0,+ topics: { launches:true, graduations:true, whales:true, premiums:false, rugs:false, holders:true },+};+const MEMES = ['DOGZ','PEPE4663','HOODCAT','NOXAINU','ODYSSEY','WIFHOOD','BONKR','GIGA','MOONPIG','FROGE'];+const STOCKS = ['AAPL','TSLA','NVDA','GME','MSTR','COIN','SPY','AMZN'];+const PLATS = ['TG','DC','X'];+const rand = a => a[Math.floor(Math.random()*a.length)];+const ri = (lo,hi) => Math.floor(Math.random()*(hi-lo+1))+lo;++/* range faders */+function paint(el){ const p=(el.value-el.min)/(el.max-el.min)*100; el.style.background=`linear-gradient(90deg,var(--paper) 0 ${p}%,var(--line2) ${p}% 100%)`; }+const sWhale=document.getElementById('s-whale'), sPrem=document.getElementById('s-prem');+const vWhale=document.getElementById('v-whale'), vPrem=document.getElementById('v-prem');+function fmtK(n){ return n>=1000 ? '$'+(n/1000).toFixed(1)+'k' : '$'+n; }+function syncWhale(){ state.whale=+sWhale.value; vWhale.textContent=fmtK(state.whale); paint(sWhale); updateGate(); }+function syncPrem(){ state.prem=+sPrem.value/10; vPrem.textContent=state.prem.toFixed(1)+'%'; paint(sPrem); updateGate(); }+sWhale.addEventListener('input', syncWhale);+sPrem.addEventListener('input', syncPrem);++/* switches */+document.querySelectorAll('.sw').forEach(btn=>{+ btn.addEventListener('click', ()=>{+ const on = btn.getAttribute('aria-pressed')!=='true';+ btn.setAttribute('aria-pressed', on);+ btn.querySelector('.st').textContent = on?'on':'off';+ state.topics[btn.dataset.topic]=on;+ updateGate();+ });+});++const gate=document.getElementById('gate'), gatelbl=document.getElementById('gatelbl');+function updateGate(){+ const active = Object.entries(state.topics).filter(([,v])=>v).map(([k])=>k);+ gatelbl.innerHTML = active.length+ ? `whale ≥ <b>${fmtK(state.whale)}</b> · prem ≥ <b>${state.prem.toFixed(1)}%</b> · ${active.length} on`+ : 'all detectors off';+ const anyOn = active.length>0;+ const empty=document.getElementById('empty');+ if(empty) empty.textContent = anyOn ? 'armed. waiting for the next matching event…' : 'every switch is off. flip one to arm the wire.';+}++/* ---------- event generation ---------- */+function makeEvent(){+ const pool=['launch','graduation','whale','premium','rug','holder'];+ const kind=rand(pool);+ if(kind==='launch'){ const lp=rand(['NOXA','The Odyssey']); return {kind, topic:'launches', tok:rand(MEMES), g:'LN', t:`New launch · ${rand(MEMES)}`, s:`${lp} · instant pool`, val:'LP live', pass: state.topics.launches}; }+ if(kind==='graduation'){ return {kind, topic:'graduations', g:'GR', t:`Graduated · ${rand(MEMES)}`, s:'Odyssey curve → Uniswap v3', val:'migrated', pass: state.topics.graduations}; }+ if(kind==='whale'){ const usd=ri(1,120)*1000; const side=rand(['buy','sell']); return {kind, topic:'whales', g:'WH', t:`Whale ${side} · ${rand(MEMES)}`, s:'chain-wide swap', val:'$'+(usd/1000).toFixed(0)+'k', pass: state.topics.whales && usd>=state.whale}; }+ if(kind==='premium'){ const st=rand(STOCKS); const p=(Math.random()*24-12); return {kind, topic:'premiums', g:'PR', t:`${st} ${p>=0?'premium':'discount'}`, s:'DEX mid vs Chainlink', val:(p>=0?'+':'')+p.toFixed(1)+'%', pass: state.topics.premiums && Math.abs(p)>=state.prem}; }+ if(kind==='rug'){ const pull=ri(22,80); return {kind, topic:'rugs', g:'RG', t:`Liquidity pull · ${rand(MEMES)}`, s:'quote reserves dropping', val:'-'+pull+'%', pass: state.topics.rugs}; }+ const ms=rand(['1,000','10,000','25,000','100,000']); return {kind, topic:'holders', g:'HD', t:`${rand(MEMES)} crossed ${ms}`, s:'holder milestone', val:ms, pass: state.topics.holders};+}++/* ---------- the wire animation ---------- */+const track=document.getElementById('track');+const feed=document.getElementById('feed');+let SRC_X=96, DST_X=0, GATE_X=0;+function measure(){ const w=track.clientWidth; DST_X=w-160; GATE_X=w*0.46; }+measure(); addEventListener('resize', measure);+const reduce = matchMedia('(prefers-reduced-motion: reduce)').matches;++let fired=0, filtered=0, times=[];+const mFired=document.getElementById('m-fired'), mFiltered=document.getElementById('m-filtered'), mRate=document.getElementById('m-rate');++function pushCard(ev){+ const empty=document.getElementById('empty'); if(empty) empty.remove();+ const c=document.createElement('div'); c.className='card';+ const plat=rand(PLATS);+ const now=new Date();+ const ts=String(now.getHours()).padStart(2,'0')+':'+String(now.getMinutes()).padStart(2,'0')+':'+String(now.getSeconds()).padStart(2,'0');+ c.innerHTML = `<div class="g">${ev.g}</div>+ <div class="body"><div class="t">${ev.t}</div><div class="s">${ev.s} · ${ts}</div></div>+ <div class="r"><div class="val">${ev.val}</div><div class="pl">${plat}</div></div>`;+ feed.prepend(c);+ while(feed.querySelectorAll('.card').length>8){ feed.querySelector('.card:last-child').remove(); }+ fired++; mFired.textContent=fired;+ times.push(Date.now()); times=times.filter(t=>Date.now()-t<60000);+ mRate.textContent = times.length;+}++function spawnPulse(ev){+ if(reduce){ if(ev.pass) pushCard(ev); else { filtered++; mFiltered.textContent=filtered; } return; }+ const d=document.createElement('span'); d.className='pulse'+(ev.pass?'':' fail');+ track.appendChild(d);+ const target = ev.pass ? DST_X : GATE_X;+ const dur = 1.15 * (target - SRC_X) / Math.max(1,(DST_X - SRC_X));+ requestAnimationFrame(()=>requestAnimationFrame(()=>{+ d.style.transition=`transform ${dur.toFixed(2)}s linear`;+ d.style.transform=`translateX(${(target-SRC_X).toFixed(0)}px)`;+ }));+ setTimeout(()=>{+ if(ev.pass){ gate.classList.add('flash'); setTimeout(()=>gate.classList.remove('flash'),160); }+ }, dur*1000*0.9);+ setTimeout(()=>{+ if(ev.pass){ pushCard(ev); d.remove(); }+ else{ filtered++; mFiltered.textContent=filtered; d.style.transition='opacity .3s'; d.style.opacity='0'; setTimeout(()=>d.remove(),320); }+ }, dur*1000);+}++/* loop */+let loopTimer=null;+function tick(){+ const anyOn = Object.values(state.topics).some(Boolean);+ if(anyOn && document.visibilityState==='visible'){+ // bias toward events on active topics so the wire feels responsive+ let ev=makeEvent(), tries=0;+ while(!state.topics[ev.topic] && tries<3){ ev=makeEvent(); tries++; }+ spawnPulse(ev);+ }+ loopTimer=setTimeout(tick, ri(650,1150));+}++/* init */+paint(sWhale); paint(sPrem); syncWhale(); syncPrem(); updateGate();+setTimeout(tick, 900);+document.addEventListener('visibilitychange', ()=>{ /* loop self-gates on visibility */ });++/* ---------- detectors table ---------- */+const DET=[+ ['New token launch','launches','NOXA (instant Uniswap v3 pool) and The Odyssey (bonding curve).'],+ ['Bonding-curve graduation','graduations','An Odyssey curve fills and migrates to a locked Uniswap v3 pool.'],+ ['Whale trades','whales · token','Curve trades and v3 swaps chain-wide, threshold in USD.'],+ ['Stock Token price moves','stock:SYMBOL','Chainlink feed, rolling window, signed percent change.'],+ ['Premium / discount arb','premiums · pro','DEX mid vs Chainlink, hysteresis ladder at 1/2/3/5/10/20/50%.'],+ ['Holder milestones','token:0x…','Blockscout holder count crossing 10 through 100,000.'],+ ['Liquidity-pull rug','rugs · pro','A tracked pool\'s quote reserves dropping sharply. An early warning, not proof.'],+];+const dtb=document.getElementById('detectors');+DET.forEach(d=>{+ const r=document.createElement('div'); r.className='r rise';+ r.innerHTML=`<div class="nm">${d[0]}</div><div class="tp">${d[1]}</div><div class="ds">${d[2]}</div>`;+ dtb.appendChild(r);+});++/* ---------- copy buttons ---------- */+document.querySelectorAll('.copy').forEach(btn=>{+ btn.addEventListener('click', ()=>{+ const box=btn.parentElement;+ const txt=[...box.querySelectorAll('.p,.pc')].map(s=>s.textContent).join('\n');+ navigator.clipboard.writeText(txt).then(()=>{+ const t=btn.textContent; btn.textContent='COPIED'; setTimeout(()=>btn.textContent=t,1200);+ }).catch(()=>{});+ });+});++/* ---------- reveal + rail ---------- */+const io=new IntersectionObserver(es=>{ es.forEach(e=>{ if(e.isIntersecting){ e.target.classList.add('in'); io.unobserve(e.target);} }); },{threshold:.12});+document.querySelectorAll('.rise').forEach((el,i)=>{ el.style.transitionDelay=(i%3*60)+'ms'; io.observe(el); });- <script src="app.js"></script>+const stations=[...document.querySelectorAll('.rail .stn')];+const secs=stations.map(a=>document.querySelector(a.getAttribute('href')));+const carriage=document.getElementById('carriage');+function updateRail(){+ let idx=0, mid=innerHeight*0.4;+ secs.forEach((sec,i)=>{ const r=sec.getBoundingClientRect(); if(r.top<=mid) idx=i; });+ stations.forEach((s,i)=>s.setAttribute('aria-current', i===idx));+ const active=stations[idx];+ const railRect=document.querySelector('.rail').getBoundingClientRect();+ const r=active.getBoundingClientRect();+ carriage.style.height=r.height+'px';+ carriage.style.transform=`translateY(${r.top-railRect.top}px)`;+}+stations.forEach(a=>a.addEventListener('click',e=>{ e.preventDefault(); document.querySelector(a.getAttribute('href')).scrollIntoView({behavior:'smooth'}); }));+addEventListener('scroll',()=>requestAnimationFrame(updateRail),{passive:true});+addEventListener('resize',updateRail); updateRail();+</script></body></html>diff --git a/robinhood/hood-alerts/docs/live-markets.json b/robinhood/hood-alerts/docs/live-markets.jsondeleted file mode 100644index 1753486d7..000000000--- a/robinhood/hood-alerts/docs/live-markets.json+++ /dev/null@@ -1,94 +0,0 @@-{- "generatedAt": "2026-07-16T17:22:02.175Z",- "chainId": 4663,- "rpc": "https://rpc.mainnet.chain.robinhood.com",- "multicall3": "0xca11bde05977b3631167028862be2a173976ca11",- "weth": "0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73",- "usdg": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",- "markets": [- {- "symbol": "ASML",- "name": "ASML Holding NV • Robinhood Token",- "token": "0x47F93d52cBeC7C6D2CfC080e154002370a60dAEA",- "feed": "0xB4106147E8cce40b7d46124090d373A71b70f87D",- "feedDecimals": 8,- "pool": "0xedb22516B14Eb2d1C86927Db373B0E8bF70F5cD1",- "decimals0": 18,- "decimals1": 6,- "stockIs0": true,- "quote": "USDG"- },- {- "symbol": "GME",- "name": "GameStop • Robinhood Token",- "token": "0x1b0E319c6A659F002271B69dB8A7df2F911c153E",- "feed": "0x27C71df6A64fB476468EdF256CF72c038baB5B67",- "feedDecimals": 8,- "pool": "0xE9713f453aDB9245B19559790c96F470a18F2fDF",- "decimals0": 18,- "decimals1": 6,- "stockIs0": true,- "quote": "USDG"- },- {- "symbol": "MSTR",- "name": "Strategy Inc. • Robinhood Token",- "token": "0xec262a75e413fAfD0dF80480274532C79D42da09",- "feed": "0x396118bdFB181e6240E74D243F266B061c0edc3D",- "feedDecimals": 8,- "pool": "0x17578C0e0D15da44f31677263114F71aE76653EA",- "decimals0": 6,- "decimals1": 18,- "stockIs0": false,- "quote": "USDG"- },- {- "symbol": "NVDA",- "name": "NVIDIA • Robinhood Token",- "token": "0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC",- "feed": "0x379EC4f7C378F34a1B47E4F3cbeBCbAC3E8E9F15",- "feedDecimals": 8,- "pool": "0xB944cec30Bd4175855215D767ADC81F39e5f7E2B",- "decimals0": 6,- "decimals1": 18,- "stockIs0": false,- "quote": "USDG"- },- {- "symbol": "QQQ",- "name": "Invesco QQQ • Robinhood Token",- "token": "0xD5f3879160bc7c32ebb4dC785F8a4F505888de68",- "feed": "0x80901d846d5D7B030F26B480776EE3b29374C2ae",- "feedDecimals": 8,- "pool": "0xEbD78dcfc8a6b3A696f1E191aD1ff321f9579f79",- "decimals0": 6,- "decimals1": 18,- "stockIs0": false,- "quote": "USDG"- },- {- "symbol": "RKLB",- "name": "Rocket Lab Corporation • Robinhood Token",- "token": "0x3b14C39E89D60D627b42a1A4CA45b5bb45Fc12e2",- "feed": "0x045477BF65Aef6f4F2386ad0164579e48381CC74",- "feedDecimals": 8,- "pool": "0xa9888De1B9D64A93eaeb495A39FE9B3d00654928",- "decimals0": 18,- "decimals1": 6,- "stockIs0": true,- "quote": "USDG"- },- {- "symbol": "TSM",- "name": "Taiwan Semiconductor Manufacturing • Robinhood Token",- "token": "0x58FfE4a942d3885bAa22D7520691F611EF09e7AA",- "feed": "0x874cF94aa8eC88Fd9560094dD065f2fB3E41Fc2F",- "feedDecimals": 8,- "pool": "0x07e8Ea83D4C1340774c8965125e26e12bf943bf1",- "decimals0": 18,- "decimals1": 6,- "stockIs0": true,- "quote": "USDG"- }- ]-}diff --git a/robinhood/hood-alerts/docs/premium.html b/robinhood/hood-alerts/docs/premium.htmldeleted file mode 100644index 0dd563638..000000000--- a/robinhood/hood-alerts/docs/premium.html+++ /dev/null@@ -1,82 +0,0 @@-<!doctype html>-<html lang="en">-<head>- <meta charset="utf-8" />- <meta name="viewport" content="width=device-width, initial-scale=1" />- <title>Premium · hood-alerts</title>- <meta name="description" content="hood-alerts premium: unlimited real-time alerts plus the Stock Token arbitrage and rug early-warning detectors, paid in USDG on Robinhood Chain via x402." />- <link rel="stylesheet" href="styles.css" />-</head>-<body>- <nav class="nav">- <div class="wrap">- <span class="brand"><span class="dot"></span> hood-alerts</span>- <a class="link" href="index.html">Live feed</a>- <a class="link hide-sm" href="commands.html">Commands</a>- <a class="link" href="premium.html">Premium</a>- <a class="link hide-sm" href="self-host.html">Self-host</a>- <span class="spacer"></span>- <a class="gh" href="https://github.com/nirholas/hood-alerts" target="_blank" rel="noopener">GitHub</a>- </div>- </nav>-- <main class="wrap doc">- <h2>Premium</h2>- <p class="lead">The free tier is genuinely useful. Premium removes the limits and unlocks the two detectors most worth paying for: the Stock Token arbitrage signal and the liquidity-pull rug early-warning.</p>-- <div class="tiers">- <div class="tier">- <h3>Free</h3>- <div class="price">$0</div>- <ul>- <li>Up to 3 subscriptions</li>- <li>Launches, graduations, whales</li>- <li>Stock Token price moves</li>- <li>Per-token holder milestones</li>- <li>Digest mode and quiet hours</li>- <li class="no">Premium / discount arb detector</li>- <li class="no">Rug early-warning detector</li>- <li class="no">Real-time (free is batched to 60s)</li>- </ul>- </div>- <div class="tier pro">- <h3>Premium</h3>- <div class="price">5 USDG <span>/ 30 days</span></div>- <ul>- <li>Unlimited subscriptions</li>- <li>Real-time delivery, no batching floor</li>- <li>Premium / discount arbitrage signal</li>- <li>Liquidity-pull rug early-warning</li>- <li>Everything in Free</li>- </ul>- </div>- </div>-- <h3>How payment works</h3>- <p>Premium is sold over <strong>x402</strong> (the HTTP 402 payment standard) settling in <strong>USDG on Robinhood Chain</strong> through the <a href="https://github.com/nirholas/hood402" target="_blank" rel="noopener">hood402</a> rail. There is no card, no account, and no custody: your wallet signs a USDG transfer authorization and the entitlement flips the moment it settles on-chain.</p>- <ol>- <li>In the bot, run <code>premium</code> to get your activation link.</li>- <li>POST to it with any x402 client (<code>hood402</code>, <code>x402-fetch</code>). The first request returns a <code>402</code> with signed payment instructions.</li>- <li>Your client signs the USDG <code>transferWithAuthorization</code> and retries. Settlement is verified on-chain, then premium activates for your chat.</li>- </ol>- <pre><code># Example: activate with the hood402 client-POST https://your-instance/premium/activate?platform=telegram&chat=<chatId>-# -> 402 with x402 payment requirements (price, payTo, network: robinhood)-# -> client signs USDG transferWithAuthorization, retries with X-PAYMENT-# -> 200 { activated: true, tier: "premium", expiresAt, transaction }</code></pre>- <div class="callout">The entitlement never activates before the USDG transfer settles. A signature alone buys nothing, and extensions stack on your remaining time rather than resetting it.</div>-- <h3>Alternative rail (self-hosters)</h3>- <p>The engine is rail-agnostic. The reference build settles USDG on Robinhood Chain end-to-end; an <strong>x402 USDC-on-Base</strong> facilitator is documented as a drop-in alternative. See the <a href="self-host.html">self-host guide</a> for wiring your own <code>payTo</code>, facilitator, or self-settlement key.</p>-- <p class="legal">Payments buy alert-delivery entitlements only. hood402 moves USDG you already hold on Robinhood Chain; hood-alerts never takes custody and never trades on your behalf.</p>- </main>-- <footer>- <div class="wrap">- <div><span class="brand"><span class="dot"></span> hood-alerts</span></div>- <div>Built by <a href="https://x.com/nichxbt">nirholas</a> · <a href="https://three.ws">three.ws</a></div>- </div>- </footer>-</body>-</html>diff --git a/robinhood/hood-alerts/docs/robots.txt b/robinhood/hood-alerts/docs/robots.txtnew file mode 100644index 000000000..f71442aef--- /dev/null+++ b/robinhood/hood-alerts/docs/robots.txt@@ -0,0 +1,3 @@+User-agent: *+Allow: /+Sitemap: https://nirholas.github.io/hood-alerts/sitemap.xmldiff --git a/robinhood/hood-alerts/docs/self-host.html b/robinhood/hood-alerts/docs/self-host.htmldeleted file mode 100644index 2f5dcabf8..000000000--- a/robinhood/hood-alerts/docs/self-host.html+++ /dev/null@@ -1,95 +0,0 @@-<!doctype html>-<html lang="en">-<head>- <meta charset="utf-8" />- <meta name="viewport" content="width=device-width, initial-scale=1" />- <title>Self-host · hood-alerts</title>- <meta name="description" content="Run your own hood-alerts instance: one container with the engine and both bots, deploy to Google Cloud Run, wire premium payments." />- <link rel="stylesheet" href="styles.css" />-</head>-<body>- <nav class="nav">- <div class="wrap">- <span class="brand"><span class="dot"></span> hood-alerts</span>- <a class="link" href="index.html">Live feed</a>- <a class="link hide-sm" href="commands.html">Commands</a>- <a class="link" href="premium.html">Premium</a>- <a class="link" href="self-host.html">Self-host</a>- <span class="spacer"></span>- <a class="gh" href="https://github.com/nirholas/hood-alerts" target="_blank" rel="noopener">GitHub</a>- </div>- </nav>-- <main class="wrap doc">- <h2>Self-host</h2>- <p class="lead">hood-alerts is one long-running process: the detection engine, an HTTP server (<code>/healthz</code> plus the premium endpoints), and both bots, each enabled by the presence of its token. It is a service, not a cron job.</p>-- <h3>Run it locally</h3>- <pre><code>git clone https://github.com/nirholas/hood-alerts-cd hood-alerts-# Until the sibling packages are on npm, link them locally:-npm i ../robinhood-chain-sdk ../hoodkit ../hood402-npm install-cp .env.example .env # fill in what you use (all optional)-npm run build && npm start</code></pre>- <p>With zero configuration it runs the engine plus the console transport, printing every alert it detects to stdout. That is the smoke test:</p>- <pre><code>npm run probe # 90s live detection against mainnet 4663, no tokens-npm run probe -- --token 0xTOKEN --seconds 300</code></pre>-- <h3>Add the bots</h3>- <table>- <thead><tr><th>Env var</th><th>How to get it</th></tr></thead>- <tbody>- <tr><td><code>HOOD_ALERTS_TELEGRAM_TOKEN</code></td><td>Message <a href="https://t.me/BotFather" target="_blank" rel="noopener">@BotFather</a>, run <code>/newbot</code>, copy the token.</td></tr>- <tr><td><code>HOOD_ALERTS_DISCORD_TOKEN</code><br /><code>HOOD_ALERTS_DISCORD_APP_ID</code></td><td>Create an app at the <a href="https://discord.com/developers/applications" target="_blank" rel="noopener">Discord Developer Portal</a>; copy the Bot token and Application ID. Invite it with <code>applications.commands</code> + <code>bot</code> scopes.</td></tr>- <tr><td><code>HOOD_ALERTS_X_MODE=official</code><br /><code>HOOD_ALERTS_X_API_KEY</code> / <code>_API_SECRET</code> / <code>_ACCESS_TOKEN</code> / <code>_ACCESS_SECRET</code></td><td>X API v2 (OAuth1, user-context). Create an app at <a href="https://developer.x.com" target="_blank" rel="noopener">developer.x.com</a> with read+write access, copy the four credentials. Needs a posting-capable API tier — check current pricing there.</td></tr>- <tr><td><code>HOOD_ALERTS_X_MODE=xactions</code><br /><code>HOOD_ALERTS_XACTIONS_URL</code> / <code>_XACTIONS_TOKEN</code></td><td>Free, self-hosted alternative: point at your own running <a href="https://github.com/nirholas/XActions" target="_blank" rel="noopener">xactions</a> instance. Browser-session automation, not the official API — ToS risk, delivery isn't confirmed synchronously.</td></tr>- <tr><td><code>HOOD_ALERTS_X_TOPICS</code></td><td>Comma-separated topics to auto-post (default <code>launches,graduations,whales</code>). No inbound X bot, so this is fixed at startup, not set via a chat command.</td></tr>- </tbody>- </table>- <p>Each transport is optional: set only the tokens you want. The others stay disabled and log a warning.</p>-- <h3>Premium payments</h3>- <p>Premium purchase endpoints stay off (returning a helpful <code>503</code>) until you set a receiving address and one settlement mode:</p>- <table>- <thead><tr><th>Env var</th><th>Purpose</th></tr></thead>- <tbody>- <tr><td><code>HOOD402_PAY_TO</code></td><td>Address that receives premium USDG. Required to sell premium.</td></tr>- <tr><td><code>HOOD402_FACILITATOR_URL</code></td><td>Settlement mode A: delegate verify + settle to a hood402 facilitator. No gas key on this box.</td></tr>- <tr><td><code>HOOD402_SETTLER_KEY</code></td><td>Settlement mode B: self-settle by broadcasting <code>transferWithAuthorization</code> yourself. A funded gas key.</td></tr>- <tr><td><code>HOOD_ALERTS_PREMIUM_PRICE_USDG</code><br /><code>HOOD_ALERTS_PREMIUM_DAYS</code></td><td>Price and duration of one purchase. Defaults: 5 USDG for 30 days.</td></tr>- </tbody>- </table>- <div class="callout warn">Prefer facilitator mode. If you use a settler key, treat it like any hot wallet: fund it with only the ETH gas it needs, and never commit it. Every wallet key comes from the environment; nothing is read from code.</div>-- <p>To comp a chat or test premium delivery before wiring a rail:</p>- <pre><code>npm run grant-premium -- grant telegram <chatId> --days 30-npm run grant-premium -- status telegram <chatId>-npm run grant-premium -- revoke telegram <chatId></code></pre>-- <h3>Deploy to Cloud Run</h3>- <p>The build context is the parent <code>robinhood/</code> directory so the local <code>file:</code> siblings resolve.</p>- <pre><code># From robinhood/ (the parent of hood-alerts/)-docker build -f hood-alerts/Dockerfile -t hood-alerts .--# Push and deploy (long-running service: keep one warm instance)-gcloud run deploy hood-alerts \- --image=REGION-docker.pkg.dev/PROJECT/repo/hood-alerts:latest \- --min-instances=1 --no-cpu-throttling \- --set-env-vars=HOOD_ALERTS_TELEGRAM_TOKEN=…,HOOD_ALERTS_DISCORD_TOKEN=…,HOOD_ALERTS_DISCORD_APP_ID=… \- --set-env-vars=HOOD402_PAY_TO=0x… \- --port=8080</code></pre>- <p>Mount a persistent volume at <code>/data</code> (the default <code>HOOD_ALERTS_DB</code> path) so subscriptions, entitlements, and the delivery log survive restarts. The container answers <code>GET /healthz</code> with uptime, the last event time, and per-type event counts; graceful shutdown on <code>SIGTERM</code> flushes any pending digests.</p>-- <h3>Configuration reference</h3>- <p>Every knob is an environment variable with a sensible default; see <code>.env.example</code> in the repo for the full annotated list, including detector thresholds (<code>HOOD_ALERTS_WHALE_FLOOR_USD</code>, <code>HOOD_ALERTS_PRICE_WINDOW_S</code>, <code>HOOD_ALERTS_RUG_DEFAULT_PCT</code>, and more).</p>- </main>-- <footer>- <div class="wrap">- <div><span class="brand"><span class="dot"></span> hood-alerts</span></div>- <div>Built by <a href="https://x.com/nichxbt">nirholas</a> · <a href="https://three.ws">three.ws</a></div>- </div>- </footer>-</body>-</html>diff --git a/robinhood/hood-alerts/docs/sitemap.xml b/robinhood/hood-alerts/docs/sitemap.xmlnew file mode 100644index 000000000..57e9b044b--- /dev/null+++ b/robinhood/hood-alerts/docs/sitemap.xml@@ -0,0 +1,4 @@+<?xml version="1.0" encoding="UTF-8"?>+<urlset xmlns="http://www.sitemap.org/schemas/sitemap/0.9">+ <url><loc>https://nirholas.github.io/hood-alerts/</loc><changefreq>weekly</changefreq><priority>1.0</priority></url>+</urlset>diff --git a/robinhood/hood-alerts/docs/styles.css b/robinhood/hood-alerts/docs/styles.cssdeleted file mode 100644index 3e958aca7..000000000--- a/robinhood/hood-alerts/docs/styles.css+++ /dev/null@@ -1,147 +0,0 @@-/* hood-alerts docs. Dark-first, one accent gradient, system type stack. */-:root {- --bg: #0a0b0d;- --bg-elev: #121317;- --bg-elev-2: #181a20;- --border: #23262e;- --border-strong: #313641;- --text: #e7e9ee;- --text-dim: #9aa1ad;- --text-faint: #6b7280;- --accent: #7c5cff;- --accent-2: #21d4a8;- --up: #21d4a8;- --down: #ff5c7c;- --warn: #ffb020;- --grad: linear-gradient(120deg, #7c5cff 0%, #21d4a8 100%);- --radius: 12px;- --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;- --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;-}--* { box-sizing: border-box; }-html { scroll-behavior: smooth; }-body {- margin: 0;- background: var(--bg);- color: var(--text);- font-family: var(--sans);- line-height: 1.6;- -webkit-font-smoothing: antialiased;-}-a { color: var(--accent); text-decoration: none; }-a:hover { text-decoration: underline; }-:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }--.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }--/* nav */-.nav {- position: sticky; top: 0; z-index: 50;- background: rgba(10, 11, 13, 0.82);- backdrop-filter: blur(12px);- border-bottom: 1px solid var(--border);-}-.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }-.brand { font-weight: 700; letter-spacing: -0.02em; font-size: 16px; display: flex; align-items: center; gap: 9px; }-.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 14px rgba(124, 92, 255, 0.6); }-.nav a.link { color: var(--text-dim); font-size: 14px; font-weight: 500; }-.nav a.link:hover { color: var(--text); text-decoration: none; }-.nav .spacer { flex: 1; }-.nav .gh { color: var(--text-dim); font-size: 13px; border: 1px solid var(--border-strong); padding: 6px 12px; border-radius: 8px; }--/* hero */-.hero { padding: 76px 0 48px; text-align: center; }-.chip {- display: inline-flex; align-items: center; gap: 8px;- font-size: 12px; color: var(--text-dim); font-family: var(--mono);- border: 1px solid var(--border-strong); border-radius: 999px; padding: 5px 13px; margin-bottom: 24px;-}-.chip .live { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px var(--up); animation: pulse 1.8s infinite; }-@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }-h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 18px; font-weight: 800; }-h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }-.sub { font-size: clamp(16px, 2.4vw, 20px); color: var(--text-dim); max-width: 640px; margin: 0 auto 32px; }-.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }-.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; }-.btn.primary { background: var(--grad); color: #0a0b0d; }-.btn.primary:hover { text-decoration: none; filter: brightness(1.07); }-.btn.ghost { border-color: var(--border-strong); color: var(--text); background: var(--bg-elev); }-.btn.ghost:hover { text-decoration: none; border-color: var(--accent); }--/* sections */-section { padding: 40px 0; }-.section-head { margin-bottom: 22px; }-.section-head h2 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 6px; }-.section-head p { color: var(--text-dim); margin: 0; font-size: 15px; }-.kicker { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-2); margin-bottom: 8px; }--/* live feed */-.feed-meta { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); margin-bottom: 16px; }-.feed-meta b { color: var(--text); font-weight: 600; }-.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }-.card {- background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);- padding: 16px 18px; transition: border-color 0.16s, transform 0.16s;-}-.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }-.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }-.card .sym { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }-.card .badge { font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }-.badge.prem { color: var(--up); background: rgba(33, 212, 168, 0.12); }-.badge.disc { color: var(--down); background: rgba(255, 92, 124, 0.12); }-.badge.flat { color: var(--text-dim); background: var(--bg-elev-2); }-.card .prices { font-family: var(--mono); font-size: 13px; color: var(--text-dim); margin-top: 10px; display: flex; flex-direction: column; gap: 3px; }-.card .prices b { color: var(--text); }-.card .links { margin-top: 12px; display: flex; gap: 14px; font-size: 12.5px; }-.card .links a { color: var(--text-dim); }-.card .links a:hover { color: var(--accent); text-decoration: none; }-.skeleton { height: 118px; background: linear-gradient(90deg, var(--bg-elev) 25%, var(--bg-elev-2) 50%, var(--bg-elev) 75%); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--radius); border: 1px solid var(--border); }-@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }-.feed-note { color: var(--text-faint); font-size: 12.5px; margin-top: 14px; }-.feed-error { color: var(--warn); font-size: 13.5px; background: rgba(255, 176, 32, 0.08); border: 1px solid rgba(255, 176, 32, 0.25); border-radius: 10px; padding: 12px 14px; }--/* feature grid */-.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }-.feat { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }-.feat h3 { margin: 0 0 6px; font-size: 15.5px; }-.feat p { margin: 0; color: var(--text-dim); font-size: 14px; }-.feat .tag { display: inline-block; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); border: 1px solid var(--border-strong); border-radius: 5px; padding: 2px 6px; margin-bottom: 10px; }--/* content pages */-.doc h2 { font-size: 26px; letter-spacing: -0.02em; margin: 40px 0 10px; }-.doc h3 { font-size: 18px; margin: 30px 0 8px; }-.doc p, .doc li { color: var(--text); }-.doc .lead { color: var(--text-dim); font-size: 17px; }-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }-th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }-th { color: var(--text-dim); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }-td code, .doc p code, li code { font-family: var(--mono); font-size: 12.5px; background: var(--bg-elev-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; color: var(--accent-2); }-pre { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.55; }-pre code { color: var(--text); }-.callout { border-left: 3px solid var(--accent); background: var(--bg-elev); border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 20px 0; color: var(--text-dim); font-size: 14px; }-.callout.warn { border-left-color: var(--warn); }--/* pricing */-.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }-.tier { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }-.tier.pro { border-color: var(--accent); box-shadow: 0 0 40px rgba(124, 92, 255, 0.12); }-.tier h3 { margin: 0 0 4px; font-size: 20px; }-.tier .price { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 16px; }-.tier .price span { font-size: 14px; font-weight: 500; color: var(--text-dim); }-.tier ul { list-style: none; padding: 0; margin: 0; }-.tier li { padding: 7px 0 7px 26px; position: relative; color: var(--text); font-size: 14.5px; border-top: 1px solid var(--border); }-.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }-.tier li.no { color: var(--text-faint); }-.tier li.no::before { content: "-"; color: var(--text-faint); }--/* footer */-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; margin-top: 48px; color: var(--text-dim); font-size: 14px; }-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }-.legal { color: var(--text-faint); font-size: 12px; max-width: 620px; margin-top: 10px; }--@media (max-width: 680px) {- .tiers { grid-template-columns: 1fr; }- .nav .wrap { gap: 14px; }- .nav a.link.hide-sm { display: none; }-}diff --git a/robinhood/hood-alerts/netlify.toml b/robinhood/hood-alerts/netlify.tomlnew file mode 100644index 000000000..22906a37f--- /dev/null+++ b/robinhood/hood-alerts/netlify.toml@@ -0,0 +1,4 @@+# Netlify — publish the static site in docs/.+[build]+ publish = "docs"+ command = ""diff --git a/robinhood/hood-alerts/vercel.json b/robinhood/hood-alerts/vercel.jsonnew file mode 100644index 000000000..6093773c9--- /dev/null+++ b/robinhood/hood-alerts/vercel.json@@ -0,0 +1,6 @@+{+ "$schema": "https://openapi.vercel.sh/vercel.json",+ "outputDirectory": "docs",+ "cleanUrls": true,+ "framework": null+}diff --git a/robinhood/hood-alerts/wrangler.toml b/robinhood/hood-alerts/wrangler.tomlnew file mode 100644index 000000000..90fb9f259--- /dev/null+++ b/robinhood/hood-alerts/wrangler.toml@@ -0,0 +1,4 @@+# Cloudflare Pages — static deploy of the docs/ site.+# Used by the "Deploy to Cloudflare" button and `wrangler pages deploy docs`.+name = "hood-alerts"+pages_build_output_dir = "docs"