worldmonitor-reference
它能做什么
这个技能是 WorldMonitor 开源仪表盘构建方式的索引。它指向面板、布局、服务和刷新方面的模式。适合正在规划类似仪表盘的开发者。
适用场景
- ✓当你要创建新的仪表盘面板,并希望沿用成熟的设计时。
- ✓当你想在改编前了解 WorldMonitor 中的某个具体模式时。
- ✓当你需要决定复制 WorldMonitor 的哪些部分、简化哪些部分时。
技能链接
https://github.com/HKUDS/AgentPilot/blob/main/openspace/legacy/v1/showcase/skills/worldmonitor-reference/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请告诉我 WorldMonitor 是如何组织的,以便我能用同样的风格搭建面板。”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能列出了项目中的主要文件夹和模式,使智能体知道去哪里查找,以及为你自己的工作需要改编哪些内容。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
WorldMonitor Architecture Reference
WorldMonitor is a real-time global intelligence dashboard built with vanilla TypeScript (no framework). This skill provides a curated index of its architecture, organized by the patterns most relevant to building a personal daily monitor.
When to Use
- You are creating a new dashboard panel and need to follow WorldMonitor conventions
- You need to understand how a specific pattern works before adapting it
- You are deciding which WorldMonitor patterns to adopt vs. simplify for a personal project
Project Overview
| Aspect | Detail |
|---|---|
| Language | TypeScript (strict), vanilla DOM — no React/Vue/Angular |
| Bundler | Vite |
| Deployment | Vercel (60+ Edge Functions) + Railway (WebSocket relay) |
| Desktop | Tauri 2 (Rust) with Node.js sidecar |
| Map engines | globe.gl + Three.js (3D), deck.gl + MapLibre GL (2D) |
| CSS | Custom properties, dark/light themes, responsive grid |
| API contracts | Protocol Buffers (92 proto files, 22 services) |
| Data sources | 435+ RSS feeds, 45 data layers, 30+ live video streams |
Directory Structure
worldmonitor/
├── src/
│ ├── main.ts # Entry point: Sentry, analytics, App bootstrap
│ ├── App.ts # Root application class
│ ├── components/ # All UI panel classes (80+ files)
│ │ ├── Panel.ts # *** BASE CLASS — most important file ***
│ │ ├── VirtualList.ts # Virtual scrolling for large lists
│ │ ├── NewsPanel.ts # News with clustering, NER, summaries
│ │ ├── MarketPanel.ts # Stock market with sparklines
│ │ ├── SearchModal.ts # Cmd+K command palette
│ │ ├── InsightsPanel.ts # AI briefing + metrics
│ │ ├── WorldClockPanel.ts # Multi-timezone clock
│ │ └── ... # 70+ more panels
│ ├── services/ # Data layer (117 files)
│ │ ├── runtime.ts # SmartPollLoop, desktop detection, fetch routing
│ │ ├── bootstrap.ts # Initial data hydration from Redis
│ │ ├── rss.ts # RSS feed aggregation
│ │ ├── news/index.ts # News fetching + processing
│ │ ├── market/index.ts # Market data (Yahoo Finance, Finnhub)
│ │ ├── i18n.ts # 21-language internationalization
│ │ ├── threat-classifier.ts # 3-stage threat classification
│ │ ├── clustering.ts # News headline clustering
│ │ └── ... # 100+ more services
│ ├── config/ # Static configuration
│ │ ├── variant.ts # Multi-variant (world/tech/finance/commodity/happy)
│ │ ├── feeds.ts # 435+ RSS feed definitions
│ │ ├── panels.ts # Panel enable/disable config
│ │ ├── markets.ts # Stock symbol lists
│ │ └── ...
│ ├── app/ # Application-level modules
│ │ ├── app-context.ts # Shared state (inFlight, isDestroyed)
│ │ ├── refresh-scheduler.ts # *** REFRESH PATTERN ***
│ │ ├── panel-layout.ts # Grid layout management
│ │ ├── search-manager.ts # Command palette logic
│ │ └── event-handlers.ts # Global keyboard/visibility events
│ ├── utils/ # Utilities (22 files)
│ │ ├── dom-utils.ts # h(), fragment(), replaceChildren() — JSX-free helpers
│ │ ├── sanitize.ts # escapeHtml(), sanitizeUrl() — XSS prevention
│ │ ├── index.ts # formatTime, formatNumber, etc.
│ │ └── ...
│ ├── styles/ # CSS
│ │ ├── main.css # *** THEME VARIABLES + GRID LAYOUT ***
│ │ ├── panels.css # Panel-specific styles (tabs, rows, badges)
│ │ ├── base-layer.css # Foundation layer
│ │ └── ...
│ └── generated/ # Auto-generated from .proto files
│ ├── client/ # TypeScript API clients
│ └── server/ # TypeScript API handlers
├── api/ # Vercel Edge Functions (60+)
│ ├── _cors.js # CORS origin allowlist
│ ├── _rate-limit.js # Upstash Redis rate limiting
│ ├── _api-key.js # API key injection
│ ├── bootstrap.js # Pre-fetch 15 Redis keys for first render
│ ├── rss-proxy.js # RSS feed proxy with domain allowlist
│ ├── market/v1/[r
常见问题
WorldMonitor 是一个框架吗?
不是。它是一个使用纯 TypeScript 构建的仪表盘应用,界面没有使用框架。
我需要复制整个项目吗?
不需要。这个技能只是一个索引,你可以只借鉴需要的模式。
这个项目使用什么技术构建?
技能列出了 TypeScript、Vite,以及一组地图引擎和 CSS 功能。
详情
作者的原始描述
Curated architecture index of the WorldMonitor open-source dashboard. Reference for extracting patterns — vanilla TypeScript, Panel class hierarchy, service layer, CSS grid, API edge functions, refresh scheduler, and 60+ data source integrations.
repo: HKUDS/AgentPilot
热度
- GitHub 星标
- 7.8k
- 排名
- #13092
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
agentpilot
7.8k帮你的智能体准备任务并运行 AgentPilot 循环,逐步改进项目:循环会提出修改、测试修改并为其打分。
openspace
7.8k帮你的智能体设置 OpenSpace,这是一个用于存储和获取智能体技能的工具,并通过 MCP 将其连接到你的 AI 应用。
rsi-arena
7.8k帮你的智能体设置并运行标准 AI 基准测试,例如 AIME 和 Terminal-Bench,用来比较不同的改进方法。
experiment-guide
7.8k帮你的智能体规划小型实验、阅读实验结果并记录发现,同时研究如何改进一个程序。