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

bb-plugin-ntfy

v0.1.5

Published

Push notifications via ntfy.sh whenever a bb thread needs your attention: finished unread turns, failures, and pending approvals.

Readme

bb-plugin-ntfy

Push notifications to your phone via ntfy.sh whenever a bb thread needs your attention.

Screenshots

ntfy

ntfy settings: topic, server, and access token fields.

What triggers a notification

| Event | When | Priority | | --- | --- | --- | | Turn finished | A thread goes idle with an unread result — bb's own attention rule (latestAttentionAt > lastReadAt), with a grace window so pings don't fire while you're actively watching | 3 (default) | | Pending interaction | A thread is waiting on an approval, question, or provider input | 4 (high) | | Thread failed | A thread transitions into error | 4 (high) |

Notifications are deduplicated per (thread, attention moment): a retry that fails again pings again, but repeat events for the same failure do not. A global cooldown (default 30s) suppresses back-to-back idle pings across threads; failures and interactions bypass it. Quiet hours (optional) suppress everything.

Hidden (background) threads are skipped by default.

Install

bb plugin install /Users/shane/Code/bb-plugin-ntfy

Configure

bb plugin config ntfy set topic shane-bb          # required — your ntfy topic
bb plugin config ntfy set token <access-token>    # optional — private topics
bb plugin reload ntfy

Verify end-to-end:

bb ntfy test --title "Hello from bb"
bb ntfy status

You will also get a push on your phone — install the ntfy app and subscribe to the same topic.

Settings

| Key | Default | Meaning | | --- | --- | --- | | topic | — | ntfy topic to publish to (required) | | server | https://ntfy.sh | ntfy server (self-hosted supported) | | token | — | access token for private topics (secret) | | notifyOnIdle | true | ping when a turn finishes unread | | notifyOnFailure | true | ping on thread failure | | notifyInteractions | true | ping on pending approval/input | | notifyHidden | false | also ping for hidden (background) threads | | minUnreadSeconds | 30 | skip pings for turns unread for less than this — raises the bar so actively-watched turns stay quiet; 0 = strict bb attention semantics | | cooldownSeconds | 30 | minimum gap between idle pings | | quietStart / quietEnd | "" | quiet hours as HH:MM (24h); empty disables. Overnight windows (22:0007:00) wrap past midnight |

CLI

bb ntfy test [--title <text>] [--priority 1-5]   # send a test notification
bb ntfy status                                   # show current configuration

How it works

The plugin listens to the six thread lifecycle events and reacts to thread.idle and thread.failed. It uses bb's own attention signal — the thread DTO's latestAttentionAt vs lastReadAt timestamps — so "needs attention" means exactly what the sidebar red dot means. Pending interactions are checked through bb.sdk.threads.interactions.list on idle.

Tapping a notification opens the thread in bb. When bb connect is paired, the deeplink uses its remote URL; otherwise it falls back to the local server's loopback URL.

Development

npm install
npm test          # vitest: unit + fake-host integration tests
npm run typecheck # tsc --noEmit
npm run build     # bb plugin build