Zestify – Multi-Tenant Restaurant SaaS with AI Chat
Skip 6 months of improvement. Ship a production-ready Restaurant SaaS
in the present day.
Zestify is an entire, production-ready multi-tenant restaurant administration
SaaS — model 2.0.0 ships a four-application stack (API,
admin, onboarding, shopper storefront) written in TypeScript with full HTML
documentation. Constructed-in twin AI assistants: Zesty (buyer
chat) searches menus, books tables, and provides gadgets to cart;
Supervisor (admin chat) solutions ops questions with actual
tool-calling (launched in v1.1, included in v2.0.0).
Stay demos:
-
Platform operator:
https://zestify-v2-admin.vercel.app/platform/login -
Tenant dashboard (demo retailer):
https://zestify-v2-admin.vercel.app/login?store=zestify -
Consumer storefront:
https://zestify-v2-client.vercel.app/zestify -
Onboarding app:
https://zestify-onboarding.vercel.app/ -
API (Render):
https://zestify-v2-api.onrender.com/ · well being:
https://zestify-v2-api.onrender.com/api/health -
Instance pages:
https://zestify-v2-client.vercel.app/zestify/shop ·
https://zestify-v2-client.vercel.app/zestify/menu
Path-based multi-tenancy: every restaurant lives at
/{store-slug}/... in your shopper area.
Demo Credentials
Attempt the dwell demo immediately with these credentials:
-
Demo Admin: use One Click on Login on the admin login web page
(read-only) -
Storefront buyer: [email protected] / Demo123! (register or
sign up earlier than checkout — visitor looking solely, no visitor checkout)
Observe: Demo admin accounts are read-only. All write operations are blocked
in demo mode. On-line orders require a logged-in buyer account.
What’s new in v2.0.0 vs v1.x
v1.x was multi-tenant within the database and admin — you would
create many eating places from one tremendous admin — but it surely was not an entire
public SaaS product out of the field: every dwell storefront behaved like a
single-restaurant web site, and operators nonetheless needed to wire tenant IDs, deploy
per model, or construct signup/billing themselves. v2.0.0 closes these gaps so one
platform proprietor can host many eating places on one shopper URL,
promote subscriptions, and deploy to manufacturing with a documented guidelines.
What v1.x lacked as a real SaaS (and the way v2.0.0 fixes it)
-
One storefront = one restaurant. v1 shopper routes have been
/store,/menu, and so forth., and required
NEXT_PUBLIC_TENANT_IDin env — a second restaurant meant one other
shopper deploy or guide env swap.
v2 repair: Shared shopper at/{store-slug}/...;
tenant comes from the URL andX-Tenant-Slug, not a baked-in ID. -
No self-serve signup or plan checkout. v1 had no onboarding
app; new tenants have been created solely inside admin.
v2 repair: onboarding/ app with plans, Stripe
subscription checkout, and platform tenant provisioning APIs. -
Weak platform operator story. v1 tremendous admin may handle
tenants however lacked a full platform console, subscription plans, audit, and
migration path for CodeCanyon upgrades.
v2 repair: Platform auth, plans, billing webhooks, dashboard,
and api/MIGRATION.md for grandfathering v1 patrons. -
Manufacturing storefront belief was fragile. v1 SSR typically referred to as
the API with tenant ID solely; cross-origin cookies, proxy misconfiguration, and
lackingCLIENT_APP_URLbroke slug/host validation on dwell hosts.
v2 repair: Identical-origin/apiproxy, specific
API_PROXY_TARGET,NEXT_PUBLIC_SITE_URL,
TRUST_PROXY_HOPS, and publictenant-by-slugdecision
tied to the storefront hostname. -
Storefront didn’t scale per customer. Dwelling and catalog pages
fired many uncached API requests; one IP hit a single strict price restrict for
admin writes and public reads alike.
v2 repair:storefront-homebootstrap, in-memory public
learn cache +Cache-Management, break up price limits
(RATE_LIMIT_MAXvsRATE_LIMIT_PUBLIC_MAX), non-obligatory
Subsequent.js fetch and Router cache env vars (see DEPLOY.md). -
Checkout and session edge instances on dwell. v1 may depart carts
repopulated after cost and relied on full web page reloads from cost return
URLs.
v2 repair: Cart clear + server sync after success, payment-return
URL cleanup, and shopper navigation as soon as Stripe/PayPal question params are eliminated. -
Branding and CMS. v1 format was fastened; customization was restricted.
v2 repair: Per-tenant brand, colours, favicon, and Web page Builder sections
from admin — one constant restaurant storefront format. -
Bookmarked v1 URLs. Outdated hyperlinks with no slug prefix not
work on the v2 shopper (slug-only SaaS).
v2 word: Level previous bookmarks at/{slug}/storeby way of
your CDN, reverse proxy, or advertising and marketing redirects — the shopper app doesn’t ship
a built-in/store→/{slug}/storemiddleware redirect.
Core restaurant options from v1.x — orders, reservations, Stripe/PayPal diner
checkout, weblog, gallery, coupons, OTP auth, and (from v1.1) Zesty + Supervisor AI
— are retained in v2.0.0. The improve is platform and storefront
SaaS readiness, not a rewrite of day-to-day restaurant instruments.
Aspect-by-side abstract
| Space | v1.x (earlier package deal) | v2.0.0 (this launch) |
|---|---|---|
| Purposes | 3 apps: API, admin, shopper | 4 apps: API, admin, onboarding (signup / plans), shopper |
| Storefront URLs | Flat paths (/store, /menu) tied to at least one restaurant by way of NEXT_PUBLIC_TENANT_ID |
Path-based SaaS: /{store-slug}/store, /{store-slug}/menu — limitless eating places on one shopper deploy |
| Tenant decision | x-tenant-id header from env |
X-Tenant-Slug from URL + trusted storefront host (CLIENT_APP_URL) |
| Platform / billing | Tenant admin + tremendous admin fundamentals | Platform console, plans, Stripe subscription onboarding, migration instruments (api/MIGRATION.md) |
| Manufacturing deploy | Per-app docs solely | DEPLOY.md guidelines (Vercel + Render, webhooks, smoke checks) |
| Storefront efficiency | Many SSR API calls per web page | storefront-home bootstrap, public learn cache, break up price limits, Subsequent.js fetch / Router cache choices |
| Storefront look | Single format | Identical format for all tenants; per-tenant branding and Web page Builder content material |
| AI chat | Added in v1.1 (Zesty + Supervisor) | Included unchanged; slug-aware tenant context in v2 |
| Legacy v1 URLs | Flat /store, /menu, … |
Slug-only paths solely; configure exterior redirects when you want previous URLs |
Current v1.x patrons: comply with api/MIGRATION.md to backfill
tenant slugs, platform operator setup, and grandfather plans earlier than switching
the shopper app to slug URLs.
What Is Included
The obtain accommodates 4 deployable functions (plus non-obligatory advertising and marketing
touchdown web page supply), absolutely wired documentation, and a Postman assortment.
-
Zestify API (api/) – Node.js and Specific.js REST API.
Twin AI engine (Zesty + Supervisor personas), authentication, multi-tenancy,
orders, reservations, funds, OTP e mail flows, and all enterprise logic.
Every thing else is dependent upon this operating first. -
Admin Dashboard (admin-dashboard/) – React and Vite
administration interface for restaurant homeowners and workers. Consists of Supervisor AI
assistant at /assistant, tenant administration, menu and product administration,
orders, reservations, weblog, gallery, coupons, buyer administration, and
settings. -
Consumer App (client-app/) – Subsequent.js multi-tenant storefront.
Every restaurant at/{store-slug}/.... Zesty AI chat, store,
checkout (Stripe / PayPal), reservations, weblog, buyer
dashboard. Identical-origin/apiproxy for manufacturing. -
Onboarding App (onboarding/) – Subsequent.js advertising and marketing and signup
movement: plans, Stripe subscription checkout, tenant provisioning hooks into
the platform API. Dev port 3001 (shopper makes use of 3000). -
Touchdown web page (landing-page/) – Elective advertising and marketing web site
supply (not required to run the SaaS).
A Postman assortment is included within the root of the obtain to check each API
endpoint instantly after setup.
Core Structure – True Multi-Tenancy
The central function of Zestify is its true multi-tenant structure. One
set up of the platform can serve limitless eating places concurrently.
Every tenant will get remoted knowledge, admin entry, and a public storefront path
(/{slug}) on a shared shopper app, managed from one codebase and
platform operator console.
-
Slug storefronts – One shopper deployment serves each
restaurant athttps://your-domain.com/{slug}/...with remoted
knowledge and branding per slug. -
Knowledge Isolation – Every restaurant tenant’s knowledge is absolutely
separated. No cross-contamination between tenants at any stage. -
Function-Based mostly Entry Management – Tremendous admin, tenant admin, and
buyer roles every with acceptable permission units. -
Limitless Tenants – Add as many eating places as wanted
with out efficiency loss or code adjustments. -
Centralised Management – Handle all eating places from one tremendous
admin account with full visibility throughout tenants. -
Manufacturing-Prepared Structure – Structure selections made
for real-world scale from day one.
How the Purposes Join
The API is the only supply of reality. Admin, onboarding, and shopper apps discuss
to the API over REST/JSON solely — by no means to one another instantly. Default native
ports: API 5000, Admin 5173, Consumer
3000, Onboarding 3001.
Begin the API first, then admin and/or onboarding, then the shopper app. Open
the storefront beneath /{store-slug}/... (e.g.
http://localhost:3000/your-slug/menu) — tenant context comes from
the URL, not env. See client-app/.env.instance and
DEPLOY.md.
Admin Dashboard Options
-
Dashboard overview with income, order counts, buyer totals, and gross sales
development charts constructed with Recharts -
Platform overview for tremendous admins — mixture stats throughout all tenants with
tenant switcher -
Tenant administration – create and handle a number of restaurant tenants from a
single tremendous admin account -
Orders administration – view, filter by standing and cost standing, replace order
and cost standing -
Reservations administration – view bookings, filter by date, supply monitoring,
affirm or cancel -
Menu and product administration – classes, inventory, vitamin, allergens,
photos, costs, tags, and featured toggle -
Cloudinary picture uploads – reusable add enter throughout merchandise, gallery,
blogs, cooks, companions, providers, and web page builders; add a file or paste
a picture URL -
Buyer administration – accounts, order historical past, addresses, loyalty factors,
and PDF export -
Coupons and reductions – share or fixed-amount codes with utilization limits
and expiry dates -
Weblog administration – posts with wealthy content material, slugs, classes, photos, and
remark moderation - Gallery administration – add, categorise, and preview restaurant photographs
- Chef profiles – staff pages with photographs, bios, roles, and social hyperlinks
- Web page Builder – Touchdown, Menu, and Format builders with out touching code
- Companions and providers administration
- Testimonials and opinions
-
Notification centre for orders, reservations, messages, low inventory, and
system occasions - Publication subscriber listing
- Contact message inbox with reply, learn, and significance flags
-
Restaurant settings together with enterprise hours, tax, supply payment, loyalty
program, branding, and social hyperlinks - Admin profile and password administration
-
One-time super-admin setup UI and OTP-based login with non-obligatory bypass for
improvement - HttpOnly cookie periods with CSRF safety
-
Supervisor AI Assistant – Full chat UI at /assistant with
session historical past. Learn-only ops instruments: order stats, income, stock
alerts, pending reservations, prime sellers -
AI Settings – Select supplier (Gemini / Groq / Claude) in
Settings; API keys configured server-side in api/.env
Consumer App Pages and Options
-
CMS-driven homepage with configurable part order from the Admin Web page
Builder — storefront dwelling masses by way of a single public bootstrap API name
(GET /api/public/storefront-home) with server-side caching - Menu web page with class looking from CMS / API
-
Store with product grid, filters, search, type, vitamin, opinions, and
associated merchandise -
Cart and wishlist — company can browse and hold an area cart; logged-in
clients sync cart and wishlist to the server. Checkout requires a
registered buyer account (sign up or register earlier than inserting an
order). -
Checkout with Stripe, PayPal, money on supply, coupon codes, and loyalty
level redemption (logged-in clients solely); order success web page clears cart
and helps client-side navigation again to the store after cost
affirmation - Desk reservation kind with available-slot checking
-
Zesty AI Chat – Floating chat bubble (bottom-right) on all
pages plus devoted /chat web page with session historical past -
Interactive menu playing cards in chat — Add to Cart and Add to Wishlist buttons
wired to the identical cart state because the store -
AI-powered reservation reserving by way of chat (checkAvailability →
bookReservation in a single dialog) - Buyer auth with HttpOnly cookies, CSRF, and non-obligatory OTP
- Forgot password movement with two-step OTP verification
- Buyer dashboard with overview, orders, favorites, addresses, and settings
- Weblog itemizing and element pages with threaded feedback, replies, and likes
- Gallery web page with picture lightbox
- Chef staff web page and particular person chef profile pages
- Companies and companions pages
- Contact web page with kind submission
- Totally responsive throughout desktop, pill, and cellular
- Search engine optimization-friendly with Subsequent.js App Router, metadata, and Open Graph tags
-
Per-tenant branding — brand, colours, favicon, and Web page Builder
sections from admin (single storefront format)
Expertise Stack
API and Backend: Node.js, Specific.js 5, MongoDB, Mongoose,
TypeScript, JWT with HttpOnly cookie periods and CSRF, Stripe, PayPal, Resend
for transactional e mail and OTP, Cloudinary signed uploads, Winston for
logging, Jest and Supertest for testing, Docker assist with included
Dockerfile and docker-compose, AssistantEngine with Gemini / Groq / Anthropic
suppliers and iterative tool-calling
Admin Dashboard: React 19, TypeScript, Vite 7, Tailwind CSS
4, Recharts for analytics charts, React Router DOM 7, jsPDF and AutoTable for
PDF exports, React Toastify for notifications, Lucide React for icons
Onboarding App: Subsequent.js 15, plan choice, Stripe subscription
checkout, buyer account creation, same-origin API proxy sample because the shopper.
Consumer App: Subsequent.js 15 with App Router, React 19, TypeScript,
Tailwind CSS 4, Swiper for carousels, React Toastify, SSR and Search engine optimization optimised
Safety: Helmet, CORS with credentials assist, CSRF
safety, HttpOnly cookie periods for admin and buyer apps, HPP
safety, break up express-rate-limit buckets in manufacturing (beneficiant cap for
cached storefront catalog GETs; stricter cap for auth, admin writes, checkout,
and buyer profile APIs), bcrypt password hashing, enter validation with
Validator, signed Cloudinary uploads (API secret server-side solely),
setting variable administration with dotenv
API Endpoints Included
The API covers authentication (together with one-time super-admin setup and demo
account administration), buyer authentication, signed picture uploads by way of
Cloudinary, merchandise and menu (together with opinions and vitamin), weblog posts
and feedback, chef profiles, orders, reservations, coupons, loyalty factors,
Stripe funds, PayPal funds, gallery, testimonials, companions, settings,
providers, CMS pages (dwelling and menu), dashboard analytics, platform analytics,
notifications, tenant administration, messages, e-newsletter subscriptions,
public storefront bootstrap (/api/public/storefront-home,
/api/public/tenant-by-slug), AI chat
(/api/chat/zesty/* for purchasers, /api/admin/chat/supervisor/* for admins), and
a well being test endpoint. Full endpoint listing is documented within the included API
documentation and Postman assortment.
Testing
The API ships with a Jest-based take a look at suite protecting well being checks,
authentication flows, tenant isolation, and an end-to-end product workflow.
Exams run in opposition to an in-memory MongoDB occasion utilizing mongodb-memory-server so
no dwell database is required to run them. Watch mode and protection reporting
are supported by way of npm scripts.
Deployment Choices
API: Docker and Docker Compose information are included. Helps
deployment on Render free tier, Railway, DigitalOcean, AWS EC2, Hetzner,
Linode, or any Linux VPS. Features a built-in self-ping keep-alive for Render
free tier. Nginx configuration instance is included within the documentation.
Admin Dashboard: Static SPA constructed with Vite. Deploys to
Vercel, Netlify, Cloudflare Pages, or any static host. SPA routing
configuration is pre-configured for Netlify by way of a _redirects file.
Onboarding App: Subsequent.js on Vercel (or related). Set
API_PROXY_URL to the API host with no /api suffix.
Consumer App: Subsequent.js utility requiring a Node.js runtime.
Beneficial deployment goal is Vercel for zero-configuration Subsequent.js
internet hosting. Netlify can also be supported. Use same-origin /api proxy
(API_PROXY_TARGET = API host solely, no /api suffix)
plus NEXT_PUBLIC_SITE_URL for manufacturing SSR.
Manufacturing efficiency and price limits
The included DEPLOY.md is the canonical manufacturing guidelines
(API on Render/Railway, admin and shopper on Vercel, Stripe webhooks, smoke
checks). Key API setting variables for multi-tenant storefronts:
-
RATE_LIMIT_MAX(default 100 per 10 minutes per
IP) — admin CRUD, login, checkout,/clients/me, e-newsletter
subscribe, and different non-catalog site visitors. Elevate quickly (e.g. 300–500)
whereas testing admin and storefront on dwell from the identical browser. -
RATE_LIMIT_PUBLIC_MAX(default 2000) —
cached storefront reads: merchandise, pages, settings,
storefront-home,tenant-by-slug, and so forth. -
PUBLIC_READ_CACHE_*— in-memory API cache and
Cache-Managementfor public catalog responses (per API occasion). -
CLIENT_APP_URL— actual storefront HTTPS origin
(no path); required so SSR and tenant-by-slug belief the storefront host. -
TRUST_PROXY_HOPS=1— behind Render/Railway/Vercel
proxy.
Elective shopper env: STOREFRONT_TENANT_REVALIDATE_SEC,
STOREFRONT_HOME_REVALIDATE_SEC,
STOREFRONT_ROUTER_DYNAMIC_STALE_SEC (Subsequent.js fetch and Router
Cache for repeat visits inside the similar retailer).
In the event you see “Too many requests from this IP” on the storefront
whereas modifying content material within the admin, the strict limiter was exhausted — wait
for the window to reset or improve RATE_LIMIT_MAX on the API.
Catalog looking alone makes use of the separate public restrict.
Necessities
- Node.js v18 or greater
- npm v9 or greater
- Git (any latest model)
-
MongoDB Atlas account – free M0 tier is enough for improvement and
testing; a dwell restaurant with actual order and buyer quantity will want a
paid M10+ cluster as soon as free-tier storage and connection limits are
exceeded (see included documentation for particulars) -
Resend account for OTP e mail – free tier permits as much as 100 emails per day;
higher-volume eating places will want a paid Resend plan as soon as that restrict is
exceeded. Required solely when OTP authentication is enabled -
Stripe developer account – required solely when enabling card cost
processing. Stripe expenses a per-transaction processing payment on profitable
funds, billed on to the account proprietor -
PayPal developer account – required solely when enabling PayPal checkout.
PayPal expenses an analogous per-transaction processing payment, billed instantly
to the account proprietor -
Cloudinary account – non-obligatory, wanted for in-dashboard picture file uploads
(pasting a picture URL nonetheless works with out it) -
Docker Desktop – non-obligatory, solely wanted for containerised native improvement
or Docker-based deployment -
AI supplier API key – a minimum of certainly one of Google Gemini, Groq, or Anthropic
Claude (Groq presents a beneficiant free tier for improvement). Keys are set in
api/.env solely — by no means uncovered to the frontend
Documentation
All functions ship with detailed HTML documentation. Every doc covers
set up, setting variables, options, deployment, and troubleshooting.
-
README.html – Begin right here. Overview, setup order, structure,
hyperlinks to app docs. -
DEPLOY.md – Manufacturing guidelines (v2): API, Vercel frontends,
price limits, Stripe webhooks, smoke checks. -
api/MIGRATION.md – Improve path from v1.x single-tenant /
tenant-ID storefront to slug-based SaaS. -
api-doc/index.html – API endpoints, env vars, Docker,
multi-tenancy, platform billing, FAQ. -
admin-dashboard-doc/index.html – Admin options, setup,
deployment, troubleshooting. -
client-app-doc/index.html – Storefront pages, slug routing,
auth, cart, funds, deployment, FAQ. -
onboarding-doc/index.html – Signup app, plans, Stripe
subscription movement, deployment. -
Zestify.postman_collection.json – Postman assortment for
testing API endpoints.
Finest For
-
Builders needing a scalable, well-structured multi-tenant
SaaS starter with Node.js, React, and Subsequent.js -
SaaS founders constructing a restaurant platform product to
promote as a service -
Companies growing restaurant administration techniques for
shoppers -
Multi-branch meals companies that want centralised administration with
per-branch knowledge isolation -
Restaurant and cafe homeowners needing an entire administration and ordering
platform
Third-Social gathering Libraries and Companies
- Node.js and npm – JavaScript runtime and package deal supervisor
- Specific.js – Internet framework for the REST API
- MongoDB Atlas – Managed cloud database
- Mongoose – MongoDB object modelling for Node.js
- React and React DOM – Admin dashboard UI library
- Subsequent.js – Consumer app framework with App Router and SSR
- Vite – Admin dashboard construct software
- Tailwind CSS – Utility-first styling system used throughout each frontends
- Recharts – Charts and analytics visualisations within the admin dashboard
- Stripe – Card cost processing
- PayPal – Various cost gateway
- Resend – Transactional e mail and OTP supply
- Cloudinary – Signed server-side picture uploads
- Google Gemini – Major AI supplier for Zesty and Supervisor chat
- Groq – Various AI supplier with beneficiant free tier
- Anthropic Claude – Various AI supplier
- jsPDF and AutoTable – PDF export within the admin dashboard
- Swiper – Carousel and slider element within the shopper app
- Winston – Server-side logging
- Helmet, HPP, express-rate-limit – Safety middleware
- bcryptjs – Password hashing
- jsonwebtoken – JWT authentication tokens
- Jest and Supertest – API testing suite
- mongodb-memory-server – In-memory MongoDB for remoted take a look at runs
- Lucide React – Icon library used within the admin dashboard
- React Toastify – Toast notification system
Changelog
-
v2.0.0 – Main SaaS launch (this package deal). Fourth app:
onboarding with plans and Stripe subscription signup. Consumer storefront
makes use of/{store-slug}/...as an alternative of v1NEXT_PUBLIC_TENANT_ID
+ flat URLs. Platform console, migration information, DEPLOY.md, public
tenant-by-slugandstorefront-homebootstrap, break up
price limits and public learn cache, manufacturing SSR proxy and cookie/CSRF
fixes, checkout cart clear and post-payment navigation enhancements. See
comparability desk above. -
v1.1.0 – Twin AI assistants (Zesty + Supervisor), multi-provider
AI (Gemini, Groq, Claude), tool-calling loop, safety and touchdown updates.
Nonetheless 3 apps; shopper used tenant ID env (v1 structure). -
v1.0.0 – Preliminary CodeCanyon launch: API, admin, and shopper
with multi-tenant admin, orders, reservations, Stripe/PayPal, OTP, weblog,
gallery, coupons, and HTML docs. No AI chat.
Help
For questions, assist requests, or licensing enquiries, please use the
CodeCanyon feedback part or contact the creator instantly by way of the assist
e mail listed on the CodeCanyon profile web page.

