Case Study
ProfitPlate
Restaurant Profitability SaaS
Restaurant food cost and profit software that reads supplier invoices from a photo, costs every dish from real ingredient prices, and shows profit per plate for dine-in and delivery. Flutter Android app, Next.js website, and a Cloudflare Worker AI proxy.

The Challenge
Restaurant owners usually price a dish once and then lose track as supplier prices move. Keeping food cost current means typing invoice lines into a spreadsheet, and delivery apps take a commission and packaging cost out of every order on top. ProfitPlate needed to get real ingredient prices into the system without manual entry, keep every dish's cost in step as those prices change, and show what each plate actually earns at the table versus through a delivery app.
Technical Challenges
- ✓Invoice capture without typing — the photo is read on the phone with Google ML Kit text recognition; only the extracted text goes to an AI model that picks out items, quantities and unit prices, and converts invoices that arrive in another currency.
- ✓Keeping the AI key out of the app — a Cloudflare Worker sits between the app and the AI provider. It verifies the Firebase sign-in token, decides Free vs Pro on the server from RevenueCat and Firestore, counts the monthly budget in Workers KV, and honours suspended accounts and an admin switch.
- ✓Cost propagation — when a scanned invoice changes an ingredient's price, every dish that uses it is recosted and the rise is flagged against that ingredient's price history.
- ✓POS import — sales-by-item exports from Toast, Square and Clover are matched to dishes, and importing the same day twice still counts it once.
- ✓Dine-in vs delivery margins — each dish shows its profit at the table next to its profit through each delivery app after commission and packaging.
Architecture & Evolution
ProfitPlate began as a set of free restaurant calculators on the web. It is now an app-first product: the work happens in a Flutter Android app, and the website at profitplate.world explains it and keeps the free calculators as entry points from search.
The app is backed by Firebase (Auth, Firestore, Storage, Analytics), with RevenueCat for subscriptions and an admin portal for plan grants and account controls. Invoice text goes through a Cloudflare Worker proxy instead of calling the AI provider directly, so the provider key exists only as a Worker secret and plan limits cannot be bypassed from the device.
The website is a Next.js app in five languages with hreflang. Instead of static screenshots, it uses interactive demos on sample data: a pricing lab where visitors move the menu price and watch the margin, and a dine-in vs delivery comparison with an adjustable commission.
The Solution
A Flutter Android app where an owner snaps a supplier invoice, builds each dish once from the scanned ingredients, and logs or imports the day's sales. Food cost, unit cost and profit update as supplier prices change. Pro adds unlimited scans and dishes, every delivery app side by side, supplier price alerts, a suggested price for a 70% margin, and 7, 30 and 90-day reports. The Next.js website demonstrates all of this interactively and publishes free food cost, menu price and cake price calculators.
Tech Stack
Key Features
Screenshots











Deployment
Android — Google Play Store
Web — Next.js website on Vercel at profitplate.world
AI proxy — Cloudflare Worker with the provider key as a secret and usage counted in Workers KV
iOS — waitlist open
Lessons Learned
- →Never ship an API key inside an app — anything in the binary can be extracted, so the AI key lives only in a server-side proxy.
- →Quotas checked only on the phone can be bypassed; the Free vs Pro decision belongs on the server.
- →Reading the invoice on the device and sending only its text keeps photos private and keeps AI requests small.
- →A numbers product is easier to explain by letting people use it — the website's pricing lab and delivery comparison run on sample data instead of showing static screenshots.
Outcome
Launched the ProfitPlate Android app on Google Play.
Launched the ProfitPlate website at profitplate.world in five languages.
Shipped invoice scanning, dish costing, delivery-app margins, supplier price alerts and POS sales import.
Put AI usage behind a server-side proxy so plan limits and costs cannot be bypassed from the device.
Published free restaurant calculators as entry points from search.
Services used in this project
Other Case Studies
Read the Blog
Technical articles on SaaS development, MVP strategy, mobile apps, and SEO — written while building real products.
Visit the blog →Like what you see?
I am available for freelance work. Tell me about your project and I will get back to you within 4 hours with an honest assessment.




