In short
- Problem: in a bakery, one product hides several layers of recipes (a dough, a cream, a filling). Working out how much of each ingredient to prepare for tomorrow is slow, and mistakes show up as waste or a shortage in the morning.
- Solution: a production planner that follows the whole recipe chain, sales import and reports, and a shop-level role system, designed and written in Persian from the start.
- My part: I defined the product, designed every screen and the style guide, and decide what reaches production. I build with AI coding assistants (Codex and Claude), and I say so here because it shapes how the work is organised.
- State: it runs on my own server and I have tested it on synthetic data. It has no usage results yet. Every screenshot below shows a made-up demo bakery.
The problem
A bakery's recipes are not flat lists. A chocolate roll needs a baked roll base, which needs a dough, which needs its own flour, eggs and butter. Each stage is made in batches, so a tray of 20 does not become 25 without waste. The people who plan production usually carry this in their heads or in a spreadsheet that only one person understands.
I started from a simple premise: if the app knows the recipes, the batch sizes and what sells, it can tell the baker what to prepare and how much. I did not run structured interviews before building, and I treat that as the biggest open risk (see the end).
Who it is for
- The owner of a small or mid-sized bakery who wants to see sales and plan production without a consultant.
- The production lead who needs the day's quantities and nothing about money.
- Sales staff who enter and review sales and should not see recipes or costs.
Constraints that shaped it
- Persian first. Right-to-left layout, Persian digits, Jalali dates and a Persian typeface (Vazirmatn) are the default, not a translation layer.
- It has to open in Iran without a VPN. The app runs on a server in Frankfurt that is reachable from Iran, and account recovery goes by email.
- Real bakery data is private. All testing, audits and screenshots use synthetic data. Nothing from a real shop goes into tests or into this page.
- One product owner, AI as the builder. I cannot review every line, so the process has to catch mistakes: automated checks, a staging copy, and a rule that nothing reaches production without my explicit approval.
- An honest scope. Cost and profit views exist only on the demo shop, because a real shop would need ingredient prices entered first. Multi-branch support is designed on paper, not built.
Key decisions
1. Plan the target, then calculate the materials
The planner starts from what the baker thinks in: how many of each product to make on a given day. Each card shows the full batch size and how many batches the target needs. Enter 60 cookies at 20 per batch and it says three batches. Each card also says which quantities waste nothing: multiples of the batch size. The calculation then walks every semi-finished product in the chain.

2. One result, two ways to read it
The result lists the materials needed for each product, and one combined list for the whole plan, with printing, PDF and Excel export. The person at the oven reads it per product; the person ordering ingredients reads the combined list. You can save a draft or confirm and save the plan.

3. Bring sales in the way bakeries already keep them
Sales usually live in Excel or CSV files, one per month or several months together. The importer takes a multi-month file in one go and assigns Jalali dates to the right month, and the page says plainly what columns it needs and that the product names must match the shop's. Entered data can be reviewed before it is saved, so an import mistake is visible, not silent.
4. Reports that say what they leave out
Reports show net sales, a comparison period, and each product's share. Where a cost estimate appears, the page states what it covers (recipe, materials, packaging and direct cost) and what it does not (rent, tax and overhead). I would rather show a smaller number with a clear label than a confident number nobody can trace.

5. Each role sees only what it needs
There are four access levels: owner, manager, sales and production. Sales sees sales entry and reports but no recipes, plans or costs. Production sees recipes, plans and the materials map but no sales or money. The important part is where this is enforced: the server removes data a role should not have before the page is sent, so hiding a button is not the only thing standing between a sales employee and the recipes. Existing members without a role keep manager access until the owner changes it, so introducing roles does not lock anyone out.
6. A style guide with rules about contrast, not only colours
The brand is a deep violet with a warm orange. The style guide gives each colour a job: violet for text and structure, orange only for the main action, progress and highlights. It also records the contrast ratios, and forbids the two combinations that fail: orange text on a light background, and white text on orange. Text on orange is always the dark violet. Light and dark themes are both defined.

How it is built and released
The app is Next.js with a SQLite database on a server in Frankfurt. The assistant inside the app (Ask Vira) is open to owners and managers only, and calls one AI model after another if the first one is unavailable.
The release routine matters more than the stack. A change becomes a candidate on a password-protected staging copy; automated checks run there against synthetic data, including role access, redaction and accessibility; and it goes to production only after I write that I approve that exact version. Database changes are frozen unless a written runbook is approved, because a mistake there touches real shops.
On the phone
Bakery staff are on their feet, so the layout works on a phone and the app can be added to the home screen. Navigation collapses into one menu, cards stack into a single column, and the same pages are tested at phone, tablet and desktop widths in light and dark themes.

What I learned
Most of the real difficulty is not in the screens. It is in the data model: nested recipes, batch sizes, units and roles all have to agree, or the answer on screen is wrong. I learned to design the rule first (what is a batch, who may see what) and the interface second.
I also learned how to work with AI builders: they are fast and tireless, and they will also quietly make a change that nobody asked for. Small steps, written rules for what is forbidden, and automated checks that fail loudly made that safe enough to rely on.
What I will measure next
ViraChef has no usage results to report yet. The goal I set is ten paying bakeries that are still using it after three months, and the first measures are the ones that say whether the planner earns a place in the daily routine.
- Plans calculated per active shop per week, and how many are confirmed rather than abandoned.
- How often the proposed batch quantities are changed by hand.
- Sales files imported without a correction.
- Whether production and sales staff actually sign in under their own roles.
- Next on the roadmap: ingredient prices for real shops, so cost and profit can leave the demo, and multi-branch shops, which are specified but not built.
- I have not run structured sessions with bakers yet. Sitting with a production lead for one working day is the first gap to close.
