billflare.

Lunora: codegen lints that name the billing meter a loop moves

Daniel (@_prisis_) says a Cloudflare bill spike is usually a loop, not traffic; his framework Lunora now flags count_without_index, queue_dispatch_cycle, cron_every_minute and container_long_sleep_after at codegen, before deploy, naming the meter each one moves.

Products
WorkersDurable ObjectsQueuesContainersCron Triggers
Source
Community resource𝕏
Author
Daniel (@_prisis_)

Key points

  • Lunora is a backend framework on the user's own Cloudflare account (Workers, Durable Objects, D1, R2, Queues), in alpha, under the FSL-1.1-Apache-2.0 licence. Its Advisors docs say most lints are static: they run at codegen or build time against the declared schema and discovered call sites.
  • Cost-related lints in the docs: count_without_index (each call scans every row), unbounded_loop and dispatch_cycle (endless chains billing every turn), queue_dispatch_cycle (a consumer re-enqueues to its own queue so it never drains), cron_every_minute (a billed invocation on every fire whether or not there is work) and container_long_sleep_after (an idle window over an hour, billed while idle).
  • In a reply, the author says a lunora-cloudflare-audit skill chains doctor, advisor and insights and reads last month's usage, and marks budget alerts as 'not inspected' because Cloudflare has no API for them and they only send email.

Original sources

  1. Published

    Original post

    Read on 𝕏

    Daniel (@_prisis_) says a Cloudflare bill spike is usually a loop, not traffic; his framework Lunora now flags count_without_index, queue_dispatch_cycle, cron_every_minute and container_long_sleep_after at codegen, before deploy, naming the meter each one moves.

    Daniel

    @_prisis_ · Original 𝕏 post

    a cloudflare bill spike is usually a loop, not traffic. lunora now catches the common ones at codegen, before deploy: count_without_index, queue_dispatch_cycle, cron_every_minute, container_long_sleep_after. each finding names the billing meter it moves.
  2. Quoting WquGuru's audit prompt, the author says a budget alert only emails and never stops the meter, and that Lunora built the code half of such checks in as static lints.

    Read on 𝕏

    Daniel

    @_prisis_ · Original 𝕏 post

    Solid checklist, and the last line matters most: a budget alert only emails you, it never stops the meter. We ended up building the code half of this into Lunora as static lints, so they run at codegen time rather than after the invoice. https://t.co/8bagCD5tr4
  3. Reply: the lunora-cloudflare-audit skill reads last month's usage; budget alerts are marked 'not inspected' because Cloudflare has no API for them.

    Read on 𝕏

    Daniel

    @_prisis_ · Original 𝕏 post

    there is a lunora-cloudflare-audit skill that chains doctor, advisor and insights, then reads last month's usage with `lunora cloudflare alerts`. budget alerts it marks "not inspected", because cloudflare has no api for them. they only email you anyway. alpha: https://t.co/W4vaq0BaJ2
  4. Advisors docs (read 2026-10-22): the table of static lints, including the cost-related ones above, with levels and what each detects.

    Open original source
Author experienceD1 +1

hontrandev: a Workers Free D1 board list query read about 15,000 rows to return 58

On 2026-11-18, X user @hontrandev wrote that Cloudflare emailed that D1 had reached 78% of the 5 million rows-read-per-day limit on Workers Free, for a small internal ticketing app. The author says one board list query was reading about 15,000 rows to return 58, and that they wrote up why and how they fixed it, with a link in a reply. This is a usage warning on the Free daily cap, not an invoice amount.

D1

Kun Save Point (@Savepoint_kk): a D1 bug rewrote unchanged data into a $2,739.12 bill; $2,141 goodwill credit granted.

Kun Save Point (@Savepoint_kk), an indie developer who says he recently lost his job, says a bug repeatedly rewrote unchanged data while inefficient queries amplified reads, producing a $2,739.12 Cloudflare bill already paid via PayPal (D1 rows written $2,641.00, rows read $64.06, other services $34.06); he says his bills were usually under $10 a month. Cloudflare granted a $2,141 goodwill account credit under case #02391058. He asks for it to be converted into a refund to the original PayPal payment, or at least for relief on the $2,641 write charges, and later writes that the initial request was declined and has been reopened for additional review. On October 25 he adds that he missed the only alert email Cloudflare sent, whose amount was not particularly high, and received no further warning before the large card charge; on October 26 he writes that the refund request to the original payment method is still under further review. On November 10 he posts a timeline saying that after following up on November 10–11, support again stated the $2,141 could only remain as account credit and the remaining $598.12 was still undecided while the ticket was being closed.

Author experienceWorkers +6

From 18 months at $0 to $72 a month: Meathill's Cloudflare bill review

Meathill breaks down 49 Cloudflare charges across 20 domains and a dozen projects, separating registrar renewals from the monthly usage bill and naming four cost traps: uncached Worker responses, Images, Workers Observability and cache placement.