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

patchworks

v0.1.2

Published

a tool to manage patches

Readme

Patchworks

Automatically sync your repository with updates from its template source.

Problem

When you clone a template repository, you lose the connection to the original template. If the template author fixes a bug or makes an improvement, there's no easy way to pull those changes into your repository.

Solution

Patchworks creates an automated system that tracks which template repository your project was based on and helps you stay updated with changes.

GitHub Action

  • Fetches the template repository nightly and advances one commit past the tracked hash when updates exist.
  • Applies a whitespace-tolerant diff, leaving .rej files alongside files that need manual attention.
  • Updates .patchworks.json, commits on patchworks/update, and force-pushes the branch.
  • Skips runs when a Patchworks update PR already exists and opens a fresh PR with a summary and reject list otherwise.
  • Lists any .rej files in the PR body so you can review conflicts directly from the diff.

The action now wraps a composite workflow around the CLI and the peter-evans/create-pull-request action:

jobs:
  patchworks:
    runs-on: ubuntu-latest
    steps:
      - uses: ludicroushq/patchworks@v0
        with:
          patchworks-package: patchworks@latest # or https://pkg.pr.new/org/patchworks@commit
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Inputs let you override the Node version, branch name, base branch, git identity, or even point to a canary tarball published by pkg.pr.new. Any values passed through with: are forwarded to the underlying patchworks update CLI, which prepares the diff; the composite then commits and opens the PR via create-pull-request.

CLI Usage

  • patchworks update runs the same sync logic against the current repository and leaves the changes in your working tree so you can review them before committing. Add --json when you want structured metadata for scripts.
  • GITHUB_TOKEN (or --token) must have permission to push branches and create pull requests.

The generated workflow grants contents: write and pull-requests: write, checks out the repository with fetch-depth: 0, and exposes GITHUB_TOKEN to the action. Advanced users can override behaviour with environment variables such as PATCHWORKS_BASE_BRANCH, PATCHWORKS_BRANCH_NAME, PATCHWORKS_GIT_NAME, and PATCHWORKS_GIT_EMAIL.

Documentation

For installation instructions, usage guides, and more detailed information, visit our documentation at patchworks.dev.

License

MIT