npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

agent-teams-dashboard

v0.9.0

Published

Real-time monitoring dashboard for Claude Code agent teams

Readme

Agent Teams Dashboard

即時監控 Claude Code agent teams 的 Web 儀表板。透過 WebSocket 串流更新,追蹤團隊協作、任務進度與 agent 活動狀態。

English

功能

  • 雙側邊欄導航 — 三欄式佈局:TeamsPanel(可摺疊)→ AgentsPanel → MainPanel
  • 團隊總覽 — 即時狀態卡片,含 status dots、進度條、成員數
  • Agent Sessions — 按 agent 分組的 session 時間軸,可展開檢視
  • Session Resume — 在 Conversations 模式 hover 任一 session → 點 複製 cd <path> && claude --resume <sessionId> 到剪貼簿
  • 看板式任務面板 — Pending / In Progress / Completed 三欄式任務追蹤
  • Agent 活動監控 — 即時顯示每個 agent 的訊息與工具使用紀錄
  • WebSocket 即時更新 — 檔案系統變更自動推送至瀏覽器

佈局

┌──────────────┬────────────────┬──────────────────────┐
│ TeamsPanel   │ AgentsPanel    │ MainPanel            │
│ (collapsible)│ (260px)        │ (flex: 1)            │
└──────────────┴────────────────┴──────────────────────┘

Demo

總覽 — 團隊狀態卡片

Overview

任務面板 — 看板檢視

Task Board

Agent 面板 — 活動詳情

Agent Panel

對話模式 — Project > Agents > Sessions

Conversations

快速開始

npx agent-teams-dashboard

開啟瀏覽器前往 http://localhost:3001

可用 PORT 環境變數更改埠號:

PORT=8080 npx agent-teams-dashboard

從原始碼開發

Docker(推薦)

docker compose up

開啟瀏覽器前往 http://localhost:5173。修改程式碼會自動 hot reload。

手動啟動

npm install

# 終端機 1 — 啟動後端
npm run server

# 終端機 2 — 啟動前端開發伺服器
npm run dev

開啟瀏覽器前往 http://localhost:5173

指令

| 指令 | 說明 | |------|------| | npm run dev | 前端開發伺服器(Vite,port 5173) | | npm run server | 後端伺服器(port 3001) | | npm run build | 建置前端至 dist/ | | npm run build:server | 編譯後端至 server-dist/ | | npm run preview | 預覽正式建置結果 | | docker compose up | Docker 一鍵啟動前後端 |

技術棧

  • 前端: React 19 + TypeScript + Vite 6
  • 後端: Node.js + native HTTP + ws(WebSocket)
  • 資料來源: 監視 ~/.claude/teams/~/.claude/tasks/~/.claude/projects/ 目錄

正式環境部署

npm run build
npm run server

伺服器會從 dist/ 提供靜態檔案,API 與 WebSocket 在同一個 port(預設 3001,可用 PORT 環境變數覆蓋)。

Remote 存取

透過 Cloudflare Tunnel 或 Tailscale 等方式開放遠端存取時,設定 AUTH_TOKEN 啟用認證:

AUTH_TOKEN=your-secret-token npm run server

# 搭配 CORS 收緊
AUTH_TOKEN=your-secret-token CORS_ORIGIN=https://your-domain.com npm run server

設定 AUTH_TOKEN 後:

  • API 端點需帶 Authorization: Bearer <token> header 或 ?token=<token> query param
  • WebSocket 連線需帶 ?token=<token> query param
  • 靜態檔案(HTML/JS/CSS)不驗證,讓瀏覽器能載入登入頁面
  • 瀏覽器會顯示 token 輸入畫面,token 自動存入 localStorage

未設定 AUTH_TOKEN 時,行為完全不變 — 免認證。

環境變數:

| 變數 | 預設值 | 說明 | |------|--------|------| | PORT | 3001 | 伺服器埠號 | | AUTH_TOKEN | (未設定) | 設定後啟用認證 | | CORS_ORIGIN | * | CORS Access-Control-Allow-Origin 值 | | HOST_HOME | (自動) | Host 機器的 home 目錄路徑(Docker 自動設定) | | HOST_HOME_MOUNT | (未設定) | Container 內 host home 的掛載路徑(Docker: /host-home) |

靈感來源

靈感來自 Claude Code Agent Teams Demo

授權

MIT