Cooking app / 2026 / In progress
Brimfox.
A household cooking app that ties every recipe to what is really in the pantry
- The hard part
- Keeping the pantry true when a meal is finished, so the cook chooses what was used and nothing is saved halfway.
- Works today
- The app saves a finished meal and its pantry changes together, and tests check that a warning never counts as a usable swap.
- Role
- Software engineering
- Built with
- Flutter · Dart · Laravel · PHP · Sanctum · PostgreSQL · Redis · Python / FastAPI / Pydantic (optional helper) · Python 3.11 · FastAPI · Pydantic 2 · Uvicorn · pytest · Laravel HTTP client · Docker
01What I built
The problem.
A recipe on its own does not know what is in your kitchen, who else shares it, or how the meal turned out last time. And a pantry tracker is only useful while it is right. If an app takes ingredients off just because a recipe listed them, the pantry is soon wrong and nobody trusts it.
What I built.
Brimfox is a cooking app for households. The Flutter app on the phone runs the cooking steps. It shows recipes beside a personal or shared pantry, which is the list of food at home. It suggests swaps that really work and keeps notes on what worked. A Laravel server, built in separate parts, gives the app an A technical wordAPIA set of web addresses that one program uses to ask another program for data, or to ask it to do something. to call. It keeps the records and checks which household each person may act for.

The app
Flutter, Dart
- Recipes and pantry
- Shows recipes against what is really in the pantry, with swaps that truly cover a missing ingredient.
- Finishing a meal
- The cook picks which pantry items to keep and which to remove. Keep is the default.
- Fonts and text styles
- One font family, built into the app, with the same text styles on every screen.
The server
Laravel, Sanctum, PostgreSQL, Redis
- Household access
- Before anything is saved, the server checks which household the person belongs to. It looks up pantry items only in that household or in the person’s own pantry.
- Meal completion
- Saves the pantry changes and the cook session together. The cooking memory and family feedback are saved in the same step, so either all of it is saved or none of it is.The storyReporting a saved meal when sharing fails
- Sharing
- Sends the post and the public review afterwards, so a failed share never undoes a saved meal.The storyReporting a saved meal when sharing fails
- Recipe explanations
- Builds each explanation from the recipe. A provider writes the text, and the server checks it and keeps a saved copy. If something goes wrong, there is a fallback answer to use instead.The storyWhat Brimfox still needs before it calls its Python service
The Python service
Python 3.11, FastAPI, Pydantic 2, Uvicorn, Docker
Brimfox AI Core- Recipe ordering
- Gives each recipe choice points for matching the search words and phrases. It adds points for ingredients on hand and for swaps that cover a gap, then sorts.
- Explanation checker
- Turns down a fixed list of unsafe phrases. It also measures how many keywords an explanation shares with its source material.The storyWhat a keyword check can and can’t say about an explanation
- Pass key check
- Checks the pass key in a way that takes the same time whether it is right or wrong. So the timing gives nothing away. On the live setup, it refuses protected calls when no key is set.
- Request models
- Pydantic, a Python tool for checking data, checks the outer shape of each request and the limit of 1 to 20 results. The values inside stay loose.
The Laravel client
Laravel HTTP client
Brimfox AI Core- Requests
- Sends the request as structured text, with a pass key and a trace ID. Connecting and the whole request each have their own time limit.The storyWhat Brimfox still needs before it calls its Python service
- Retries
- Tries again after a failed connection or a server error, up to a set limit. It does not retry every failed answer.
- Results and failures
- Returns the status and how long the call took. Or it raises a clear error that tells running out of time apart from other failures.
- Request logging
- When switched on, it records the address called, the trace ID, the delay and the status. It also records the names of the data fields, never their values.
02The journey
What broke, and what changed.
Broke, then fixedA decisionA milestone
- 02 of 07BrokeBrimfox
A warning was being counted as a usable swap
What went wrongA swapBrimfox · The appRecipes and pantryShows recipes against what is really in the pantry, with swaps that truly cover a missing ingredient.See it in the map above is a substitute for a missing ingredient. Any swap found in the pantry counted as covering that ingredient. Then I added a “not recommended” level of swap. A swap shown as a warning could still raise a recipe’s score.
What changed“Not recommended” swaps are still shown. But they no longer count as cover in suggestions or recipe details. They no longer count in the shopping gaps either, which list what is still missing.
ProofThe tests as written keep such a recipe at “missing one” and “cannot make after substitutions”. They also expect the warning to still show.
- 03 of 07DecidedBrimfox
One font family, but not the same boldness everywhere
The questionAn earlier brand guide paired two fonts. The approved onboarding screen, the first screen a new user sees, used only one. Copying its heavy, bold title to every screen would have made headings, body text and controls all look the same.
What I choseThe whole app uses one font familyBrimfox · The appFonts and text stylesOne font family, built into the app, with the same text styles on every screen.See it in the map above, with the same text styles on every screen. Each screen takes its boldness from its own approved design.
- 04 of 07DecidedBrimfox AI Core
Fixed weights and counts I can follow
The questionA prototype’s calculations need to be easy to follow before anyone can judge whether they help.
What I choseBoth helpers use fixed weightsBrimfox · Brimfox AI Core · The Python serviceRecipe orderingGives each recipe choice points for matching the search words and phrases. It adds points for ingredients on hand and for swaps that cover a gap, then sorts.See it in the map above and plain counts. That gives a starting point for testing whether they help. The ranking is not learned from data, and the checkerBrimfox · Brimfox AI Core · The Python serviceExplanation checkerTurns down a fixed list of unsafe phrases. It also measures how many keywords an explanation shares with its source material.See it in the map above does not check meaning.
- 05 of 07DecidedBrimfox AI Core
Report support counts, do not rewrite the explanation
The questionThe checkerBrimfox · Brimfox AI Core · The Python serviceExplanation checkerTurns down a fixed list of unsafe phrases. It also measures how many keywords an explanation shares with its source material.See it in the map above counts the keywords each part of an explanation shares with the source material. The rules are easy to follow, but shared words do not prove a claim is supported.
What I choseIt sends back support counts, which say how many parts were supported and how many were dropped. It also sends warnings and an overall result. It never sends back a cleaned-up explanation. The app can then set its own rule for when to accept a result and when to fall back.
- 06 of 07DecidedBrimfox AI Core
Retry only what might work next time
The questionThe caller waits for the answer before it moves on, so it waits through every retry. And a request that was refused will only be refused again.
What I choseThe Laravel clientBrimfox · Brimfox AI Core · The Laravel clientRequestsSends the request as structured text, with a pass key and a trace ID. Connecting and the whole request each have their own time limit.See it in the map above retries connection failuresBrimfox · Brimfox AI Core · The Laravel clientRetriesTries again after a failed connection or a server error, up to a set limit. It does not retry every failed answer.See it in the map above and server errors, up to a set limit. Other failures come back at once. Time spent on retries counts toward how long the caller waits.
- 07 of 07DecidedBrimfox AI Core
Setting up a client is not the same as using it
The questionThe service runs on its own, and Laravel has a client for it. But when I followed a recipe request through the code, nothing called the service. Explanations are still made in A technical wordPHPThe programming language that Laravel, a popular web framework, is written in., through Laravel’s own providerBrimfox · The serverRecipe explanationsBuilds each explanation from the recipe. A provider writes the text, and the server checks it and keeps a saved copy. If something goes wrong, there is a fallback answer to use instead.See it in the map above and its check. They still use its saved copy and its fallback answer.
What I choseI treat setting it up and using it as separate steps. The service is off unless someone switches it on. The client itself does not check that switch. So the part of the app that calls the service must check it.
03Today
Where it stands.
One gap is retries. The server can spot a repeated request by a key the app sends with it. But the Flutter app makes a new key for each try. So if the app sends the same finished meal again, as a retry, it could be saved twice. I have not yet tested what happens when something fails between saving the meal, posting it and asking for a review. The Python rankingBrimfox · Brimfox AI Core · The Python serviceRecipe orderingGives each recipe choice points for matching the search words and phrases. It adds points for ingredients on hand and for swaps that cover a gap, then sorts.See it in the map above service is built, but the app does not call it yet. The planning screens are still a prototype.