
youRest
White-label ordering for independent restaurants.
youRest is in development. The case study describes the product as it is being built.
youRest is a multi-tenant food delivery platform: each restaurant gets a branded storefront on its own domain, with ordering, payments and scheduled delivery managed from one product.
About the platform
youRest is a white-label food delivery platform for independent restaurants—so they can take online orders without depending on big aggregators. Each company gets its own branded storefront on its own domain; all companies are managed from a single platform. Built as multi-tenant SaaS on Next.js 16, React 19, TypeScript and MongoDB, with Stripe Connect, Google Maps, translation APIs, a PWA with push notifications, and coverage in Vitest and Playwright.
The problem
Independent restaurants that want their own branded ordering usually face a poor choice: join a large aggregator and lose the customer relationship, or stitch together menus, payments, slots and dispatch by hand.
The solution
One multi-tenant platform gives each restaurant a storefront on its own domain—multilingual menu, online payments and scheduled delivery—while the platform owner onboards companies, sets commercial terms and tracks settlements from a single admin.
- Multi-tenant SaaS
- Own-domain storefronts
- Stripe Connect
- Delivery slots
- Route planning
- Multilingual menus
Engineering
Hard problems the product has to get right.
The work is less a demo checkout than the unglamorous constraints of a live operations platform: tenants must not see each other’s data, payments must stay correct when a request is retried, slots must survive time zones, and two people must not claim the same order or route.
Isolate
Tenants
Strict data isolation between companies, including hostname-based tenancy and custom domains.
Safe
Payments on retry
Idempotent Stripe Connect webhooks and hold expiry so a double-submit does not double-charge.
Exact
Delivery time
Slots and the calendar stay correct across time zones and daylight-saving changes.
One
Writer at a time
Concurrency-safe assignment so two operators cannot edit the same order or route into conflict.
How it works
The intended product flow
01
A storefront on the restaurant’s own domain
Hostname-based tenant isolation and custom domain mapping give each company a branded ordering site, not a generic marketplace URL.
02
Guests order, pay and pick a delivery slot
Customers browse a multilingual menu, pay through Stripe Connect and book a scheduled delivery window with capacity control.
03
The restaurant runs the day
A single admin covers orders, a day/week/month delivery calendar, rescheduling and route planning with Google Maps.
04
The platform owner sets the commercial terms
Onboard companies, choose subscription or per-order billing, decide who pays the fee, and track merchant settlements.
Key capabilities
Multi-tenant isolation
Hostname-based tenant isolation, custom domain mapping and per-company branding so one codebase serves many restaurants safely.
Stripe Connect payments
Direct charges with platform application fees, idempotent webhooks and automatic expiry of payment holds.
Configurable commercial model
Subscription or per-order billing, merchant or customer as fee payer, and merchant settlement tracking.
Scheduled delivery slots
Capacity-controlled slots, an admin calendar (day/week/month), rescheduling, and time-zone/DST-safe handling.
Route planning
Delivery route planning with Google Maps and concurrency-safe order assignment when two people act at once.
Multilingual menu editor
Dish variants and extras, with automatic translation through Google Cloud Translation.
Company onboarding
Self-registration with email verification, superadmin review and versioned legal document acceptance.
PWA, notifications and documents
Push notifications, email via an outbox pattern, and PDF document generation.