Cloudflare Workers / preflight inspection
Catch the config bug before prod does.
FlareCheck scans wrangler.jsonc for environment drift,
committed secrets, blind deploys, and missing production evidence.
- 00accounts
- 00uploads
- 09rules
SCAN COMPLETE
- ERROR
- 00
- WARNING
- 01
- PASSED
- 08
- 01ConfigLoaded
- 02BindingsMapped
- 03SecretsChecked
- 04Deploy pathVerified
Why another check?
A green build only proves the code can build.
Wrangler configuration decides which databases, routes, secrets, runtime behavior, and logs your Worker gets after deployment. FlareCheck checks that layer before a typo becomes an incident.
$ flarecheck
PRODUCTION READINESS 72/100
✕ ERROR FC003
Likely secret committed as API_KEY
→ wrangler secret put API_KEY
! WARNING FC005
staging is missing d1_databases
→ declare it in env.staging
1 error · 2 warnings · 6 passed
EXIT 02 / ACTION REQUIRED
Cloudflare Workers checks
Nine opinions.
All inspectable.
Every FlareCheck finding has a stable rule ID, an explanation, a suggested fix, and a link to the relevant Cloudflare documentation. Read the full rule reference →
- FC001
Compatibility date
Find a missing, invalid, or stale compatibility date.
RUNTIME - FC002
Node.js compatibility
Flag projects that may fail when a dependency expects Node built-ins.
RUNTIME - FC003
Committed secrets
Detect likely credentials stored in plain-text Wrangler vars.
SECURITY - FC004
Production observability
Check that Workers Logs and intentional sampling are configured.
EVIDENCE - FC005
Environment drift
Find bindings omitted from environments because they are not inherited.
CONFIG - FC006
Explicit deploy target
Catch deployment scripts that can accidentally target the root Worker.
RELEASE - FC007
Modern config format
Recommend JSONC when a project still uses Wrangler TOML.
MAINTENANCE - FC008
Shared environment resources
Warn when staging points at the same stateful resource as production.
ISOLATION - FC009
Explicit environment routes
Catch routed Workers whose named environments have no declared target.
ROUTING
How FlareCheck works
One command.
A useful answer.
Run FlareCheck from a Cloudflare Workers project or pass a path.
It discovers Wrangler JSON, JSONC, or TOML and reads package scripts
without executing project code. Add --all to inspect
every Worker in a monorepo.
- 01
Discover
Locate the Worker config and project root.
- 02
Inspect
Run deterministic checks against configuration and scripts.
- 03
Act
Return plain-language fixes, documentation, and CI-safe exit codes.
Human-readable by default
flarecheck
Structured for automation
flarecheck --json
Warnings fail CI
flarecheck --strict
Exact file + line annotations
flarecheck --github --strict
Discover every stable rule ID
flarecheck --list-rules
Adopt a focused rule set
flarecheck --only FC003,FC005
Scan every Worker in a monorepo
flarecheck . --all
Feed GitHub Code Scanning
flarecheck --sarif > flarecheck.sarif
Use the reusable GitHub Action
loke-dev/flarecheck@v0.9.0
Common questions
Before you run it.
What does FlareCheck inspect?
It reads Wrangler configuration and package scripts to find high-confidence deployment risks. It never executes your Worker.
Does FlareCheck upload my source code?
No. The entire scan runs locally. There is no account, telemetry service, or source upload.
Can I run it in CI?
Yes. Use --github for file annotations, --json for structured output, and --strict to fail on warnings.
Can I select which rules run?
Yes. List stable IDs with --list-rules, run a focused subset with --only, or skip specific checks with --ignore.
Can it scan a Workers monorepo?
Yes. Run flarecheck . --all to discover every Wrangler configuration recursively and get per-Worker results plus an aggregate summary.
Does it support SARIF and Code Scanning?
Yes. --sarif produces a SARIF 2.1.0 report with rule metadata, severities, file locations, suggested fixes, and stable fingerprints.
Is there a reusable GitHub Action?
Yes. Install it from GitHub Marketplace or add loke-dev/flarecheck@v0.9.0 directly for exact file and line annotations, strict warnings, monorepo scanning, and rule selection.
Does it replace Wrangler validation?
No. Wrangler validates configuration shape. FlareCheck adds production-readiness opinions about valid configurations that can still be risky.
Preflight status / awaiting config