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

@siakhooi/gh-pr

v0.7.1

Published

cli to run some frequently use gh pr commands

Readme

gh-pr

CLI for frequently used GitHub pull request workflows. Search open PRs, approve ones whose checks already passed, and squash-merge PRs you have approved.

The tool talks to the GitHub REST API through Octokit. Every command needs a GITHUB_TOKEN with access to search issues, read pull requests and checks, submit reviews, and merge.

Installation

Install globally from npm:

npm install -g @siakhooi/gh-pr

Or run without installing:

npx @siakhooi/gh-pr --help

The package is also published on GitHub Packages.

Set a GitHub personal access token before running any command:

export GITHUB_TOKEN=ghp_...

Commands

gh-pr has three main commands. Shared filters (--assigned-to-me, --authored-by-me, --authored-by-dependabot, --authored-by-renovate, -u/--user, -R/--repo, --label, -l/--limit) narrow GitHub search results. Default --limit is 3.

list

Search open pull requests and print them as JSON (title, URLs, repo, number, labels, updated_at). Extra filters: --requested-my-review, --not-yet-reviewed.

autoreview

Find matching open PRs, skip ones you already reviewed on the current head commit or whose checks are missing or failing, then approve them. Use -n/--dry-run first. Caps: --max-update (default 2) and --max-update-per-repo (default 1).

automerge

Find open PRs that are already approved, skip unless they are mergeable (clean), you approved the current commit, and all checks succeeded, then squash-merge. Same dry-run and max-update guards as autoreview.

Usage

gh-pr --help
gh-pr list --help

# List open PRs assigned to you
gh-pr list --assigned-to-me

# Dependabot PRs that still need a review
gh-pr list --authored-by-dependabot --not-yet-reviewed -l 10

# Preview approvals, then approve PRs that requested your review
gh-pr autoreview --requested-my-review --dry-run
gh-pr autoreview --requested-my-review --max-update 2 --max-update-per-repo 1

# Merge approved Dependabot PRs in one repo
gh-pr automerge --authored-by-dependabot --dry-run
gh-pr automerge --authored-by-dependabot -R owner/repo

Example

See https://github.com/siakhooi/my-repo-management

Locations

Source Code

Distributions

Quality

Badges

License Code Style GitHub last commit GitHub tag (latest by date) GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests GitHub top language

Release npm npm npm type definitions

Quality-Qlty Maintainability Code Coverage

Quality-Sonar Code Smells Duplicated Lines (%) Bugs Vulnerabilities Technical Debt Maintainability Rating Security Rating Reliability Rating Quality Gate Status

Wise count