A Shopify build for a fictional brunch café in Bali that wants its own online ordering instead of paying a delivery app's commission. Dishes with add-ons, pickup and delivery times limited by what the kitchen can cook, a kitchen board, and catering quotes, in English and Bahasa Indonesia.
Order from the demo café → The real theme, both Functions and the kitchen board run in your browser. Place an order, then find it on the board.
1:27 · no sound · recorded from the theme running locally on the demo catalog.
Commission on every order
Delivery apps take a large share of each order. A Shopify store keeps the margin, the customer list and the payouts.
A kitchen has a limit
Twelve dishes per quarter hour, not unlimited. Taking more than that means cold food and angry tables.
Brunch is customised
Poached or scrambled, sourdough or gluten-free, extra bacon. Every choice has to reach the kitchen and the price.
Theme (Liquid, vanilla JS)
dish page ─ chosen add-ons as line property _mods ─────────▶ Cart Transform Function
expands the line: dish + add-ons, priced
cart drawer ─ GET /apps/pagi/slots ─▶ app proxy ─▶ pagi-ops (Hono + SQLite)
─ cart attributes: fulfilment, pickup_slot
Checkout ──────────────────────────────────────────────────▶ Checkout Validation Function
hours · lead time · capacity · valid add-ons
pagi-ops ◀─ orders/create, orders/cancelled webhooks (HMAC, idempotent)
─▶ shop metafield pagi.slot_state (Functions can't call out or read the clock)
─▶ kitchen board, order tags slot:…, catering → draftOrderCreate
Shopify Functions
Backend
Storefront
The interface is documented in Figma: 26 variables whose names match the theme's CSS custom properties, 11 text styles, the component set (time slots, add-on options, menu rows, kitchen tickets and more) and the key screens on mobile, desktop and the kitchen tablet, in English and Bahasa Indonesia.


