How openshiporg/openfront-restaurant works
Openfront Restaurant is a restaurant operations and ordering platform. Guests browse a digital menu, place orders, and manage accounts; staff use the dashboard for POS, kitchen, floor, menu, and guest-flow operations. The README describes Keystone/GraphQL-backed services and role-aware AI tools; sampled POS and service-floor clients directly request /api/graphql, while the payment webhook route invokes the Keystone webhook mutation. Other domain links below follow documented capabilities; unsampled implementations are represented at their existing feature paths, and the source excerpts do not establish their internal call graph.
Main entry points: graphql.ts GraphQL API · transitionRestaurantOrder.ts Order lifecycle · route.ts Payment webhook · page.tsx Menu and ordering
Components 21
Guest storefront
- Menu and ordering
app/(storefront)/(main)/menu/[id]/page.tsx - Cart and checkout
features/storefront/context/CartContext.tsx - Guest account
app/(storefront)/(main)/account/@dashboard/page.tsx
Staff operations
- Admin dashboard
features/dashboard/screens/ListPage/ListPageClient.tsx - Menu engineering
app/dashboard/(admin)/platform/menu-items/page.tsx - Point of sale
features/platform/pos/screens/POSClient.tsx - Service floor
features/platform/service-floor/screens/ServiceFloorClient.tsx - Kitchen display
features/platform/kds/screens/KDSClient.tsx - Waitlist and reservations
features/keystone/mutations/waitlistManagement.ts - Operations reports
app/dashboard/(admin)/reports/sales/page.tsx
Restaurant backend
- GraphQL API
pages/api/graphql.ts - Order lifecycle
features/keystone/mutations/transitionRestaurantOrder.ts - Inventory and recipes
features/keystone/utils/inventoryLedger.ts - Restaurant records
features/keystone/models/RestaurantOrder.ts - Role permissions
features/keystone/access.ts - Payment processing
features/keystone/mutations/processPayment.ts
External interfaces
- Payment providers
features/integrations/payment/index.ts - Payment webhook
app/api/integrations/payment/[providerCode]/webhook/route.ts - AI assistant
app/api/mcp-transport/[transport]/route.ts
Other components
- Guest
- Restaurant staff
Connections 23
- Guest → Menu and ordering: browses
- Menu and ordering → Cart and checkout: adds items
- Cart and checkout → GraphQL API: submits order
- Guest → Guest account: manages account
- Restaurant staff → Admin dashboard: manages
README.md - Admin dashboard → Menu engineering: configures
README.md - Restaurant staff → Point of sale: takes orders
README.md - Point of sale → GraphQL API: requests data
features/platform/pos/screens/POSClient.tsx - Restaurant staff → Service floor: seats guests
README.md - Service floor → GraphQL API: requests data
features/platform/service-floor/screens/ServiceFloorClient.tsx - Restaurant staff → Kitchen display: prepares orders
README.md - Restaurant staff → Waitlist and reservations: manages guest flow
README.md - Restaurant staff → Operations reports: reviews performance
README.md - GraphQL API → Order lifecycle: dispatches operations
- Order lifecycle → Restaurant records: updates records
- Order lifecycle → Inventory and recipes: reconciles stock
- GraphQL API → Role permissions: enforces roles
README.md - GraphQL API → Payment processing: processes payment
- Payment processing → Payment providers: charges through
- Payment webhook → GraphQL API: uses Keystone context
app/api/integrations/payment/[providerCode]/webhook/route.ts - Payment webhook → Order lifecycle: invokes handler
app/api/integrations/payment/[providerCode]/webhook/route.ts - Restaurant staff → AI assistant: asks operations
README.md - AI assistant → GraphQL API: uses same API
README.md