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

zed-notify

v0.0.2

Published

Pi extension that emits a terminal bell so Zed Terminal Threads can show completion notifications

Readme

zed-notify

A pi extension that emits a terminal BEL (\x07) when pi finishes a turn, so Zed Terminal Threads can show a visual completion notification.

What it does

zed-notify listens to pi's agent_end event and writes a single terminal bell character:

pi.on("agent_end", async () => {
  process.stdout.write("\x07");
});

This package is intentionally minimal. It does not use OSC 9, system notifications, or sound hooks. It relies on Zed Terminal Threads handling BEL.

Install

From npm

pi install npm:zed-notify

From GitHub

pi install git:github.com/ssdiwu/zed-notify

Try once

pi --no-session -e /absolute/path/to/zed-notify -p "reply once: test"

Install as a local/global pi package

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

**不要把 index.ts 拷贝到 ~/.pi/agent/extensions/zed-notify/**作为单源加载方式。pi 的扩展扫描是 包列表 + 自动发现目录 双轨,手挂副本会与已注册的包形成「双源漂移」,同一 agent_end 事件会被两个 handler 各发一次 \x07。详见 AGENTS.md「分发与加载约定(v0.0.2 起)」一节。

Required Zed configuration

This extension is designed for Zed Agent Panel → Terminal Thread.

Add these settings to ~/.config/zed/settings.json:

{
  "agent": {
    "notify_when_agent_waiting": "primary_screen",
    "play_sound_when_agent_done": "never"
  },
  "terminal": {
    "bell": "system"
  }
}

Setting meanings

  • agent.notify_when_agent_waiting
    • "primary_screen": show the visual notification on the primary screen
    • "all_screens": show the visual notification on all screens
    • "never": disable the visual notification
  • agent.play_sound_when_agent_done
    • "never": silent notification
    • "when_hidden": only play sound when the panel/thread is hidden
    • "always": always play sound
  • terminal.bell = "system"
    • lets Zed react to BEL (\x07)

Important behavior notes

  • Works for Zed Terminal Threads.
  • Zed's visual notification is intended for the not-in-focus case. If the terminal thread is already focused, Zed may not show the visual pop-up.
  • This package follows the same bell-based path that works well for terminal-first agent workflows in Zed.
  • This package does not depend on OSC 9. Zed currently ignores OSC 9 terminal notifications.

Verify your Zed setup first

In a Zed Terminal Thread, run:

printf '\a'

If Zed reacts, the bell path is working. Then test zed-notify:

pi --no-session -e /absolute/path/to/zed-notify -p "reply once: test"

Development

tsc --noEmit

Changelog

See CHANGELOG.md.

License

MIT