Simple Restaurant: Paperless KDS, Floor POS & Table Management
A high-speed, single-process table-service management ecosystem and Kitchen Display System (KDS) engineered with Python, FastAPI, SQLite, WebSockets, and HTMX. Unifies instant diner self-ordering via table QR tokens, live paperless kitchen queue progression, floor waitstaff assistance routing, cashier POS billing with 72mm thermal printing, recipe-linked prep inventory deduction, and shift turn analytics.
System Key Highlights
-
Paperless Kitchen Flow: Tickets advance per-plate across Held → Pending → Cooking → Ready → Served states.
-
QR Token Table Pairing: Guests scan secure table tokens to browse live menu, customize add-ons, and call staff.
-
Recipe-Linked Inventory: On-hand ingredient stock drops automatically when a line is marked Served, with par-level toasts.
-
Shift & Cluster Turn Metrics: 90-minute visit clustering computes turns, revenue per cover, and automated reservation no-show rates.
End-to-End Restaurant Flow
Table QR & Diner Ordering
Zero-install mobile web app accessed via tokenized QR code. Diners browse item photos, configure ingredient modifiers with instant price calculations, submit tickets, and call waitstaff for assistance.
Real-Time Kitchen KDS
WebSocket-driven HTMX kitchen display board with live audio alerts. Cook teams advance orders plate-by-plate through Held, Pending, Cooking, Ready, and Served states with immediate inventory feedback.
Floor Waitstaff Operations
Live floor grid indicating table status, cover counts, active ticket states, and pending customer calls. Staff can place table-side orders, split checks by guest, print pre-bills, and settle payments.
Cashier POS & Thermal Receipts
Fast POS register for walk-in and table orders. Supports modifier surcharges, cash tender calculation with exact change prompts, 72mm-style thermal receipt printing, and SMTP email receipt delivery.
Recipe-Linked Prep Inventory
Automated stock ledger linking menu items to ingredient recipe lines. Deducts inventory on Served state (handling add/skip modifier modifiers) with configurable par-level min stock alarm badges and toasts.
Shift Analytics & Reservations
Operational intelligence clustering visits with 90-minute gaps to compute seat turnover, revenue per cover, timed reservation grace releases, shift no-show rates, searchable order archive, and CSV export.
System Screenshots & Interface Gallery
Click any screenshot to open the interactive carousel lightbox with full-resolution zoom and pan controls.
Waitstaff Table Grid & Service Calls
Interactive floor map displaying live table states, active cover counts, order states, and instant waiter call alert acknowledgments.
Kitchen Display System (KDS)
Real-time paperless kitchen queue driven by WebSockets and HTMX, with plate-by-plate fulfillment and collapsible prep inventory badges.
Cashier Point of Sale (POS)
Fast order checkout for walk-in and table tickets with modifier fee stamping, cash tender calculation, and receipt generation.
Menu Catalog & Modifier Engine
Full dish administration with availability 86-ing toggles, kitchen routing switches, photo uploads, and customizable modifier add-ons.
Table Layout & Seat Capacities
Floor management allowing dynamic renumbering with automatic order re-mapping, seat cover configurations, and table activation states.
Staff Accounts & Role Permissions
Role-based user security managing waitstaff and admin permissions, password credentials, and HttpOnly session validation.
Recipe-Linked Prep Inventory
Linking menu dishes to ingredient recipes with base quantities, add/skip modifier rules, and automated deduction upon dish serving.
Multi-Currency Display Settings
Configurable default currency symbols (USD, EUR, GBP) dynamically formatted across menu catalogs, customer bills, and receipts.
Inventory Par-Level Stock Alarms
Live monitoring dashboard tracking ingredients at or below safety stock minimums with non-intrusive session toast notifications.
Operational Performance Analytics
Customizable datetime range metrics evaluating total sales, cover counts, peak turn times, and dish order velocity.
Staff Shift & Turn Duration Analytics
Sophisticated 90-minute visit clustering accounting for overnight turns, calculating revenue per seat and shift performance.
Searchable Order Archive & Velocity
Paginated historical log with multi-criteria filtering by table, server, guest, and dish item, complete with one-click receipt reprint.
Table Reservation Management
Timed table holds with configurable grace periods, background auto-release for expired holds, and accurate shift no-show tracking.
Customer QR Menu Landing
Mobile-optimized web landing resolved from table QR token without requiring account registration or app installation.
Modifier Selection & Customization
Selecting ingredient add-ons with automatic price recalculation, special dietary instructions, and split-guest labeling.
Order Confirmed & Dispatched
Instant order transmission to the kitchen display board with table identification and one-tap waiter call trigger.
Live Kitchen Cooking Progress
Live feedback updating the guest on dish preparation stages (Pending → Cooking → Ready → Served) in real time.
Settled Bill & Digital Receipt
Itemized final check view following cashier settlement, featuring printable format and optional email dispatch.
System Architecture & Design Decisions
Backend Architecture
Engineered as a high-performance single-process service avoiding microservice bloat while providing modular layer separation across domain models, security, database migrations, and realtime WebSockets:
- Framework: Python 3 with FastAPI and Uvicorn for asynchronous request throughput and low memory footprint.
- Database Layer: SQLite (`orders.db`) managed via SQLAlchemy 1.x ORM with runtime schema migration safety (`migrate_schema()`).
- Real-Time Fan-Out: Asynchronous WebSocket hub (`/ws/orders`) delivering live ticket broadcasts and out-of-band inventory alarm counters to connected kitchen terminals.
- Authentication: Session-based authentication using HttpOnly cookies (`kds_session`, 12-hour expiration) with role gates for Staff and Admin.
- Flat Mutating APIs: Employs flat POST endpoints with payload IDs (e.g. `/api/menu-toggle`, `/api/tables-save`) guaranteeing 100% browser reliability.
Frontend & Operations Stack
Designed as a responsive single-page application (SPA) with dedicated operational views and zero dependency bloat:
- UI Architecture: Dark-themed Bootstrap 5 SPA rendered via vanilla JavaScript with HTMX WebSocket extensions for the Kitchen KDS board.
- Modifier Calculation Engine: Client-side dynamic price composition and server-side modifier resolution preserving historic pricing against catalog updates.
- Inventory Par-Level Alarms: Automated toast alerts triggering on first stock threshold breach per session to prevent alert fatigue.
- Receipt Printing & SMTP: 72mm thermal print stylesheets and asynchronous SMTP background mailer for guest digital receipts.
- Shift Analytics Engine: 90-minute visit clustering algorithm calculating accurate seat turnover, revenue per cover, and shift metrics across midnight turns.