DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-token-pulse

H

dsh-token-pulse

Manifest valid★ 4

Local Token heatmap plugin for DSH Web — GitHub-style calendar views, per-hour/week/month/quarter/year, fully local, zero billing.

UI (client)hasBundlePatch

dsh-token-pulse

English: README.en.md

本地 Token 用量热图插件,GitHub 风格日历视图,内置于 DSH Web 设置页。

环境要求

  • Node.js ≥ 23.8(内置 node:zlib 的 zstd 解码,无需额外安装);更早版本会回退到外部 zstd CLI(sudo apt install zstd / brew install zstd)。
  • DSH Web profile(dsh web 已运行)。

安装

# 从 npm(推荐,最短)
dsh plugin --profile web add dsh-token-pulse

# 或从 GitHub
dsh plugin --profile web add github:Hou-DL/dsh-token-pulse

# 或从 Gitee(国内访问更快)
dsh plugin --profile web add "git+https://gitee.com/HouDL/dsh-token-pulse.git"

重启后打开 设置 → Token Pulse 即可。

  • 零网络、零计费:只读本地会话日志,不触碰任何计费 / 余额接口
  • 持久化:历史落盘,删除会话不丢数据
  • 多视图:周(按小时展开)/ 月(日历)/ 季度(近 90 天)/ 年(整年双行)
  • 统计:今日 / 本周 / 本月 / 累计 + 按模型与供应商的 Top 5

截图

周视图

月视图

季度 / 年度视图

功能

模块说明
视图切换周 / 月 / 季度 / 年,颜色按视图内 25% / 50% / 75% / 100% 四档分档
周视图每天 24 个小时柱,看高峰时段;可点击行查看当日 Top 5
月视图日历格显示日期与当日用量
季度 / 年度GitHub 风格栅格,季度放大便于观察,年度双行排布
顶部统计今日 / 本周 / 本月 / 累计,M / k 缩写
模型 Top 5按模型或供应商查看,随视图窗口 / 点击日期动态切换
刷新手动刷新 + 自动刷新(5 / 10 / 30 / 60 分钟,可关闭)
语言中 / 英文切换

常见问题

  • 显示 0? 确认 $DSH_HOME/sessions 下有含 usage 字段的会话日志。
  • 会联网吗? 不会,纯本地统计。
  • 时区? 固定北京时区,周一为周起始。
  • 如何重置? 设置页右上角 ⋯ → 「重置历史」。

开发

pnpm install && npx tsdown   # 构建
node --test src/             # 运行测试

License

MIT

Compatibility

DSH 0.1.7-alpha.1: failedDSH 0.2.1-alpha.4: failedDSH 0.1.5-rc.2: failed

Versions

Latest versionPublishedSize
0.2.2-beta——
0.3.0——
0.3.1——
0.4.0——
0.4.2——
0.4.3——
0.4.1——

Comments

Loading…

Similar plugins

dsh-heatmap

by 283Gawin

DSH Web GUI activity heatmap plugin: GitHub-style commit/token/spend heatmap in the sidebar with per-model cost estimation

UI & ExperienceManifest valid

★ 6

MIT

TypeScript

Aug 14, 2026

dsh plugin --profile web add @linxin666/dsh-client-ui-activity-heatmap

by ai-v5

DeepSeek Harness plugin: sidebar token usage, daily calendar heatmap, turns/steps and tok/s, with durable history.

Tools & CapabilitiesDevelopment & InfrastructureTerminal & ClientsManifest valid

★ 1

MIT

JavaScript

Oct 21, 2026

dsh plugin --profile web add llm-dsh-token-usage

by qxcool

DSH Desktop plugin: usage stats, plan quotas, custom HTTPS balance, 26-week heatmap

Manifest valid

★ 0

Apache-2.0

TypeScript

Oct 18, 2026

dsh plugin --profile web add dsh-usage-plus

by HaoyueQin

DSH web plugin: per-day token usage statistics with a GitHub-style activity heatmap, cache hit-rate curve and per-model breakdown

UI & ExperienceManifest valid

★ 27

↓ 321/wk

MIT

TypeScript

Oct 19, 2026

dsh plugin --profile web add dsh-usage-statistics-panel

by KIDLi1412

GitHub-style daily token-usage heatmap on the new-session screen with a selectable calendar-year view, green/blue color schemes, and today / this-month / all-time totals.

Tools & CapabilitiesSessions & MessagesModels & ProvidersManifest valid

★ 1

↓ 178/wk

MIT

JavaScript

Oct 18, 2026

dsh plugin --profile web add @kidli1412/dsh-token-heatmap

by Jun-Jun-Gao

DSH plugin — Token usage panel inside DeepSeek Harness settings: daily heatmap, 30-day trend, per-session breakdown and cost estimate.

Manifest valid

★ 0

MIT

JavaScript

Oct 12, 2026

dsh plugin --profile web add dsh-token-usage-panel