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

omp-usage-widgets

v1.3.1

Published

Claude/Codex/tokscale usage status-line widgets + subagent status widget for omp (oh-my-pi coding agent). Installs itself into ~/.omp/agent/extensions.

Readme

omp-usage-widgets

Claude/Codex/tokscale usage status-line widgets + subagent status widget for omp (oh-my-pi coding agent).

  • agent-model-widget.ts — shows active subagents and recently-read skills above the editor.
  • usage-widget/ — shows Claude/Codex OAuth usage percentages plus a right-aligned tokscale ($ cost) segment, matching the native status line's powerline/box-drawing style.

Install

npm install -g omp-usage-widgets

For a local dev build instead of the published registry version:

npm pack && npm install -g ./omp-usage-widgets-*.tgz

The postinstall script (runs via bun) copies both widgets into ~/.omp/agent/extensions/ (or $PI_CODING_AGENT_DIR/extensions under --profile) — omp's native extension auto-discovery picks them up from there with no extensions: config entry or CLI flag needed.

It also appends a default usageWidget: block to ~/.omp/agent/config.yml only if one isn't already there — an existing block is left untouched.

Requirements

  • tokscale CLI for the cost segment: npm i -g @tokscale/cli. Without it, the segment shows an install prompt instead of numbers (no crash).
  • Claude/Codex credentials are per-machine (Keychain / ~/.claude/.credentials.json / ~/.codex/auth.json) — not bundled here, log in separately on each machine.

Updating

npm update -g omp-usage-widgets

This only picks up new versions within the same major (e.g. 1.x1.y), matching the ^1.x range npm records for a plain npm install -g with no version pinned. A major bump (breaking config.yml key changes) requires an explicit npm install -g omp-usage-widgets@latest.

Either way, the postinstall script always overwrites ~/.omp/agent/extensions/agent-model-widget.ts and ~/.omp/agent/extensions/usage-widget/ with this package's copies, but never touches config.yml if a usageWidget: block already exists there.

This means: edit widget behavior (bar width, colors, etc.) upstream in this package's source, publish a new version, and update — hand edits made directly under ~/.omp/agent/extensions/ are lost on the next update. Config values (leftInset, showCodex, ...) live in config.yml and always survive.

Config options (usageWidget: in config.yml)

| Key | Default | Description | |---|---|---| | leftInset | 2 | Dashes between the left corner and the first pill | | rightInset | 2 | Dashes between the last pill and the right corner | | refreshMs | 60000 | Usage/cost refresh interval | | showClaude | true | Show the Claude usage pill | | showCodex | true | Show the Codex usage pill | | showCost | true | Show the right-aligned tokscale cost segment |