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

opencode-glm-extras

v1.0.2

Published

OpenCode TUI plugin: GLM Coding Plan peak/off-peak rate indicator in the sidebar + PgUp/PgDn navigation between your prompts.

Readme

opencode-glm-extras

TUI plugin for opencode with extras for the Z.ai GLM Coding Plan:

  • Rate indicator in the left sidebar: shows whether you are in off-peak (0.5x credits) or peak (1x) hours, with a countdown to the next transition. Per Z.ai docs, peak is Mon–Fri 14:00–18:00 UTC+8; everything else is off-peak at 50% credit rate.
  • Prompt navigation: PgUp / PgDn jump to the previous / next user prompt in the session. Past the first/last prompt they fall through to the built-in top/bottom scroll. Also available as palette commands ("GLM Extras" category).

Install

Add to ~/.config/opencode/tui.json:

{
  "$schema": "https://opencode.ai/tui.json",
  "plugin": ["opencode-glm-extras"]
}

Options

Pass a [name, options] tuple to configure the peak window or keys:

[
  "opencode-glm-extras",
  {
    "peak": {
      "start": "14:00",
      "end": "18:00",
      "days": [1, 2, 3, 4, 5],
      "utcOffsetMinutes": 480
    },
    "promptNav": { "pageUp": "pageup", "pageDown": "pagedown" }
  }
]

| Option | Default | Description | | --- | --- | --- | | peak.start / peak.end | "14:00" / "18:00" | Peak window in the plan's timezone (must not cross midnight) | | peak.days | [1,2,3,4,5] | Days with a peak window (0 = Sunday, 1 = Monday … 6 = Saturday; default is Mon–Fri) | | peak.utcOffsetMinutes | 480 | UTC offset of the plan's timezone (UTC+8 Singapore) | | promptNav.pageUp / pageDown | pageup / pagedown | Keys bound to previous/next prompt |

Notes

  • The indicator counts time only; it does not fetch quota data (see @slkiser/opencode-quota for 5-hour/weekly credit windows in the sidebar).
  • Prompt jumps anchor on the last user prompt and step through visible messages, mirroring the TUI's own scrolling. Very short prompts can occasionally be skipped due to the TUI's scroll margin.
  • Bindings are active only while a session is open; PgUp/PgDn keep their normal behavior on the home screen.

License

MIT