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-pr-status-plugin

v0.1.1

Published

OpenCode V2 sidebar panel showing your open pull requests and their aggregated CI state, read through the local gh CLI.

Readme

opencode-pr-status-plugin

CI

An OpenCode V2 TUI plugin: a sidebar panel with your open pull requests and their aggregated CI state, read through the local gh CLI — no browser, no context switch.

Created with the ospec-workflow harness by Snakeblack.

What it shows

  • Your own open pull requests (gh pr list --author @me): state mark, number, title and head branch.
  • The aggregated CI state per pull request, as a distinct shape per state so it reads without colour: ◐ running, ● green, ✖ failed, ○ none.
  • Stacked pull requests grouped under their root: when one PR's base branch is another PR's head branch, the chain is indented base to tip under the root.
  • A refresh every 30 seconds while the panel is open; a failed refresh keeps the last good list.

Requirements

  • OpenCode V2 (see Supported hosts).
  • gh installed and authenticated (gh auth login). Every GitHub read goes through gh; the plugin never handles tokens itself.
  • A project directory that is a GitHub repository.

Install

Add the package to your opencode.json(c):

{
  "$schema": "https://opencode.ai/config.json",
  "plugins": ["opencode-pr-status-plugin"]
}

OpenCode installs missing package plugins in the background. You can also install it explicitly:

opencode plugin add opencode-pr-status-plugin

CLI-only setups (a cli.json beside the config) can list the package there instead:

{
  "plugins": ["opencode-pr-status-plugin"]
}

Usage

Open the TUI in a GitHub project and look at the sidebar: the panel renders your open pull requests as ● #123 Title with the branch line under each row. Long titles are clipped to one line; drafts are marked (draft).

Failures are explicit and never take the TUI down: gh missing or unauthenticated, offline, rate-limited, and projects without a git remote each show their own message, and a temporary failure keeps the last good list.

How it works

  • One gh pr list --state open --limit 50 --author @me call per refresh, with the JSON fields the panel needs.
  • No credentials, no direct GitHub API calls, no persisted state: everything is read through gh and kept in memory.
  • Pull-request titles and branch names are normalized once at the boundary before rendering, so platform text never reaches the renderer raw.

Supported hosts

OpenCode V2 is supported. The package declares @opencode/plugin ^2.0.32 and is tested against OpenCode 2.0.32; @opentui/core / @opentui/solid (>= 0.5.17) and solid-js (>= 1.9.0) are provided by the host. OpenCode V1 is not supported.

Versioning

SemVer: patch for fixes, minor for new panel functionality that keeps the host contract, major for a breaking change to the host contract — the opencode-pr-status-plugin and opencode-pr-status-plugin/tui entrypoints, or the supported host range.

Known advisories

npm audit reports critical advisories in seroval, reached through the host-provided stack (@opencode/plugin → @opentui/solid → solid-js). There is no fixed upstream release yet. The plugin itself makes no network calls and handles no credentials, so that code is not exercised by this plugin; the advisory will be revisited when upstream ships a fix.

License

MIT with the Commons Clause License Condition v1.0: use, modify and redistribute freely, but do not sell the plugin as that condition defines it. See LICENSE.

Development

npm ci
npm run lint
npm run typecheck
npm test

Releases: bump version in package.json, commit, and create a GitHub release with tag v<version>. The publish workflow re-runs the checks and publishes to npm with provenance; it requires an NPM_TOKEN repository secret (a granular npm token with publish rights).