# Openfront Coffee Shop

> Openfront Coffee Shop combines customer menu and checkout flows with cafe order queues, POS, kitchen display, menu configuration, inventory movements, waste, loyalty accounts, subscriptions, catering, and register shifts.

From the first espresso to the final drawer count.

## At a glance

- 33 models for menu, orders, register, stock, recipes and rewards
- 3 bar stations: espresso, cold and brew
- 1 cafe per deployment, with a register drawer per shift

## Links

- [Product overview](https://spec.openship.org/coffee-shop): every area and feature on one page
- [Live demo](https://coffee-shop.openship.org)
- [Documentation](https://docs.openship.org/docs/openfront/coffee-shop)
- [Source code](https://github.com/openshiporg/openfront-coffeeshop)
- [Feature film](https://spec.openship.org/coffee-shop/video): a 27-second walk through every area

## Areas

### Order ahead

- **A better start to the coffee run**: Customers browse the menu, choose modifiers and request pickup. Staff accept the order before production; payment can be recorded at pickup. Configured Stripe Checkout is optional. (https://docs.openship.org/docs/openfront/coffee-shop/orders)
- Quotes are checked before placing an order.
- Pickup lead time and capacity are store settings.
- Guest order access requires its secret or owning session.
- Open requests pause when capacity is reached.

### Menu

- **Every drink, every variation**: Manage menu categories, items, images and modifiers, with price adjustments, selection limits and inventory mappings for the choices customers make. (https://docs.openship.org/docs/openfront/coffee-shop/menu)
- Route items to espresso, cold or brew bar.
- Set item availability through menu commands.
- Modifier stock has a dedicated update path.
- Item and modifier prices are snapshotted on orders.

### Counter

- **One counter, a complete sale**: Open a register shift, ring up items and record cash or a cashier-confirmed card-terminal approval. Counter sales retain the order, POS receipt and payment. (https://docs.openship.org/docs/openfront/coffee-shop/pos)
- Cash and terminal-confirmed card are distinct tenders.
- Paid sales consume stock.
- Order production remains visible in KDS.
- Refunds update payment, receipt and register evidence.

### Bar display

- **Keep the bar moving**: The KDS tracks each item from queued through preparing, ready and handed off. Staff order acceptance connects production to available stock and prep batches. (https://docs.openship.org/docs/openfront/coffee-shop/kds)
- Each item keeps its bar status.
- Station routing separates production work.
- Order transitions have named commands.
- Recovery views support stuck production work.

### Register

- **Count the drawer. Keep the reason.**: Open shifts, record pay-ins, payouts and drops, then close against counted cash and variance. Counter refunds stay tied to the current drawer. (https://docs.openship.org/docs/openfront/coffee-shop/register)
- Cash movements retain their type.
- Shift close records counted totals.
- Variance remains visible.
- Refunds reverse associated rewards points.

### Inventory

- **Know what is left before the rush**: Buy stock from suppliers, receive purchase orders into active lots and record counts and waste. Reorder points flag low stock. (https://docs.openship.org/docs/openfront/coffee-shop/inventory)
- Purchase receiving creates stock movements.
- Lot records preserve received inventory.
- Waste has its own record.
- Quantities use the inventory item unit.

### Recipes & prep

- **Prepare once. Consume with a trail.**: Recipes connect ingredients to prep batches. Completing a batch consumes its inputs; later orders draw from the available batch rather than pretending prep and raw stock are the same. (https://docs.openship.org/docs/openfront/coffee-shop/recipes)
- Recipes have ingredient records.
- Prep consumption retains batch references.
- Inventory movements preserve production changes.
- Modifier inventory mappings affect consumption.

### Regulars

- **More than the next order**: Rewards accounts, catering inquiries and subscription plan records support repeat business. Staff schedule shifts and clock work through cafe operations. (https://docs.openship.org/docs/openfront/coffee-shop/loyalty)
- Loyalty events record points changes.
- Staff can adjust account points and drink credits.
- Catering moves from inquiry through completion.
- Subscription plans can be created, paused and cancelled from the dashboard.

### Developer

- **A cafe system you can run yourself**: Openfront Coffee Shop puts the menu, pickup ordering, counter, bar display, register, stock and rewards in one Next.js, Keystone, Prisma and Postgres application built for a single cafe. (https://github.com/openshiporg/openfront-coffeeshop)
- 33 models cover menu, orders, payments, register shifts, stock lots, recipes, prep batches and rewards.
- Prices, order state and stock move only through named commands.
- Most commands take an idempotency key and refuse updates made from out-of-date screens.
- Stripe, PayPal and manual payment adapters are in the source.
