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

@toninho09/opencode-background-tasks

v0.1.0

Published

OpenCode plugin for executing agent tasks in background with parallel execution support

Readme

OpenCode Background Tasks Plugin

Run OpenCode agent tasks in parallel without blocking the current session.

Features

  • Start tasks in background and keep working in the foreground
  • Check status and progress snapshots
  • Retrieve results with optional blocking wait
  • Cancel running tasks

Installation

From npm

npm install @toninho09/opencode-background-tasks

Add the plugin to your opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["@toninho09/opencode-background-tasks"]
}

Local Development

Clone the repository:

git clone https://github.com/toninho09/opencode-background-tasks.git
cd opencode-background-tasks
npm install

Then create a symlink to your OpenCode plugins directory:

ln -s /path/to/opencode-background-tasks ~/.config/opencode/plugins/opencode-parallel-task

OpenCode will automatically load the plugin. The plugin uses TypeScript directly, so no build step is required.

Note: The plugin includes an opencode.json file that configures the plugin to load from the current directory. This file is required for local plugins to work properly.

Tools

background_task_start

Start a background task.

{
  "prompt": "Analyze the entire codebase structure...",
  "agent": "explore",
  "model": "gpt-5.2"
}

background_task_status

Check current task status.

{ "task_id": "bg_abc123" }

background_task_result

Get task output. Use block: true to wait.

{ "task_id": "bg_abc123", "block": true, "timeout": 60000 }

background_task_cancel

Cancel one task or all tasks.

{ "task_id": "bg_abc123" }

Notes

  • Tasks are tracked in memory. If the plugin reloads, previously created task IDs are not available.
  • The plugin uses OpenCode sessions under the hood, so results are pulled from session messages.

Development

# Install dependencies
npm install

# Type check (no build required)
npm run typecheck

The plugin is written in TypeScript and is loaded directly by OpenCode. TypeScript files are not compiled to JavaScript - OpenCode handles that automatically.

Publishing

  1. Update version in package.json
  2. Run npm run typecheck to verify types
  3. Publish with npm publish

No build step is required as the plugin is distributed as TypeScript source.