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

dsh-statusbar

v0.2.0

Published

tmux 风格状态栏:替换 DSH 输入框下方统计行,左为统计信息 + DeepSeek 余额三色提醒,右为地点/温度/天气预报/日出日落

Downloads

310

Readme

dsh-statusbar

tmux 风格状态栏。替换 DSH 输入框下方的统计行。

功能

  • 蓝色状态栏(#4176e6),贴页面底部,宽度与中栏一致。
  • 左侧:会话统计,以及 DeepSeek 余额(三色提醒)。
  • 右侧:地点、温度、预警与分钟降水、日出日落。
  • 全部参数在 设置 → 外观 → 状态栏 中调整。

安装

npm 方式:

dsh plugin add dsh-statusbar

手动方式:把 dsh-statusbar 加入 web profile 的 dsh.profile.bundles,安装依赖后重启 dsh web。

使用

打开 设置 → 外观 → 状态栏。

余额:

  • DeepSeek API Key 填入一次后显示余额,约 10 分钟刷新一次。
  • 阈值默认 5 元,缓冲默认 15 元,留空使用默认值。
  • 余额大于阈值加缓冲为绿色,介于阈值与缓冲之间为黄色,不超过阈值为红色。

天气:

  • 和风天气:更新快,约 10 分钟刷新一次,提供预警与分钟降水。需要 Host、Key,以及 Location ID 或坐标。
  • Open-Meteo:免 Key,约 30 分钟刷新一次,无预警与分钟降水。
  • 自动定位:授权浏览器定位后直接用坐标,无需填写 Location ID。
  • 未配置任何天气来源时,天气部分自动隐藏。

隐私

  • Key 仅保存在浏览器 localStorage,只直接调用官方接口。
  • 不上传任何数据。

关闭与卸载

  • 关闭「tmux 风格」或关闭插件开关,恢复 DSH 默认统计行。
  • 从 profile 移除包并重启,即完全卸载。

架构(鲸选范式)

本仓库是鲸选范式(spec/PARADIGM.md)的「服务消费者 + 槽位遮蔽 + 联网」范例:

  • 浏览器半区:conversation.composer.dock 的 stats 单元以 priority -1 遮蔽内置统计行; 消费 appearance.manager(实现模块自述描述符:内嵌鲸选清单 + settingsSchema + getState/setState)。

  • 宿主半区:注册 dsh-statusbar.settings 设置命名空间(浏览器暂走 localStorage,rc.6 网关白名单限制)。

  • 文案:外观条目与栏内文案全部走 locale zh/en 双语(zh 保持 tmux 格式逐字一致)。

  • 鲸选范式:https://github.com/LeeKai233/dsh-whale-picks/blob/main/spec/PARADIGM.md

  • 迁移指南:https://github.com/LeeKai233/dsh-whale-picks/blob/main/docs/migrate-to-paradigm.md

仓库结构

  • src/client:浏览器端源码。
  • src/index.ts:Node 端入口,注册 dsh-statusbar.settings 设置命名空间。
  • src/statusbar-settings.ts / src/statusbar-schema.ts:设置契约与 schema(宿主半区)。
  • lib/client.js:构建产物。
  • whalepicks.json:鲸选清单。
  • tests:单元测试。

开发

pnpm install
pnpm bundle
pnpm test