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

@logan-luo/dsh-client-ui-session-cost

v0.1.0-rc.6

Published

Session-cost surfaces: dock cost strip, cost view tab, and the usage dashboard over the cost Remote

Readme

@logan-luo/dsh-client-ui-session-cost

English | 中文

会话成本界面,浏览器半:dock 成本条、每会话成本视图标签页,以及用量看板。计价、投影与账本位于 @logan-luo/dsh-session-cost。

已交付的界面

  • Dock 成本条(src/client/CostDockRow.tsx):内置统计条下方的第二个 conversation.composer.dock 行——估算费用、主导模型的当前费率,以及未计价数量。读取 useProjection('costStats')。
  • 成本视图标签页(src/client/CostViewTab.tsx):conversation.view 标签页,含总计、按模型行、按日趋势,以及产生这些数字的费率版本。
  • 用量看板(src/client/DashboardTrigger.tsx):sidebar.footer.action 条目,打开全局用量对话框——项目 / 时间段(今天、本周、本月、全部)/ 分组(日、周、月、模型、项目)选择,基于 cost.dashboard Remote,含总计、按模型桶与分组。DashboardController(src/client/controller.ts)持有视图状态与刷新/选择动词。

模型体验

无:本包渲染宿主计算的投影值与 Remote 汇总;不组装任何模型请求。

KV 缓存影响

无;本包既不组装也不发送任何提供商请求。

已知限制与延期工作

  • 时间段预设与费率卡共用同一固定北京偏移日历;具名时区仍是与 node 半共享的延期配置项。
  • 看板的项目列表是账本中项目的去重集合;磁盘上的项目重命名会把历史拆成两行。