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

@javenlu233/dsh-client-ui-turn-cost

v0.1.4

Published

Session cost readout for Web: whole-session total in the composer stats strip plus a per-turn cost toggle in each assistant message's action row (pure-consumer client plugin)

Downloads

928

Readme

@javenlu233/dsh-client-ui-turn-cost

English | 中文

Web 对话视图的费用展示:底部统计条显示整会话累计(含命中 / 未命中 / 输出分桶与缓存命中率),每条助手消息操作行显示该回合增量。

  • 数据:整会话累计来自持久的 sessionCost 投影(整份日志,分页/压缩不变,按每次请求的模型计价,含捕获到的 web_search 模型用量);该回合增量由该回合的 assistant 节点在客户端折叠。
  • 计价:DeepSeek 价格表(每百万 token,人民币),日期感知:2026-08-17 前平价(flash 命中 0.02 / 未命中 1 / 输出 2,pro 0.025 / 3 / 6),之后峰谷。
  • 插槽:两个 list 插槽 —— conversation.composer.dock(整会话累计)与 conversation.chat.assistant-actions(该回合增量);从 cordis.yml 去掉该插件即整体移除。
  • 依赖:需要 host 侧 @javenlu233/dsh-session-cost 投影插件;缺少它时整会话累计不显示,只显示该回合增量。

模型体验

无;本包没有任何内容进入模型请求。

KV Cache 影响

无;本包既不组装也不发送 provider 请求。

已知限制与后续工作

  • 该回合增量仅在「已加载窗口」内精确;被压缩的回合计入整会话累计,但无逐条费用行。
  • 价格表通过 host 侧 session-cost 插件的 cordis.yml 配置,不在设置界面里。
  • 费用统计图在捕获到搜索用量时单独列出 web_search 所用模型的花费;会话主模型与搜索若是同一模型,仍在「按模型」里合成一行。