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

glm-coding-quota

v1.0.0

Published

GLM Coding Plan quota panel for the DeepSeek Harness composer: 5-hour and weekly credit windows from the BigModel team monitoring API

Readme

glm-coding-quota

A DeepSeek Harness plugin that shows your GLM Coding Plan quota right in the composer — the 5-hour rolling window and the weekly credit window, straight from the BigModel team monitoring API.

输入框底栏常驻一个刻度环显示 5 小时窗口余量,悬停展开完整额度卡片(5 小时 / 每周两列:剩余百分比、重置时间、彩色刻度条)。数据来自 open.bigmodel.cn 团队监控接口,5 分钟轮询 + 服务端缓存,不占请求额度。

quota ring

Features

  • Segmented tick ring beside the model selector — tracks the 5-hour window at a glance (green / amber / red as it drains)
  • Hover card with one row per quota window: label, remaining %, reset time, color-coded tick bar
  • Optional plan-level badge (level) from the team API
  • 5-minute client polling, 5-minute server cache, in-flight dedup — one API hit per refresh no matter how many UIs ask
  • Works with any GLM Coding Plan key: reads ZAI_CODING_CN_API_KEY from env or ~/.dsh/.credentials.yaml

Install

dsh plugin --profile <your-profile> add glm-coding-quota

Then restart DeepSeek Harness. The ring appears next to the model selector in the composer.

Configuration

Two values are needed: your BigModel organization and project IDs (the team quota API answers empty without them). Three ways to provide them, first match wins:

1. Plugin config — in your profile's cordis.patch.yml:

- id: glm-coding-quota
  name: glm-coding-quota
  config:
    organization: org-xxxxxxxx
    project: proj_xxxxxxxx

2. User-level config file — ~/.dsh/glm-coding-quota.json (simplest):

{ "organization": "org-xxxxxxxx", "project": "proj_xxxxxxxx" }

3. Env vars — BIGMODEL_ORGANIZATION / BIGMODEL_PROJECT.

The API key is picked up automatically (env ZAI_CODING_CN_API_KEY, or the same key DSH already stores in ~/.dsh/.credentials.yaml for the GLM provider — no extra setup if you already use GLM models).

Where to find your IDs: the BigModel console (open.bigmodel.cn) — organization & project management pages.

Requirements

  • DeepSeek Harness >= 0.2.0-rc.1
  • A GLM Coding Plan subscription (team API access)

Debug

GET /api/glm-coding-quota/quota on your DSH web-server port returns the raw mapped payload; add ?force=1 to bypass the cache. Useful for verifying the key/scope without the UI.

License

MIT