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

@nice4work/open-queue

v1.1.0

Published

Message queue plugin for OpenCode - control message flow with hold/immediate modes

Readme

Open Queue

queue-power.svg

npm version

Queue messages while OpenCode is thinking. Instead of interrupting the model mid-response, your follow-up messages wait in line and get sent automatically when it's done.

Why?

When you send a message while OpenCode is running:

  • Without this plugin: Your message interrupts the current run, causing context confusion
  • With this plugin: Your message waits, then sends automatically when the model is ready

Install

pnpm add -g @nice4work/open-queue
# or: npm install -g @nice4work/open-queue

Or run directly without installing:

pnpx @nice4work/open-queue
# or: npx @nice4work/open-queue

This adds the plugin to your opencode.json and sets up the /queue command.

Usage

/queue hold       # Queue messages until model is done
/queue immediate  # Back to normal (sends any queued messages)
/queue status     # Check current mode
/queue file <path>      # Parse checklist file and queue pending tasks
/queue file #tasks.md   # Search docs/ or tasks/ directory for file
/queue skip       # Skip current task and move to next

Or just tell the model: "Turn on message queueing"

File Queue Format

Create a markdown checklist file:

- [ ] Simple task
- [ ] Multiline task
  Additional details here:
  - Step 1
  - Step 2
- [x] Completed task (will be skipped)

Run /queue file tasks.md or /queue file #tasks.md to parse and queue all pending tasks.

#filename syntax: Searches only docs/ and tasks/ directories under the project root. If the file is not found in either directory, an error is shown.

Environment Variable

Start in hold mode:

OPENCODE_MESSAGE_QUEUE_MODE=hold opencode

Modes

| Mode | What happens | |------|--------------| | immediate | Messages send right away (default) | | hold | Messages queue until the model finishes, then send in order |

Loop Detection & Recovery

When a task enters an infinite loop:

  1. Similarity-based detection: Compares consecutive assistant outputs using Jaccard similarity. If 5 consecutive outputs are >85% similar (catches near-identical content with minor changes like timestamps), the loop is flagged
  2. Working tree restored: git restore . reverts all uncommitted changes made by the looping task
  3. Task marked failed: The checklist item is marked with [!] in the original file
  4. Next task continues: Queue automatically proceeds to the next pending task

Manual Controls

  • /queue skip: Skip the current task (running or queued) and move to the next one. The skipped task is marked as failed [!] in the checklist file.

Known Issue

When you send a message in hold mode, it briefly appears sent in the UI, then gets sent again when the model finishes. The model only sees it once (after it's done), but the visual glitch exists. This is an OpenCode limitation.

Links

License

MIT