zhangsaizz/dsh-widgets-plugin--packages-dsh-client-ui-token-crit0

@dsh-plugins/client-ui-token-crit

Floating token-usage crit meter (web): transparent, draggable/resizable counter with crit-damage animations and a config panel

AI 分析

核心用途是实时可视化展示当前会话的 Token 消耗(输入/缓存/输出),并伴有动态暴击特效。适合需要直观、趣味化监控 Token 消耗和成本开销的用户。

パッケージ
@dsh-plugins/client-ui-token-crit
バージョン
0.1.0
最終更新
2026/08/16

インストール

検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗

ドキュメント

README 全文を読む ↗

Usage

No configuration is needed after mounting — open any session to see the widget:

  1. Watch usage — open a session; the transparent widget shows the session's cumulative token usage (input / cached read / cached write / output) in real time, with crit animations and +N damage numbers as usage grows.
  2. Reshape it — drag the header to move, drag a corner to resize, click the collapse button to shrink it to a compact pill.
  3. Open settings — click the ⚙ on the widget to adjust language (zh/en), number format / font size, label, combo, particle count and color, crit threshold / ratio, sound, edge glow in real time; all settings (panel options, position and zoom) are persisted to localStorage automatically and survive a page reload. Hit the ⚡ Test FX button to preview the crit effects without touching the real counter.
  4. Hide it — the settings panel can hide the widget; re-enable it later via the host's web plugin table.