yancf666/dsh-usage-panel
yancf666★ 1JavaScript最后同步: 2026-08-15
A polished DSH observability panel for token usage, cache efficiency, provider balances, searchable events, and exports.
README 摘要
dsh-usage-panel 简体中文 · English A polished, local-first usage observatory for DSH. It adds a compact token-and-balance widget to the web sidebar and opens a responsive dashboard for trends, cache efficiency, provider health, and detailed exports. Highlights - At-a-glance sidebar widget for today's tokens and the primary balance. - Ranges for 1 hour, 24 hours, today, 7 days, 30 days, or a calendar date. - Three-part token trend for input, cache reuse, and output, with a total line, average guide, peak, recent activity, and readable axis scaling. Cache writes remain included in input totals and exports without adding a noisy standalone metric. - Previous-period comparison, cache hit rate, active sessions/models/providers, call count, and average tokens per call. - Searchable model/provider breakdowns and server-side search across all expandable, paginated usage events. - Full CSV and JSON export for the selected period. - DeepSeek official balance, OpenAI-style gateway usage, and optional custom JSON balance sources. - Concurrent balance checks with timeouts, transient retries, single-flight caching, background refresh, and last-good-value fallback. - Durable 60-day ledger plus histor…
在 GitHub 查看完整 README →