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

v1.0.3

Published

Pushover notifications for OpenCode

Readme

OpenCode Pushover Plugin

A plugin for OpenCode that sends Pushover notifications when your coding sessions become idle.

Features

  • Send notifications via Pushover when OpenCode sessions go idle
  • Customizable message, title, and priority
  • Support for attachments (images and files)
  • Configurable notification sounds and devices
  • HTML message support
  • URL attachments with custom titles

Installation

  1. Install the plugin via npm:

    npm install opencode-pushover
  2. Add the plugin to your OpenCode configuration.

Configuration

You can configure the plugin in several ways, in order of precedence (later sources override earlier ones):

  1. Default configuration in opencode-pushover.json in the plugin directory
  2. User configuration in ~/.config/opencode/opencode-pushover.json
  3. Environment variables in ~/.config/opencode/.env

Environment Variables

Set your Pushover credentials in one of the following ways:

Option 1: Global .env file Create or add to ~/.config/opencode/.env:

PUSHOVER_USER=your_user_key
PUSHOVER_TOKEN=your_app_token

Option 2: User config file Add to ~/.config/opencode/opencode-pushover.json:

{
  "PUSHOVER_USER": "your_user_key",
  "PUSHOVER_TOKEN": "your_app_token",
  "message": "OpenCode has finished!",
  "title": "OpenCode Session Complete",
  "priority": 0
}

Optional Configuration

Configure notifications by editing ~/.config/opencode/opencode-pushover.json:

{
  "PUSHOVER_USER": "your_user_key",
  "PUSHOVER_TOKEN": "your_app_token",
  "message": "OpenCode has finished!",
  "title": "OpenCode Session Complete",
  "priority": 0,
  "sound": "spacealarm",
  "html": 0,
  "device": null,
  "attachment": null,
  "attachment_base64": null,
  "attachment_type": null,
  "timestamp": null,
  "ttl": null,
  "url": null,
  "url_title": null
}

Configuration Options

  • message: Notification message (default: "OpenCode has finished!")
  • title: Notification title
  • priority: Message priority (-2 to 2, default: 0)
  • sound: Notification sound (see Pushover docs for options)
  • html: Enable HTML formatting (1 for enabled, 0 for disabled)
  • device: Target specific device
  • attachment: Path to attachment file
  • attachment_base64: Base64-encoded attachment data
  • attachment_type: MIME type for base64 attachment
  • timestamp: Unix timestamp for message
  • ttl: Message time-to-live in seconds
  • url: URL to include with message
  • url_title: Title for the URL

Supported Attachment Types

The plugin automatically detects MIME types for common image formats:

  • .jpg, .jpegimage/jpeg
  • .pngimage/png
  • .gifimage/gif
  • .webpimage/webp
  • .bmpimage/bmp

For other file types, specify attachment_type in the configuration.

Usage

Once configured, the plugin will automatically send Pushover notifications whenever an OpenCode session becomes idle.

License

ISC