The operating system for bakery businesses. A full-stack, multi-tenant SaaS platform covering stock, recipes, orders, invoicing, and financial reporting — with a super-admin portal for managing all tenants.
BakeryOS uses a monorepo structure with npm workspaces, schema-per-tenant PostgreSQL, and separate apps for bakery staff and super-admins.
TypeScript types, Zod validation schemas, and shared utility functions used across all packages.
Drizzle ORM with PostgreSQL. Schema-per-tenant isolation: public schema for platform, bakery_{slug} per tenant.
Express.js REST API with JWT authentication (15-min access tokens, 7-day refresh tokens) and bcrypt hashing.
Bakery staff dashboard — React 18, Vite, Tailwind CSS, Zustand, TanStack Query, Recharts, shadcn/ui.
Super-admin portal on port 5174. Create and manage bakery tenants, view platform analytics, handle billing.
Capacitor wrapper for Android & iOS. Shares the web codebase — native app without duplicate development.
Track ingredients and supplies with unit support (kg, g, L, ml, units, dozens). Cost per unit and reorder alerts.
Build recipes from stock items. Automatic cost calculations and production batch sizing.
Customer orders from creation to completion. Status tracking, fulfilment workflow, and customer history.
Generate professional invoices and export as PDF using @react-pdf/renderer. Email directly from the dashboard.
Revenue, profit, and cost analysis with Recharts visualisations. Daily, weekly, and monthly breakdowns.
Super-admin dashboard to provision new bakery tenants, manage subscriptions, and monitor platform health.