QuotaLab: locally test Cloudflare Workers resource budgets before production
ranajahanzaib/cf-quota-lab is an open-source harness that runs representative HTTP workloads against a local Cloudflare Worker, measures D1 and KV usage, projects daily consumption, enforces resource budgets in CI, and injects deterministic dependency failures — without Cloudflare credentials or a deploy.
- Products
- WorkersD1KV
- Source
- Community resourceGitHub
- Author
- ranajahanzaib
Key points
- The README says a pricing calculator cannot show that an endpoint scans an unindexed table or returns an uncontrolled error when KV is unavailable; QuotaLab executes those paths locally.
- Requires stable Rust, Node.js 22.22+ with pnpm, and a C compiler for bundled SQLite; primary targets are macOS ARM64 and Linux x86_64.
Original sources
Published
QuotaLab: locally test Cloudflare Workers resource budgets before production
Open original sourceranajahanzaib/cf-quota-lab is an open-source harness that runs representative HTTP workloads against a local Cloudflare Worker, measures D1 and KV usage, projects daily consumption, enforces resource budgets in CI, and injects deterministic dependency failures — without Cloudflare credentials or a deploy.
More to read
Dennis: a Spend Management block follows the subscription billing period, not the calendar month
Dennis (@lee8907200) restates the 13 November Spend Management beta and focuses on how service resumes: raise the limit above current-period spend, turn the policy off or remove it, or wait for the next paid-subscription billing period. Creating a limit or deploying a Worker does not start a new period, so the block does not necessarily lift at the next calendar month.
user44024: card charged 11.17 USD for vidrawi.com, but the domain was not registered; the hold had not returned by November 6.
Cloudflare Community user user44024 says that on November 4, 2026 the card was charged 11.17 USD to register vidrawi.com, that hours later the domain did not appear in the account, no invoice was shown, and a Verisign RDAP lookup showed it unregistered, and that a billing case could not be opened. Community replies suggest the bank message may be an authorization hold. On November 6 the author says a second purchase succeeded and vidrawi.com appears in the account, but the 11.17 USD charge from November 4 has still not returned to the card.
风易: the easy leak on a free R2 public bucket is the public URL, not the quota itself
风易 (@Michael_liyang) argues that a public R2 bucket’s direct URL can be hotlinked by anyone, so other sites’ traffic is billed to the bucket owner. The recommended three steps are a custom domain instead of a bare r2.dev link, a Worker Referer allowlist that returns 403 otherwise, and signed expiring URLs for images.