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

@magiczerowxy/dsh-balance

v0.1.2

Published

DeepSeek balance floating widget for the dsh web GUI: a small overlay window pinned bottom-left showing the account balance from the official API, with a collapse chip and 5-minute auto refresh.

Readme

@magiczerowxy/dsh-balance

DeepSeek 账号余额浮窗 for DeepSeek Harness web GUI:左下角悬浮窗显示官方 API 余额,支持折叠、5 分钟自动刷新。

A DeepSeek account balance floating widget for the DeepSeek Harness web GUI: a small overlay pinned bottom-left showing the balance from the official API, with a collapse chip and 5-minute auto refresh.

功能 Features

  • 余额浮窗:左下角悬浮,实时显示官方 API 账户余额
  • 折叠/展开:可折叠成小胶囊,点击展开
  • 自动刷新:每 5 分钟自动查询;可手动刷新
  • API Key 管理:在浮窗中保存/清除 DEEPSEEK_API_KEY(经 DSH credentials 服务持久化,重启不丢失,不回传密钥值)
  • 状态提示:未配置 Key / 请求失败等状态清晰提示

安装 Install

包已发布到 npm(@magiczerowxy/dsh-balance),用官方 dsh plugin 命令安装:

dsh plugin --profile <profile> add @magiczerowxy/dsh-balance

<profile> 换成你自己的 profile 名:桌面版用 desktop,Web 版用 web,不带 --profile 操作默认 profile。 命令会自动把包写入 profile 依赖,并因声明了 dsh.bundle 自动加入 layer stack。

配置 API Key

两种方式任选其一:

  1. 环境变量:设置 DEEPSEEK_API_KEY=sk-xxx 后重启 DSH
  2. 浮窗内保存:点击浮窗 → 填入 Key → 保存(写入 ~/.dsh/.credentials.yaml)

卸载 Uninstall

dsh plugin --profile <profile> remove @magiczerowxy/dsh-balance

结构 Structure

dsh-balance/
├── lib/
│   ├── index.js    # Host 半区:/api/dsh-balance/* 路由(查询、Key 保存/清除)
│   └── client.js   # Client 半区:浮窗 UI + 折叠 + 自动刷新
├── cordis.patch.yml  # bundle patch(entry id: ds-balance-widget)
└── package.json

License

MIT