mjmirza/cloudflare-cost-calculator: a single-file monthly cost and margin model for an all-Cloudflare app
A client-side calculator that models the monthly cost of an app built entirely on Cloudflare — Workers, Durable Objects, D1, R2, KV, Queues, Vectorize, email and LLM usage — against revenue, with profiles from Solo to Extreme and a breakdown of each cost row.
- Products
- WorkersDurable ObjectsD1R2KVQueues
- Source
- Community resourceGitHub
- Author
- mjmirza
Key points
- Runs in the browser with no backend; a live version is at mjmirza.github.io/cloudflare-cost-calculator.
- Features per the README: a profit-and-loss view, a model picker with per-token pricing, usage profiles, a click-to-expand breakdown linking each cost row to its input, and an indicator that explains when a field cannot move the total, for example because usage is still within the free tier.
- Its estimates are a model, not Cloudflare’s bill; check rates against the official pricing pages. The README says MIT while the badge and the GitHub metadata show an OpenRoots ORA 2.3 / unrecognised license.
Original sources
Published
mjmirza/cloudflare-cost-calculator: a single-file monthly cost and margin model for an all-Cloudflare app
Open original sourceA client-side calculator that models the monthly cost of an app built entirely on Cloudflare — Workers, Durable Objects, D1, R2, KV, Queues, Vectorize, email and LLM usage — against revenue, with profiles from Solo to Extreme and a breakdown of each cost row.
More to read
Cloudflare Cost Hub: free-tier vs paid allowances, cost drivers and month-end forecasts
An MIT-licensed dashboard that signs in with Cloudflare OAuth, reads account analytics across products, colour-codes usage as free, within paid allowance or billable, ranks per-instance cost drivers, forecasts month-end cost and emails threshold and budget alerts.
meathill1: Cloudflare OS kept a WebSocket and Durable Object open while the page was open, burning about $20.
X user @meathill1 warns Cloudflare OS users that by default it keeps a WebSocket connected whenever the page is open, which keeps a Durable Object connected and costs money, suggests Cloudflare's internal developers may not have usage limits, and says about $20 has already been burned.
Four months of CI on Cloudflare Containers: per-use vCPU billing and a hard cap that stopped CI
@kelvin_des describes moving all CI from GitHub Actions to one Cloudflare Container per job and puts the list-price bill for the same 90 days at about $1,608 versus $3,288–$6,502 for GitHub-hosted runners, because Containers bill vCPU on use and his boxes were about 41% busy. He also reports a ledger bug that made his own hard daily minute cap refuse every container, after which he bounds spend by max containers × per-job deadline.