How mighty840/kitchenasty works
KitchenAsty is a self-hosted restaurant platform spanning customer ordering and reservations, staff operations, and restaurant administration. Customers browse menus, place orders, track order status, and book tables through the storefront or mobile app; staff manage orders and reservations, while managers configure menus, settings, and promotions. The server exposes the REST API and persists operational data, with documented real-time updates and payment integrations. The graph combines sampled wiring with README capabilities; several domain implementations and client API calls were not sampled, so their internal links are not expanded.
Main entry points: app.ts API Application · order.controller.ts Order Processing · review.controller.ts Review Moderation · settings.controller.ts Restaurant Settings
Components 30
Customer Apps
- Web Storefront
packages/storefront/src/main.tsx - Mobile App
packages/mobile/app/(tabs)/index.tsx - Mobile Auth State
packages/mobile/src/store/auth.store.ts - Push Notifications
packages/mobile/src/hooks/usePushNotifications.ts
Admin Console
- Admin Console
packages/admin/src/main.tsx - Menu Management
packages/admin/src/pages/MenuItemList.tsx - Order & Kitchen Views
packages/admin/src/pages/OrderList.tsx - Reservations
packages/admin/src/pages/ReservationList.tsx - Configuration Views
packages/admin/src/pages/Settings.tsx - Review Management
packages/admin/src/pages/ReviewList.tsx - Storefront Design
packages/admin/src/pages/DesignLanding.tsx
REST API
- API Application
packages/server/src/app.ts - Menu Routes
packages/server/src/routes/menu.routes.ts - Review Routes
packages/server/src/routes/review.routes.ts - Settings Routes
packages/server/src/routes/settings.routes.ts - Reservation Services
packages/server/src/routes/reservation.routes.ts - Coupon Services
packages/server/src/routes/coupon.routes.ts - Automation Rules
packages/server/src/routes/automation.routes.ts - Staff & Roles
packages/server/src/routes/staff.routes.ts - Dashboard Metrics
packages/server/src/routes/dashboard.routes.ts
Order Operations
- Order Processing
packages/server/src/controllers/order.controller.ts - Review Moderation
packages/server/src/controllers/review.controller.ts - Restaurant Settings
packages/server/src/controllers/settings.controller.ts
Platform Services
- PostgreSQL Data
packages/server/src/lib/db.ts - Live Order Updates
packages/server/src/lib/socket.ts - Email Delivery
packages/server/src/lib/email.ts - Automation Events
packages/server/src/lib/events.ts - Payment Providers
packages/server/src/lib/stripe.ts
Other components
- Restaurant Customer
- Restaurant Staff
Connections 33
- Restaurant Customer → Web Storefront: browses and orders
- Restaurant Customer → Mobile App: orders and tracks
- Web Storefront → API Application: REST requests
- Mobile App → API Application: API requests
- Restaurant Staff → Admin Console: manages restaurant
- Admin Console → API Application: REST requests
- API Application → Menu Routes: mounts
- API Application → Review Routes: mounts
- API Application → Settings Routes: mounts
- API Application → Reservation Services: mounts
- API Application → Coupon Services: mounts
- API Application → Automation Rules: mounts
- API Application → Staff & Roles: mounts
- API Application → Dashboard Metrics: mounts
- Menu Routes → Menu Management: serves menu data
- Review Routes → Review Moderation: dispatches
- Settings Routes → Restaurant Settings: dispatches
- Order Processing → PostgreSQL Data: reads and writes
- Order Processing → Live Order Updates: emits order updates
- Order Processing → Email Delivery: sends order email
- Order Processing → Automation Events: emits status events
- Order Processing → Payment Providers: payment integration
- Review Moderation → PostgreSQL Data: reads and writes
- Review Moderation → Automation Events: emits submission event
- Restaurant Settings → PostgreSQL Data: reads and writes
- Restaurant Settings → Email Delivery: tests email delivery
- Mobile Auth State → Push Notifications: provides auth token
- Push Notifications → API Application: registers push token
- Order & Kitchen Views → API Application: requests order operations
- Reservations → API Application: requests reservations
- Configuration Views → API Application: configures settings
- Review Management → API Application: moderates reviews
- Storefront Design → Web Storefront: configures templates