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

pr-checkmate

v1.20.5

Published

Automated PR quality checks: linting, formatting, dependency analysis, and spellcheck

Readme

Build ESLint Prettier

♟️ PR CheckMate

PR CheckMate is an npm package for automating Pull Request checks. It helps teams maintain code quality by automatically validating linting, formatting, dependencies, and spelling before merging to main.

🔍 Why PR CheckMate?

  • ✅ Automatic checks on every PR without extra setup.
  • ✅ No need to install ESLint, Prettier, or cspell in your project — all included.
  • ✅ Enforces a unified code style across repositories.
  • ✅ Checks package.json / package-lock.json for dependency changes.
  • ✅ Spellcheck for code, documentation, and JSON files with multilingual support (EN, RU, UK, HE, FR).
  • ✅ Package Vulnerabilities Check
  • ✅ Scans for secrets using gitleaks
  • PR CheckMate – Zero-config CLI that automates ESLint, Prettier, spellcheck, dependency checks, and npm audit for pull requests.

🚀 Zero-Config by Default

You don't need to install or configure:

  • ESLint
  • Prettier
  • cspell (with multilingual dictionaries)
  • Security scanning tools

Everything works out of the box.

🧩 Fully Customizable

Users can override:

  • ESLint rules and ignore patterns
  • Prettier rules
  • CSpell dictionary and ignore lists
  • Which checks run
  • Source code path

User configuration is stored in:

<project-root>/pr-checkmate.json

⚙️ Example: pr-checkmate.json

{
  "sourcePath": "src",
  "commands": {
    "npx pr-checkmate init": "Update pr-checkmate.json",
    "npx pr-checkmate all": "Run all checks",
    "npx pr-checkmate lint": "Lint code using ESLint",
    "npx pr-checkmate prettier": "Format code using Prettier",
    "npx pr-checkmate deps": "Check project dependencies",
    "npx pr-checkmate npm-audit": "Run package vulnerabilities check",
    "npx pr-checkmate security": "Security scan",
    "npx pr-checkmate spellcheck": "Run spellcheck via cspell"
  },
  "eslint": {
    "rules": {},
    "ignorePatterns": []
  },
  "prettier": {
    "rules": {}
  },
  "cspell": {
    "words": [],
    "ignorePaths": [],
    "ignoreRegExpList": []
  },
  "documentation": {
    "eslint": "https://eslint.org/docs/latest/rules/",
    "typescriptEslint": "https://typescript-eslint.io/rules/",
    "prettier": "https://prettier.io/docs/en/options.html",
    "cspell": "https://cspell.org/configuration/"
  }
}

🛠 How It Works

1. Install

npm install --save-dev pr-checkmate

2. Initialize

npx pr-checkmate init

This creates:

  • pr-checkmate.json - Configuration file where you can specify the source code path and customize rules
  • .github/workflows/pr-checkmate.yml - GitHub Actions workflow for automated PR checks with auto-commit support

3. Run Checks

npx pr-checkmate <job>

⚡ Jobs

| Job | Description | |------------|-------------| | all | Run all checks: ESLint, dependency check, Prettier, spellcheck, security scan | | lint | Lint code using ESLint | | prettier | Format code using Prettier | | deps | Check project dependencies | | security | Run security scan for secrets | | spellcheck | Run spellcheck via cspell (supports EN, RU, UK, HE, FR) | | audit | Run npm audit --audit-level=moderate to check for vulnerable packages |

🤖 GitHub Actions Workflow (Auto-Generated)

When you run npx pr-checkmate init, it automatically creates .github/workflows/pr-checkmate.yml:

name: PR Checkmate Quality Checks

on:
  pull_request:
    branches: [main, master, develop]
    types: [opened, synchronize, reopened]

permissions:
  contents: write
  pull-requests: write

jobs:
  pr-checkmate-all:
    name: PR Checkmate All Checks
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v4
        with:
          ref: ${{ github.head_ref }}
          fetch-depth: 0

      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: 20

      - name: Install dependencies
        run: npm ci

      - name: Run PR Checkmate All Checks
        run: npx pr-checkmate all
        continue-on-error: true

      - name: Auto-commit formatting changes
        run: |
          git config user.name "github-actions[bot]"
          git config user.email "github-actions[bot]@users.noreply.github.com"
          git add -A
          if ! git diff --cached --quiet; then
            git commit -m "style: auto-format code with Prettier"
            git push origin HEAD:${{ github.head_ref }}
            echo "Formatting changes committed and pushed"
          else
            echo "No formatting changes needed"
          fi
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

⚙️ GitHub Actions Permissions

For the auto-commit feature to work, ensure your repository has the correct permissions:

  1. Go to SettingsActionsGeneralWorkflow permissions
  2. Select "Read and write permissions"
  3. Save changes

The workflow will automatically commit Prettier formatting fixes directly to your PR branch.

🌍 Multilingual Spellcheck Support

PR CheckMate includes built-in dictionaries for:

  • 🇬🇧 English (en)
  • 🇪🇸 Spanish (es)
  • 🇫🇷 French (fr)
  • 🇷🇺 Russian (ru)
  • 🇺🇦 Ukrainian (uk)
  • 🇮🇱 Hebrew (he)

No additional configuration needed - just use npx pr-checkmate spellcheck and it will check spelling in all supported languages!

📌 Benefits

  • ✅ Self-contained — the package handles all checks internally
  • ✅ Works locally and in CI/CD (GitHub Actions, GitLab CI, etc.)
  • ✅ Enforces a unified code style across repositories
  • ✅ Automatic formatting and commits when needed
  • ✅ Multilingual spellcheck support out of the box
  • ✅ Minimal setup — just init and npx pr-checkmate all

🧰 Tech Stack

  • Node.js 20 — executes CLI scripts
  • TypeScript — fully typed code
  • ESLint + @typescript-eslint — code linting
  • Prettier — auto-formatting
  • cspell — spellchecking with multilingual dictionaries
  • execa — running CLI commands from Node.js
  • gitleaks — secret scanning

📜 License

LicenseRef Proprietary © 2025