Skip to main content
RestAI Hero Light

Everything you need to run your restaurant

RestAI is a comprehensive multi-tenant restaurant management platform that combines powerful backend APIs with an intuitive web dashboard. Built for speed and scalability using Bun, Hono, Next.js, and PostgreSQL.

Quick Start

Get up and running in under 5 minutes with our streamlined setup guide

Installation

Detailed installation instructions for local development and production

API Reference

Explore all endpoints, authentication, and WebSocket connections

Architecture

Learn about the monorepo structure and tech stack

Key Features

Multi-Tenant

Complete organization and branch isolation with role-based access control

Real-Time Orders

WebSocket-powered live updates for kitchen displays and order tracking

QR Code Tables

Customers scan QR codes to browse menus and place orders from their table

POS System

Full point-of-sale for dine-in, takeout, and delivery orders

Menu Management

Categories, items, modifiers, and pricing with image support

Kitchen Display

Kanban-style order board for kitchen staff with real-time updates

Inventory Control

Track stock levels, receive alerts, and manage suppliers

Customer Loyalty

Points, rewards, and coupon management to retain customers

Reports & Analytics

Sales reports, performance metrics, and business insights

Technology Stack

RestAI leverages cutting-edge technologies for performance and developer experience:
  • Bun - Ultra-fast JavaScript runtime and package manager
  • Turborepo - High-performance monorepo build system
  • Bun Workspaces - Efficient dependency management across packages
  • Hono - Lightweight, blazing-fast web framework
  • Drizzle ORM - Type-safe SQL toolkit with PostgreSQL
  • WebSockets - Native Bun WebSocket for real-time features
  • Redis - Session management and caching
  • JWT - Secure authentication with refresh tokens
  • Next.js 16 - React framework with App Router
  • TailwindCSS v4 - Utility-first CSS framework
  • shadcn/ui - Beautiful, accessible component library
  • React Query - Powerful data fetching and caching
  • Zustand - Lightweight state management
  • PostgreSQL 17 - Robust relational database
  • Redis 7 - In-memory data store for caching
  • Cloudflare R2 - S3-compatible object storage for images

Monorepo Structure

RestAI uses a well-organized monorepo architecture:
restai/
├── apps/
│   ├── api/          # REST API + WebSocket server (Hono, port 3001)
│   └── web/          # Dashboard + customer flow (Next.js, port 3000)
├── packages/
│   ├── db/           # Drizzle schema, migrations, and seed data
│   ├── ui/           # Shared shadcn/ui components
│   ├── validators/   # Zod schemas for API validation
│   ├── types/        # Shared TypeScript types
│   └── config/       # Shared configuration
├── docker-compose.yml
└── turbo.json
The monorepo structure enables code sharing across frontend and backend while maintaining clear boundaries.

Customer Flow

RestAI provides a seamless customer experience:
1

QR Code Scan

Admin creates tables with unique QR codes in the dashboard
2

Customer Access

Customer scans QR code and enters their name to request access
3

Staff Approval

Staff approves the connection from the dashboard in real-time
4

Browse & Order

Customer browses the menu, adds items to cart, and places orders
5

Kitchen Preparation

Kitchen sees orders on the Kanban board with live status updates
6

Payment & Receipt

Staff processes payment and prints receipts when ready

Get Started Now

Follow the quickstart guide to run RestAI locally in minutes

View on GitHub

Star the project and contribute to the open-source community
RestAI is in active development. Some features may change as we continue to improve the platform.

Build docs developers (and LLMs) love