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

pi-notify-agent

v0.1.2

Published

Cross-platform desktop notifications and sounds for pi-coding-agent

Readme

pi-notify-agent

pi-notify-agent preview

Cross-platform desktop notifications + sound alerts for pi-coding-agent.

When a pi run takes longer than a configurable threshold, this package notifies you when the agent:

  • finishes successfully
  • stops with an error / provider failure / connection-like failure

Features

  • Windows: native toast + system beep
  • macOS: native notification via osascript + system beep
  • Linux: notify-send + sound fallback (canberra-gtk-play / paplay when available)
  • Terminal fallback: Kitty OSC 99, otherwise OSC 777, plus terminal bell when needed
  • Attention mode: emits BEL so supporting terminals can flash taskbar, tab, dock, or urgency state
  • Noise reduction: default threshold is 3000ms
  • pi commands: /notify-test, /notify-test error, /notify-status
  • CLI flags: configure threshold and on/off behavior without editing code

Install

From a local folder

pi install ./pi-notify-agent

From GitHub

pi install https://github.com/AlyusLabs/pi-notify-agent

From npm

pi install npm:pi-notify-agent

After installing, reload pi:

/reload

Quick test

/notify-test
/notify-test error
/notify-status

Default behavior

By default the package:

  • waits until the run lasts at least 3000ms
  • sends notifications for success
  • sends notifications for error
  • plays sound together with the notification
  • emits BEL attention together with the notification
  • ignores aborted runs

CLI flags

The extension registers these pi flags:

  • --notify-min-ms <number>
  • --notify-success <on|off>
  • --notify-error <on|off>
  • --notify-sound <on|off>
  • --notify-attention <on|off>

Examples

# Only notify for long runs (5 seconds)
pi --notify-min-ms 5000

# Disable success notifications
pi --notify-success off

# Keep desktop notifications but disable sound
pi --notify-sound off

# Keep notifications but disable terminal attention bell
pi --notify-attention off

# Only notify on errors
pi --notify-success off --notify-error on

Development

Run the extension directly without installing:

pi -e ./extensions/index.ts

Or load the package from its folder:

pi install .

Package structure

pi-notify-agent/
  extensions/
    index.ts
  package.json
  README.md
  LICENSE

Publishing

1. Create a Git repo

git init
git add .
git commit -m "feat: initial pi notification package"

2. Push to GitHub

git remote add origin https://github.com/AlyusLabs/pi-notify-agent.git
git push -u origin main

Users can then install with:

pi install https://github.com/AlyusLabs/pi-notify-agent

3. Publish to npm

If the package name is already taken, rename the name field in package.json first.

npm login
npm publish --access public

Then users can install with:

pi install npm:pi-notify-agent

Taskbar flash / dock bounce / attention

The new notify-attention mode uses the terminal bell (BEL, \a). That is the most cross-platform way to request attention from a terminal window.

Whether this becomes a flashing taskbar icon, a bouncing dock icon, a tab badge, or just a beep depends on the terminal emulator settings.

Common setups:

  • Windows Terminal: configure bellStyle to include window and/or taskbar
  • kitty: enable window_alert_on_bell yes (and on macOS optionally macos_dock_badge_on_bell yes)
  • xterm: enable urgent-on-bell behavior (bellIsUrgent)
  • rxvt-unicode / urxvt: enable urgentOnBell
  • iTerm2: enable bell/dock-bounce style behavior in profile settings or triggers

This is more portable than trying to directly manipulate the OS taskbar/dock from the extension.

Notes

  • Linux desktop notifications require a GUI session and usually notify-send.
  • Linux sound playback depends on what is installed on the machine.
  • On headless / SSH-only environments the package falls back to terminal notifications / bell.
  • Attention behavior is terminal-dependent; BEL is the portable trigger, but the visual effect depends on terminal config.
  • If you want different sounds for success vs error, add that in extensions/index.ts.

License

MIT