从技术栈与形态推断,这是一个纯前端优先(frontend-heavy)、以浏览器为运行时的仪表盘型应用。选择 TypeScript + 面向 Web 的分发形态(README 中同时发布了 npm 包 worldmonitor,意味着它兼顾了"可嵌入的组件/SDK"定位),背后有几层值得拆解的设计取舍:
数据流的关键矛盾在于"实时性 vs 数据源稳定性"。地缘与基建数据天然来自大量异构、速率不一的来源,前端不可能对每个源维持长连接。合理做法是边缘聚合 + 前端薄消费:服务端/边缘函数负责拉取、归一化、去重、时间对齐,前端只消费统一 schema 的流。推断其数据流水线大致如下:
graph TD
A[多源输入: 新闻RSS / 地缘事件 / 基建状态] --> B[边缘聚合层: 拉取与归一化]
B --> C{"数据可信度与时效校验"}
C -->|"通过"| D[统一事件 Schema]
C -->|"丢弃/降级"| E[隔离与打标]
D --> F[前端状态仓库]
F --> G[地图与时间轴视图]
F --> H[AI 摘要与关联分析]
G --> I[态势感知界面]
H --> I
AI 聚合不是"调个 LLM 就完事"。这类场景的真正难点是:模型摘要必须可溯源、可降级。当模型不可用或超时时,仪表盘不能白屏——因此架构上大概率存在"结构化数据兜底 + AI 增强层叠加"的分层。这决定了工程上必须把"事实数据"和"AI 生成的解读"在 UI 与数据结构上隔离,否则一旦幻觉信息混入态势视图,情报工具的可信度就崩了。
统一 schema 是命门。新闻、航运、能源管线三种数据的粒度完全不同(文本事件 vs 时序指标 vs 静态拓扑),要画在同一张地图和时间轴上,必须抽象出一套"实体-事件-关系"的最小公共模型。这也是为什么这个项目用 TypeScript 的价值被放大:这套 schema 一旦跨变体(tech/finance……)复用,类型系统就是防止各变体数据漂移的最后一道防线。
快速上手
项目以 npm 包形式分发,可作为独立应用或嵌入式看板使用。以下为贴近其技术栈的最小示例(以后续实际 API 为准,此处演示典型集成形态):
## 安装 npm 包
npm install worldmonitor
## 或直接拉取源码本地运行
git clone https://github.com/koala73/worldmonitor.git
cd worldmonitor
npm install
npm run dev
Open-source real-time global intelligence dashboard, REST API, and MCP server — live geopolitics, conflicts, shipping chokepoints, markets, and country risk.
Real-time global intelligence dashboard — AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface.
The World Monitor name and wordmark identify the official site at www.worldmonitor.app, so please don’t present a fork as the official site.
The terminal dashboard runs the same live data in your shell: world map, news, markets, conflict, military flights, cyber, climate, prediction markets and live TV, with mouse support and colour themes. No API key needed.
What It Does
Curated news feeds across global and regional categories, AI-synthesized into briefs
Dual map engine — 3D globe (globe.gl) and WebGL flat map (deck.gl) with a shared map-layer catalog
Panel inventory — concrete panel implementations across specialized variants
Cross-stream correlation — military, economic, disaster, and escalation signal convergence
Finance radar — stock exchanges, commodities, crypto, and a market composite
Local AI — run everything with Ollama, no API keys required
Site variants from a single codebase (world, tech, finance, commodity, happy, energy)
Native desktop app (Tauri 2) for macOS, Windows, and Linux
Multilingual UI with native-language feeds and RTL support
For the full feature list, architecture, data sources, and algorithms, see the documentation.
Support Status
All site variants and desktop binaries are built from a single codebase and ship from the same release process. The table below clarifies maintenance status so you know which surfaces are safe to depend on.
Public deployments built from this repo, actively maintained
Desktop binaries (Windows / macOS Apple Silicon / macOS Intel / Linux AppImage x64 and ARM64)
Stable
One Tauri binary for every variant — install World Monitor and switch to tech, finance, commodity, energy, or happy in-app. There is deliberately no per-variant download
worldmonitor npm package (terminal dashboard and CLI)
This clones into ./worldmonitor (or reuses your checkout), generates the required secrets, starts the stack, and seeds data. Then open localhost:3000. Options: --dir, --port, --no-seed, --no-build, passed after bash -s -- (see scripts/install.sh --help). API keys are optional. Details, production notes, and uninstall: SELF_HOSTING.md.
Local development (hot-reload Vite server):
Requires Node.js 24, the version pinned in .nvmrc. Distribution packages are often older. Debian 12 and Raspberry Pi OS ship Node.js 18 with npm 9.2.0, where npm install stops with Invalid comparator: file:vendor/braces. Install Node.js 24 with nvm (nvm install inside the checkout reads .nvmrc) or from nodejs.org.
git clone https://github.com/koala73/worldmonitor.git
cd worldmonitor
npm install
npm run dev
Open localhost:3000 (override the port with DEV_PORT in .env.local). The app runs with no environment variables.
Feature-specific data sources may require credentials. See .env.example for the full list.
For variant-specific development:
npm run dev:tech # tech.worldmonitor.app
npm run dev:finance # finance.worldmonitor.app
npm run dev:commodity # commodity.worldmonitor.app
npm run dev:happy # happy.worldmonitor.app
npm run dev:energy # energy.worldmonitor.app
See the self-hosting guide for deployment options (Vercel, Docker, static).
World Monitor is built for agents and scripts as well as browsers:
MCP server — https://worldmonitor.app/mcp (Streamable HTTP). Public tools/list; tools/call authenticates with a X-WorldMonitor-Key header or OAuth.
The server also publishes its Agent Skills through the draft io.modelcontextprotocol/skills extension (skills/list, skills/get, and skill://… resource reads).
Google Antigravity and Gemini listing preparation — install the MIT-licensed Antigravity plugin with agy plugin install https://github.com/koala73/worldmonitor-antigravity. Gemini custom apps and Connected Apps sign in through Google’s OAuth callbacks. See Gemini and Antigravity.
REST API — base https://api.worldmonitor.app, described by the OpenAPI spec.
npx worldmonitor tools # run ad-hoc — list every MCP tool (no key needed)
npm install -g worldmonitor # or install the `worldmonitor` (alias `wm`) command
brew install worldmonitor # or install it with Homebrew
worldmonitor risk IR --api-key wm_xxx
Flight data provided graciously by Wingbits, the most advanced ADS-B flight data solution.
Supported By
World Monitor’s web app and API run on Vercel. Thank you to Vercel for their generous support of the project.
Data Sources
WorldMonitor aggregates attributed upstream sources across geopolitics, finance, energy, climate, aviation, cyber, military, infrastructure, and news intelligence. Curated feeds and freshness-tracked source groups are published in the full data sources catalog, with provider, feed-tier, license-posture, and collection-method details.
npm run typecheck # Type checking
npm run build:full # Production build
License
AGPL-3.0-only for the source code. Commercial use is permitted under the AGPL when you comply with its copyleft and source-availability terms.
Use Case
Allowed?
Personal / research / educational
Yes, under AGPL-3.0-only
Self-hosted instance
Yes, under AGPL-3.0-only
Fork and modify
Yes, share source under AGPL-3.0-only when required
Commercial use / SaaS
Yes, under AGPL-3.0-only when you comply with AGPL obligations
Private-source proprietary use or official branding rights
Separate commercial or trademark permission needed
See LICENSE for the full code license and docs/license.mdx for a plain-language summary. Commercial licensing is available as an alternative option for teams that need non-AGPL terms.
评论