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

flarecheck

v0.9.0

Published

Production-readiness checks for Cloudflare Workers projects.

Downloads

1,860

Readme

FlareCheck

Production-readiness checks for Cloudflare Workers projects.

npm version CI MIT license

Website · Report a finding

FlareCheck catches Cloudflare configuration risks that builds and type checks cannot see: committed secrets, non-inherited environment bindings, ambiguous deployment commands, stale compatibility dates, and missing observability.

$ npx flarecheck

FlareCheck v0.9.0
/work/api/wrangler.jsonc

Production readiness: 72/100

✗ ERROR FC003  Likely secret committed as API_KEY
  vars.API_KEY looks sensitive and will be stored in source control.
  Fix: Remove API_KEY from vars and store it with "wrangler secret put API_KEY".

! WARNING FC005  staging is missing non-inherited bindings
  d1_databases is defined at the root but not in env.staging.
  Fix: Declare the intended d1_databases values inside env.staging.

Run it

FlareCheck supports wrangler.jsonc, wrangler.json, and wrangler.toml.

npx flarecheck
npx flarecheck ./apps/api
npx flarecheck --json
npx flarecheck --strict
npx flarecheck --list-rules
npx flarecheck --only FC003,FC005
npx flarecheck . --all
npx flarecheck --sarif > flarecheck.sarif

Exit codes are designed for CI:

  • 0: no errors, and no warnings when --strict is enabled
  • 1: invalid configuration, or warnings with --strict
  • 2: production-readiness errors

GitHub Actions

Use the reusable action to turn findings into file annotations and fail the workflow on errors or warnings:

- uses: actions/checkout@v6
- uses: loke-dev/[email protected]

Inputs support focused and monorepo scans:

- uses: loke-dev/[email protected]
  with:
    path: apps
    all: true
    only: FC003,FC005,FC009

The action runs the public npm package and accepts path, strict, all, only, ignore, and version. Findings point to the relevant Wrangler or package.json line. To use the CLI directly instead:

- name: Check Worker configuration
  run: npx flarecheck --github --strict

Adopt rules incrementally

List the stable rule IDs, run a focused subset, or temporarily skip rules that are not relevant to a project:

npx flarecheck --list-rules
npx flarecheck --only FC003,FC005
npx flarecheck --ignore FC002

--only and --ignore are mutually exclusive, reject unknown rule IDs, and accept comma-separated IDs case-insensitively.

Scan a monorepo

Use --all to recursively discover and scan every Wrangler configuration below a directory. Common generated directories such as node_modules, dist, build, .wrangler, and coverage are skipped.

npx flarecheck . --all
npx flarecheck ./apps --all --github --strict
npx flarecheck . --all --json

Human output includes every Worker and an aggregate summary. JSON returns a projects array, while GitHub output annotates each configuration file.

Upload results to GitHub Code Scanning

FlareCheck can produce SARIF 2.1.0 for GitHub Code Scanning and compatible analysis dashboards:

permissions:
  contents: read
  security-events: write

steps:
  - uses: actions/checkout@v6
  - name: Generate FlareCheck SARIF
    run: npx flarecheck --sarif > flarecheck.sarif
    continue-on-error: true
  - name: Upload FlareCheck results
    uses: github/codeql-action/upload-sarif@v4
    with:
      sarif_file: flarecheck.sarif

Use --all --sarif to combine every Worker in a monorepo into one standards-based report. FlareCheck includes rule metadata, severity, file locations, fixes, and stable fingerprints.

Checks

Full rule reference with examples and fixes

| Rule | Check | | --- | --- | | FC001 | Compatibility date exists, is valid, and is not stale | | FC002 | nodejs_compat is enabled | | FC003 | Likely secrets are not committed in vars | | FC004 | Workers observability and sampling are intentional | | FC005 | Every environment declares its non-inherited bindings | | FC006 | Deployment scripts select a configured environment | | FC007 | Wrangler uses Cloudflare's recommended JSONC format | | FC008 | Non-production environments do not share stateful production resources | | FC009 | Routed Workers give every named environment an explicit target |

Rules are deterministic, documented, and designed to favor useful findings over volume. FlareCheck never uploads source code or requires Cloudflare credentials.

Development

pnpm install
pnpm check
pnpm dev -- ./tests/fixtures/risky
pnpm site:dev

Contributing

Rules must point to authoritative Cloudflare documentation, include a fixture, and explain the production consequence. Please open an issue before implementing a broad or framework-specific rule.

License

MIT