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

@ndom91/opencode-hud

v0.2.3

Published

Persistent native status HUD for the OpenCode 2 TUI.

Readme

OpenCode HUD

npm version npm downloads license OpenCode 2 plugin

OpenCode 2 plugin that displays a persistent status HUD below the text input in the TUI. It is a native TUI plugin, not an assistant-message renderer, so it does not add HUD content to a session transcript.

Install

Add it to the plugins array in ~/.config/opencode/cli.json, for example:

{
  "plugins": [
    "@ndom91/opencode-hud"
  ]
}

OpenCode downloads and loads the package. Restart OpenCode after changing the configuration.

[!WARNING] To show 5h and weekly Codex subscription usage, the HUD plugin queries the OpenAI endpoint through your system's Codex authorization. This is disabled by default. See PRIVACY.md before enabling it with the codexUsage package option. This is the same mechanism as used by CodexBar and others.

Status Rows

The default HUD can show the following native TUI data:

  • Project path, branch, dirty state, and local change summary.
  • Session context usage, including an amber compaction likely soon warning at 80% usage and the active compaction state.
  • Up to two running shell commands and the four most recent tool activities.
  • The most recent failed tool for 15 seconds. A new user turn clears the failure row.
  • Up to three running subagents, including elapsed time and their own context percentage.
  • Optional Codex 5-hour and weekly usage limits.

Configuration

The default HUD shows all available status rows. Disable individual groups with package options in ~/.config/opencode/cli.json:

{
  "plugins": [
    {
      "package": "@ndom91/opencode-hud",
      "options": {
        "agents": false,
        "codexUsage": true,
        "compaction": false,
        "context": true,
        "git": true,
        "shell": true,
        "tools": true
      }
    }
  ]
}

| Option | Controls | | --- | --- | | agents | Running subagents, elapsed time, and context usage | | codexUsage | Disabled by default. Set to true to show Codex 5-hour and weekly usage limits. | | compaction | Active compaction state and the 80% context warning | | context | Current session context usage | | git | Branch, dirty state, and change summary | | shell | Running shell commands | | tools | Recent tool activity and brief tool-failure row |

Local Development

Requirements:

  • opencode2
  • Node.js 24+

Install dependencies and validate the project:

pnpm install
pnpm format
pnpm typecheck
pnpm test

Start OpenCode from this repository:

opencode2 .

OpenCode discovers .opencode/plugins/tui/status.tsx automatically. Start or open a session to see the HUD under the prompt.

[!NOTE] The OpenCode 2 plugin API is beta and liable to change. Please check NOTES.md and validate against the installed @opencode-ai/plugin runtime types if making changes.

License

MIT