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-gotify-notifier

v0.6.0

Published

Send Gotify notifications for pi agent session events

Readme

pi-gotify-notifier

Send Gotify push notifications for pi agent session events.

Features

  • Task Complete — notified when the agent finishes processing and is waiting for your input
  • Session Ended — notified when the pi session shuts down
  • Context Warning — notified when context usage reaches configurable thresholds (50%, 75%, 90%, 95%)
  • Toggle on/off — enable or disable all notifications or individual types with the interactive /gotify settings panel
  • Editable thresholds — add, remove, or reset context warning thresholds directly from the settings menu

Installation

Via npm

pi install npm:pi-gotify-notifier

Via git

pi install git:github.com/mario-gc/pi-gotify-notifier@main

Local development

pi -e ./path/to/pi-gotify-notifier/src/index.ts

Configuration

Set the following environment variables before starting pi:

| Variable | Required | Description | |---|---|---| | GOTIFY_URL | Yes | Your Gotify server URL (e.g., https://gotify.example.com) | | GOTIFY_TOKEN | Yes | Gotify application token | | GOTIFY_ENABLED | No | Set to false or 0 to disable the entire extension at startup (no config loaded, no notifications sent) | | GOTIFY_STARTUP_DISABLED | No | Set to true or 1 to load the extension but start with notifications disabled (can be enabled later via /gotify) | | GOTIFY_TLS_REJECT_UNAUTHORIZED | No | Set to false or 0 to disable TLS verification | | GOTIFY_CA_PATH | No | Path to a custom CA certificate file | | GOTIFY_CONTEXT_THRESHOLDS | No | Comma-separated context usage percentages to warn at (default: 50,75,90,95) | | NODE_TLS_REJECT_UNAUTHORIZED | No | Fallback for TLS verification (if GOTIFY_TLS_REJECT_UNAUTHORIZED is not set) |

Example

export GOTIFY_URL="https://gotify.example.com"
export GOTIFY_TOKEN="your-app-token"
pi

How It Works

The extension listens to pi's lifecycle events:

| Event | Notification | Priority | |---|---|---| | agent_end | ✅ Task Complete | 5 | | agent_end | 🚨 Context Warning (at threshold) | 8 | | session_shutdown | 🔴 Session Ended | 3 |

Thresholds reset after each new session and after compaction.

Notifications are debounced — if multiple agent turns complete in quick succession, only one notification is sent after a short delay.

If the required environment variables are not set, the extension loads silently and does nothing.

Commands

| Command | Description | |---|---| | /gotify | Open interactive notification settings |

Type /gotify to open a settings panel where you can:

  • Toggle all notifications on/off
  • Toggle individual notification types (Task Complete, Context Warning, Session Ended)
  • Send a test notification
  • Add, remove, or reset context warning thresholds (e.g., 50%, 75%, 90%, 95%)

Notification state persists across agent turns and survives /reload within the same session.

License

MIT