What Free Plans Decided: Building a Delivery Platform for ₦0 a Month

The Brief Had a Fifth Rule
In November 2026 I built Casual Kitchen Express (CKE), a food delivery platform for a home-style Nigerian kitchen in Ugbowo, Benin City. It is a portfolio concept, not a live business: payments, refunds, and rider payouts are simulated, and no real card details are ever collected. Everything else is real. There are three Android apps (one for customers, one for riders, and one for the kitchen and the office), an API, a database, live order tracking, push notifications, and a website. Release 1.0.0 went out on day eight.
The brief had four goals about the people using it. Customers should order in a few taps and see where their food is. Riders should carry orders without the app draining their battery. The kitchen should run the whole day from one tablet. The fourth goal was about money: the whole platform should cost nothing to run.
I expected that rule to limit how big the project could get. Instead, it shaped almost every technical decision. Free plans don't just give you smaller numbers. They tell you which designs are allowed. This post is about the ten or so places where a free-plan limit made the decision for me, what I chose because of it, and what it cost.
The Budget I Was Working With
Before writing any backend code, I wrote down every free allowance I would depend on and checked each one against the provider's own pricing page. I checked them again just before building, because free plans change often. Neon's own pages disagreed about its storage allowance (1 GB on the plans page, 0.5 GB on older pages), so I planned for the smaller number.
| Part | Where it lives | Free allowance |
|---|---|---|
| API | Cloudflare Workers | 100,000 requests a day, 10 ms of CPU per request, 50 subrequests per request |
| Live updates | Cloudflare Durable Objects | 100,000 requests a day; WebSocket messages count at 20 to 1 |
| Database connection | Cloudflare Hyperdrive | 100,000 queries a day |
| Database | Neon Postgres | 1 GB storage (planned as 0.5), 100 compute-hours a month, sleeps after 5 minutes idle |
| Photos | Workers KV | 1 GB storage, 100,000 reads and 1,000 writes a day |
| Push notifications | Expo push, with Firebase for Android | Free |
| App builds | Expo EAS | 15 Android builds a month in the cloud; local builds unlimited |
Two things on that list matter more than the rest. The 10 ms of CPU per request is very little time: a typical password hash takes several times longer. The daily caps don't slow you down when you hit them; they refuse requests until the reset at 00:00 UTC, which is 01:00 in Nigeria. A demo that runs out of requests at lunchtime is broken until one in the morning.
So I sized a busy demo day before choosing anything:
| Item | Estimate | Limit |
|---|---|---|
| API requests (about 200 orders, about 40 requests each, plus browsing) | About 10,000 | 100,000 |
| Database queries (about 3 per request) | About 30,000 | 100,000 |
| Rider location updates (4 riders, one every 45 seconds or so, for 8 hours) | About 2,600 | 100,000 |
That gave a comfortable margin, but only if the apps behaved. The tightest number is database queries, so "keep queries per request low" became a rule for every route.
Decision 1: Which Database
I compared three options: Supabase, Firebase, and Neon (Postgres) with an API I would write myself.
Supabase was the obvious first choice. It gives you Postgres, sign-in, file storage, and live updates in one place, and it's what this portfolio site runs on. But I know its free-plan catch from running this site: a free project pauses after about a week without activity, and there are no automatic backups. I run a scheduled job every three days just to keep this site's database awake. A demo that a recruiter might open three weeks from now can't depend on that.
Firebase was out for a different reason. Its file storage now needs a billing account (the Blaze plan), and its document database charges per read and makes reports with grouping and joins awkward. A kitchen's manager reports are exactly that: sales by day, by area, by rider, with refunds subtracted.
Neon is only a database. Choosing it meant writing my own API, sign-in, live updates, and file storage. That is a lot more work, but it is also what a full-stack project is supposed to show, and it kept the reports in plain SQL. Neon's free database does go to sleep after five minutes idle, but it wakes in a fraction of a second rather than staying paused for days. Each app loads the menu and settings as soon as it opens, so the database starts waking while the first screen is still drawing.
The takeaway: compare free plans by what happens when nobody is using them, not just by how much they hold. For a portfolio project, quiet weeks are the normal case.
Decision 2: Where the API Runs
My first plan was a Node.js API with Fastify on a free host. Most free Node hosts put an idle server to sleep, and the first visitor after a quiet spell waits while it starts up again. For a customer watching a "placing your order" spinner, that wait is the worst possible first impression.
Cloudflare Workers have no sleeping server to wake. The code runs at Cloudflare's edge on each request, and the free plan includes 100,000 requests a day. The cost is that Workers are not full Node.js. Libraries must be Workers-compatible, and every request lives inside that 10 ms CPU budget. Fastify suits a long-running Node server, so I swapped it for Hono, a small framework built for this kind of runtime. Hono also runs on Node, which mattered twice. I could build and test the API on my laptop first, and if Workers ever became a dead end, the same code could move elsewhere without a rewrite.
One detail makes the 10 ms limit workable: time spent waiting on the database doesn't count. Only work the Worker does itself does. So the rule became "let Postgres do the heavy lifting." Every manager report, from daily sales to rider pay, is a SQL query that runs inside Neon. The Worker just passes the result along. Ninety days of seeded history still answers quickly that way.
Decision 3: Passwords in 10 Milliseconds
Customers and managers sign in with Google, but riders and kitchen staff get a username and a password that a manager sets. Passwords have to be hashed, and common hashing methods like bcrypt and scrypt take 70 ms or more. That is seven times the budget.
The workable option was PBKDF2 through the Web Crypto API built into Workers. Instead of trusting other people's benchmarks, I deployed a throwaway Worker and measured it on my own account. I settled on 30,000 iterations, which took about 5 ms. That is far below the usual recommendation, so sign-in is also rate-limited to make up some of the difference. These accounts guard only simulated data, and that trade-off is written down in the project's architecture document rather than hidden.
That measurement deserves its own post, with the full numbers and why the usual advice can't run on Workers at all. I'll write it next. For this post, the point is that a CPU limit chose a security setting.
Decision 4: No Polling, Anywhere
Live order tracking is the heart of a delivery app. Customers watch their status change from "cooking" to "arriving," and the kitchen board fills up as orders come in. The simplest way to build that is polling: every app asks the server "anything new?" every few seconds.
Do the maths on polling. A kitchen tablet asking every 5 seconds for a 12-hour day makes over 8,600 requests on its own. Add two kitchen screens, four riders, and a few customers watching their orders, and polling alone uses a large share of the 100,000-request day before a single order is placed.
So CKE has no polling. Each app keeps one WebSocket connection to a Durable Object, which pushes each change once, when it happens. Two features of the free plan made this affordable. Idle connections hibernate, so a quiet kitchen at 3 p.m. costs almost nothing. And messages the server sends over a WebSocket don't count as requests at all; only messages from the apps do, and the apps send nothing but a small "ping" that Cloudflare answers without waking anything up. When an app reconnects after a dropped signal, it asks once for everything that changed while it was away, instead of reloading the whole day.
How that catch-up works, and how it avoids missing or doubling an update, is the fourth post in this series.
Decision 5: Photos Went Somewhere Unexpected
The menu has 23 dish photos, plus staff photos and customer profile pictures. The plan was Cloudflare R2, which is built for files and has a free allowance of 10 GB.
Then I went to turn R2 on. Even on its free plan, R2 needs a card or PayPal on the account first. That broke a rule I had set for the whole project: no card on file anywhere, so a public demo can never produce a bill.
So the photos moved to Workers KV, a key-value store meant for small pieces of data. On paper it's the wrong tool. In practice the numbers fit easily. KV's free plan holds 1 GB, and all the photos together come to about 3 MB. It allows 1,000 writes a day, and the busiest day it will ever see is a full demo reset, which writes about 30 photos. KV can take a short while to spread a change around the world. That doesn't matter here because every photo gets its own new address when it's replaced, so nobody can be shown an old version under a new name.
What made this work was a decision from earlier: the server never processes an image. Resizing a photo would blow the 10 ms budget, so the apps do it on the phone before uploading. Menu photos are cropped to 4:3, capped at 1,200 pixels and 250 KB, and saved as WebP. The quality setting starts at 78 and steps down until the photo fits:
// Quality about 78 first, lower step by step until it fits the size target.
for (let q = 0.78; q >= 0.38; q -= 0.08) {
const out = await manipulateAsync(asset.uri, resize ? [{ resize }] : [], {
compress: q,
format: SaveFormat.WEBP,
});
const bytes = await sizeOf(out.uri);
if (bytes <= rule.maxBytes)
return { uri: out.uri, width: out.width, height: out.height, bytes, originalBytes };
}
throw new Error("This photo couldn't be made small enough. Try another one.");
The app then shows the manager something like "4.2 MB reduced to 180 KB." Saving as WebP also strips the location and camera details a phone photo usually carries, which is a privacy win I got for free. The API still checks the size and dimensions again, because a check on the phone alone can be bypassed.
Decision 6: The Job Too Big for a Request
Managers can reset the demo from inside the app: wipe every order and rebuild three months of realistic history, so the next person to try it starts fresh. I measured the rebuild at about 1.2 seconds of processing. That's more than a hundred times the per-request budget, and splitting the work into one request per day of history still didn't fit.
The fix was to move the job somewhere that has time. When a manager taps reset, the API starts a GitHub Actions workflow, which runs the same seed scripts I use on my laptop against the online database:
const res = await fetch(
`https://api.github.com/repos/${env.GITHUB_REPO}/actions/workflows/reset-demo.yml/dispatches`,
{
method: "POST",
headers: {
authorization: `Bearer ${env.GITHUB_RESET_TOKEN}`,
accept: "application/vnd.github+json",
"user-agent": "cke-api",
"x-github-api-version": "2022-11-28",
},
body: JSON.stringify({ ref: "main" }),
},
);
The token is a fine-grained GitHub token limited to this one repository, with permission to run workflows and nothing else, stored as a Worker secret. If it ever leaked, the worst anyone could do is reset a demo.
The takeaway: a request limit is really a limit on where the work happens, not on how much work you can do. When a job doesn't fit in a request, move it somewhere that does have the time.
Decision 7: Google Sign-In, Because Email Costs a Domain
A normal "forgot password" flow sends an email, and so does sign-in with a one-time code. Free email services generally need a verified sending domain before they will email anyone except you. I know this one first-hand: this portfolio has no custom domain, so its contact form can only email me. A domain is a small yearly cost, but it's still a cost.
So customers and managers sign in with Google. There's no password and no email to send, and on Android it takes one tap. Staff accounts that use passwords don't need a forgot-password feature either: a manager resets them, and the app shows a temporary password once.
Decision 8: A Map With No Key
The customer app shows a map with the kitchen, the delivery address, and the rider's marker, and customers drop a pin when they add an address. Google Maps and Mapbox both need an account and a key, and at least one of them needs a card from the start, with no spending cap if a key leaks. For a public demo, a leaked key with no cap is a bill nobody agreed to.
I chose MapLibre with OpenFreeMap's tiles. There's no account, no key, and no card, so a demo can't generate a bill. The trade-offs are real. The map style is plainer, address search is weaker, and OpenFreeMap is a free public service with no uptime guarantee. For three markers and a pin drop, that's an acceptable deal.
The rider app has no map at all. That decision was about battery rather than money: riders already use a navigation app, so CKE hands the address over and stays out of the way.
Decision 9: Releases Instead of a Store
The apps aren't on the Play Store. Each release goes out as signed APK files on GitHub Releases, with checksums, linked from the website's download page. That means no store fees and no review delays between finding a bug and shipping the fix. Release 1.0.1 went out the same day as 1.0.0 with two fixes.
The cost lands on the user. Android warns about apps from unknown sources, and people have to allow installs from their browser, so the website and the FAQ explain each step. Without a store there are no automatic updates either, so each app asks GitHub for the latest release a few seconds after opening and shows "A new version is ready" when there is one. Installing it keeps everyone signed in.
Cloud builds have a monthly cap on the free plan, so release builds ran locally on my laptop. That brought its own problems, a 2014 laptop and a power cut among them, but those are a story for another day.
What It Cost Anyway
Free isn't the same as no trade-offs. Here is what the ₦0 bill actually bought, and what it gave up:
| Free-plan choice | What I gave up |
|---|---|
| Neon that sleeps after 5 minutes | A first request that's slower by a fraction of a second after a quiet spell |
| PBKDF2 at 30,000 iterations | Password hashing far below the usual recommendation |
| Workers KV for photos | The "right" tool for files, swapped for one that happens to fit |
| OpenFreeMap tiles | Familiar maps, strong address search, and an uptime guarantee |
| GitHub Releases | Store installs and automatic updates |
| Daily caps that refuse requests | Graceful slowdown when a limit is hit |
None of these are hidden. Each one is written down in the project's architecture document as a decision with its reason. If CKE ever became a real business, most of them have a cheap way out: Workers' paid plan is $5 a month and raises the limits without a redesign.
What I Took Away
Free plans are design constraints, not just price tags. The CPU limit chose the password setting. The request cap ruled out polling. A card requirement moved the photos. Storage rules, sleep rules, and email rules each removed an option before I had to weigh it.
Write the budget down before writing code. Ten minutes with a table of allowances and a rough daily estimate told me which numbers were tight (database queries) and which were nowhere close (photo writes). That decided where to be careful.
Measure on your own account. Other people's benchmarks were a starting point, but the real numbers came from a throwaway Worker on mine. Free-plan figures also change month to month, so the docs got checked twice.
"No card on file" is a strong design rule. It ruled out two of my first choices, R2 and paid map providers, and in both cases the replacement was simpler. A demo that can't generate a bill is a demo you can leave online forever.
The full project, with screenshots of all three apps and the downloads, is on the Casual Kitchen Express case study. Next in this series, I'll look closely at the password measurements: what fits inside 10 ms, and why the usual advice doesn't.