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

@async23/pi-notify

v0.1.1

Published

Native macOS completion notifications for Pi with tmux click-to-focus

Readme

@async23/pi-notify

Native macOS completion notifications for the Pi coding agent, with Ghostty/tmux click-to-focus.

Features

  • Notifies on agent_settled, after retries, compaction retries, and queued follow-ups finish.
  • Shows the tmux coordinates and Pi session or project name.
  • Uses the latest user prompt as the subtitle and the final outcome as the body.
  • Reports terminal provider errors and cancelled tasks explicitly, including cyber_policy, instead of treating them as successful completion.
  • Plays the macOS Glass sound by default.
  • Clicking the notification activates Ghostty and selects the original tmux pane.
  • Keeps one notification per Pi session instead of collapsing concurrent sessions together.
  • Logs delivery metadata only, not prompt or answer contents.

Requirements

Ghostty and tmux are optional. Notifications still work without them, but click-to-focus requires both.

Install

pi install npm:@async23/pi-notify

Restart Pi after installation, or run /reload in an existing session.

For local development:

pi install /absolute/path/to/pi-packages/packages/notify

Do not load both the package and a separate copy of pi-notify.ts, or every completion will send two notifications.

Setup

The package works immediately through Homebrew's terminal-notifier and uses its bundled Pi icon.

For a dedicated Pi Notifier sender in macOS Notification settings, run once:

/pi-notify-setup

Then verify notification delivery and click-to-focus:

/pi-notify-test

The setup command creates:

~/Applications/Pi Notifier.app

macOS may ask for notification permission the first time it sends a notification.

Notification content

Title:    0:21:1 · session or project name
Subtitle: latest user prompt
Body:     final assistant response, terminal error, or cancellation status

Long text and image markers are cleaned before display.

Commands

| Command | Description | | --- | --- | | /pi-notify-setup | Install or refresh the dedicated macOS notifier app | | /pi-notify-test | Send a test notification and test tmux click-to-focus |

Configuration

Optional environment variables:

| Variable | Purpose | | --- | --- | | PI_NOTIFY_DISABLED=1 | Disable notifications | | PI_NOTIFY_SOUND=name | Change the macOS sound; defaults to Glass | | PI_NOTIFY_APP=/path/app | Override the notifier app path | | PI_NOTIFY_FOCUS_SCRIPT=/path/script | Override the tmux focus script | | PI_NOTIFY_LOG_PATH=/path/log | Override the metadata log path | | PI_NOTIFY_DISABLE_LOG=1 | Disable metadata logging |

The default log is:

~/.pi/agent/logs/pi-notify.log

It records timestamps, delivery method, session ID, and tmux coordinates only.

Fallback order

Pi Notifier.app
→ Homebrew terminal-notifier
→ Ghostty AppleScript
→ macOS AppleScript

The AppleScript fallbacks can display notifications but cannot guarantee exact tmux pane selection when clicked.

License

MIT