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

@brrock/patchsync

v0.1.1

Published

CLI for PatchSync local patch maintenance.

Readme

@brrock/patchsync

CLI for PatchSync local patch maintenance.

This package exposes one binary:

patchsync

The CLI currently supports five local workflows:

  • patchsync init [root]
  • patchsync order [config]
  • patchsync prepare [config] [patch_name]
  • patchsync prepare [patch_name]
  • patchsync prepare [patch_order_number]
  • patchsync capture <patch_name> [config]
  • patchsync verify [config]

What It Does

patchsync is the local companion to the main PatchSync GitHub Action. It helps you work on a patch stack from a clean upstream clone without manually invoking repo maintenance entrypoints yourself.

  • init scaffolds a new PatchSync layout and workflow files
  • order scans the configured patch directory, sorts what it finds, and prints the exact patch application order
  • prepare clones the configured upstream repo into .patchsync-local/target and applies patches in order
  • capture turns your edits in .patchsync-local/target into a patch file under the configured patch directory
  • verify runs the PatchSync action entrypoint in local check mode

Requirements

  • Bun
  • A PatchSync config file, typically patchsync.config.json
  • A repo laid out for PatchSync patch maintenance

The CLI reads target.repo, target.ref, and patches.dir from the config file, so it is meant to be run from a PatchSync-managed repository.

Usage

Scaffold a new PatchSync repo:

patchsync init .

That creates patchsync.config.json, LATEST_SUPPORTED_COMMIT, the initial patches/ layout, and .github/workflows/patchsync.yml if they do not already exist.

Show help:

patchsync --help

Prepare a scratch tree for one patch:

patchsync order patchsync.config.json
patchsync prepare 02-fix-build

Capture changes back into the patch stack:

patchsync capture 02-fix-build patchsync.config.json

Verify the full stack locally:

patchsync verify patchsync.config.json

Typical Flow

patchsync order patchsync.config.json
patchsync prepare 02-fix-build
# edit files under .patchsync-local/target
patchsync capture 02-fix-build patchsync.config.json
patchsync verify patchsync.config.json

Use zero-padded numeric prefixes in patch directory names so the order stays obvious:

patches/
  01-base-port/
  02-fix-build/
  03-add-feature-flag/

Patch entries stack on top of each other. PatchSync starts from clean upstream, applies the first entry, then applies the second entry on top of that result, and continues until the stack is complete.

patchsync prepare stops right before the selected patch. You can select it by name or by the order number shown by patchsync order:

patchsync prepare 02-fix-build
patchsync prepare 2

Development

From the monorepo root:

bun install
bun run build:cli

From this package directory:

bun run build

The built entrypoint is:

dist/main.js

For broader PatchSync setup, configuration, and GitHub Action behavior, see the repo root README.