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

@yceachan/pi-shelld

v0.2.0

Published

pi extension: session-scoped background shells with shell_daemon, a TUI monitor, and pi.events service discovery

Readme

pi-shelld

A pi extension that lets the agent launch and manage long-running background processes — npm run dev, servers, watchers — through a dedicated shell_daemon tool, and gives the human a keyboard-driven ⭕shell monitor to watch and stop them from the session.

  • shell_daemon tool — the LLM starts/stops/lists background shells and reads their output.
  • ⭕shell monitor — a footer status entry (visible while shells exist) opening a TUI overlay: a ps list page and a per-shell details page (status, runtime, command, live output) with clickable URLs, plus x to stop.

Every shell follows the session lifecycle: closing the session stops all its shells. State lives per session at ~/.pi/agent/sessions/--<cwd>--/<session>.shelld/.

Install

pi install npm:@yceachan/pi-shelld        # published package
pi install git:github.com/yceachan/ea-pi-extensions@main  # or from the monorepo
pi -e npm:@yceachan/pi-shelld             # try once without installing

Usage

  • Tell the agent to start a dev server: it will call shell_daemon with action: "start".
  • Open the monitor with the ⭕shell footer entry: press the registered shortcut (see docs/keybindings.md in pi) or run /shelld.

Extension integration

Separately loaded pi extensions can discover the versioned pi-shelld:service:v1 service through pi.events. Its minimal start/close API lets integrations share the same shell registry, lifecycle lock, logs, and ⭕shell monitor without importing, depending on, or bundling pi-shelld. start also returns an in-memory settled promise for the spawned process; persistent shell status remains the two-state pid-derived model.

Persistence and lifecycle

A shell started with action: "start" is detached from the extension and keeps running after the tool call returns. This lets a server, watcher, or other long-running process continue while the agent works; later ps, status, and logs calls inspect the same shell. The registry and merged stdout/stderr log are stored under the current pi session's *.shelld/ directory.

This persistence is session-scoped, not permanent. session_shutdown stops every tracked process tree and removes that session's state and logs. If pi exits abnormally, a later start of the same session reaps any orphaned trees before use. Use stop to end a shell while preserving its record and log for inspection, then close to delete both.

Development

No build step — pi loads TypeScript directly via jiti. Edit src/, reload the extension (/reload in pi) to pick up changes.

For local typechecking, install the dev dependencies with bun install — these are devDependencies only and are omitted at runtime.

License

MIT