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

@kmjayadeep/pi-jobs-done-sound

v0.1.2

Published

Play a small sound when Pi finishes an agent turn.

Downloads

448

Readme

pi-jobs-done-sound

A tiny Pi extension that plays a short sound when Pi finishes an agent turn and is ready for your next instruction.

Useful when you kick off a longer task, switch windows, and want an audible cue when the job is done.

Install from GitHub (quick)

pi install git:github.com/kmjayadeep/pi-jobs-done-sound

Then restart Pi, or run /reload in an existing Pi session.

Install from npm

pi install npm:@kmjayadeep/pi-jobs-done-sound

Install

pi install git:github.com/kmjayadeep/pi-jobs-done-sound

Then restart Pi, or run /reload in an existing Pi session.

Try without installing

pi -e git:github.com/kmjayadeep/pi-jobs-done-sound

# Or from npm
pi -e npm:@kmjayadeep/pi-jobs-done-sound

Requirements

The extension includes extension/jobs_done.mp3 and tries these players:

  • Linux: mpv, ffplay, mpg123, paplay, pw-play
  • macOS: afplay

If no player works, it falls back to the terminal bell.

How it works

The extension listens for Pi's agent_end event and plays the bundled MP3:

pi.on("agent_end", async () => {
  // play jobs_done.mp3
});

Package structure

.
├── extension/
│   ├── index.ts
│   └── jobs_done.mp3
├── package.json
├── tsconfig.json
├── LICENSE
└── README.md

package.json declares this as a Pi package with:

{
  "keywords": ["pi-package", "pi-extension"],
  "pi": {
    "extensions": ["./extension"]
  }
}

Development

npm install
npm run typecheck
pi -e ./extension

Publishing

New versions are published to npm via a GitHub Actions workflow that uses OIDC for authentication and npm provenance — no stored secrets needed.

Prerequisites

Before the first publish, set up an npm publisher on npmjs.com:

  1. Go to npm publishers page for your account.
  2. Click "Add Publisher".
  3. Enter your GitHub repository URL: https://github.com/kmjayadeep/pi-jobs-done-sound.
  4. Confirm the OIDC connection.

This tells npm to trust OIDC tokens from GitHub Actions for this repo.

Trigger a publish

Create and push a GitHub Release (with a tag like v0.1.0). The workflow at .github/workflows/publish.yml runs automatically:

# Tag and push
cd pi-jobs-done-sound
npm version patch    # bumps to 0.1.1, creates a git tag
git push --tags origin main

Then create a GitHub Release from the tag on the Releases page — this triggers the publish workflow.

Workflow details

  • Uses npm publish --provenance with id-token: write for OIDC.
  • Runs on release events (tag published) and can be triggered manually via the GitHub UI.
  • Runs type checking before publishing.

License

MIT