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

claude-dashboard

v0.5.0

Published

[English](README.md) | 繁體中文

Readme

English | 繁體中文

Claude Dashboard

以 Claude 驅動的多代理軟體開發儀表板。

Claude Dashboard Screenshot

功能特色

  • 多代理流水線 — 自動化 PM → RD → UI → TEST → SEC 工作流程,每個代理擁有專屬職責與工具
  • 即時串流輸出 — 透過 WebSocket 逐 token 顯示代理的推理過程與操作
  • 互動式終端機 — 完整功能的終端機(xterm.js + node-pty),可即時檢視命令執行
  • 工作流程管理 — 隨時暫停、恢復、取消執行中的工作流程
  • 事件日誌與 token 追蹤 — 監控代理活動、工具使用情況,以及每個步驟的 token 消耗
  • SQLite 持久化 — 所有工作流程、代理輸出與指標皆持久保存,供事後檢閱

技術架構

| 層級 | 技術 | |------|------| | 前端 | Next.js 15、React 19、Tailwind CSS、Zustand | | 後端 | Express、WebSocket (ws)、node-pty | | 資料庫 | sql.js (SQLite WASM) | | AI | Claude CLI |

前置需求

  • 平台 — Windows、macOS、Linux
  • Node.js 23.6+
  • Claude CLI 已安裝並設定完成(文件

快速開始

透過 npm 安裝

npm install -g claude-dashboard
cd /path/to/your/project
cdb

從原始碼安裝

git clone https://github.com/Mowd/claude_dashboard.git
cd claude_dashboard
npm install
npm link
cd /path/to/your/project
cdb

代理角色

| 角色 | 職責 | 工具 | 逾時 | |------|------|------|------| | PM | 分析需求,產出結構化規格書 | Read | 3 分鐘 | | RD | 設計後端架構,實作伺服器端程式碼 | Read、Edit、Bash | 10 分鐘 | | UI | 設計並實作前端元件、頁面、樣式 | Read、Edit、Bash | 10 分鐘 | | TEST | 撰寫並執行測試,回報覆蓋率與錯誤 | Read、Edit、Bash | 10 分鐘 | | SEC | 安全性評估、弱點掃描、稽核 | Read、Bash | 5 分鐘 |

代理依序執行,每個代理接收所有前序代理的累積上下文。

專案結構

claude_dashboard/
├── bin/                  # CLI 啟動器 (cdb)
├── prompts/              # 代理系統提示詞模板
│   ├── pm-system.md
│   ├── rd-system.md
│   ├── ui-system.md
│   ├── test-system.md
│   └── sec-system.md
├── server.ts             # Express + WebSocket 伺服器入口
├── src/
│   ├── app/              # Next.js 頁面與 API 路由
│   ├── components/       # React 元件
│   │   ├── agent/        #   代理卡片與輸出顯示
│   │   ├── events/       #   事件日誌
│   │   ├── history/      #   工作流程歷史紀錄
│   │   ├── layout/       #   外殼與導覽列
│   │   ├── pipeline/     #   流水線視覺化
│   │   ├── terminal/     #   xterm.js 終端機面板
│   │   ├── ui/           #   共用 UI 基礎元件
│   │   └── workflow/     #   工作流程啟動器
│   ├── hooks/            # 自定義 React hooks
│   ├── lib/
│   │   ├── agents/       #   提示詞載入與建構
│   │   ├── db/           #   SQLite schema、連線、查詢
│   │   ├── terminal/     #   PTY 管理器
│   │   ├── websocket/    #   WebSocket 伺服器與協議
│   │   └── workflow/     #   引擎、流水線、代理執行器
│   ├── stores/           # Zustand 狀態管理
│   └── types/            # TypeScript 型別定義
├── data/                 # SQLite 資料庫檔案
├── package.json
└── tsconfig.json

版本更新紀錄(0.1.0 → 0.5.0)

0.5.0

  • 新增 工具使用摘要,agent 串流輸出中即時顯示正在呼叫的工具(Read、Edit、Bash 等)及其關鍵參數。
  • 修正所有頁面的 橫向捲軸溢出,透過多層級 CSS 與元件約束(prose 斷字、grid 裁切、history 頁面限制為垂直捲動)。
  • 改善 agent 完成狀態 — 完成後以乾淨的最終輸出取代串流 chunks,工具摘要僅在執行期間顯示。

0.4.0

  • 新增 可選執行計畫Full / Fast / Custom),小任務可依需求略過 TEST/SEC。
  • 新增執行前 Impact Preview,可先估算風險並建議執行模式。
  • 完成大範圍 i18n 國際化(英文 + 繁中),含語言切換器與 dashboard / history / terminal / 狀態文案 / 事件文案在地化。

0.3.0

  • 新增基於 SQLite 的 Workflow HistoryWorkflow Detail
  • 新增 歷史篩選、分頁、保留清理、流程指標統計
  • 新增 任務模板、產物摘要、以新執行重試 UX。
  • 強化 API / DB 初始化流程,修正 history 500 問題。
  • 強化 terminal 在路由切換下的穩定性,包含 TUI(如 htop)重連重附著與 replay 回放修正。

0.2.0

  • 穩定化 npm 發佈與全域安裝流程cdb 啟動路徑與專案根目錄偵測修正)。
  • 為跨平台相容性,資料庫執行時改為 sql.js(SQLite WASM)
  • 後端/工具鏈遷移為 原生 ESM,測試統一為 bun:test
  • 更新安裝與快速開始文件。

0.1.0

  • 初版公開基礎功能:
    • PM→RD→UI→TEST→SEC 多代理流水線
    • WebSocket 即時串流輸出
    • 內建互動式終端機(xterm.js + node-pty)
    • 基本流程控制(開始 / 暫停 / 繼續 / 取消)

☕ Buy Me a Coffee

如果你覺得這個專案對你有幫助,可以請我喝杯咖啡喔!

授權條款

MIT