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-drawer-statusline

v1.6.0

Published

A compact prompt status line for OpenCode — directory, worktree, branch, session status, and OpenCode version under every prompt.

Readme

opencode-drawer-statusline

A compact status line rendered under the OpenCode session prompt. One muted line, read live from the session state:

opencode-drawers | wt feature-x | branch main | status busy | oc 1.16.2

Segments collapse when empty — the worktree segment only shows when it differs from the directory, branch only on a repo, status only while a session is active.

Install

Add the plugin to your OpenCode config (opencode.json):

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["opencode-drawer-statusline"]
}

To run from a local checkout — for development of the plugin itself — register it by absolute file:// path instead. This form is for development only; published installs use the npm form above.

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["file:///abs/path/to/packages/statusline/src/index.ts"]
}

How it loads

This drawer is TUI-only: all behaviour lives in the ./tui surface. The package exposes two exports — "." (a no-op server anchor) and "./tui" (the status line). OpenCode discovers a package's ./tui export only when the package is listed in the plugin array, so the "." anchor exists solely to give the array something to point at; OpenCode then loads the status line in its TUI process automatically. There is no separate install.

⚠️ The single-instance rule: solid/opentui usage lives ONLY in .tsx files. The host rewrites a plugin's solid-js/@opentui/* imports to its OWN already-loaded runtime instance, but its Solid transform only runs on files matching /\.(js|ts)x$/. A .ts file that imports solid/opentui at runtime resolves to this package's nested copy = a second instance, which throws Orphan text error at render time. The entry is therefore src/tui/index.tsx and registers with inline JSX render callbacks so the host transform owns component creation.

Pinned-version note

The "./tui" plugin API is newer and less settled than the server plugin API, and its published types lag the runtime. This surface is built and tested against:

  • OpenCode 1.16.2 (@opencode-ai/[email protected], which provides the /tui type entry).
  • opentui 0.3.2 (@opentui/solid) — the version OpenCode 1.16.2 bundles.

Treat breakage on an OpenCode/opentui bump as expected maintenance: re-pin @opentui/solid to the new host version and re-run bun run typecheck (it includes tsconfig.tui.json).