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

@parke.dev/pi-background-terminals

v0.1.0

Published

Long-running shell commands for the pi coding agent: dev servers, watchers and builds that keep running while the agent works

Readme

@parke.dev/pi-background-terminals

Long-running shell commands for the pi coding agent: dev servers, watchers and builds that keep running while the agent works.

Four tools plus a /ps command:

| Tool | What it does | | ----------- | ------------------------------------------------------------------ | | bg_start | start a command in the background and return immediately | | bg_status | status plus a truncated tail of recent output | | bg_list | all terminals with status, age and output sizes | | bg_kill | stop one or more terminals (SIGTERM → SIGKILL, whole process tree) |

At most 8 terminals run at once. Starting a ninth fails until something is killed. Terminals are session-scoped: everything is stopped on shutdown or reload, so a dev server cannot outlive the session that started it.

Commands get no stdin (stdio stdin is ignored). Anything that prompts for input sees EOF immediately rather than hanging — pass credentials via env or flags instead.

When a terminal exits, its result is delivered automatically as a follow-up message, so the agent does not need to poll. Calling bg_status or bg_kill on an already-finished terminal consumes that result and suppresses the automatic message, so the same outcome is never delivered twice.

Output is retained in memory (bounded per stream); status and completion messages show a truncated tail of what matters. While terminals are running, Pi's extension-status API exposes a terse count and /ps hint to custom footers such as @parke.dev/pi-dashboard.

Ships with a background-terminals skill that teaches the model when to reach for these tools instead of bash.

Install

pi install npm:@parke.dev/pi-background-terminals

No configuration. The tools work as soon as the package is installed.

Why not just bash

bash blocks the turn until the command finishes. That is correct for git status, a single test file, or a build you intend to wait on.

It is wrong for anything that does not naturally end, or ends much later:

  • dev servers (vite dev, next dev, an API server)
  • watchers (tsc --watch, vitest --watch)
  • log tails (kubectl logs -f)
  • long streaming builds and full test suites

bg_start returns immediately with an id. Keep working. You will get a message when it exits; only call bg_status when you need output now (server up before a request, how far a build has got). Check bg_list before starting a second copy of something that may already be running.

Diagnostics

/ps                 list background terminals (status, age, output sizes)
/ps kill <id>       stop one terminal

License

MIT