跳到正文
Skillpedia
通用编程7.8k · #13092

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/HKUDS/AgentPilot/blob/main/openspace/legacy/v1/showcase/skills/worldmonitor-reference/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能