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

opencode-workflow-suite

v0.3.0

Published

OpenCode workflow plugin combining todo enforcement and notifier gating

Downloads

41

Readme

opencode-workflow-suite

OpenCode workflow plugin that combines:

  • todo continuation enforcement on idle sessions
  • notifier gating that waits for enforcer outcomes before signaling "ready"
  • external repo preparation via repo_ensure_local

Component docs

  • src/todo-enforcer/README.md
  • src/notifier/README.md
  • src/repo-local/README.md
  • src/workflow-core/README.md

Install

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["opencode-workflow-suite"]
}

For local development:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["opencode-workflow-suite@file:/absolute/path/to/opencode-workflow-suite"]
}

Exports

import {
  createWorkflowSuitePlugin,
  WorkflowSuitePlugin,
} from "opencode-workflow-suite";

Configuration

import { createWorkflowSuitePlugin } from "opencode-workflow-suite";

export default createWorkflowSuitePlugin({
  todoEnforcer: {
    countdownMs: 1500,
    continuationCooldownMs: 7000,
    stopCommand: "/stop-continuation",
  },
  notifier: {
    settleMs: 3500,
    maxWaitMs: 10000,
    command: {
      enabled: true,
      path: "/usr/bin/paplay",
      args: ["/home/you/sounds/opencode-ready.ogg"],
    },
  },
});

Notifier behavior

  • waits notifier.settleMs after session.idle
  • suppresses "ready" signal when enforcer continues work
  • emits terminal-ready only when enforcer outcome is stable (todo-complete or settle timeout)
  • can emit events for paused, enforcer-failure, permission, question, and error

Command placeholders:

  • {event} {message} {project} {reason} {sessionID} {sessionTitle}

Env override:

  • OPENCODE_WORKFLOW_SUITE_NOTIFY_COMMAND=/path/to/script-or-binary

Optional notifier controls:

  • quietHours (start/end in HH:MM) to suppress notifications during quiet windows

Focus-note:

  • notifications are now delivered even when the current terminal/session is focused
  • suppressWhenFocused and focusCommand do not suppress delivery
notifier: {
  quietHours: {
    enabled: true,
    start: "22:00",
    end: "08:00",
  },
}

Todo enforcer defaults

  • countdownMs: 2000
  • countdownGraceMs: 500
  • continuationCooldownMs: 5000
  • abortWindowMs: 3000
  • maxConsecutiveFailures: 5

Debug tool

  • Tool: todo_enforcer_debug_ping
  • Writes: <session-directory>/.opencode-workflow-suite-debug-pings.jsonl

Repo tool

  • Tool: repo_ensure_local
  • Purpose: clone/update external repositories into a deterministic local root and return local_path for immediate Read/Glob/Grep/Bash usage

Arguments:

  • repo (required): https://host/owner/repo(.git), git@host:owner/repo.git (with allow_ssh=true), host/owner/repo, or owner/repo
  • ref (optional): branch/tag/SHA to checkout after clone/fetch
  • depth (optional): shallow clone depth
  • update_mode (optional): ff-only (default), fetch-only, reset-clean
  • allow_ssh (optional): allow SSH-style remote input
  • auth_mode (optional): auto (default), https, ssh

Repo env vars:

  • OPENCODE_REPO_CLONE_ROOT (env-only absolute path override; default ~/.opencode/repos)
  • OPENCODE_REPO_ALLOW_SSH=true
  • OPENCODE_REPO_TELEMETRY_PATH

Development

bun install
bun run check
bun run check:full
bun run test:e2e
bun run test:e2e:npm

E2E notes:

  • OPENCODE_CONFIG_CONTENT merges with existing OpenCode config; for deterministic runs, the E2E harness isolates config via XDG_CONFIG_HOME
  • OPENCODE_WORKFLOW_SUITE_E2E_NPM_SANDBOX can override npm-mode sandbox path (must be absolute)

Releasing

  • bun run release:verify
  • bun run release:patch|minor|major|beta:first|beta:next

See RELEASING.md for full workflow details.

Primary env vars are now:

  • OPENCODE_WORKFLOW_SUITE_STOP_COMMAND
  • OPENCODE_WORKFLOW_SUITE_NOTIFY_COMMAND
  • OPENCODE_WORKFLOW_SUITE_TELEMETRY_PATH
  • OPENCODE_WORKFLOW_SUITE_TELEMETRY_CONTEXT
  • OPENCODE_WORKFLOW_SUITE_TELEMETRY
  • OPENCODE_WORKFLOW_SUITE_E2E_MAX_ATTEMPTS
  • OPENCODE_WORKFLOW_SUITE_E2E_STRICT
  • OPENCODE_WORKFLOW_SUITE_E2E_NPM_SANDBOX

Repo tool env vars:

  • OPENCODE_REPO_CLONE_ROOT
  • OPENCODE_REPO_ALLOW_SSH
  • OPENCODE_REPO_TELEMETRY_PATH