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

merge-steward

v0.27.1

Published

Serial merge queue for GitHub — rebase, CI-gate, and merge PRs one at a time

Readme

merge-steward

Self-hosted serial merge queue for bot-managed and human-managed GitHub pull requests. Admits approved PRs whose required checks are green, builds speculative branches on top of the latest main, waits for CI on those integrated SHAs, and fast-forwards main to the tested result.

Independent of PatchRelay. Communicates through GitHub only — PRs, reviews, checks, labels, branches. Pairs with review-quill; neither requires the other.

Why this matters

PRs delivered through the queue are tested against main as it was at admission time, and re-validated if main advances during validation. No more "CI was green yesterday, breaks on merge today" — the queue catches the integration bug before main ever sees it.

How it works

  1. A PR becomes eligible when GitHub says it is approved and its required checks are green.
  2. The steward notices through webhook wakeups or startup reconcile scans, and admits the PR to the queue.
  3. It builds a speculative branch — main + PR at the head, cumulative downstream (main + A + B, main + A + B + C).
  4. CI runs on that speculative SHA.
  5. If the head's speculative SHA is still a fast-forward from current main, the steward pushes that SHA to main; otherwise it retries.
  6. On CI failure: retry (gated on base SHA change), then evict with a durable incident record and GitHub check run.
  7. PatchRelay, the ship-pr skill, or any agent sees the check run failure and fixes the branch; when CI passes again the PR can be re-admitted.

Use with your own agent

For an agent that drives PRs through the queue and reacts to evictions / failing checks without running PatchRelay's full harness, install the ship-pr skill from the companion Claude Code marketplace:

/plugin marketplace add krasnoperov/patchrelay-agents
/plugin install ship-pr@patchrelay

The skill wraps merge-steward pr status --wait and review-quill pr status --wait into a blocking-gate workflow with stable exit codes, so the agent only wakes on terminal outcomes.

Quick start

Prerequisites: Node.js 24+, gh CLI in PATH, git.

pnpm add -g merge-steward
merge-steward init https://queue.example.com
merge-steward attach owner/repo --base-branch main
merge-steward doctor --repo repo
merge-steward service status
merge-steward queue status --repo repo
  • init writes config files, a systemd unit, and a generated webhook secret.
  • attach discovers the default branch from GitHub and stores a per-repo config.
  • Required checks are learned from GitHub branch protection at runtime — the steward does not keep a local copy.

Full setup (GitHub App permissions, secrets, webhook events, systemd, HTTP API): docs/merge-steward.md.

Everyday commands

merge-steward dashboard                         # operator UI across all projects
merge-steward pr status                         # one-PR verdict (inside a git checkout)
merge-steward queue status --repo <id>          # quick text snapshot
merge-steward queue show --pr <num>             # one PR's queue events and incidents
merge-steward queue reconcile --repo <id>       # force one reconcile tick
merge-steward service logs --lines 100

pr status, queue status, queue show, and queue reconcile auto-resolve --repo and --pr from the current git checkout. pr status supports --wait --timeout <s> --poll <s> for blocking until a terminal state. Exit codes:

| Code | Meaning | |-|-| | 0 | merged / approved with green required checks | | 2 | changes_requested / failing required checks / evicted / closed | | 3 | still in flight (queued, preparing, validating, merging, pending) | | 4 | --wait timed out | | 1 | usage or configuration error |

Merge gate

The real gate is:

  • GitHub says the PR review state is approved
  • configured required checks are green
  • the steward's speculative integrated branch also passes CI

review-quill/verdict only matters if you include it in the repo's required checks. Branch protection is useful as defense in depth, but the steward merges by fast-forwarding main to the already-tested speculative SHA — not by pressing GitHub's merge button. Successful merges therefore depend on the steward App being allowed to push to the protected branch. See docs/merge-steward.md for the full App permission set.

Interaction with PatchRelay

Independent services, GitHub as the shared bus:

  1. PatchRelay moves an issue to awaiting_queue when the linked PR is approved and green, and may add the configured queue label as an admission nudge.
  2. The steward admits from fresh GitHub truth, lands the PR, or evicts and creates the eviction check run (default merge-steward/queue).
  3. PatchRelay watches for that check run failure and triggers queue_repair.
  4. After repair, PatchRelay pushes a new head; the steward re-admits only after the new head is approved and green.

Neither service calls the other's API.

Reference