Real-time Polymarket prediction market visualization dashboard with an interactive world map.
# Clone
git clone https://github.com/AmazingAng/PolyWorld.git
cd PolyWorld
# Install dependencies
npm install
# Configure environment variables
cp .env.example .env
# Edit .env with your API keys
# Start dev server
npm run dev
Open http://localhost:3000.
| Variable | Required | Description |
|---|---|---|
AI_BASE_URL |
Yes | Anthropic API base URL |
AI_API_KEY |
Yes | Anthropic API key (for summaries, news matching, sentiment) |
AI_FALLBACK_BASE_URL |
No | Fallback API base URL |
AI_FALLBACK_API_KEY |
No | Fallback API key (used if primary fails) |
The app works without AI keys — summaries and sentiment will be disabled, but all market data, charts, and trading features remain functional.
src/
├── app/ # Next.js App Router, API routes
├── components/ # 14 panel components + Header, WorldMap, etc.
├── hooks/ # Custom hooks (preferences, watchlist, alerts, drag, resize)
├── lib/ # Data processing, AI clients, news/tweet sources
├── stores/ # Zustand: marketStore, smartMoneyStore, uiStore
└── types/ # TypeScript definitions
npm run dev # Development server
npm run build # Production build
npm run start # Production server
npm run lint # ESLint
Inspired by WorldMonitor.
$ claude mcp add PolyWorld \
-- python -m otcore.mcp_server <graph>