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-loop-monitor

v0.2.1

Published

Pi extension for persistent loop wakes and background process monitoring.

Readme

pi-loop-monitor

A Pi extension that provides persistent agent wake loops and background command monitors.

This project was adapted from trvon/pi-loop and reduced to the loop and monitor features. It does not include workflows, task queues, task RPC, subagent orchestration, or controller routing.

Surface

Commands:

  • /loop — create and manage scheduled, event, hybrid, and dynamic loops
  • /monitors — open a BTW-style overlay for all loops and background monitors

Tools:

  • LoopCreate, LoopList, LoopUpdate, LoopDelete
  • MonitorCreate, MonitorList, MonitorUpdate, MonitorStop

Examples

/loop 5m check the deploy
/loop event build:done inspect the build result
/loop finish the release checklist

LoopCreate trigger="0 9 * * 1-5" prompt="Review weekday alerts" maxFires=10
LoopCreate trigger="idle" triggerType="idle" prompt="Finish the release checklist"
LoopUpdate id="1" status="continue" state="Tests pass" nextInterval="5m"
LoopList

MonitorCreate command="npm run build" onDone="Inspect the build result and fix failures"
MonitorList
MonitorUpdate monitorId="1" current=50 total=100 message="Halfway"
MonitorStop monitorId="1"
/monitors

The /monitors dashboard uses the same top-centered overlay shape as pi-btw, so the main chat remains visible behind it. It refreshes live, shows bounded loop and monitor details, and supports keyboard actions: arrows or j/k to select, Enter to toggle details, p to pause or resume a loop, s twice to stop a monitor, d twice to delete a loop, and Escape or Ctrl+C to close.

MonitorCreate.timeout is an inactivity timeout. Output, JSONL progress, or MonitorUpdate renews it. onDone creates a direct one-shot loop wake after completion; it does not require another controller subsystem.

Recurring loops expire after seven days. Event and hybrid subscriptions from an earlier session are retired during recovery. Dynamic loops must call LoopUpdate once per wake.

Loop state is always scoped to one Pi session and persisted under ~/.pi/loops/ as loops-<session-id>.json. Loops are never shared between sessions.

Development

npm run lint
npm run typecheck
npm run build
npm audit --audit-level=moderate
git diff --check

See the usage guide and reference.