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

@cendo91/dsh-session-telemetry

v1.0.1

Published

Graphical session statistics, token usage, and context occupancy with a detailed breakdown below the composer

Readme

Session telemetry

A small DSH Web UI plugin that renders a detailed telemetry card below the composer, in conversation.composer.dock. It follows the active conversation and summarises:

  • Current session — whole-session turn and step counts, model/tool time, first-token latency, and decode speed.
  • Token usage — cumulative uncached input, cache read, cache write, output, total, and cache-hit rate.
  • Context used — a ring gauge for context occupancy, used/capacity figures, and a system/tools/messages composition bar.

When the plugin is active it replaces the shipped activity and usage pills and hides the shipped context-occupancy ring, so the same figures are not shown twice.

Data sources

The card uses the composer dock's standard useProjection and useSession props:

| Projection | Source | Used for | | --- | --- | --- | | sessionStats | @deepseek-ai/dsh-session-stats (inserted by this bundle) | turns, steps, LLM/tool time, decode speed | | tokenUsage | @deepseek-ai/dsh-token-meter | input, cache, output tokens | | contextPressure | @deepseek-ai/dsh-token-meter | context occupancy and capacity | | contextBreakdown | @deepseek-ai/dsh-token-meter | system/tools/messages composition |

No new projection, tool, prompt section, model input, network request, or session event is added. The plugin writes no DOM outside its own React tree.

Presentation

  • Uses only --dsw-alias-* theme tokens for surfaces, text, and borders.
  • Localised through the Client locale service in English and Simplified Chinese; metadata is exported in locale/en.json and locale/zh.json.
  • Bars and rings are inline SVG/CSS, not images or canvas.
  • Accent colors use blue, red, yellow, green, and orange.
  • The card shows detailed readings: model/tool time, first-token latency, output speed, uncached input, cache read/write, output, total, cache-hit rate, context occupancy, and the system/tools/messages composition.
  • The outer border is omitted; sections are separated by divider lines.
  • The context ring sits at the right of its section, and all three section bars share one baseline.
  • The card fills the available composer width (up to --dsh-composer-card-max-width) and stacks its three sections below 560px.
  • Respects prefers-reduced-motion for the running indicator.

Install

Requirements: DeepSeek Harness 0.2.x with the Web UI. No build step or runtime dependencies.

Open Settings → Plugins → Add and use one of:

# npm
@cendo91/[email protected]

# GitHub
github:cendo91/dsh-session-telemetry#v1.0.0

# local checkout (absolute path)
C:\path\to\session-telemetry

Refresh the page after installation. The bundle patch inserts the sessionStats host projection and the Client plugin row.

Limits

  • The card follows the composer's current Session. Without a Session it renders nothing.
  • Context occupancy appears only after the provider reports usage and the route reports a context window.
  • contextBreakdown is the token meter's heuristic composition; it is an approximation and does not sum to provider-billed pressure.
  • The context figure clamps the ring at 100% while the numeric numerator can exceed the capacity.
  • Hiding the shipped context ring uses a narrowly scoped DOM/CSS compatibility rule; a future DSH composer redesign may require updating that selector.

中文说明

一个 DSH Web UI 插件,在输入框下方展示当前会话的详细遥测条:

  • 当前会话:轮次、步数、模型/工具耗时、首 token 延迟、输出速度
  • Token用量:输入、缓存读、缓存写、输出、总计、缓存命中率
  • 上下文已用:占用环、已用/容量、系统/工具/消息构成
  • 自适应宽度,窄屏自动纵向堆叠
  • 启用时隐藏 DSH 自带的会话统计、Token 用量和上下文占用环,避免重复
  • 五色强调色,中英文界面

安装:打开 设置 → 插件 → 添加,填入:

@cendo91/[email protected]

或使用 GitHub 地址 github:cendo91/dsh-session-telemetry#v1.0.0。安装后刷新页面。