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

v0.0.5

Published

OpenCode plugin for simple system notifications when permissions are needed, generation completes, or errors occur

Readme

opencode-notification

OpenCode plugin for desktop notifications in TUI workflows.

You get notifications when:

  • A response is ready
  • A permission is requested
  • A question is asked
  • A session hits an error

Designed for low-noise defaults, Claude Code inspired behavior, and OpenCode Desktop parity where possible.

Install

Add the plugin to your OpenCode config:

{
	"$schema": "https://opencode.ai/config.json",
	"plugin": ["opencode-notification@latest"]
}

Then restart OpenCode.

Configure

The plugin reads oc-notification.json from these locations (lowest to highest precedence):

  1. Global: ~/.config/oc-notification.json (or %APPDATA%\\oc-notification.json on Windows)
  2. Project root: <project>/oc-notification.json
  3. Project OpenCode folder: <project>/.opencode/oc-notification.json

Configs are merged in this order, so later files override earlier ones.

Default config:

{
	"$schema": "https://unpkg.com/opencode-notification@latest/schema/oc-notification.json",
	"delay": 15,
	"enabled": true,
	"response_ready": { "enabled": true },
	"error": { "enabled": true },
	"permission_asked": { "enabled": true },
	"question_asked": { "enabled": true }
}

Minimal low-noise example:

{
	"$schema": "https://unpkg.com/opencode-notification@latest/schema/oc-notification.json",
	"delay": 15,
	"enabled": false,
	"permission_asked": { "enabled": true },
	"question_asked": { "enabled": true }
}

Options

  • delay (number): Default delay before showing notifications (seconds).
  • enabled (boolean): Master on/off switch for all notifications.
  • response_ready, error, permission_asked, question_asked: Per-event settings.
  • response_ready.enabled, error.enabled, permission_asked.enabled, question_asked.enabled (boolean): Enable or disable each event.
  • response_ready.delay, error.delay, permission_asked.delay, question_asked.delay (number, optional): Per-event delay override in seconds.

Events

  • response_ready: Sent when OpenCode becomes idle after an assistant response.
  • error: Sent when a session errors.
  • permission_asked: Sent when OpenCode requests permission.
  • question_asked: Sent when OpenCode asks a question.

Project Direction

  • Mimic Claude Code style notification behavior as closely as possible.
  • Reach feature parity with OpenCode Desktop notifications where possible within TUI limits.
  • Keep behavior configurable and low-noise by default.
  • Contribute improvements upstream to OpenCode once behavior is stable.

Platform Notes

  • Linux: Uses notify-send when available, otherwise terminal bell.
  • macOS: Uses osascript notifications.
  • Windows: Uses PowerShell toast notifications, then msg, then bell fallback.

If notifications do not appear on Linux, install a notification daemon and ensure notify-send is available.

License

Apache-2.0.