Skip to content

Firstyjps/pulse-terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

130 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pulse Terminal

Crypto Macro Intelligence Terminal — multi-source flow analysis, derivatives intel, AI via MCP.

Monorepo consolidating seven prior projects — all ported, originals removed from disk.

Architecture: MCP-first. The web app is a visualization layer; AI analysis happens in Claude Desktop via the bundled MCP server, using your Claude Pro/Max subscription (no Anthropic API key needed).


Quick start (development)

node -v                              # must be >=20.9.0; .nvmrc/.node-version target 24.15.0
pnpm install
cp .env.example .env.local           # only needed if using portfolio/webhooks
pnpm dev                             # turbo: web + realtime concurrently
# pnpm dev:all                       # opt-in: web + realtime + alerts cron

Production (24/7 on your machine, pm2)

npm install -g pm2
pnpm pulse:build                     # builds the Next production bundle
pnpm pulse:start                     # boots all 3 under pm2
pm2 save                             # persist process list
pm2 startup                          # generate auto-start command (run as printed)

# Day-to-day
pnpm pulse:status                    # color-coded health + per-process stats
pnpm pulse:logs                      # tail all logs
pnpm pulse:restart
pnpm pulse:stop

The MCP server is not in pm2 — it's spawned by Claude Desktop on demand via stdio.

Tabs

URL Purpose
/ Overview — hero, MetricStrip, MacroOverlay (DXY/SPX/Gold), PortfolioPanel, AlertsFeed
/markets Top 20 coins + click-to-load candlestick (15m/1h/4h/1d)
/fundflow Stablecoins · ETF · Derivatives · TVL · DEX panels
/intel News, on-chain, whale alerts, social buzz
/derivatives Live funding-rate stream (WS, real-time)
/options Multi-exchange options chain, IV smile, term structure
/dual-assets Bybit Dual Assets APR tracker and hourly analysis
/backtest Hit-rate per anomaly pattern (4h/24h/72h/7d lookahead)
/history Snapshot history and export tools
/morning Morning surface; signal feed is live, digest/regime/action blocks are still placeholders
/settings Local settings and webhook/test controls
/design Visual catalog of @pulse/ui + @pulse/charts

Structure

apps/
├── web/        Next.js 16 dashboard (App Router, 10 user routes, 35 API routes)
├── realtime/   WS server (Binance/Bybit/OKX native streams) + HTTP cache
├── alerts/     Cron worker — runs scanAnomalies every 15min, JSONL log + webhook
└── mcp/        MCP server for Claude Desktop (19 tools, stdio transport, .dxt bundle)

packages/
├── ui/         Design tokens + reusable React terminal components
├── sources/    Data adapters — every external API + format helpers + anomaly scanner
│               · "@pulse/sources" — browser-safe (types, format, helpers, anomaly types)
│               · "@pulse/sources/server" — Node-only (farside, portfolio, signed adapters)
└── charts/     Shared chart components (LWC v4.2 · recharts · SVG)

MCP setup (Claude Desktop)

pnpm --filter @pulse/mcp build
pnpm --filter @pulse/mcp pack-dxt
# Drop apps/mcp/dist/*.dxt into Claude Desktop → Settings → MCP servers

Available tools (19):

  • Dataget_market_overview, get_stablecoin_flows, get_etf_flows, get_futures, get_dex_leaderboard, get_tvl_breakdown, get_fundflow_snapshot
  • Derivativesget_funding_summary, get_oi_snapshot (cross-venue: Binance / Bybit / OKX / Deribit)
  • Options (Phase 5A)get_options_chain, get_iv_smile, get_options_arbitrage
  • Bybit Dual Assets (Phase 5A)get_dual_assets_apr, get_best_dual_assets_hour, get_dual_assets_daily_summary
  • Marketsget_order_book, get_whale_flow
  • Analysisdetect_anomalies, grade_signal (Phase 4 — rubric-returner for grading findings)

Tools query the local hub at :8081 for sub-50ms latency, with graceful fallback to direct upstream fetch when the hub is unreachable.

Desktop build (optional · Tauri 2.x)

The web app runs standalone — Tauri is purely an optional native shell.

Prerequisites: Rust toolchain (rustup) + Tauri 2 CLI (cargo install tauri-cli --version "^2.0") + platform deps (Xcode CLT on macOS · MSVC + WebView2 on Windows · libwebkit2gtk-4.1-dev on Linux). See https://tauri.app/start/prerequisites/.

# from monorepo root
cargo tauri icon path/to/source.png   # one-time icon generation
cargo tauri dev                        # boots Next + opens native window
cargo tauri build                      # produces .msi / .dmg / .deb / .AppImage

System tray menu: Show/Hide · Refresh · Quit. Click tray icon to toggle window. Closing the main window hides to tray (typical desktop UX). Full guide: src-tauri/README.md.

How to contribute

Work is split into 8 roles + Phase 3 sub-phases so multiple Claude Code sessions can run in parallel without colliding. See AGENTS.md for current status board, contracts, and what's safe to touch. Cross-session sync uses the template in SYNC.md.

Reference projects

All seven prior projects have been ported and the source folders removed:

Original Now lives at
Crypto-Fundflow-Analyzer apps/web + apps/mcp + packages/sources
Funding_Oi apps/realtime + packages/sources/funding
CryptoTerminal apps/web/markets + packages/charts
Pulse Command packages/ui
Bybit Api (Python) packages/sources/src/dual-assets/ (TS + better-sqlite3)
option-dashboard (Vite) packages/sources/src/options/ + apps/web/app/options/
Option Scan (Streamlit) not ported — low priority, removed

About

Crypto macro intelligence terminal — Bloomberg-style trading dashboard with MCP-first architecture (Next.js + Node + better-sqlite3 + Anthropic MCP)

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors