← All projects

Solo · Nov 2026 · live demo

Shiftab: offline-first POS and labour costs for hospitality

A till, kitchen display and time clock for restaurants, cafés and bars that keeps trading when the Wi-Fi drops, and shows each day's revenue against wages and other costs. One TypeScript codebase: an installable React app that works offline on tablets, phones and kitchen TVs, and a Fastify API on SQLite that checks every change before saving it.

What it shows

  • Keeps trading with no internet: each change is saved on the device first, queued, then synced in order and checked by the server. Devices pick up each other's changes as they happen, and a rejected change rolls back with a message instead of vanishing.
  • Changes from shared tablets are signed per person, with a key derived from their PIN, or from a manager's password for voids, discounts, refunds and timesheet edits. The server re-checks rank and permissions on every write and keeps an append-only audit log.
  • Reports come from one pure function shared by the app and the tests, and the server recomputes every order total with the same money code: whole cents, business days that survive daylight saving, weekly overtime, and big costs spread over the days they serve. Pay rates and costs are encrypted at rest (AES-256-GCM).
  • 47 tests with Node's built-in runner, including end-to-end authorisation checks against a temporary database. The public demo seeds four weeks of made-up trade and rebuilds itself about once an hour.
  • TypeScript
  • React 19
  • Node.js
  • Fastify
  • SQLite
  • Dexie (IndexedDB)
  • PWA
  • Zod
Floor plan with live table states and running totals
docs/screenshots/floor.png
Kitchen display: tickets turn amber at 8 minutes and red at 12
docs/screenshots/kitchen.png
Order screen with the kitchen status of each line
docs/screenshots/order.png
Reports: revenue, wages, labour %, other costs and profit for the week
docs/screenshots/reports.png
Team timesheet for the week
docs/screenshots/time.png
The floor plan on a phone
docs/screenshots/phone-floor.png