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-opencode-go-limits

v0.1.0

Published

Pi extension that shows the OpenCode Go monthly usage limit for the selected model in the footer status line

Readme

pi-opencode-go-limits

A Pi extension that shows the OpenCode Go monthly usage limit for the currently selected model in the footer status line — right next to the model name and token/cost stats:

~ (main) • my-session
↑123k ↓45k R678k CH88.5% $0.123 45%/1M   (opencode-go) deepseek-v4-flash • high
◈ $60/mo

The ◈ $60/mo bit (accent-colored diamond + monthly dollar limit) is added by this extension. It tells you how much usage is included with the selected model per month before OpenCode Go blocks requests:

  • Most models: $60/month included
  • Newer/higher-cost models (Grok 4.5, GLM-5.3, Kimi K3, DeepSeek V4 Pro, GPT 5.6 Luna, Qwen3.8 Max, MiMo V2.5 Pro): $15/month included

Install

pi install /path/to/pi-opencode-go-limits
# or, once published:
pi install npm:pi-opencode-go-limits

Restart Pi (or start a new session) and pick an OpenCode Go model with /model. The limit appears in the footer.

How it works

Limits are taken from the official docs page https://opencode.ai/docs/go/ (source: packages/web/src/content/docs/go.mdx in the anomalyco/opencode repository). The extension parses the docs' two markdown tables:

  1. Model | requests per 5 hour | requests per week | requests per month
  2. Model | Input | Output | Cached Read | Cached Write | Usage — the monthly usage included per model.

Because display names are inconsistent between the tables (e.g. MiMo-V2.5 vs MiMo V2.5) and pi's catalog (e.g. DeepSeek V4 Flash (2x usage)), model names are normalized (lowercase, non-alphanumerics stripped, parentheticals removed) and matched against the embedded doc-name index first, then pi's own model catalog so newly added models are picked up automatically.

Caching & refresh

The docs are updated from time to time, so the extension does not rely on hardcoded values:

  1. A small embedded baseline table (last captured 2026-08-15) is used instantly, so the status shows up even before any network call completes.
  2. At session start a cached copy is applied synchronously if one exists (accurate even offline).
  3. In the background, the live go.mdx is fetched when the cache is stale (TTL: 24 hours) or missing, parsed, merged into the store and written back to the cache.
  4. If the fetch fails, the last-known cached values are kept.

Cache and settings live under <pi agent dir>/opencode-go-limits/ (~/.pi/agent/opencode-go-limits/ by default):

  • cache.json — parsed limits + fetchedAt timestamp
  • settings.json — status display settings

Configure

Use /go-status to toggle the monthly limit display (interactive dialog), or set it directly:

/go-status monthly true|false
/go-status reset

Development

npm install
npm run typecheck    # type-check the extension
npm run format       # format with prettier
npm run check:parse  # fetch the live go.mdx and print the parsed limits table

License

MIT