Back to Projects
SaaS / Web App
Completed
Featured

Hostiva

A production-grade, multi-tenant SaaS platform purpose-built for the hospitality industry — from restaurants and cafes to hotels, resorts, bars, bakeries, and cloud kitchens.

Hostiva
Production Ready
30+
Database Models
8
Business Types
4
User Roles
Overview

About This Project

Hostiva is a production-grade, multi-tenant SaaS platform purpose-built for the hospitality industry.

It provides a complete digital operations toolkit for restaurants, cafes, hotels, resorts, bars, bakeries, cloud kitchens, and more.

The platform serves three distinct audiences: Public Visitors experience a polished marketing website with hero sections, dynamic pricing plans with monthly/yearly billing toggle, learning video library, testimonials, FAQs, blogs, gallery, and contact forms.

Business Owners & Staff access a comprehensive business dashboard where registered hospitality businesses manage products, categories, orders, tables, rooms, bookings, staff, expenses, inventory, suppliers, and more — with strict data isolation between tenants via businessId and branchId scoping.

Super Admins have a centralized platform owner dashboard for managing all registered businesses, users, subscription plans, pricing, trials, payments, learning videos, support requests, and platform-wide settings.

The platform is fully deployed on Vercel, uses PostgreSQL (Neon) for relational data with 30+ Prisma models, AWS S3 with Sharp image compression for uploads, Cloudinary for media management, Firebase for push notifications, and LiveKit for in-app audio calling between staff members.

It supports a multi-branch architecture with granular module-level permissions for admin staff roles..

Roles

User Roles

RoleDescription
SUPER_ADMINPlatform-level access to /super-admin — manage all businesses, users, plans, and settings
OWNERFull access to their business dashboard at /admin with complete operational control
ADMINGranular module-based permissions configured by the business owner for delegated management
STAFFLimited access based on assigned permissions (waiter, kitchen, etc.) with role-appropriate views
Features

Feature Details

Public Website

FeatureDetails
Hero SectionLarge dashboard preview image with prominent CTAs: 'Start Free Trial' and 'Login Dashboard'
Pricing PlansDynamic subscription plans (Trial / Plus / Pro / Enterprise) fetched from the database with monthly & yearly billing toggle, savings badges, and feature lists
Learning CenterCurated video library with categories and levels, fetched from the database, conditionally shown when content exists
TestimonialsCustomer testimonials displayed dynamically with host-specific and general reviews
FAQ SectionFrequently asked questions with categorized accordion-style display
GalleryInteractive photo gallery showcasing business spaces
Support SectionDedicated support area for inquiries and assistance
Contact PageContact form for sales, support, and demo requests
BlogsBlog page with individual article pages
About PageCompany mission and background
Terms & PrivacyLegal pages

Business Dashboard

FeatureDetails
AuthenticationRole-based access (Owner / Admin / Staff) via NextAuth.js with credential providers
Dashboard OverviewSales summaries, order activity, and key performance metrics
Product & Menu ManagementFull CRUD with categories, pricing, images, and availability toggling
Category ManagementOrganize products into browsable categories with slug-based routing
Order ManagementReal-time order tracking with status pipeline: Pending → Processing → Ready → Delivered → Paid
Table ManagementManage dine-in table assignments across branches
Room ManagementHotel room inventory with categories, capacity, pricing, amenities, and status tracking
Room BookingsFull booking lifecycle with check-in/check-out tracking
Staff ManagementCreate and manage user accounts with role assignments and branch associations
Branch ManagementMulti-branch support with individual status, address, and contact details
Inventory ManagementTrack stock levels, SKUs, categories, suppliers, and stock movements (Add/Issue) with department tracking
Supplier ManagementManage vendor contacts, status, and linked inventory items
Expense TrackingLog and categorize expenses with status (paid/pending/scheduled) and branch filtering
Gallery & MediaUpload and manage brand imagery with Cloudinary integration
TestimonialsManage customer reviews with sorting and activation
Messaging / ChatInbox with read/unread tracking, starring, threaded conversations, and in-app audio calling via LiveKit
Push NotificationsFirebase Cloud Messaging for real-time order and chat alerts (web + Android)
Data Analysis & ReportsSales analytics with Recharts visualizations, financial summaries, and expense reports
FAQsManage business-specific FAQs with categories and ordering
QR Code GenerationGenerate scannable QR codes for digital menus and order pages
Social Media LinksConfigurable social links displayed on the public site
SettingsProfile, business information, billing, and subscription management
Permissions SystemGranular module-level permissions for admin staff roles

Super Admin Dashboard

FeatureDetails
Platform OverviewTotal businesses, active trials, paid customers, revenue, and recent registrations
Customer ManagementView, approve, suspend, activate, or delete registered businesses with full details
Subscription ManagementTrack trial, active, cancelled, expired, and past-due accounts with plan filtering
Pricing Plan ManagementCreate and update subscription plans with dynamic feature lists and billing rates
Staff ManagementManage platform-level admin users
Learning Video ManagementUpload and organize training videos with categories and difficulty levels
Platform MessagesView all inquiries from the public contact form
Profile SettingsSuper admin profile management

Mobile & Communication

FeatureDetails
Capacitor IntegrationAndroid push notification support via Capacitor
In-App Audio CallingLiveKit-powered audio calls between staff members with ringing/accept/decline flow
Responsive DesignFully adaptive layout from mobile to desktop
Progressive Web AppManifest and service worker ready for installable experience
Stack

Technology Stack

CategoryTechnology
FrameworkNext.js 15 (App Router, Turbopack)
RuntimeNode.js
LanguageTypeScript
UI LibraryReact 19
StylingTailwind CSS + shadcn/ui
DatabasePostgreSQL via Neon
ORMPrisma (30+ models)
AuthenticationNextAuth.js v4 with Prisma adapter
File StorageAWS S3 with Sharp image compression
Image HostingCloudinary
ChartsRecharts
Forms & ValidationReact Hook Form + Zod
AnimationsFramer Motion
IconsLucide React + React Icons
Audio CallingLiveKit (server + client SDK)
Push NotificationsFirebase Cloud Messaging + Firebase Admin
CapacitorCapacitor Android push integration
PDF GenerationjsPDF
QR Codeqrcode
Image ProcessingSharp
DeploymentVercel
Performance

Performance & Architecture

Next.js App Router enables server components, streaming, and partial rendering for optimal load times
Prisma ORM with extensively indexed database fields (composite indexes on [businessId, branchId] patterns) ensures efficient multi-tenant queries
AWS S3 with Sharp-based image compression for optimized uploads
Cloudinary serves responsive images with automatic format selection
Lazy-loaded maps, gallery images, and heavy components
Edge-ready middleware for authentication guards and route protection
Vercel deployment with global CDN distribution
Turbocharged dev experience with Next.js Turbopack
Setup

Getting Started

Prerequisites

  • Node.js (v20+)
  • npm or pnpm
  • A Neon (PostgreSQL) database instance
  • An AWS S3 bucket for file uploads
  • A Cloudinary account (optional, for image management)
  • A Firebase project for push notifications (optional)
  • A LiveKit project for audio calling (optional)

Setup Steps

  1. 1Install dependencies: npm install
  2. 2Generate Prisma client: npm run prisma:generate
  3. 3Push the schema to your database: npm run prisma:push
  4. 4(Optional) Run database initialization: npm run db:init
  5. 5(Optional) Seed initial owner user: npm run auth:seed-owner
  6. 6Start the development server: npm run dev

Challenges

  • 1Implementing true multi-tenant data isolation with every record scoped by businessId and branchId, ensuring strict data separation between different hospitality businesses
  • 2Building a granular module-level permissions system with 4 user roles (SUPER_ADMIN / OWNER / ADMIN / STAFF) configurable per admin staff member
  • 3Integrating LiveKit for in-app audio calling between staff members with ringing/accept/decline flow while maintaining tenant isolation
  • 4Managing dynamic subscription plans with trial-to-paid flow, monthly/yearly billing toggle, and subscription status transitions (TRIALING → ACTIVE → PAST_DUE / CANCELLED / EXPIRED)
  • 5Handling AWS S3 file uploads with Sharp image compression across multiple asset types while supporting both S3 and Cloudinary media pipelines
  • 6Building a super admin dashboard with cross-tenant visibility for managing all registered businesses, subscriptions, pricing plans, and platform settings

Solutions

  • 1Designed a businessId + branchId scoping pattern across all 30+ database models with composite indexes, and enforced tenant isolation at the middleware, API, and query levels
  • 2Built a comprehensive permissions system with module-level access control, configurable per staff member through the admin dashboard with role-based defaults
  • 3Integrated LiveKit server and client SDKs with token-based authentication, implementing a full call flow with ringing, accept, decline, and in-call UI states
  • 4Developed a complete subscription lifecycle with dynamic pricing plans fetched from the database, billing toggle, savings badges, trial tracking, and status transitions
  • 5Built a dual-pipeline media system using AWS S3 with Sharp compression for uploads and Cloudinary for managed image delivery with responsive transformations
  • 6Created a dedicated super admin dashboard with aggregated metrics, customer management, subscription oversight, pricing plan CRUD, and platform-level controls
Stack

Technology & Architecture

Next.js 15React 19TypeScriptPostgreSQL (Neon)Prisma ORMNextAuth.js v4Tailwind CSSshadcn/uiAWS S3SharpCloudinaryFirebase Cloud MessagingFirebase AdminLiveKitRechartsReact Hook FormZodFramer MotionLucide ReactReact IconsCapacitorjsPDFqrcodeVercel
Design

Design & UX Highlights

Clean, professional aesthetic with warm tea-toned accent colors (#1a7a5c / tea-700) and neutral slate text
Custom typography using Geist (Vercel's font family) with bold display headings
Fluid responsive design with clamp()-based typography scaling across all viewports
Hero section with large dashboard preview image and 3 feature cards with glassmorphism effects
Pricing section with dynamic plan cards, billing toggle (monthly/yearly), savings badges, and skeleton loading states
Masonry gallery layout with lightbox modal and keyboard (Escape) dismiss
Accessible navigation with proper aria-* attributes, keyboard support, and reduced-motion compliance
Mobile-first responsive header with collapsible hamburger menu and auth CTA buttons
Smooth fade-up animations on section entries
Skeleton loading states throughout for polished UX during data fetching
Security

Security & Access Control

Multi-tenant data isolation — every query is scoped by businessId and branchId
Role-based access (SUPER_ADMIN / OWNER / ADMIN / STAFF) protects all admin routes
Next.js middleware enforces authentication and role-based redirects
Granular permissions system — module-level access control configurable per admin staff member
Password hashing with bcryptjs for all credential authentication
Environment-based secrets for database, auth, S3, and third-party services
Input validation via Zod schemas on all API endpoints
SQL injection protection through Prisma's parameterized queries
Secure file upload validation with Sharp image processing and size limits
Roadmap

Future Roadmap

Online payment gateway integration (eSewa, Khalti, Stripe)
Real-time WebSocket-based order notifications
Customer loyalty and rewards program
Multi-language support (Nepali / English)
Advanced analytics with exportable PDF/CSV reports
Staff shift scheduling and attendance tracking
Reservation and table booking system
iOS Capacitor support
Email notification templates and automation
API rate limiting and audit logging
Hostiva revolutionized how we manage our multi-location restaurant business. The inventory tracking, order management, and staff permissions system have streamlined our operations across all branches.
H
Hostiva Business Owner
Restaurant Chain Operator

Hostiva

SaaS / Web App

Role
Full-Stack Developer & Architect
Year
2025
Duration
Ongoing (Production)
Client
Hostiva Hospitality Platform

Technologies

Next.js 15React 19TypeScriptPostgreSQL (Neon)Prisma ORMNextAuth.js v4Tailwind CSSshadcn/ui+16
Explore

Other Projects

Chiya Nepal
Completed
Featured
SaaS / Web App

Chiya Nepal

A production-grade, full-stack web application built for a real tea house chain with multiple locations across Nepal. Serves two distinct audiences: customers exploring a polished public website, and staff managing comprehensive café operations through a role-based admin dashboard.

Next.js 15React 19TypeScriptPostgreSQL (Neon)+17
20+
Admin Modules
15+
Database Models
Multi-Branch
Active Locations
NovaAxis CRM
Completed
Featured
CRM / Communication

NovaAxis CRM

A centralized operations hub for service-based businesses in Nepal — combining CRM with direct WhatsApp Messaging API integration, AI-powered assistance, and comprehensive client management tools in a single dashboard.

Next.js 16React 19TypeScriptPostgreSQL (Neon)+16
4+
API Integrations
10+
Dashboard Modules
2
Messaging Channels
Open to Freelance & Contract Projects

Ready to Build Something Exceptional?

Whether you need a full-stack web application, SaaS platform, booking system, or a premium portfolio site — let's architect something production-ready and deployed on Vercel or your preferred cloud.

Next.js App Router
Neon / Supabase DB
Cloudinary Media
Vercel Deployment

Usually responds within 24 hours · Based in GMT+5:45 · Available for international projects

Aaditya — Full Stack Developer & Application Architect