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

dondon-notify

v0.1.3

Published

Native OS notifications for OpenCode - know when tasks complete

Downloads

329

Readme

opencode-notify

Know when your AI needs you back. Native OS notifications for OpenCode.

A plugin for OpenCode that delivers native desktop notifications when tasks complete, errors occur, or the AI needs your input. Stop tab-switching to check if it's done.

Why This Exists

You delegate a task and switch to another window. Now you're checking back every 30 seconds. Did it finish? Did it error? Is it waiting for permission?

This plugin solves that:

  • Stay focused - Work in other apps. A notification arrives when the AI needs you.
  • Native feel - Uses macOS Notification Center, Windows Toast, or Linux notify-send.
  • Smart defaults - Won't spam you. Only notifies for meaningful events, and only when you're not already looking at the terminal.

Installation

Option 1: Local install (recommended for development)

Copy the plugin directly:

mkdir -p .opencode/plugin
cp /path/to/opencode-notify/src/notify.ts .opencode/plugin/dondon-notify.ts
cp -r /path/to/opencode-notify/src/plugin/kdco-primitives .opencode/plugin/
cd .opencode && bun add node-notifier detect-terminal

Then add to your opencode.jsonc:

{
  "plugin": ["dondon-notify"]
}

Option 2: Via OCX with local file:// registry

Add to your project's ocx.jsonc:

{
  "registries": {
    "local": {
      "url": "file:///path/to/opencode-notify"
    }
  }
}

Then install:

ocx add local/dondon-notify

How It Works

"Notify the human when the AI needs them back, not for every micro-event."

| Event | Notifies? | Sound | Why | |-------|-----------|-------|-----| | Session complete | Yes | Glass | Main task done - time to review | | Session error | Yes | Basso | Something broke - needs attention | | Permission needed | Yes | Submarine | AI is blocked, waiting for you | | Sub-task complete | No | - | Parent session handles orchestration |

The plugin automatically:

  1. Detects your terminal emulator (supports 37+ terminals)
  2. Suppresses notifications when your terminal is focused
  3. Enables click-to-focus on macOS (click notification → terminal foregrounds)

Platform Support

| Feature | macOS | Windows | Linux | |---------|-------|---------|-------| | Native notifications | Yes | Yes | Yes | | Custom sounds | Yes | No | No | | Focus detection | Yes | No | Kitty, GNOME Terminal* | | Click-to-focus | Yes | No | Kitty | | Terminal detection | Yes | Yes | Yes |

* Focus detection on Linux requires xprop and is currently implemented for Kitty

Configuration (Optional)

Works out of the box. To customize, create ~/.config/opencode/dondon-notify.json:

{
  "enabled": true,
  "notifyChildSessions": false,
  "suppressWhenFocused": true,
  "sounds": {
    "idle": "Glass",
    "error": "Basso",
    "permission": "Submarine"
  },
  "kitty": {
    "enabled": true,
    "sounds": false,
    "focusOnClick": true
  }
}

Available macOS sounds: Basso, Blow, Bottle, Frog, Funk, Glass, Hero, Morse, Ping, Pop, Purr, Sosumi, Submarine, Tink

Kitty configuration: The kitty section allows you to customize Kitty-specific behavior:

  • enabled: Use native Kitty notifications (default: true)
  • sounds: Enable notification sounds (default: false, Kitty doesn't support sounds)
  • focusOnClick: Focus terminal when notification is clicked (default: true)

FAQ

Does this add bloat to my context?

Minimal footprint. The plugin is event-driven - it listens for session events and fires notifications. No tools are added to your conversation, no prompts are injected beyond initial setup.

Will I get spammed with notifications?

No. Smart defaults prevent noise:

  • Only notifies for parent sessions (not every sub-task)
  • Suppresses when your terminal is the active window
  • Batches notifications when multiple delegations complete together

Can I disable it temporarily?

Set "enabled": false in the config file, or delete the config to return to defaults.

Supported Terminals

Uses detect-terminal to automatically identify your terminal. Supports 37+ terminals including:

Ghostty, Kitty, iTerm2, WezTerm, Alacritty, Hyper, Terminal.app, Windows Terminal, VS Code integrated terminal, and many more.

Enhanced Kitty Support

When running in Kitty on Linux, the plugin provides enhanced features:

  • Native Kitty notifications using OSC 99 escape codes for better integration
  • Click-to-focus notifications automatically bring Kitty to the foreground
  • Improved focus detection using xprop and Kitty's WINDOWID
  • Optimized performance with direct terminal communication

Kitty notifications are more responsive and integrate seamlessly with the terminal environment.

Manual Installation

If you prefer not to use OCX, copy the source from src/ to .opencode/plugin/.

Caveats:

  • Manually install dependencies (node-notifier, detect-terminal)
  • Updates require manual re-copying

Disclaimer

This project is not built by the OpenCode team and is not affiliated with OpenCode in any way.

License

MIT