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

pi-chatgpt-limit

v0.3.1

Published

Show ChatGPT Codex subscription usage in pi's footer

Readme

pi-chatgpt-limit

A pi extension that shows your ChatGPT Codex subscription usage inline in the footer.

It displays configurable ChatGPT Pro/Codex usage next to the active Codex model, and provides a command for detailed 5-hour and weekly usage windows.

Preview

Footer preview

Footer display variants and color thresholds:

Footer display variants and color thresholds

Install

pi install npm:pi-chatgpt-limit

Or shorthand:

pi install pi-chatgpt-limit

Then reload pi:

/reload

Usage

The footer percentage appears only while using an openai-codex model authenticated via pi's /login flow.

For details, run:

/chatgpt-limit

This shows:

  • plan
  • account email when available
  • 5-hour usage window
  • weekly usage window
  • reset times

Footer configuration

The /chatgpt-limit menu also configures the footer display:

  • show weekly usage (default), 5-hour usage, both, or hide usage
  • show used percent, used percent with reset, remaining percent, or remaining percent with reset
  • reset footer settings to defaults

Examples:

  • W 42%
  • W 42% · ~2d
  • W 58% left
  • W 58% left · ~2d
  • 5h 25% / W 42%

Settings persist globally in ~/.pi/agent/chatgpt-limit.json, so the same footer preference applies across pi sessions.

Notes

This extension calls ChatGPT's usage endpoint:

GET https://chatgpt.com/backend-api/wham/usage

It uses the OAuth token already stored by pi for the active openai-codex provider.

Extensions run with local user permissions and can access pi auth storage. Review extensions before installing them.

Contributing

See CONTRIBUTING.md for development setup, PR expectations, and commit message guidance.

Release

See RELEASE.md for the release checklist, GitHub release publishing, npm verification, and announcement steps.

License

MIT