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

pqc-check

v1.6.0

Published

Scan your codebase for quantum-vulnerable cryptography

Readme

pqc-check

Scan your codebase for quantum-vulnerable cryptography

npm version npm downloads CI license

Quick Start

npx pqc-check ./my-project

One command. Zero config. Instant results:

What It Finds

Quantum computers will break RSA, ECDSA, and Diffie-Hellman using Shor's algorithm. Nation-state actors are already harvesting encrypted traffic today to decrypt later. NIST finalized post-quantum standards (FIPS 203, 204) in 2024 — the migration clock is ticking.

pqc-check scans your code and categorizes findings by real-world risk:

| Level | Threat | What It Means | Action | |-------|--------|---------------|--------| | HIGH | Harvest Now, Decrypt Later | Data encrypted today can be decrypted by future quantum computers | Migrate to PQC now | | MEDIUM | Signature Forgery | Authentication can be broken when quantum computers arrive | Plan migration | | LOW | Informational | Already quantum-resistant (e.g. SHA-256) | No action needed |

Supported Languages

| Language | Extensions | Detection Patterns | |----------|-----------|-------------------| | Python | .py | RSA, ECDSA, Ed25519, X25519, DH, JWT, SHA | | JavaScript / TypeScript | .js .ts .mjs .cjs .jsx .tsx | RSA, ECDSA, ECDH, DH, JWT, Web Crypto, node-forge, jose | | Go | .go | RSA, ECDSA, Ed25519, X25519/ECDH | | Java / Kotlin | .java .kt | RSA, ECDSA, DH, Bouncy Castle | | Rust | .rs | RSA (rsa/ring crates), ECDSA, Ed25519, X25519 | | C / C++ | .c .cpp .h .hpp | OpenSSL RSA, ECDSA, DH, Ed25519 | | Ruby | .rb | OpenSSL RSA, ECDSA, DH | | PHP | .php | openssl RSA, ECDSA, DH | | Config files | .conf .yaml .toml .ini | SSL certs, PEM keys, TLS cipher suites |

48 detection patterns across 9 languages + config files.

Installation

# Run directly (no install needed)
npx pqc-check ./my-project

# Or install globally
npm install -g pqc-check
pqc-check ./my-project

Usage

# Scan a project (console output)
pqc-check ./my-project

# JSON output (for scripting)
pqc-check ./my-project --format json

# SARIF output (for GitHub Code Scanning)
pqc-check ./my-project --format sarif

# CycloneDX 1.6 CBOM (cryptographic inventory for OMB M-23-02 / NIST IR 8413)
pqc-check ./my-project --format cyclonedx-cbom > cbom.json

# OMB M-23-02 PDF inventory report (federal reporting-ready)
pqc-check ./my-project --format pdf-report \
  --agency "Department of Examples" --system "Auth Service" > report.pdf

# Byte-reproducible report / CBOM (CI diffing + federal review)
pqc-check ./my-project --format pdf-report --reproducible --agency A --system B > report.pdf

# Scan specific languages only
pqc-check ./my-project --lang python,go

# Include LOW risk findings
pqc-check ./my-project --show-low

# Ignore specific paths
pqc-check ./my-project --ignore "tests/**,vendor/**"

# CI-friendly (no banner)
pqc-check ./my-project --quiet

# Hide the Qpher upsell footer (per-finding migration advice still shows)
pqc-check ./my-project --no-suggestions

Air-Gapped & Classified Networks

pqc-check makes zero network calls in any mode. The detection ruleset is compiled into the binary, and the scanner only reads the target tree from local disk. There is no telemetry, analytics, phone-home, or remote ruleset fetch in any code path — a guarantee enforced in CI by tests/offline-guarantee.test.ts, which fails the build if a network import or API is ever introduced.

This makes pqc-check suitable for SIPR / JWICS / agency-internal networks where outbound internet is blocked.

# Assert air-gapped intent (no behaviour change — already fully offline)
pqc-check ./my-project --offline

# Export the bundled ruleset for review / signing before transfer to an
# isolated network
pqc-check ruleset export ruleset.json

# Validate a reviewed / air-gap-distributed ruleset (round-trips with export)
pqc-check ruleset import ruleset.json

# List the bundled detection patterns
pqc-check ruleset list

Recommended air-gap workflow: on an internet-connected workstation, install pqc-check and ruleset export the bundled ruleset; review + sign it per your agency process; transfer the package to the classified network via your approved process; run pqc-check --offline to inventory crypto on classified codebases.

Signed .tar.gz release artifacts with SHA-256 manifests for offline transfer are tracked separately; until then, verify the npm package integrity with npm pack + your own checksum before transfer.

CI/CD Integration

GitHub Actions

- name: PQC vulnerability scan
  run: npx pqc-check . --format sarif > results.sarif

- name: Upload SARIF
  uses: github/codeql-action/upload-sarif@v3
  with:
    sarif_file: results.sarif

Findings appear directly in your pull request's Security tab.

Exit Codes

| Code | Meaning | |------|---------| | 0 | No HIGH or MEDIUM findings | | 1 | HIGH or MEDIUM findings detected | | 2 | Error (invalid path, etc.) |

Output Formats

| Format | Flag | Use Case | |--------|------|----------| | Console | (default) | Human-readable, colored output | | JSON | --format json | Scripting, custom integrations | | SARIF | --format sarif | GitHub Code Scanning, IDE integration (SARIF 2.1.0) | | CycloneDX CBOM | --format cyclonedx-cbom | Cryptographic inventory (CycloneDX 1.6 / NIST IR 8413 / OMB M-23-02) | | PDF report | --format pdf-report | Federal reporting-ready PDF (7 OMB M-23-02 sections; --reproducible for byte-identical output) |

On a clean scan pqc-check prints: "No known quantum-vulnerable patterns matched. Detection coverage varies by language — this is not a guarantee of quantum-safety." It reports what its rules match, not a proof of quantum-safety.

Configuration

.pqcignore

Create a .pqcignore file in your project root (same format as .gitignore):

# Ignore test files
tests/
test/
*_test.go

# Ignore generated code
generated/

pqc-check also respects your existing .gitignore.

Ready to Migrate?

Found quantum-vulnerable code? Here are your options:

| Resource | Link | |----------|------| | PQC Migration Guide | docs.qpher.ai/guides/migration-guide | | Qpher PQC APIs | qpher.ai — drop-in encryption + signatures | | Free API key | portal.qpher.ai/register — free tier, no credit card | | Open Quantum Safe | openquantumsafe.org — open-source liboqs | | NIST Standards | FIPS 203 (ML-KEM) · FIPS 204 (ML-DSA) |

SDKs

pip install qpher               # Python
npm install @qpher/sdk           # Node.js
go get github.com/qpher/qpher-go # Go

Contributing

Contributions welcome! To add a new language or detection pattern:

  1. Create src/patterns/<language>.ts following existing patterns
  2. Add test fixtures in tests/fixtures/
  3. Run npm test — all tests must pass
  4. Submit a PR

License

MIT — Copyright 2026 Qpher