⚡ THE FLARE SUITE / PERFORMANCE

flareperf

Unified Cloudflare Edge Performance & Budget Guardian. Enforce bundle limits, analyze V8 isolate cold-start latency, verify 50-subrequest limits, and eliminate D1 N+1 queries.

Subcommand: bundle

📦 Edge Bundle Size Quotas

Enforce gzip, brotli, and zstd size budgets against Free (1MB), Paid (10MB), and Workers AI (5MB) tiers with full sourcemap package decompositions.

flareperf bundle dist/_worker.js
Subcommand: isolate

🧊 Isolate Cold-Start Analyzer

OXC AST engine analyzing global module scope outside request handlers to detect synchronous loops and heavy parsing that trigger Cloudflare Error 1101.

flareperf isolate src/index.ts
Subcommand: subrequests

🌐 50-Subrequest Limit Linter

Detects unbounded Promise.all loops, recursive fan-outs, and unbatched edge storage calls that breach Cloudflare's 50 subrequest limit (Error 1042).

flareperf subrequests src/
Subcommand: d1

🗄️ D1 N+1 Query Advisor

Flags SQLite queries inside loops and generates env.DB.batch([stmt1, stmt2]) refactoring suggestions for single-roundtrip execution.

flareperf d1 src/

Pre-Deploy CI/CD Integration

# In your .github/workflows/ci.yml - name: Edge Performance & Budget Check uses: bhubbard/flareperf@main with: command: check strict: true