返回顶部
t

task-monitor

Real-time web dashboard for OpenClaw sessions and background tasks. Mobile-responsive with auto-refresh.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
3,548
下载量
10
收藏
概述
安装方式
版本历史

task-monitor

# Task Monitor v0.1 Real-time monitoring dashboard for OpenClaw with web interface. ## Features - 🌐 **Web Dashboard** - Beautiful, responsive UI accessible from any device - 📱 **Mobile-First** - Optimized for phones and tablets - 🔄 **Auto-Refresh** - Updates every 60 seconds - 🎨 **Modern Design** - Gradient UI with dark theme - 📊 **Live Data** - Main session, Discord, sub-agents, cron jobs - 🚀 **Fast API** - JSON endpoint with intelligent caching (30s TTL) - ⚡ **Performance** - <100ms response time (cached), ~15s cold cache ## Installation ```bash cd skills/task-monitor npm install ``` ## Usage ### Start Web Server ```bash ./scripts/start-server.sh ``` Server will run on port **3030** (accessible on LAN). **Access URLs:** - Local: `http://localhost:3030` - LAN: `http://<your-ip>:3030` ### Stop Server ```bash ./scripts/stop-server.sh ``` ### API Endpoint ```bash curl http://localhost:3030/api/status ``` Returns JSON with: - Main session stats - Discord session stats - Active sub-agents (with descriptions) - Recent cron job history ### Generate Markdown (v0.1) Legacy markdown generator still available: ```bash ./scripts/generate-dashboard.js ``` Updates `DASHBOARD.md` in workspace root. ## Automation CRON job runs every 5 minutes to update markdown dashboard: `*/5 * * * *` -> Executes `generate-dashboard.js` ## Architecture - **Backend:** Node.js + Express - **Frontend:** Pure HTML/CSS/JS (no frameworks) - **Data Source:** `openclaw sessions list --json` + `openclaw cron list --json` - **Caching:** In-memory cache with 30-second TTL - Pre-warmed on server startup - Async background refresh when expired - Stale-while-revalidate pattern for optimal UX - **Refresh:** Client-side polling (60s interval) ## Performance **Without cache:** - API response time: ~15 seconds (blocking) - Problem: Each request blocks Node.js event loop **With cache:** - Cache hit: <100ms (~365x faster) - Cache miss: ~15s (first request only) - Stale cache: <100ms while refreshing in background - Cache TTL: 30 seconds The caching system ensures: - Lightning-fast responses for most requests - No blocking of concurrent requests - Graceful degradation when cache expires

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 task-monitor-1776370412 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 task-monitor-1776370412 技能

通过命令行安装

skillhub install task-monitor-1776370412

下载 Zip 包

⬇ 下载 task-monitor v1.0.0

文件大小: 14.78 KB | 发布时间: 2026-4-17 15:22

v1.0.0 最新 2026-4-17 15:22
Initial release of Task Monitor: a mobile-responsive, real-time dashboard for monitoring OpenClaw sessions and background tasks.

- Web dashboard with modern, gradient dark theme and responsive design
- Real-time updates with client-side auto-refresh every 60 seconds
- Exposes a fast JSON API endpoint for current status and stats
- Intelligent in-memory caching system (30s TTL) for low-latency responses
- Supports session, Discord, sub-agent, and cron job monitoring
- Legacy Markdown dashboard generator and CRON job automation included

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部