Agentic Trading Lab
Talk to agents, and test trading ideas. Try AI trading agents on real market data with no code required.
AI translation
AI Infra Narrative Terminal for Chinese AI investors.
Translation pending
FinanceTypeScript · CSSGitHub @mengchen-atxOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Real-time AI investment intelligence: X Filtered Stream → parallel LLM analysis → WeChat push. Live product with paying users. Next.js 15 · TypeScript · PostgreSQL
Translation pending
Taken from the repository README
Loading the full README.
Read the full README ↗Real-time AI investment intelligence. Serenity follows 17 investment and AI-infrastructure voices on X. It analyzes each post with LLMs: translation, summary, and bullish/bearish ticker extraction. Results go to a web dashboard and to subscribers on WeChat, typically within a minute of the original post.
It is a live product with paying users. I designed, built, and operate it end to end.
🔗 Live: alphaline.fit → click “Explore as guest” for a one-click, read-only demo (no sign-up).
| Sources tracked | 17 X accounts, one channel each |
| Posts ingested and analyzed | 9,000+ since May 2026 (live counter on the login page) |
| Tickers covered | 1,300+ |
| Customers | 100+ paying subscribers to date |
| LLM robustness suite | 152 / 152 cases passed across two rounds (reports) |
flowchart LR
X[(X Filtered Stream)] -->|SSE| D[Stream daemon<br/>Railway · Docker]
D -->|POST /api/stream/ingest| P[Ingest pipeline<br/>Next.js on Vercel]
C[Cron · REST polling<br/>fallback mode] --> P
P -->|dedupe by tweet id + SHA-256| DB[(PostgreSQL<br/>Supabase · Prisma)]
P -->|Promise.any race| L1[DeepSeek]
P -->|Promise.any race| L2[Xiaomi MiMo]
P --> W[WxPusher → WeChat]
DB --> UI[Dashboard · Alpha Map<br/>Supply chain · AI chat]
F[Finnhub] --> UI
Resilient streaming ingestion (scripts/stream-daemon.ts)
Reliable structured output from LLMs (lib/ai.ts, lib/ai-normalize.ts)
Promise.any, so one provider's outage, quota, or malformed output doesn't block delivery.jsonrepair, then Zod validation and normalization (confidence scaling, ticker dedupe).Deduplication and push bookkeeping (lib/pipeline.ts)
Auth, access control, and abuse protection
lib/session-token.ts).middleware.ts).Frontend
unstable_cache for the expensive aggregate queries.| Alpha Map: ticker and narrative network | Ticker page: supply-chain position and earnings |
|---|---|
| Supply-chain heat map | Login with guest mode |
App: Next.js 15, React 19, TypeScript, Tailwind CSS, D3 Data: PostgreSQL (Supabase, pgbouncer), Prisma AI: DeepSeek and Xiaomi MiMo (OpenAI-compatible APIs), Zod, jsonrepair. Anthropic and Gemini adapters are also included. Infra: Vercel (web and API), Railway (stream daemon, Docker), GitHub Actions (CI) Integrations: X API v2, WxPusher (WeChat), Finnhub
app/ Next.js routes: dashboard, auth, guest demo, API handlers
api/stream/ingest Authenticated endpoint the stream daemon posts to
api/cron Scheduled polling, retries, and maintenance
lib/ Domain logic
pipeline.ts Ingest → dedupe → analyze → store → push
ai.ts Provider routing and the parallel model race
ai-normalize.ts JSON extraction, repair, and validation of model output
channels.ts Per-channel access control
session-token.ts Signed session tokens
prisma/ Schema and migrations
scripts/ Stream daemon and operational scripts (see scripts/README.md)
tests/ Vitest unit tests
docs/benchmarks/ LLM robustness test reports
npm install --legacy-peer-deps
cp .env.example .env.local # fill in DATABASE_URL, OPENAI_API_KEY, TWITTER_BEARER_TOKEN, ...
npm run prisma:migrate
npm run dev # http://localhost:3000
# Optional: run the real-time ingestion daemon
npx tsx --env-file=.env.local scripts/stream-daemon.ts
npm run lint
npm run typecheck
npm test # Vitest unit tests
npm run test:coverage
CI runs all of the above on every push and pull request.
For information and research only. Not investment advice.