hood-alerts

The alert layer for Robinhood Chain (chain ID 4663): Telegram and Discord bots, plus optional
X (Twitter) auto-posting, backed by 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.
What it detects
| Detector | Topic | Source |
|---|
| New token launch | launches (launches:noxa, launches:odyssey) | NOXA (instant Uniswap v3 pool) and The Odyssey (bonding curve) |
| Bonding-curve graduation | graduations | Odyssey curve fills and migrates to a locked Uniswap v3 pool |
| Whale trades | whales, or per-token token:0x… | Odyssey curve trades and Uniswap v3 swaps, chain-wide, threshold in USD |
| Stock Token price moves | stock:SYMBOL | Chainlink feed, rolling window, signed percent change |
| On-chain premium/discount (the arb signal) | premiums (premium tier) | DEX mid vs Chainlink feed, hysteresis ladder at 1/2/3/5/10/20/50% |
| Holder milestones | per-token token:0x… | Blockscout token_holders_count, crossing 10 through 100,000 |
| Liquidity-pull rug warning | rugs (premium tier), or per-token token:0x… | tracked pool's quote-side (USDG/WETH) reserves dropping sharply |
Every event is deduped per fingerprint before it reaches a subscriber, routed through a
premium/quiet-hours/digest gate, and rendered as a platform-native card (Telegram HTML, Discord
embed, a compact X post, or a structured console log line) with links back to the chain explorer
and three.ws/markets/robinhood.
Quickstart (self-host)
npm install
npm run dev # tsx watch, console transport only if no bot tokens are set
With zero environment variables the engine still runs: detectors connect to the public Robinhood
Chain RPC, alerts print as structured JSON log lines (the console transport), and /healthz comes
up on :8080. That is the self-host smoke-test mode. Copy .env.example to .env and fill in a
Telegram and/or Discord bot token to go live on those platforms; see .env.example for every
variable, defaults, and what each detector threshold controls.
npm run build # tsc -> dist/
npm start # node dist/src/index.js
Creating the bots
- Telegram: message @BotFather,
/newbot, paste the token into
HOOD_ALERTS_TELEGRAM_TOKEN. The bot registers its command list on startup.
- Discord: create an application at the
Developer Portal, add a bot, copy the bot token
into
HOOD_ALERTS_DISCORD_TOKEN and the application id into HOOD_ALERTS_DISCORD_APP_ID. Slash
commands register (guild-visible immediately) on startup.
Leaving either token unset disables that transport; the engine and the console transport keep
running regardless.
X (Twitter)
X is a broadcast-only transport: there is no inbound bot, so you cannot DM the account and get a
reply the way you can with Telegram or Discord. What it auto-posts is fixed at startup by
HOOD_ALERTS_X_TOPICS (default launches,graduations,whales) instead of watch/unwatch
commands, parsed through the same topic resolver the bots use. Pick exactly one of two modes
via HOOD_ALERTS_X_MODE; see .env.example for the full variable list.
official: the real X API v2, POST /2/tweets, signed with your own developer app's OAuth1
user-context credentials. This is the normal, ToS-compliant path, and it costs money: X gates
posting behind a paid API tier. Check current pricing at
developer.x.com/en/portal/products/buy before
relying on it; it has changed before and can change again.
Setup: create an app at the developer portal, generate a
consumer key/secret (HOOD_ALERTS_X_API_KEY / HOOD_ALERTS_X_API_SECRET), then generate an
access token/secret with read and write permissions (HOOD_ALERTS_X_ACCESS_TOKEN /
HOOD_ALERTS_X_ACCESS_SECRET). All four are required; hood-alerts signs every request itself with
Node's built-in crypto (HMAC-SHA1 per RFC 5849), no extra dependency.