Dev.to AI πŸ€– Ai πŸ‘ 2 πŸ“– 8 min read

How We Built Quillo, a Flutter App That Turns Grocery Receipts Into Recipes

Most side projects start with a clever idea. Quillo started with a bin. Nearly a third of a UK household's food budget ends up as waste. Not because people are careless, but because they forget what they bought and run

Most side projects start with a clever idea. Quillo started with a bin.

Nearly a third of a UK household's food budget ends up as waste. Not because people are careless, but because they forget what they bought and run out of ideas for what to cook with it. We wanted to build something that fixes both problems without asking anyone to type in a shopping list.

The result is Quillo: Receipt to Recipes, a mobile app for iOS and Android. You photograph a grocery receipt, Quillo works out what you bought, suggests recipes built around those ingredients, and tracks how much money and food you save over time. We built it at DartSyn together with the Quillo team and London based Reisen AI, covering UX, product strategy, engineering, receipt intelligence and the App Store launch.

This post is the engineering story. I will walk through the architecture, the parts that were harder than they looked, and what I would tell anyone building a similar consumer app.

The three requirements that shaped everything

Before writing any code, we boiled the product down to three non negotiable requirements:

Receipt scanning that works across hundreds of store formats with zero manual typing.
A recipe engine that matches real ingredients, not a generic popular recipes feed.
A savings tracker that makes impact tangible, in money and kilograms.

If scanning fails, users have to type, and they leave. If recipes ignore what is in the fridge, the app is just another recipe site. If impact is invisible, motivation fades after a week. Every architectural decision traces back to one of these three.

Architecture at a glance

Here is the high level shape of the system:

Client: Flutter and Dart, one codebase for iOS and Android, offline first, targeting smooth 60fps rendering.
Receipt intelligence: a computer vision and OCR pipeline that turns a photo into structured line items.
Recommendation core: a weighted scoring engine that ranks thousands of recipes against what the user owns.
Personalisation: an adaptive taste profile seeded at onboarding and refined by behaviour.
Backend: Node.js REST services, a cloud database, object storage for receipt images, and Firebase for auth and real time sync.
Lifecycle: event driven emails sent through Resend.

The backend services are stateless, so they scale horizontally as scan volume grows. CI/CD ships builds to both the App Store and Google Play.

Part 1: Reading receipts is harder than it looks

If you have never tried to OCR a supermarket receipt, here is what you are up against:

Thin thermal paper that fades, curls and creases.
Photos taken under kitchen lights, at an angle, often with a thumb in the frame.
Abbreviations like CHKN BRST FLLT or ORG SEMI SKMD MLK.
A different layout for every retailer, with prices, quantities, multibuy lines and discounts in different places.

Off the shelf OCR gets you raw text. It does not get you "500g chicken breast fillets, Β£4.20". So we built the receipt intelligence pipeline in four stages:

Image correction. Deskew the photo and normalise uneven lighting so the text is as clean as possible before OCR runs.
OCR tuned for thermal paper. Low contrast, slightly smudged thermal print behaves differently from a printed document, so the OCR step is tuned for it.
Store specific template parsing. Each retailer's layout is parsed by a template that knows where item names, quantities and prices sit, and how discount lines attach to the item above.
Fuzzy matching to a product catalogue. Every abbreviated line is matched to a real product, so downstream systems work with clean ingredients instead of cryptic strings.

That last step is where a lot of the quality comes from. Here is a heavily simplified illustration of the idea (not our production code):

javascript
// Simplified illustration: map a raw receipt line to a catalogue product
const ABBREVIATIONS = { CHKN: 'chicken', BRST: 'breast', FLLT: 'fillets', SKMD: 'skimmed', MLK: 'milk' };

function expand(line) {
return line
.split(' ')
.map(token => ABBREVIATIONS[token] ?? token.toLowerCase())
.join(' ');
}

function matchProduct(rawLine, catalogue, similarity) {
const text = expand(rawLine);
let best = null;

for (const product of catalogue) {
const score = similarity(text, product.name);
if (!best || score > best.score) best = { product, score };
}

// Below the threshold, treat the line as unknown rather than guessing
return best && best.score >= 0.8 ? best.product : null;
}

The important design choice is the threshold. A wrong match is worse than no match, because a wrong ingredient produces a recipe the user cannot cook. When confidence is low, Quillo would rather skip a line than invent an item.

The end result: Quillo picks up items, brands, quantities and prices across hundreds of receipt formats without the user typing anything.

Part 2: An ingredient aware recipe engine

Once we know what is in the kitchen, the next job is ranking recipes. Most recipe apps sort by popularity. We needed to sort by what this person can actually cook tonight.

The recommendation core scores thousands of recipes using a weighted combination of:

Ingredient coverage: how much of the recipe the user already owns.
Dietary rules: vegan, halal, gluten free, keto and more. These act as hard filters, not soft weights.
Cook time and difficulty, matched to the user's preferences and skill level.
Past behaviour: what the user has saved, cooked or skipped before.

Again, a simplified sketch in Dart to show the shape of it. The weights here are illustrative, not the real values:

dart
double scoreRecipe(Recipe recipe, Pantry pantry, UserProfile user) {
// Dietary rules are a hard filter, never a trade off
if (!user.diet.allows(recipe)) return 0;

final owned = recipe.ingredients.where(pantry.has).length;
final coverage = owned / recipe.ingredients.length;

final timeFit = 1 / (1 + recipe.minutes / user.preferredMinutes);
final skillFit = recipe.difficulty <= user.skillLevel ? 1.0 : 0.4;
final taste = user.tasteProfile.affinityFor(recipe);

return 0.5 * coverage + 0.2 * taste + 0.15 * timeFit + 0.15 * skillFit;
}

Two things we learned here:

Show the gap, do not hide it. A recipe that uses five things you own but needs one extra item is often more appealing than one that uses everything but is boring. So Quillo shows exactly which extra items a recipe needs, instead of filtering those recipes out.

Hard rules and soft preferences are different things. Allergens and dietary choices must never be "outweighed" by a high coverage score. Keeping them as filters rather than weights avoided an entire class of embarrassing bugs.

Part 3: A taste model that learns quietly

Personalisation starts at onboarding, where users pick dietary filters, cuisine preferences across a dozen food cultures, a skill level from beginner to advanced, and optional weekly goals and calories.

That seeds a preference profile. From there, the profile is refined by three signals: saves, cooks and skips. A cooked recipe is a much stronger signal than a save, and a skip is useful negative feedback. Over time the ranking drifts toward what the user actually eats rather than what they said they liked on day one.

The lesson: onboarding answers are a starting point, not the truth. Behaviour wins.

Part 4: Offline first Flutter

We chose Flutter because one codebase for iOS and Android let a small team move quickly, and because Flutter makes it realistic to hit a native feeling 60fps experience, including fast camera capture, which is the very first thing users do.

The more important decision was making the app offline first. People scan receipts in car parks, in kitchens with patchy WiFi, and in supermarkets with no signal at all. So the client caches what it needs locally, works without a connection, and syncs in real time through Firebase once it is back online.

We also built the UI from a component driven system. Recipe cards, ingredient chips, savings widgets and empty states are all shared components, which kept the design consistent and made new screens much faster to ship.

Part 5: Making impact visible

The savings tracker is where the product's purpose becomes personal. Every home cooked meal is converted into money saved and kilograms of food waste avoided, and the dashboard shows both over time.

Show Image

On top of that sit gamified impact milestones with unlockable targets and shareable moments. It sounds like a small feature, but seeing your own number go up is far more motivating than any statistic about food waste in general.

Early users are averaging around Β£250 saved and 125 kg of food waste avoided.

Part 6: Event driven emails for retention

Downloads are easy. Habits are hard. We treated retention as part of the product, not a marketing add on, and built an event driven email lifecycle with Resend.

There are three emails, each triggered by a user event:

Welcome, sent when a user confirms their email, guiding them toward their first scan.
Scan nudge, aimed at turning sign ups into active scanners.
Savings milestone, celebrating money saved and waste avoided.

The pattern is simple. Here is a minimal sketch of an event handler in Node.js:

javascript
import { Resend } from 'resend';

const resend = new Resend(process.env.RESEND_API_KEY);

const TEMPLATES = {
email_confirmed: { subject: 'Welcome to Quillo! Scan your first receipt', template: 'welcome' },
no_scan_yet: { subject: 'Your fridge is waiting for you', template: 'scan_nudge' },
savings_milestone: { subject: 'Look how much you have saved', template: 'savings' },
};

export async function onUserEvent(event) {
const config = TEMPLATES[event.type];
if (!config) return;

await resend.emails.send({
from: 'Quillo [email protected]',
to: event.user.email,
subject: config.subject,
html: renderTemplate(config.template, event.user),
});
}

Each email has exactly one job and one call to action. Keeping them tied to real events, rather than a fixed drip schedule, means every message arrives when it is actually relevant.

Show Image

What I would tell anyone building a similar app
Remove input before adding features. Receipt scanning was the hardest part to build and the most important. Every field a user has to type is a reason to churn.
Prefer no answer over a wrong answer. Confidence thresholds in OCR matching protected trust more than any UI polish.
Keep hard rules out of your scoring weights. Dietary filters and allergens are constraints, not preferences.
Design for bad conditions. Faded receipts, bad lighting and no signal are the normal case, not edge cases.
Ship retention with version one. Lifecycle emails planned alongside the app did more for activation than any feature we added later.
Try it

Quillo is live on both stores:

iOS: Quillo on the App Store
Android: Quillo on Google Play

The full case study is on our site: dartsyn.com/projects/quillo

I am happy to answer questions about the OCR pipeline, the recommendation engine or the Flutter setup in the comments. And if you are working on something that turns messy real world data into a useful product, I would love to hear about it.

Get in touch with DartSyn
LinkedIn: linkedin.com/company/dartsyn
Website: dartsyn.com
WhatsApp: Message us on WhatsApp
Email: [email protected]
Book a meeting: dartsyn.com/contact
Office: 1401 21st St, Ste 11765, Sacramento, CA 95811
Hours: Monday to Saturday, 9 AM to 7 PM PST

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.