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

@howaboua/opencode-background-process

v0.1.0

Published

OpenCode plugin for managing background processes - launch, monitor, and control long-running tasks

Downloads

71

Readme

opencode-background-process

An OpenCode plugin for managing background processes. Launch, monitor, and control long-running tasks like dev servers, watchers, and build processes.

background-process

Installation

Add to your opencode.json:

{
  "plugin": ["opencode-background-process"]
}

OpenCode automatically installs plugin dependencies at runtime.

Tools

background_process_launch

Start a command as a background process.

| Argument | Type | Required | Description | | ---------------- | ------ | -------- | ------------------------------------------ | | command | string | yes | The shell command to run | | cwd | string | no | Working directory (defaults to current) | | id | string | no | Custom ID (auto-generated if not provided) | | maxOutputLines | number | no | Output buffer size (default: 500) |

background_process_list

List all background processes with status, PID, runtime, and command.

background_process_read

Read captured output from a background process.

| Argument | Type | Required | Description | | -------- | ------- | -------- | ------------------------------------------- | | id | string | yes | Process ID to read from | | lines | number | no | Number of lines to return (default: 50) | | clear | boolean | no | Clear buffer after reading (default: false) |

background_process_write

Send input to a running process's stdin.

| Argument | Type | Required | Description | | --------- | ------- | -------- | ------------------------------ | | id | string | yes | Process ID | | input | string | yes | Input to send | | newline | boolean | no | Append newline (default: true) |

background_process_kill

Kill a background process.

| Argument | Type | Required | Description | | -------- | ------- | -------- | --------------------------------------------------- | | id | string | yes | Process ID to kill | | signal | enum | no | SIGTERM, SIGKILL, or SIGINT (default: SIGTERM) | | remove | boolean | no | Remove from tracking after killing (default: false) |

background_process_cleanup

Remove exited processes or kill all processes.

| Argument | Type | Required | Description | | --------- | ------- | -------- | ---------------------------------------------------------------- | | killAll | boolean | no | Kill all running processes (default: false, only removes exited) |

Usage Examples

Start a dev server with 'bun run dev' in the background

List all background processes

Read the last 100 lines from process 'bun-1'

Send 'q' to process 'bun-1' to quit

Kill process 'bun-1'

Notes

  • Processes are tracked per OpenCode session
  • Output is buffered (last 500 lines by default)
  • Auto-generated IDs use the command name (e.g., bun-1, npm-2)

License

MIT