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

@mawesome/pr-baseline

v0.2.0

Published

Keep open pull requests current with a movable baseline on the base branch, reported through commit statuses

Readme

@mawesome/pr-baseline

Keep open pull requests current with a movable baseline on the base branch.

A repository-wide change lands on main (a toolchain bump, a lint rule, a CI fix) and every open PR that was branched before it keeps passing CI on stale code. pr-baseline marks that commit with a git ref under refs/baselines/, the baseline, and stamps open PRs with a commit status: success when the PR's head contains the baseline, failure when it does not. Require the status in the base branch's ruleset and stale PRs must merge or rebase before they can land.

The baseline moves forward only by intent: a workflow dispatch, a merged PR carrying a label, or a push touching marker paths. When it moves, a refresh re-evaluates the PRs a move can have broken, the ones showing green, and writes only the statuses that changed. --scope unstamped and --scope all cover the rest when a repository needs them.

📚 Full documentation lives in docs/: why the baseline is not a tag, CLI, GitHub Action, API, permissions, rate limits, edge cases, runbook.

Install

pnpm add -D @mawesome/pr-baseline

CLI

export GITHUB_REPOSITORY=owner/name GITHUB_TOKEN=...

# Evaluate a PR head and write its status, or ask about a commit without writing
pr-baseline refresh-pr-status --pr 42
pr-baseline refresh-pr-status <sha>

# Seed or move the baseline, then bring the PRs it can have broken up to date
pr-baseline move-baseline --force --refresh-pr-statuses

# Move only when a labeled PR merged or a marker path changed, then refresh
pr-baseline move-baseline --refresh-pr-statuses

# Preview a refresh without writing anything
pr-baseline refresh-pr-statuses --dry-run

# What is the current state?
pr-baseline report

Exit codes: 0 pass, complete or paused, 1 fail, or incomplete and not paused, 2 error.

Several baselines, each with its own name, label, PR scope and auto-move markers, are configured with --baselines:

pr-baseline refresh-pr-statuses --baselines '[
  { "name": "pr-baseline", "label": "Require PR update", "markers": [".nvmrc"] },
  { "name": "web", "scope": ["apps/web/"], "markers": ["apps/web/package.json"] }
]'

GitHub Action

The same tool runs as a GitHub Action, published to mawesomedev/pr-baseline-action from the actions/pr-baseline workspace on every release. One workflow with two jobs covers PR checks, labeled merges, marker pushes, an hourly recovery refresh and manual dispatches:

- uses: mawesomedev/pr-baseline-action@<sha> # vX.Y.Z
  with:
    base: main

Copy the full workflow from the action's README; docs/action.md explains how events map to commands, the permissions each job needs and how releases reach the mirror.

Programmatic API

import { createClient } from '@mawesome/pr-baseline';

const client = createClient({ repo: 'owner/name', token: process.env.GITHUB_TOKEN });
const result = await client.refreshPrStatus({ pr: 42 });
console.log(result.verdict.kind, result.verdict.missing);

See docs/api.md for the ports that let you swap the ancestry source, the reporter or fetch.

License

MIT