A recipe with its cost and its allergens
A recipe opens as a record titled by the dish: the plate on its stage, the allergens listed with the ingredient each one comes from, and the recipe per portion at today's prices. The side column holds the portion cost, the food cost against its target, the margin and the menu price, and when the dish costs too much, the price that would bring it back to target.
By Bohuslav PoláčekChecked
What the screen shows
- The dish: the course as a small eyebrow, the dish as the title, the state "Above the target food cost" with its dot, and who wrote the version cooked today. The plate sits on the kit's
ProductStage, which steps through up to the last four versions of the recipe, each with its menu price, its portion cost at today's prices and its food cost. - The allergens, traced: each allergen with its number from the regulation's list of 14 and the ingredient it comes from: 1 Cereals containing gluten from the sourdough bread, 2 Crustaceans from the prawns, 7 Milk from the butter.
- The recipe per portion: every ingredient with its supplier and today's price, the amount the kitchen buys, what reaches the plate after peeling or cooking, and the cost of the line; the total per portion under the table.
- The figures and the next step: the portion cost, the food cost against the dish's target, the margin per portion without VAT and the menu price. Above the target, the next step names the lowest menu price that meets it, or a smaller portion, with one button to set that price.
Allergens are worked out, never typed
A dish's allergens are the union of its ingredients' allergens. When a supplier changes, every dish that uses the ingredient changes with it, and the dish's history says which allergens were added or removed and how the portion cost moved. A printed menu carries the allergen numbers beside each dish, and the menus page marks a menu "to print" exactly when what it would print now differs from what was printed last.
The same data feeds the allergen matrix, every dish against the 14 allergens, which everybody in the kitchen and on the floor can open, newcomers included: waiters answer guests' questions from it. Only the head chef and the operations director change recipes and suppliers, because one change can bring an allergen into several dishes at once.
How the money is worked out
- Portion cost: each line's amount as bought, times today's price, so trimming and cooking losses are paid for. The yield per ingredient says how much reaches the plate; the chef can change it on any line.
- Food cost: the portion cost as a share of the menu price without VAT. Each dish has its own target, 30% for this starter; the group aims for 28 to 35% across the menu, and the recipe list marks any dish above 35%.
- The price that meets the target: the portion cost divided by the target, with VAT added back, rounded up the way menus are priced.
The record, the list, the edit form, the menus and the allergen matrix all read one file, costing.ts, so a figure or an allergen cannot differ between two screens.
What generated recipe screens usually get wrong
Coding tools tend to store allergens as free tags typed on each dish, so they drift away from the ingredients the first time a supplier changes; they cost a recipe by the weight on the plate rather than the weight bought; and they paint the 14 allergens as 14 coloured badges nobody can read.
In Meadowstack the allergens are derived, the colour goes only to what needs doing (the amber dot and the food cost over its target), and the table never scrolls sideways: on a narrow record the yield and the net amount fold under the amount bought. One ink button per record: when the next step has its own action, "Edit recipe" steps back to a quieter button. It is a record screen, like the order record, and follows the record pattern.
Allergens come from the ingredients
/** Which ingredients bring each allergen into a dish, in the regulation's order. */
export function allergenSources(lines: RecipeLine[], ingredients: IngredientIndex) {
const sources = new Map<Allergen, string[]>();
for (const line of lines) {
const ingredient = ingredients[line.ingredientId];
if (!ingredient) continue;
for (const allergen of ingredient.allergens) {
const list = sources.get(allergen) ?? [];
if (!list.includes(ingredient.id)) list.push(ingredient.id);
sources.set(allergen, list);
}
}
return new Map([...sources.entries()].sort(([a], [b]) => a - b));
}
export function allergensOf(lines: RecipeLine[], ingredients: IngredientIndex): Allergen[] {
return [...allergenSources(lines, ingredients).keys()];Questions
Where do a dish's allergens come from?
From its ingredients. Nobody types them on the dish: the record lists each allergen with the ingredient that brings it in, so a cook can see what to leave out for a guest.
What happens when a supplier changes an ingredient?
Every dish that uses the ingredient takes on its allergens and its price. Each dish's history says what was added or removed, and the menus whose printed allergen list no longer matches are marked to print.
How is the food cost calculated?
The portion cost at today's prices as a share of the menu price without VAT. The portion cost counts what the kitchen buys, so the weight lost in peeling and cooking is part of it.
Can I compare two versions of a recipe?
Yes, once a recipe has more than one. The stage steps through the last four versions with their price and food cost, and Compare versions beside the history puts two of them side by side, both costed at today's prices, with every line that changed.
Who can change a recipe?
The head chef and the operations director. Everyone else reads the allergen matrix, which is what the floor needs to answer guests.
Related
- An app for restaurants and venuesExample app
- A time-off request waiting for a decisionScreens
- A kitchen's food safety day, kept by the clockScreens
- A month close that knows what each step waits forScreens
- A document inbox that catches a changed bank accountScreens
- A driver record that says what expires nextScreens
Two ways
Build it yourself, or have it built
Build it yourself
Build your app on the framework
Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.
One payment, lifetime updates
Get the frameworkHave it built
Have us build your app
Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.
After launch, Care keeps it improving, from €99 a month.
from €1,990
Describe your app
