dsh-token-heatmap
Manifest validdsh-token-pulse
English: README.en.md
本地 Token 用量热图插件,GitHub 风格日历视图,内置于 DSH Web 设置页。
环境要求
- Node.js ≥ 23.8(内置
node:zlib的 zstd 解码,无需额外安装);更早版本会回退到外部zstdCLI(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
Comments
Loading…
From the same category
by Ebony-Vinyl
在 dsh 里装上这个插件即可,无需登录、注册或填 API Key,就能使用包括 Muse Spark 1.3、MiMo V2.6 在内的前沿模型——完全免费,不限量。 All you do is install this plugin in dsh: no login, no sign-up, no API key — the frontier models are just there, Mu
★ 77.5k
↓ 10.8k/wk
MIT
JavaScript
Nov 16, 2026
dsh plugin --profile web add dsh-our-free-modelby zouyuxuan122
在 dsh 里装上这个插件即可,无需登录、注册或填 API Key,就能使用包括 Muse Spark 1.3、MiMo V2.6 在内的前沿模型——完全免费,不限量。 All you do is install this plugin in dsh: no login, no sign-up, no API key — the frontier models are just there, Mu
★ 24.7k
↓ 10.8k/wk
MIT
JavaScript
Oct 5, 2026
dsh plugin --profile web add dsh-our-free-modelby HunYiSage
DeepSeek Harness 破甲:让所有模型都能破甲,不同模型可换不同提示词;默认提示词面向国模「小码酱」。Jailbreak for every model — swap prompts per model. 求 Star 收藏 ⭐ 如要二开,请查看署名要求部分
★ 17.1k
↓ 19.5k/wk
Apache-2.0
JavaScript
Nov 7, 2026
dsh plugin --profile web add dsh-purgeby dingminhua
Connect locally signed-in WorkBuddy models to DeepSeek Harness with a read-only credits overview and model management.
★ 1.7k
↓ 34.4k/wk
MIT
TypeScript
Nov 16, 2026
dsh plugin --profile web add dsh-connect-workbuddyby helloHub1212
Windows desktop automation for DeepSeek Harness: the in-box MCP client bridge mounted against CursorTouch/Windows-MCP, with an off-by-default Computer Use switch and an in-app dependency installer.
★ 1.5k
↓ 714.8k/wk
MIT
JavaScript
Nov 15, 2026
dsh plugin --profile web add dsh-windows-mcpby Alice-Marx
Model Router and GALGame plugin for DeepSeek Harness
★ 970
↓ 1.1k/wk
MIT
JavaScript
Nov 16, 2026
dsh plugin --profile web add @ljwei-stak/dsh-model-router