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

@aliou/pi-processes

v0.9.0

Published

![banner](https://assets.aliou.me/pi-extensions/banners/pi-processes.png)

Readme

banner

pi-processes

Manage background processes from Pi without blocking the conversation.

This extension lets Pi keep long-running commands alive while the conversation continues. It is useful for dev servers, test watchers, local APIs, builds, and log tails.

Let Pi keep working while processes run

When a task needs a long-running command, Pi can start it in the background by itself and keep helping with the rest of the work.

That means Pi can, for example:

  • start a dev server and keep coding
  • keep a test watcher running while it fixes failures
  • run a local API while it inspects logs
  • watch build output without blocking the conversation

You can then inspect, pin, or stop those processes from the UI.

Installation

From npm:

pi install npm:@aliou/pi-processes

From git:

pi install git:github.com/aliou/pi-processes

Open the process panel

Use /ps to open the main process panel.

From there you can:

  • see running and finished processes
  • inspect recent output
  • pin a process to the dock
  • kill a running process
  • clear finished entries

Keys:

  • j/k or arrow keys: move selection
  • J/K: scroll preview
  • enter: pin selected process to the dock
  • x: kill selected process
  • c: clear finished processes
  • q or esc: close

Inspect logs

Use /ps:logs [id|name] to open the log overlay for one process.

This is useful when Pi started a server, watcher, or local API and you want to follow what it is doing in more detail.

Keys:

  • tab / shift+tab: switch process tabs
  • g/G: jump to top or bottom
  • j/k or arrow keys: scroll
  • s: switch between combined, stdout, and stderr
  • f: toggle follow mode
  • /: search
  • n/N: move between search matches
  • q or esc: close

Pin one process

Use /ps:pin [id|name] to keep the dock focused on one process.

This is useful when one process matters more than the others, such as a dev server or a test watcher.

Without arguments, Pi shows a picker.

Control the dock

Use /ps:dock [show|hide|toggle] to control dock visibility.

The dock gives you a compact live view without leaving the conversation.

Adjust settings

Use /ps:settings to configure the extension.

Available settings include:

  • process list size
  • output limits
  • shell path override
  • dock defaults
  • follow mode behavior
  • optional background command interception

Platform support

  • macOS: supported
  • Linux: supported
  • Windows: not supported

Runtime log watch alerts

Use process tool start with logWatches to trigger immediate alerts while the process is still running.

  • default behavior: each watch fires once (repeat: false)
  • set repeat: true to trigger on every match
  • scope by stream (stdout, stderr, both) to reduce noise

Example: server ready marker (one-time default)

{
  "action": "start",
  "name": "dev-server",
  "command": "pnpm dev",
  "logWatches": [
    { "pattern": "ready on http://localhost:3000" }
  ]
}

Example: error marker from stderr

{
  "action": "start",
  "name": "builder",
  "command": "pnpm build --watch",
  "logWatches": [
    { "pattern": "TypeError|ReferenceError", "stream": "stderr" }
  ]
}

Example: repeatable watch on stdout only

{
  "action": "start",
  "name": "worker",
  "command": "pnpm worker",
  "logWatches": [
    { "pattern": "job completed", "stream": "stdout", "repeat": true }
  ]
}

Invalid regex patterns fail fast at process start with a clear error.

Troubleshooting

Pi started something and I want to see more output

Open /ps for a quick overview, or use /ps:logs for full logs.

I want one process to stay visible

Use /ps:pin to focus the dock on that process.

I want Pi to avoid shell background tricks

Enable background command interception in /ps:settings. When enabled, Pi avoids normal shell background patterns and uses the process workflow instead.

Contributing

For development, testing, docs generation, and extension internals, see CONTRIBUTING.md.

License

MIT