A self-hosted, zero-dependency restaurant booking system. Guests browse restaurants, hold tables in real time, and book without creating an account. Admins manage reservations, tables, floor sections, branding, and booking pauses from a web dashboard. Everything runs from a single Docker Compose command with no external services required beyond optional SMTP.
Documentation · Live Demo - admin: example@example.com / password · resets every 2 hours, feel free to play around and change anything
The restaurant business has changed. Indie restaurants run on razor-thin margins, and the cost of SaaS booking platforms only adds to the burden. Users don't want to install another app, give up their phone number to the cloud, or create another account to remember. OpenResto was designed to be as simple as possible for both customers and restaurant owners, while still being fully self-hosted, secure, and customisable. Owners can manage bookings easily without friction. Customers book instantly without giving up any personal information, and can easily save their reservations to their calendar. Nothing in between.
These recordings show the real app, captured with Playwright against the live demo and its seed dataset. The framed recordings include step captions; plain recordings are collapsed underneath.
Browse locations, pick a party size, date, and time, and hold the table while entering guest details. The confirmation page includes calendar export, reminders, and directions.
Sign in to the dashboard, open the day's timetable and booking details, switch to the service view, review a location's policies, hours, and tables, and edit branding with a live preview.
The same site works on mobile browsers with nothing to install.
| Layer | Technology |
|---|---|
| Backend | ASP.NET Core 10, C#, Entity Framework Core, SQLite |
| Frontend | React Native (Expo Router) for web and mobile from one codebase |
| Auth | JWT Bearer Tokens (HS256), encrypted HttpOnly cookies |
| Image gen | Magick.NET-Q8-AnyCPU (cross-platform, no native deps) |
| MailKit (SMTP) | |
| Infra | Docker Compose, Nginx reverse proxy |
| Security CI | OWASP ZAP API scan on every push (OpenAPI-driven, rules in .github/.zap-rules.tsv) |
| Code mappers | Mapperly (source-gen, zero reflection) |
Download docker-compose.yml from the latest release, create a .env file based on .env.example, and start the stack:
docker compose up -dPre-built linux/amd64 and linux/arm64 images are pulled from GHCR with no build step, so they run directly on a VPS, Raspberry Pi, or NAS. The backend applies pending database migrations automatically before accepting traffic.
- Full self-hosting guide (install, configuration, HTTPS, email, upgrading, troubleshooting): docs.openres.to
- Backup and restore: backup and restore guide
- Admin API keys and HTTP usage: API guide
- Publishing a branded iOS/Android guest app: native app guide
For local development:
docker compose up- App: http://localhost:5062
- API: http://localhost:8080
- Frontend dev: http://localhost:8081
Prerequisites: .NET 10 SDK, Node.js 20+
# run from the repo root
npm run devThe SQLite database is created automatically on first run. Because this runs outside Docker, uploaded images and media are not served through the proxy, though HMR is enabled.
Set via environment variables or appsettings.json:
| Variable | Description | Default |
|---|---|---|
JWT_KEY |
JWT signing key (min 32 chars) | Dev key in appsettings |
CONNECTION_STRING |
SQLite connection string | Data Source=./openresto.db |
CORS_ORIGINS |
Comma-separated allowed origins | localhost ports |
Admin:Email |
Default admin email | Set in appsettings |
Admin:Password |
Default admin password | Set in appsettings |
Optional integrations use the same mechanism and remain disabled until configured. Apple and Google Wallet passes (Wallet__Apple__*, Wallet__Google__*) and guest booking reminders (Vapid__* on the web, an EAS project on native) hide their UI buttons while unset. When running from a clone, put local settings in OpenRestoApi/appsettings.Local.json (loaded automatically when present and ignored by .gitignore). See the native app guide for Wallet issuer setup.
The API Keys settings screen links to the CLI package, the HTTP API guide, and the source repository. These three URLs default to this project and can be overridden per deployment with OPENRESTO_CLI_PACKAGE_URL, OPENRESTO_API_DOCS_URL, and OPENRESTO_REPOSITORY_URL (or the configuration keys Links:CliPackage, Links:ApiDocs, and Links:Repository), which is useful for forks with their own client or docs.
| Variable | Description | Default |
|---|---|---|
EXPO_PUBLIC_API_URL |
Backend API base URL | http://localhost:5062 |
VAPID key variables are also required for web push notifications, but are optional during local development.
# Backend tests
dotnet test
# Frontend tests (100% coverage target)
cd openresto-frontend && npm test
# Full frontend coverage report
cd openresto-frontend && npm test -- --coverageNote: VSCode may not detect the Jest config until you enable the test runners from the command palette.
- Real-time table holds: Selecting a time slot places a 5-minute hold on the specific table in a thread-safe in-memory
ConcurrentDictionary. The client echoesholdIdwhen submitting the booking, preventing another guest from booking the same table during checkout. Holds expire automatically and release atomically if the guest changes their selection. - Popular-times categorisation: Every 30-minute slot is tagged
Lunch,Dinner, orOff-Peakbased on restaurant industry benchmarks (Toast, Square, Yelp). The frontend groups available slots into labelled tabs so guests can jump to a service period. - IANA timezone awareness: All
DateTimevalues are stored in UTC. Restaurant open/close hours and slot generation are computed in the restaurant's IANA timezone (America/New_York,Europe/London, etc.), so availability matches local time regardless of the server timezone.
- Multi-restaurant support: Manage multiple locations from one instance, each with its own tables, sections, hours, timezone, and branding.
- Floor sections: Group tables into named sections (such as "Patio", "Bar", or "Main") so admins can organize seating and guests can see which section they are booking.
- Admin dashboard: View live bookings with status filtering (active, past, cancelled), extend or cancel reservations, and track customer names for front-of-house staff.
- Booking pauses: Pause new reservations until a specific date and time (for example, during a private event) without taking the restaurant offline or editing config files. The availability API checks
BookingsPausedUntilbefore returning slots. - Activity trail: Every state-changing admin action, sign-in, and failed sign-in attempt is recorded in an append-only log with actor, timestamp, IP address, and before/after diff. Any mutating request behind an admin policy is audited automatically, including newly added endpoints. Only Owners can read the log, and there is no delete endpoint; entries are removed only by a configurable retention job (365 days by default). Credentials and guest identities are masked so changes are recorded without storing sensitive values.
- API keys & headless CLI: Owners can create long-lived, individually revocable API keys under Settings → API Keys, scoped to specific resources (
bookings,locations,tables,brand,users,audit,guests). A key without theguestsscope reads bookings with customer identity redacted, keeping guest contact info out of POS or marketing integrations.openresto-clicalls the same admin API from scripts and cron jobs with named profiles,--jsonoutput on every command, and confirmation prompts on destructive actions. Every API key request is recorded in the activity trail under the key's name.
- Full white-label branding: App name, primary color, favicon icon, and PWA identity are stored in the database and configured in the admin settings panel. Choose from 15 Lucide icons (
utensils,wine,coffee,pizza,flame,leaf,star,heart,chef-hat,fish,hamburger,sandwich,soup,cake,ice-cream-cone); the browser tab favicon updates live without a page reload. The frontend fetches brand settings on startup and applies them throughBrandContext. - Dynamic PWA icons:
GET /api/brand/pwa-icon.svggenerates an SVG with the brand background color and white icon dynamically.GET /api/brand/pwa-icon-{192|512}.pngrasterizes it with Magick.NET (cross-platform, no system ImageMagick package required) for PWA manifest compliance. - Skeleton loaders & splash screens: Branded loading states across the app avoid blank white flashes.
- OWASP ZAP API scan in CI: Every push runs a ZAP API scan against the full Docker stack, discovering endpoints from the OpenAPI spec (
/openapi/v1.json). Ignored rules are tracked in.github/.zap-rules.tsv. - Rate limiting: Uses ASP.NET Core built-in rate limiting on sensitive endpoints.
- Encrypted recent-bookings cookie: Stores recent reservation references in an HttpOnly cookie protected by ASP.NET Core Data Protection so guests can look up recent bookings without an account.
- Hard-delete: Admins can permanently erase booking records for GDPR compliance. A GDPR notice is shown on the booking form.
- No accounts needed: Guests look up reservations with a short
BookingRefcode and their email, with no email verification loop. - Publish your own guest app: Build the same guest screens as a native iOS and Android app under your own store accounts, pointed at your own instance. Run
npm run native:initto pull your branding and build witheas build(native app guide).
- Single-command dev:
npm run devstarts the .NET backend (with hot reload) and Expo frontend concurrently. - 100% frontend coverage target: Uses Jest and React Native Testing Library, plus Playwright E2E tests against the Docker stack.
- Mapperly source-gen mappers: Generates DTO mappings at compile time with zero runtime reflection.
- Self-hosted: Runs on any VPS, Raspberry Pi, or NAS with Docker and SQLite, with no managed database or CDN required.
- Auto-migrations on startup: The backend runs
Database.Migrate()before accepting traffic; upgrading isdocker compose pull && docker compose up -d. - Migration safety CI: Every PR that adds an EF Core migration generates SQL for both a fresh install and an upgrade from the previous state, applies both to SQLite, and verifies the resulting schemas match.
- Multi-arch releases: Publishes
linux/amd64andlinux/arm64images to GHCR on every semver tag for native x86 and ARM support.
-
Update
CHANGELOG.md: Add a## [x.y.z] - YYYY-MM-DDsection at the top of the file. -
Merge to main: Confirm all CI checks are green before tagging.
-
Tag and push:
git tag v1.0.0 git push origin v1.0.0
-
Automated release: The
release.ymlworkflow runs automatically and:- Builds
linux/amd64andlinux/arm64Docker images for the backend, frontend, and nginx proxy - Pushes them to GHCR as
ghcr.io/karanshukla/openresto-{backend,frontend,nginx}:v1.0.0(and:latest) - Creates a GitHub Release using the
[x.y.z]section fromCHANGELOG.mdas release notes - Attaches a pinned
docker-compose.yml(with the exact image tag baked in) as a downloadable release asset for self-hosters
- Builds
MIT, do what you want with it






