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

@hex4c59/pi-ext-deepseek-balance

v0.1.2

Published

Read-only DeepSeek API balance reports for Pi.

Readme

deepseek-balance

在 Pi 中查询 DeepSeek API 账户余额。只读调用 DeepSeek 官方余额接口,不修改账户或会话。

安装

pi install npm:@hex4c59/pi-ext-deepseek-balance

调试本地源码时在本仓库根目录执行 pi install ./deepseek-balance。

要将 DeepSeek 显示在统一 /relay 菜单中,也安装菜单协调器:

pi install npm:@hex4c59/pi-ext-relay

加载后可执行 /deepseek-balance,也可执行 /relay deepseek balance,或从 /relay 菜单选择 DeepSeek API → Balance。临时试用:

pi -e ./deepseek-balance

临时试用时同时加载 /relay 菜单:

pi -e ./relay -e ./deepseek-balance

余额来源

扩展使用 Pi 中 deepseek provider 已配置的 API 凭据,请求 GET https://api.deepseek.com/user/balance。报告显示接口返回的可调用状态、币种、总余额、赠金余额和充值余额;保留接口返回的金额精度,不做汇率换算。

余额报告只针对 DeepSeek API 账户,不表示 DeepSeek 网页端会员或订阅额度。没有已配置的 DeepSeek API 凭据时,报告会提示配置状态。扩展不要求另存密钥、不记录密钥或余额,也不会在 Pi 启动时自动联网;只有用户显式打开余额报告时才访问 api.deepseek.com。

限制

  • 查询要求当前 Pi 凭据对应官方 DeepSeek provider deepseek;自定义兼容端点的余额不会被查询。
  • 余额是调用时的账户快照,其他客户端发生的消费会在下一次查询时体现。
  • /relay 菜单只在 relay 与本扩展都已加载时出现 DeepSeek API。

验证

在本包目录运行:

npm run typecheck
npm test

测试替换网络请求,不会访问真实账户。实际查询只连接 https://api.deepseek.com/user/balance。