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-tmux-signal

v0.1.10

Published

OpenCode plugin that signals agent state in tmux — recolors the window when it needs input or finishes, and names the window after the project directory

Downloads

201

Readme


Run OpenCode inside tmux and a row of identical opencode windows becomes legible at a glance. Each window is recolored by agent state — yellow when it wants permission, purple on a question, soft red when it finishes — and named after the session. The highlight only shows while the window is in the background, and clears the moment you open it.

Highlights

  • State at a glance — permission (yellow), question (purple), done/error (soft red); nothing while working or focused.
  • Smart window names — names follow a priority: an old/resumed session uses its title, a brand-new session uses your first prompt, and the project directory name is only a fallback when an old session has no title. Names are short deterministic slugs (≤ 8 characters), and a name you set yourself is never overwritten.
  • Mark-as-read — opening the window clears the highlight (on keyboard and mouse, via focus-events + reset hooks).
  • Sub-agent aware — child-session events never flash the main window.
  • Zero ceremony — drives tmux at runtime from $TMUX_PANE, and sets up the small bit of tmux config it needs for you.

Install

opencode plugin opencode-tmux-signal -g

This installs the package globally and updates your opencode.json automatically.

Or manually:

npm install -g opencode-tmux-signal

Then add to your opencode.json:

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

Requires tmux 3.0+. On first run it adds a small managed block to your ~/.tmux.conf (focus events + a reset hook) so the highlight clears reliably; disable with OPENCODE_TMUX_SIGNAL_MANAGE_TMUX_CONF=off.

Configuration

Everything is optional and set via environment variables. Defaults are a mellow palette that pairs with a green status bar.

| Variable | Default | Description | | --- | --- | --- | | OPENCODE_TMUX_SIGNAL_PERMISSION_BG / _FG | colour179 / black | Permission-request colors (yellow) | | OPENCODE_TMUX_SIGNAL_QUESTION_BG / _FG | colour97 / white | Question colors (purple) | | OPENCODE_TMUX_SIGNAL_DONE_BG / _FG | colour131 / white | Done/error colors (soft red) | | OPENCODE_TMUX_SIGNAL_WINDOW_NAME | llm | llm (model slug with deterministic fallback), dir (project directory), or off | | OPENCODE_TMUX_SIGNAL_NAME_MODEL | github-copilot/gpt-4o-mini | Direct model used for window naming. Currently supports GitHub Copilot auth from opencode's auth store | | OPENCODE_TMUX_SIGNAL_NAME_TIMEOUT_MS | 2500 | Maximum time for the direct naming model call, clamped to 500-10000 ms | | OPENCODE_TMUX_SIGNAL_RESET_ON_FOCUS | on | Clear the highlight when you open the window | | OPENCODE_TMUX_SIGNAL_MANAGE_TMUX_CONF | on | Manage the ~/.tmux.conf block | | OPENCODE_TMUX_SIGNAL_DEBUG | (unset) | Log decisions to /tmp/opencode-tmux-signal.log |

Colors accept any tmux color: red, brightblue, or colour0colour255.

How it works

  • The window is resolved once from $TMUX_PANE, so multi-pane layouts target the right window.
  • State is colored with window-status-style. It's only applied when the window is in the background — if you're already on the window when the state changes, it stays unhighlighted — and a pane-focus-in / after-select hook clears it when you return to a highlighted window.
  • Names use a direct GitHub Copilot model call with a short timeout, then deterministic local fallback. The plugin does not create hidden opencode sessions or call client.session.prompt for naming, so naming does not write messages/parts into opencode's session database.
  • It only renames a window whose name is still a bare process name (opencode, nano, …) or one it set itself — never a custom name.
  • Sub-agent sessions (those with a parentID) are tracked and ignored, so a finishing sub-agent never flashes the main window.

Development

bun install
bun run typecheck
bun run build

Releasing

npm version patch && git push --follow-tags

The publish workflow handles npm (Trusted Publishing + provenance) and the GitHub Release.

License

MIT