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

@blackbelt-technology/pi-dashboard-quota-plugin

v0.8.0

Published

Surface per-account provider subscription quota (Anthropic, Codex, Copilot, OpenRouter, Z.ai, Kimi, Synthetic) in the dashboard. Self-contained: the plugin owns each provider's usage-endpoint contract and fetches server-side through the host credential se

Readme

Provider Quota plugin

Surfaces per-account subscription quota (how much plan budget is left) for non-Anthropic OAuth providers — Codex, Copilot, OpenRouter, Synthetic, Z.ai, OpenCode Go, Kimi Code — in the dashboard's cross-session web UI. This is the "how much is left" axis, distinct from the context window and per-request API-key rate-limit headers.

Shape: server fetches, client renders. No bridge.

Quota is an account-level fact, so the dashboard server entry resolves credentials through the host's own auth abstraction (InternalAuthStorage + readAuthJson, with OAuth refresh — never a hardcoded ~/.pi/agent/auth.json path) and fetches directly via @latentminds/pi-quotas (pinned 0.4.0; owns per-provider TTL caching + in-flight dedup). Only derived QuotaWindow[] reach the client — tokens never leave the server.

GET /api/quota{ providers: [{ provider, windows[] }] }. A quota_update browser message is broadcast on refresh. No event-store persistence.

Disabled by default · ToS-gated · per-provider

No quota endpoint is called unless all three gates are true: plugins.quota.enabled AND plugins.quota.acknowledgedToS AND that provider's plugins.quota.providers.<id>.enabled. None are ever turned on by migration/upgrade. Anthropic is excluded (pi blocks Claude subscription inference server-side; API-key sessions return not_applicable).

The subscription endpoints are undocumented and calling them programmatically may breach provider consumer terms — personal/local, single-user use only. See the change proposal for the full ToS analysis.

Client surface

  • content-inline-footerQuotaWidget: one mini-slider per enabled provider, fill coloured by pace severity (worst window drives it), a now tick, minimal over by X% tooltip. Click → the shared ui:dialog primitive with an All · per-provider selector.
  • settings-sectionQuotaSettings: ToS acknowledgement gate + master enable
    • per-provider toggles.

Pace math (src/pace.ts) is pure, unit-tested, and guards every division so it never emits Infinity/NaN or a spurious warning.