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

@geckom/opencode-queue

v0.1.2

Published

OpenCode plugin that maintains a global task queue and processes queued work when OpenCode is idle.

Readme

opencode-queue

Buy Me A Coffee

An OpenCode plugin that maintains a global task queue and processes queued work when OpenCode is idle.

Architecture

The source is split into focused modules under src/, while the runtime deploy still ends up as a single bundled plugin file for OpenCode.

  • src/plugin.ts wires hooks and tools
  • src/queue-manager.ts owns queue.json persistence and serialized state transitions
  • src/queue-processor.ts runs the queue/session state machine
  • src/schedule-manager.ts owns cron jobs and delegates persisted mutations back to QueueManager
  • src/testing.ts exposes a test-only surface used by compiled-output tests

How it works

The plugin stores a shared queue in ~/.config/opencode/queue.json. When OpenCode is idle, one process-wide queue processor picks the next pending item, creates or resumes a session for it, and monitors progress. Blocked items (permission requests, questions) hold the queue until resolved. Completed work enters a review state before final close-out.

Features

  • Queue management tools — add, list, confirm, follow up, remove, and retry items
  • Idle processing — automatically starts the next queued task when OpenCode is idle
  • Permission and question handling — detects blocked sessions and auto-resumes when you respond through any opencode interface
  • Review gate — finished work enters review_pending state for human sign-off before marking complete
  • Task dependencies — parent-child relationships with configurable dependency modes
  • Retry with backoff — transient processing errors requeue items as pending with increasing retry delays
  • Blocked reminders — time-based reminder toasts for blocked queue items
  • Scheduled tasks — one-off (run once at a specific time) or recurring (cron-based) scheduled items that automatically prepend to the front of the queue
  • Schedule management — pause, resume, and remove scheduled tasks; automatic auto-disable after a configurable number of occurrences
  • Corruption-safe queue store handling — preserves broken queue.json contents for recovery instead of silently resetting state
  • Hot-reload config — change queue settings without restarting OpenCode

Tools

| Tool | Description | |------|-------------| | queue-add | Add a task to the queue | | queue-list | List queue items, with optional status filter and view modes | | queue-confirm | Mark a review_pending item as complete | | queue-followup | Send a follow-up message on a review_pending item | | queue-remove | Remove a queue item | | queue-retry | Retry a failed item | | queue-schedule-add | Schedule a one-off or recurring task | | queue-schedule-list | List, pause, resume, or remove scheduled tasks |

Installation

Add to your opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": [
    "@geckom/opencode-queue"
  ]
}

Alternatively, install directly from GitHub:

{
  "plugin": [
    "@geckom/opencode-queue@git+https://github.com/geckom/opencode-queue.git"
  ]
}

Configuration

The queue reads its settings from ~/.config/opencode/queue.json. Edit the config object there — changes apply immediately without restarting OpenCode.

| Setting | Default | Description | |---------|---------|-------------| | idleTimeoutSeconds | 3600 | Seconds of inactivity before the next item is processed | | blockedReminderMinutes | 30 | Minutes between reminders for blocked items | | maxRetries | 3 | Maximum retry attempts for failed items | | retryDelaysMinutes | [5, 10, 15] | Delay in minutes before each retry attempt | | reminderIntervalMessages | 30 | Messages between blocked-item reminders | | sessionTimeoutMinutes | 60 | Maximum minutes to wait for a running session before marking it failed |

Development

Local tests use compiled output from dist/, including an internal test surface for the repo test suite. That test-only surface is not exported or published as part of the package contract.

npm install
npm run build
npm test

To deploy into your local OpenCode config:

npm run build:runtime

Smoke test the deployed plugin with:

opencode --print-logs debug config

License

MIT