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

v0.2.0

Published

Pi extension that sends a system notification when the agent ends its turn

Readme

pi-alert

A pi extension that sends a system notification when the agent ends its turn.

Install

pi install npm:pi-alert

Or from GitHub:

pi install git:github.com/maxpetretta/pi-alert

Usage

Install the extension and notifications will fire automatically whenever the agent finishes responding to a prompt.

Notifications use the project root directory in the title (for example pi — pi-alert) and include an activity summary with elapsed time in the body.

Alert text prioritizes the most useful activity summary from the completed run:

  • updated files
  • other tool calls
  • read files
  • generic completion fallback

Notification delivery is terminal-first, with OS fallback:

  • Ghostty, WezTerm, and rxvt-unicode: OSC 777 terminal notifications
  • iTerm2: OSC 9 terminal notifications
  • Kitty: OSC 99 terminal notifications
  • tmux: supported via passthrough to supported outer terminals
  • macOS fallback: osascript with a native notification and the Glass sound
  • Linux fallback: notify-send from libnotify
  • Windows fallback: PowerShell and a System.Windows.Forms.NotifyIcon balloon notification
  • Final fallback: terminal bell (BEL) when no notification transport succeeds

Platform support

| Platform | Terminal-native notifications | Fallback | |---|---|---| | macOS | Yes, in supported terminals such as Ghostty, iTerm2, WezTerm, Kitty, and rxvt-unicode | osascript | | Linux | Yes, in supported terminals such as Ghostty, WezTerm, Kitty, and rxvt-unicode | notify-send | | Windows | Not the primary path today | PowerShell balloon notification |

Terminal-native notifications require pi to be running inside a supported TTY terminal with the expected environment variables available. When running inside tmux, pi-alert attempts to detect the outer client terminal and forwards notifications through tmux passthrough when allow-passthrough is enabled. If tmux passthrough is unavailable or no supported terminal transport is detected, pi-alert falls back to the platform notification command, and finally to a terminal bell when no notification command succeeds.

Linux notes

Most desktop Linux setups already have notify-send. If yours does not, install it with your distro package manager.

Examples:

sudo apt install libnotify-bin
sudo dnf install libnotify
sudo pacman -S libnotify

Development

This package uses Bun for local development.

bun install
bun run lint
bun run typecheck
bun test

The test suite uses Bun's built-in test runner and covers the platform-specific notification command builders and escaping helpers.

License

MIT