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-sound-notify

v0.1.0

Published

Opencode plugin — play notification sounds when responses complete

Readme

Opencode Sound Notify

Play notification sounds when Opencode finishes a response — so you don't have to stare at the terminal waiting.

Demo

When Opencode completes a response, the prompt reappears and a sound plays. If the terminal is blurred, a desktop notification fires too. No more context-switching cost.

Requirements

  • Opencode >= 1.17.0
  • afplay (macOS, built-in), aplay (Linux, install alsa-utils), or PowerShell (Windows, built-in)

Installation

Two approaches — use both for full coverage.

1) Built-in sounds (simpler, works now)

Add or merge into ~/.config/opencode/tui.json:

{
  "$schema": "https://opencode.ai/tui.json",
  "attention": {
    "enabled": true,
    "sound": true,
    "notifications": true,
    "volume": 0.4
  }
}

Restart Opencode. The built-in done event plays a notification when responses complete.

Custom sounds per event:

{
  "attention": {
    "enabled": true,
    "sound": true,
    "notifications": true,
    "volume": 0.4,
    "sounds": {
      "done": "/path/to/your/sound.mp3",
      "error": "/path/to/error.mp3",
      "question": "/path/to/question.mp3"
    }
  }
}

Supported events: default, done, error, question, permission, subagent_done.

2) Plugin (granular control, when plugin system is available)

opencode plugin install opencode-sound-notify

Or install from a local checkout:

git clone https://github.com/YOUR_USER/opencode-sound-notify.git
opencode plugin install ./opencode-sound-notify

The plugin plays a sound on every tui.prompt.append event (when the prompt reappears after a response).

Default sounds by platform

| Event | macOS | Linux | Windows | | -------- | ---------------------- | --------------------------------------- | ------------------------------ | | done | /System/Library/Sounds/Glass.aiff | /usr/share/sounds/freedesktop/stereo/complete.oga | C:\Windows\Media\notify.wav |

Configuration

Volume

Built-in: "volume": 0.4 (0–1) in tui.json.

Plugin: edit index.js to change the sound path or add volume control via afplay -v 0.5.

Debounce

The plugin debounces sounds — max one play per sound type per 2 seconds. Prevents rapid-fire when multiple events fire.

Project structure

opencode-sound-notify/
├── index.js         # Plugin entry (npm package)
├── config/
│   └── tui.json     # Built-in TUI config snippet
├── package.json     # npm package metadata
├── LICENSE          # MIT
└── README.md        # This file

Contributing

PRs welcome. Ideas:

  • Custom sound packs
  • Volume control via plugin options
  • Per-channel sounds (different tones for subagents, errors, questions)
  • Integration tests

License

MIT