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-alert

v0.1.1

Published

Tmux alert plugin for OpenCode — get notified when your AI agent needs attention

Readme

opencode-tmux-alert

Tmux alert plugin for OpenCode — get notified when your AI agent needs attention.

npm License OpenCode

Quick Start · How It Works · Events · Customisation


Quick Start

Package

Install in your OpenCode config directory:

bun install opencode-tmux-alert

Then add the plugin to your opencode.json:

{
  "plugin": ["opencode-tmux-alert"]
}

Local file

Copy src/index.ts into your OpenCode plugins directory:

cp src/index.ts ~/.config/opencode/plugins/opencode-tmux-alert.ts

How It Works

When OpenCode needs your attention — a task finishes, a permission is requested, or a question is asked — the plugin triggers a tmux alert on the current window. When you respond, the alert clears automatically.

The bundled scripts do two things:

  1. Set a tmux user option (@opencode-alert) that you can reference in your status line
  2. Send a bell character (\a) which triggers tmux's built-in monitor-bell notification

This means alerts work out of the box with a standard tmux config, and can be further customised with status line formatting.


Events

| Event | Trigger | Action | |-------|---------|--------| | session.idle | Task completed, agent waiting | Alert | | permission.updated | Agent needs permission to proceed | Alert | | message.part.updated | Tool pending approval | Alert | | tui.prompt.append | Agent asking a question | Alert | | message.updated (user) | User submits a message | Clear |


Customisation

Status line indicator

Use the @opencode-alert user option in your tmux status format to show a visual indicator:

# In tmux.conf — show an indicator when OpenCode needs attention
set -g status-right "#{?@opencode-alert,#[fg=yellow] OpenCode,} ..."

Custom scripts

Override the bundled alert and clear scripts with your own via environment variables:

export OPENCODE_ALERT_SCRIPT="$HOME/my-scripts/alert.sh"
export OPENCODE_CLEAR_SCRIPT="$HOME/my-scripts/clear.sh"

Your scripts receive no arguments. The TMUX_PANE environment variable is available if you need to target the current window.

tmux bell monitoring

To use the bell-based alerts, enable monitoring in your tmux.conf:

set -g monitor-bell on
set -g visual-bell off    # optional — suppress the visual flash

Requirements

  • OpenCode with plugin support
  • tmux — the plugin disables itself gracefully if not running inside tmux

License

MIT