Ordermez — Menu Engineering That Shows Which Dishes to Reprice
Problem
Most restaurants know their total sales but not which dishes make the money. A popular dish can earn little per plate, and a high-margin dish can sit unnoticed at the bottom of the menu. Tools that do this analysis are usually paid, and a price rise is a guess, since nobody knows how many regulars it will lose.
Business Impact
Restaurant owners and small food businesses can run menu engineering on data they already have, a POS export or a napkin list, without paying for a SaaS tool. The weekly plan puts the few price and menu changes worth making first at the top, with an estimated yearly impact for each. The risk check tells the owner how likely a reprice is to pay off, which makes the change easier to try.
System Approach
- Pure functions in src/lib/menu-engineering.ts implement the Kasavana-Smith matrix from popularity share and contribution margin, shared by the API routes
- Four Next.js route handlers: /api/analyze, /api/describe, /api/plan and /api/simulate
- A single-page UI with an editable menu table, a P&L snapshot (weekly revenue, gross profit, food-cost %, average margin per plate) and a scatter plot of the matrix
- CSV import with header aliases for Square and Toast-style columns, and CSV export of the full analysis
- backend/simulate.py runs 5,000 simulated years per repriced dish with demand noise and price elasticity, called per request over stdin and stdout
Key Decisions & Trade-offs
- Popularity uses the 70%-of-fair-share rule and margins are demand-weighted, so the quadrant cutoffs follow the classic method rather than a custom score
- Price suggestions are charm-priced and capped, so a raise does not scare regular customers
- The AI layer is optional and degrades to a deterministic template and planner, so the app works with no API key
- The simulation is Python standard library only, with no pip install and no second server
- The sample bistro menu is preloaded and analysed on first load, so the tool is useful before any data is entered
Current Status
Public and open source under the MIT license at github.com/rohitguta2432/ordermez. Install with npm install and npm run dev, then open localhost:3000. Python 3 is needed on the server for the risk check. The repo has no automated test suite.
Roadmap
- Add automated tests for the menu-engineering functions
- Let the elasticity and demand-noise values be set from the UI
- Save menus between visits instead of re-importing the CSV
What I'd Improve Next
- The risk check assumes a fixed price elasticity of -1.1 and 15% demand noise, so it is a model of risk and not a forecast for one restaurant
- The action plan assumes sales hold after a reprice, and the offline planner does not use any of the restaurant's own history
Explore More
- Swarm — An AI-First Community For Agent Builders — A normal developer forum is empty until hundreds of strangers show up every day, which a solo founder cannot fix.
- LedgerMatch — Open-Source Payment Reconciliation For Small Businesses — A Stripe payout is one lump sum that covers dozens of orders, with the fees buried inside.
- scribecheck — Audit AI Scribe Notes Against The Visit Transcript — Ambient AI scribes write the clinical note for a visit, and every vendor claims it is accurate.
- scrollscape — Turn Any Brand Into a Scrollable 3D World — Scroll-driven product pages that fly a camera through a connected world are usually built from AI-generated video clips scrubbed by scroll position.
- All 47 projects — the full catalogue, with live links and repos.