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-quota-cordis

v0.7.5

Published

DSH Quota+ — multi-provider quota and usage dashboard for DeepSeek, GLM / Z.AI, MiniMax, OpenCode and Codex, OpenAI organization spend, and model management that extends DSH's official authorization, model selection and reasoning effort

Readme

DSH Quota+

面向 DeepSeek Harness Desktop:额度与用量展示面板(多提供商余额、订阅额度与 OpenAI 组织支出),以及增强 DSH 官方模型管理的多供应商模型管理——授权、可选模型与推理强度。无 npm 运行时依赖或安装脚本。

Stars npm 开放插件市场

English  |  npm  |  MIT

安装

本说明对应 0.7.5。DSH 兼容声明仍为 >=0.2.2-rc.1 <0.2.3-0;推荐及源码核对基线为 0.2.2-rc.5,未逐一重测全部早期 RC。

dsh plugin --profile desktop add dsh-quota-cordis
# 或从本地仓库安装
dsh plugin --profile desktop add /path/to/checkout

更新插件代码后需重启 DSH 并完整刷新页面;表单的重新载入只刷新数据,不更新代码。

功能

设置页标题为 DSH Quota+,包含模型、额度、设置三个标签:

  • 模型:多供应商分组/搜索;在 DSH 官方模型设置之上编辑提供商与模型、发现模型、管理自定义 API 路由,并支持授权、可选模型与推理强度;不支持编辑的入口只读展示。
  • 额度:多提供商余额、订阅额度与 OpenAI 组织支出的展示面板。
  • 设置:自定义剩余额度阈值。
  • 输入框摘要:当前提供商的紧凑状态与向上展开的浮层。
  • Agent 工具:provider_quota、quota_color_settings、provider_company_rules。

提供商支持

| 提供商 | 展示内容 | 状态 | |---|---|---| | DeepSeek API | 可用、充值、赠送余额 | 历史验收 | | DeepSeek 账户 | 充值与赠送钱包分列 | 历史验收 | | GLM Coding Plan 国内版 | 订阅窗口 | 历史验收 | | GLM Coding Plan 国际版 | 订阅窗口 | 预览 | | GLM Standard API 国内版 | CNY 余额与资源包 | 预览 | | Z.AI Standard API 国际版 | 识别与状态 | 不查询余额 | | OpenAI API | UTC 今日、昨天、7d/30d 组织支出及 API Key 细分 | 历史验收 | | OpenAI Codex | 订阅窗口与已报告的 Credits | 窗口历史验收;Credits 预览 | | OpenCode Go | 已报告的五小时/周/月窗口 | 预览 | | MiniMax 中国 M Plan | 剩余额度 | 历史验收 | | 其他提供商/中转 | 状态和原因 | 无额度适配器 |

缺失数据不当成零;Credits 是用量积分,不是 API 现金余额。

使用说明

  • OpenAI 支出需单独的组织级 Admin Key,不能使用推理 Key;在 OpenAI 详情中设置。支出可能延迟或被修订。
  • 提供商归属优先按 Host 确认的实际端点;没有路由地址时,版本匹配且模型端点一致的内置目录可提供单独标明来源的展示域名,不改变请求地址。已有用户设置或认证记录的提供商优先,组内按当前语言名称排序,未知端点始终最后。仅默认启用不算已保存。编辑在原卡片内展开,模型发现使用弹窗并明确选择;最终点击保存才持久化,不切换当前/默认模型。
  • 推理档位在 Host 支持的模型编辑项中可继承、禁用或自定义。已选档位的平台参数可留空,默认使用同名值;支持留空的 off 保留协议默认行为。会话实际用哪一档仍由 DSH 原生模型选择器决定。
  • 获取可用模型对受支持的列表接口(OpenAI 兼容、Anthropic、Gemini)优先查询平台,并标明来源和凭据范围。实时发现失败或不支持时,仅在可安全回退的路由上使用 DSH 内置目录,不重复请求失败的自定义端点;平台成功返回空列表不回退。固定平台端点遵循 DSH Host 的出站代理配置;自定义端点需通过公网 HTTPS 直连。OpenAI 实时列表使用 API Key,不使用 ChatGPT 订阅授权;Codex 使用 DSH 内置目录。
  • Codex 登录已内置于本插件,复用 DSH 原生授权能力,无需额外 OAuth UI 插件。 只有明确点击登录才发起授权;缺少原生能力时安全禁用登录。已有原生授权的额度/Credits 查询不依赖在此登录。新登录集成仅有源码/合成验证,尚未新增真实账户 OAuth 验收。

隐私与维护

凭据仅在本机 Host 使用,不进入额度结果。额度查询只读,仅访问固定官方 HTTPS 地址并拒绝重定向。原生 DeepSeek 地址无效、无法确认或属于中转时安全停止,不代用官方余额查询或旧缓存。额度适配器不读取 CLI 凭据、Cookie 或刷新令牌,不刷新授权,也不发起推理。

端点优先级、状态处理与规则维护细节见安全说明和提供商规则覆盖。

开发

  • index.js / client.js:Host 与浏览器入口。
  • src/:运行时模块;内置数据位于 src/data/。
  • company-rules.json:对外发布的提供商规则数据,运行时也会在线拉取,因此保留在仓库根目录。
  • locale/、icon.png、cordis.patch.yml:插件包资源。
  • test/、scripts/、docs/:测试、维护脚本与文档。
npm run check
npm test
npm run test:company-coverage

测试不能替代真实页面/提供商验收。更新记录见Changelog。