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

@wannfq/pi-meter

v0.3.1

Published

Provider allowance windows for Pi — displayed in a compact /meter overlay.

Readme

pi-meter

pi-meter is a Pi extension that shows provider allowance windows in a compact /meter overlay.

The /meter overlay showing provider allowance windows

Features

  • Shows OpenAI Codex subscription allowance and reset times through Pi's existing openai-codex login.
  • Shows OpenCode Go rolling, weekly, and monthly allowance usage from the source-reviewed usage route, authenticated with the OpenCode Zen/Go API key resolved from Pi's auth store at read time.
  • Shows xAI SuperGrok's shared weekly usage through Pi's SuperGrok / X Premium OAuth login.
  • Keeps successful provider readings visible when another provider fails.
  • Omits a live provider's row when it settles with no usable reading and a suppressed failure (not-configured, unauthorized, network, or invalid-response); those typed failures keep their internal facts but never produce a failure-derived display, and a usable cached reading stays visible.
  • Keeps timeout and rate-limited failures visible as failure rows.
  • Does not list Claude: it has no provider definition, auth resolution, source adapter, or network I/O until a qualifying first-party allowance contract and permitted credential-use policy exist.
  • Fetches only when /meter opens or you request a refresh. It performs no startup requests, credential resolution, or background polling.

Install

Pi packages run with full system access. Review the source before installing.

pi install npm:@wannfq/pi-meter

You can also install directly from GitHub:

pi install git:github.com/wannfq/pi-meter

To try the extension without installing it:

pi -e npm:@wannfq/pi-meter

Use

Run Pi in interactive mode, then enter:

/meter

Use r to request a refresh and Esc or q to close the overlay. You can also open the overlay with a forced refresh:

/meter refresh

A forced refresh bypasses cached freshness, but it still respects provider rate protection. OpenAI Codex requires an openai-codex account in Pi. OpenCode Go requires the OpenCode Zen/Go API key stored in Pi's auth store. SuperGrok requires Pi's xAI OAuth login; an XAI_API_KEY alone does not grant access to consumer subscription usage.

Develop

This project requires Node.js and the pnpm version declared in package.json.

pnpm install
pnpm check
pnpm test
pnpm dev

pnpm dev starts Pi with only this extension loaded. See docs/providers.md before adding or changing a provider. Project conventions and validation requirements are in AGENTS.md.

License

MIT