-
-
The diner's page updates live with the chef's decision and the smaller charge.
-
Printable allergen sign-off record for the order.
-
Claude Code ordering through the restaurant's MCP server; a person still approves the payment.
-
Kitchen ticket: the rules engine marks the sesame in the bun and the slaw; the chef picks the swaps.
-
Owner ledger in AG Grid: held, charged and not charged for each order.
-
One order: PayPal holds £24.50, the chef nods with changes, £23.00 is captured. Payments simulated.
For judges, in four lines
- What it is: PayPal holds the money for an allergy order until the chef has read the allergy and signed off; a recipe change becomes a smaller, partial capture.
- What ran for real: the full app in simulated-payments mode; Claude Code ordering through the restaurant's MCP server; a local AI model (qwen3.5:9b) drafting a kitchen question and translating a message into Spanish.
- What is simulated, and why: every PayPal call, because the server had no PayPal sandbox keys. The code targets PayPal Orders v2 and Payments v2 in the sandbox; hosted AI models have not run in the app yet.
- Run it locally:
git clone https://github.com/msimakhov-star/chefs-nod && cd chefs-nod && pnpm install && pnpm dev, then open http://localhost:3000 (no keys needed; payments are simulated and labelled).
Inspiration
About 6% of UK adults, or 2.4 million people, have a clinically confirmed food allergy. In an FSA survey of adults with a food hypersensitivity, 63% of those ordering remotely said they got any allergen information, against 73% in person. We built Chef's Nod to bridge this gap for independent restaurants. We provide a sign-off workflow where the chef makes the final safety call. The app manages complex swaps and identifies risks, but the kitchen always retains control over cross-contact and preparation decisions. Plenty of apps hold a payment until someone approves it. Here the person who approves is the one who knows the food, and a smaller charge is a recipe change the diner can read in the note sent with the PayPal capture. The closest earlier idea we found is PayPal Teen, a 2018 hackathon project, where a parent approves or denies a teen's purchase; here the approver is the kitchen, and the decision can change the dish and lower the charge.
What it does
The app provides a system for diners to order from independent restaurants while specifying food allergies. The diner builds a basket from the owner's confirmed menu and marks each person's allergies, with notes on severity. An AI ordering assistant is built in, but it needs a hosted model and is not shown in the demo. Before payment, the diner reviews an allergen statement for each item and ticks to confirm they’ve read it.
Next, PayPal holds the money with an AUTHORIZE order. With sandbox keys the diner approves this in PayPal; in the demo this step is simulated and labelled as such. The kitchen screen displays the order live. The rules engine marks which part of each dish carries the allergen and lists the owner-defined swaps that remove it. A local AI model drafted the question for the chef in our test. Allergens are tracked per component of a dish, so swapping only the bun still flags the sesame in the slaw.
The chef decides whether to accept the order, or make changes. The diner’s page updates live, and messages are translated (a local model translated one into Spanish in our test). A printable allergen sign-off record is generated. Finally, AI agents can order through the restaurant’s MCP server, with a person still approving the payment. Claude Code did this in our test. The owner dashboard provides order and money records, analytics, and a menu import tool.
No PayPal calls have run yet. The server had no PayPal sandbox keys, so the demo uses a clearly labelled simulated-payments mode. The same code creates a PayPal Orders v2 order with intent AUTHORIZE, authorizes it, and captures, partially captures or voids it through Payments v2, in the PayPal sandbox, once keys are set.
How we built it
We built Chef's Nod using Next.js, TypeScript, SQLite and the Vercel AI SDK. The project relies on the Model Context Protocol SDK and AG Grid for data tables. We integrated PayPal via the APIMatic-generated Server SDK for TypeScript. This code uses Orders v2 to authorize funds and Payments v2 to capture or void them. Catalog Products API turns confirmed dishes into PayPal products. Webhooks with signature verification track order status changes.
Every capture sends note_to_payer, so a smaller charge carries a note explaining the recipe change. Every call carries a PayPal-Request-Id idempotency key per decision. The system checks PayPal's statuses rather than assuming payment: a declined or pending capture never reads as paid, and if an answer is lost it asks PayPal before believing a refusal. Tests as of 6 Nov 2026: pnpm check (logic, money paths against a fake PayPal, staff gate), 87 API smoke checks and 52 browser checks, all in simulated mode.
Implemented but not yet run against PayPal are webhooks with signature verification, the Catalog Products sync, Transaction Search, and the money assistant's connection to PayPal's sandbox MCP server. AI that has run is Claude Code, a real agent using the restaurant's MCP server. A local open model (qwen3.5:9b) drafted a kitchen question and translated a diner message into Spanish. Hosted models like Claude or Gemini have not run in the app yet. On a local model the in-app ordering assistant's suggestions were not good enough to show, so it needs a hosted model.
Challenges we ran into
We faced several technical challenges during development. We had to model allergens at the component level because a single dish might contain the same allergen in multiple places. This ensures that swapping one ingredient still flags remaining risks. We also had to manage PayPal's payment logic. By design the price can only go down, because the diner only approved the amount they saw. A higher price would need a new approval. Finally, we ensured that even when AI agents place orders, a human must still approve the final payment.
What's next
We plan to ask real chefs if this workflow is easier than a phone call. We intend to pilot the app with an independent restaurant. Future plans include testing with more AI clients and adding multi-restaurant support. These goals are not yet tested.
Links
Built With
- ag-grid
- ag-studio
- apimatic
- model-context-protocol
- nextjs
- ollama
- paypal-orders-api
- paypal-payments-api
- paypal-server-sdk
- sqlite
- typescript
- vercel-ai-sdk
