Projects / Chiminea: Restaurant Booking by Table
Chiminea: Restaurant Booking by Table
Choose your table on the floor plan, add a set menu, pay a deposit that comes off the bill

A complete table-booking system built as a working demo: guests pick their party size, then a table on a floor plan of the restaurant or a time, add a set menu and pay a deposit, and the restaurant runs the service from a live floor and timeline.
The challenge
A restaurant taking bookings by phone and a paper book can’t promise a particular table, double-books pushed-together tables, overloads the kitchen at 19:30, and loses covers to no-shows.
The architectural solution
Party size decides which tables fit and how long the table is held. Guests choose a specific table (or two tables that join for a bigger group) on an SVG floor plan, or a time first, add a set menu or extras, and pay a R1,000 deposit through Payfast that comes off the bill, with free cancellation up to 24 hours before. The restaurant side has a live floor for the host, a drag-and-drop timeline, walk-ins, waiters rostered to areas (an area with nobody on shift closes to online bookings), a limit on guests arriving per 15 minutes for the kitchen, and stats on covers, table use and menus. Confirmations, reminders and “running late” replies appear as WhatsApp messages (a mockup: nothing is sent). A read-only tour shows the restaurant side to visitors with guests’ names shortened and no contact details.
Next.js static site, a Node API (Hono) and a scheduled-jobs worker on PostgreSQL, all in Docker on one small EC2 instance behind Caddy, shared with the Quartz demo. A Postgres exclusion constraint on every table a booking uses makes double-booking impossible, joined tables included, and a per-day lock keeps the table and kitchen-pacing checks in step. One pure, property-tested availability engine decides what can be booked.
Key deliverables
- Book an exact table from an SVG floor plan, or a time first; joined tables for bigger groups
- Turn times by party size, lunch and dinner periods, and a kitchen pacing limit per 15 minutes
- Database-enforced protection against double-booking, tested with simultaneous requests
- R1,000 Payfast deposit taken off the bill, with set menus, extras and a 24-hour cancellation rule
- Live host floor, drag-and-drop timeline, walk-ins and a shift planner with roles enforced by the API
- WhatsApp-style reminders with “running late” replies that show up on the host’s screen
- Stats on covers, popular times, table use and set menus against the previous period
Technology stack
- Next.js
- TypeScript
- GSAP
- Node.js
- PostgreSQL
- Payfast
- Docker
- AWS EC2
- Playwright