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

ai-quota

v0.1.8

Published

Show AI coding-plan quota and API usage budget in the terminal

Readme

AI剩余额度查询,推荐搭配pi-agent使用
Zero runtime dependencies, read-only GETs, no quota consumed.

usage

Color: green (< 50%), yellow (< 80%), red (≥ 80%).

ai-quota

  • [x] Claude code : ~/.claude/.credentials.json
  • [x] OpenAI Codex : ~/.codex/auth.json
  • [x] Grok build : ~/.pi/agent/auth.json
  • [x] Opencode go : ~/.config/ai-quota/opencode.env
  • [x] Minimax coding plan : MINIMAX_CN_API_KEY or MINIMAX_API_KEY env
  • [x] DeepSeek API : DEEPSEEK_API_KEY
  • [x] Kimi coding plan : 待测试KIMI_API_KEY or MOONSHOT_API_KEY env
  • [x] Zhipu coding plan : 待测试ZHIPU_CN_API_KEY or ZHIPU_API_KEY env (cn/intl regions)

Usage

bun install -g ai-quota # install
ai-quota auth list                    # see which providers are enabled
ai-quota auth disable openai          # skip a provider next time
ai-quota auth enable openai           # bring it back

ai-quota                              # all enabled providers
ai-quota -p minimax                   # set one provider
ai-quota -i 30s                       # refresh in place every 30s
ai-quota query reset-card -p codex    # show Codex reset cards

# 1week 10¥ / 1mon 70¥
ai-quota budget -p deepseek-api -w 10 -m 70

ee-quota (Earth Engine quota)

  1. 完成 Earth Engine 授权并设置项目:
earthengine authenticate
earthengine set_project <PROJECT_ID>
  1. 在网页右上角选择该项目,分别打开并点击启用

若无法启用,请让项目所有者进入 IAM,点击授予访问权限,添加你的 Google 账号,并授予 Service Usage Admin 角色。

  1. 查询月额度:
ee-quota config set project <PROJECT_ID>
ee-quota config --unit h   # s 或 h
ee-quota

Earth Engine 凭据默认位于 ~/.config/earthengine/credentials,详见 Earth Engine Authentication