InfoMarkets

Overview

InfoMarkets — real-time Polymarket visualization dashboard with interactive world map.

InfoMarkets is a real-time prediction market dashboard built on Polymarket data. It visualizes global prediction markets on an interactive map, provides AI-powered signals, smart money tracking, and a full trading interface.

Want to trade? Follow the Trading Guide — connect your wallet, fund your account, and start placing orders on Polymarket right from this dashboard.

Key Features

🌍 Interactive World Map

Markets pinned to geographic locations via AI geocoding. Color-coded by category with real-time probability overlays.

📊 19 Modular Panels

Fully customizable layout with drag-and-drop reordering. Right sidebar + bottom bar arrangement.

🐋 Smart Money Tracking

Whale trades, top PnL wallets, cluster detection. See what the sharpest traders are doing.

⚡ AI Signal Engine

7 signal types combining price, volume, news, and wallet data. Ranked by strength and recency.

💰 CLOB Trading

Place market/limit orders directly from the dashboard. Full orderbook visualization.

📰 News & Sentiment

AI-matched news articles and sentiment summaries per market. Combines multiple data sources.

Architecture

Polymarket Gamma API
    → fetchEventsFromAPI()
    → processEvents()
    → SQLite (local cache)

    /api/markets → Frontend (45s polling)

Five background sync loops run server-side via src/instrumentation.ts:

LoopFileInterval
Market datasrc/lib/sync.ts30s
Newssrc/lib/newsSync.ts5min
Smart moneysrc/lib/smartMoneySync.ts30s
Tweetssrc/lib/tweetsSync.ts3min
Resolutionsrc/lib/resolutionSync.ts2min

Tech Stack

LayerTechnology
FrameworkNext.js 16 (App Router) + React 19
StateZustand 5 — 3 stores (marketStore, smartMoneyStore, uiStore)
MapMapLibre GL JS — dynamic import, SSR disabled
DatabaseSQLite (better-sqlite3) — local Polymarket data cache
AIClaude API — news matching, geocoding, sentiment
StylesTailwind CSS 4 + CSS custom properties, dark-only theme

AI Cost Note: News/tweet AI matching is the primary cost driver (~$5/hr). Each batch is limited to 50 items, and matched items are flagged with ai_match_done=1 to prevent re-processing.

Selected components are provided under the MIT License.