Flagship project · Restaurant technology
Servora
Servora — a multi-app restaurant operating system.
Servora started as a POS idea and grew into a complete restaurant operating model. The hard part was not building another screen—it was keeping orders, pricing, availability, permissions and tenant context consistent while six applications evolved around the same domain.
Product surface
A product system, not a single screen.
Servora is a multi-tenant restaurant operating system designed around separate role-focused applications, shared TypeScript contracts, server-authoritative business rules and real-time order workflows.
Menus, orders, business context, staff, analytics and restaurant operations.
Station-aware ticket flow for preparation and ready-state operations.
Fast table-side ordering and service workflows for floor staff.
Customer ordering experience connected to the same menu and availability rules.
Public-facing product surface separated from operational applications.
Authorization, pricing, orders, tenancy, inventory, realtime and persistence authority.
Role-focused applications
Each restaurant role gets a purpose-built surface without duplicating the domain model.
Server-authoritative decisions
Pricing, permissions and operational rules are validated at the backend boundary.
Multi-tenant by design
Organization → tenant/franchise → branch context flows through data and authorization.
Realtime operations
Kitchen, waiter and order experiences react to shared operational events.
Shared contracts
Types, validation, API client, UI and realtime primitives live in dedicated packages.
Context / problem
Restaurant software breaks when each surface invents its own truth.
A restaurant order moves through customer choice, staff permissions, pricing, availability, kitchen preparation and service. Building those as disconnected applications creates drift exactly where operational consistency matters most.
- 01Different roles need very different interfaces without duplicating business rules.
- 02Pricing and availability must remain authoritative across POS, waiter and customer ordering.
- 03Tenant and branch context has to travel through authorization and persistence, not only UI filters.
Product ecosystem
One operational backbone, multiple focused experiences.
Servora separates the interfaces by role while the API and shared contracts keep orders, tenancy, pricing, availability and realtime semantics aligned.
Admin / POS
Business configuration and operational control
Kitchen
Preparation and ready-state workflow
Waiter
Table-side ordering and service
Customer
QR ordering on shared menu rules
Website
Public marketing surface
Shared packages
Types · validation · UI · API client · realtime
Architecture
Different applications. One domain contract.
The monorepo keeps product surfaces independent while shared packages define the contracts that should not drift. The API remains the authority for business-critical decisions, and realtime events distribute operational change to the clients that need it.
Key engineering decisions
The important work lives in the trade-offs.
Keep pricing authoritative on the server
- Constraint
- The same menu can be rendered by admin, waiter and customer applications, but money cannot depend on whichever client happened to calculate it.
- Decision
- Clients present estimates and selections while the API owns final pricing, availability and validation.
- Result
- One source of truth for financial and ordering rules across every application.
Model tenancy explicitly
- Constraint
- Restaurant data needs to be isolated while still supporting organization, franchise/tenant and branch-level operations.
- Decision
- Tenant and branch context is part of the core model, permissions and API access path rather than a UI-only filter.
- Result
- The same product can support multiple businesses and branches without mixing operational data.
Share contracts, not entire features
- Constraint
- A kitchen display and an admin dashboard share order semantics but have radically different interaction models.
- Decision
- Share stable primitives—types, validation, API client, realtime and UI—while keeping application workflows local.
- Result
- Less duplication without turning the monorepo into one tightly coupled frontend.
Treat authorization as product behavior
- Constraint
- Nine system roles need different capabilities and interfaces, and hiding a button is not sufficient protection.
- Decision
- Permission-aware UI is paired with backend authorization and tenant-aware checks.
- Result
- Roles stay understandable in the interface while security remains enforced at the server boundary.
Product engineering
The complexity is in the seams.
A restaurant order touches menus, availability, pricing, staff permissions, kitchen routing, payments and realtime state. I focused on making those seams explicit so a change in one application does not silently change the business rules in another.
- Menu, modifier, combo and availability rules are represented as domain behavior rather than view-only state.
- Order transitions are permission-aware and shared across the operational surfaces.
- The kitchen and waiter applications remain focused clients instead of alternative implementations of backend logic.
- Business context and branch selection are modeled as application state backed by tenant-aware APIs.
What I learned
Architecture earns its value when the product changes.
Servora pushed me beyond component-level frontend work. The biggest lessons came from maintaining contracts across applications, diagnosing permission and session edge cases, keeping business logic authoritative, and resisting abstractions that did not reduce real product complexity.
- Make ownership obvious: one layer should be responsible for each critical decision.
- Treat loading, errors and degraded infrastructure as product states, not afterthoughts.
- Test boundaries and role behavior, not only isolated components.
- Keep shared packages small enough that application-specific decisions remain visible.
Stack & boundaries
Tools grouped by responsibility.
Product surfaces
- React 19
- Vite
- Next.js website
- TanStack Router
- TanStack Query
- Zustand
Backend
- Bun
- Elysia
- PostgreSQL
- Redis
- Drizzle
- WebSocket
Contracts
- TypeScript
- Zod
- Shared API client
- Shared realtime package
- Shared UI
Quality
- Vitest
- Playwright
- Accessibility checks
- ESLint
- Prettier
- Turbo
Quality & scale
Quality is part of the architecture.
Schema evolution is explicit and ordered rather than hidden behind runtime magic.
Owner, franchise admin, manager, chef, waiter, cashier, inventory, reception and accounting roles.
Config, realtime, validation, UI, API client and types form the reusable foundation.
Type checking, linting, builds, unit tests and browser checks are first-class project scripts.
Explore the project
Explore the Servora ecosystem
Open the real product surfaces and source links that make up this case study.
What this project demonstrates
Engineering decisions should stay visible as the product grows.
Servora is a multi-tenant restaurant operating system designed around separate role-focused applications, shared TypeScript contracts, server-authoritative business rules and real-time order workflows.