How amarspk/eleva works
Zayjar is a multi-tenant restaurant SaaS with guest ordering, restaurant operations, staff administration, billing, media, and an Eleva assistant. The principal guest flow is the QR-menu frontend calling its guest API; the server-side ordering stages are represented as distinct subsystems, but their wiring is not shown in the excerpts. Backoffice, cashier, and kitchen interfaces provide separate operator workflows. The graph preserves documented platform capabilities while limiting solid links to relationships visible in the source index or excerpts; dashed links are unverified.
Main entry points: auth.service.ts Authentication and RBAC · BaseTenantRepository.ts Tenant repositories · guest-api.ts Guest API client · eleva.office.controller.ts Eleva office
Components 26
User interfaces
- QR menu
apps/qr-menu/src/app/components/MenuBrowser.tsx - Guest API client
apps/qr-menu/src/app/lib/guest-api.ts - Backoffice
apps/backoffice/src/app/page.tsx - Cashier terminal
apps/cashier/src/app/components/CashierTerminal.tsx - Kitchen terminal
apps/backoffice/src/app/components/KDSTerminal.tsx - Eleva interface
apps/eleva/src/app/eleva-office/page.tsx
Restaurant operations
- Menu management
apps/api/src/menu/menu.controller.ts - Public menu
apps/api/src/menu/public-menu.controller.ts - Order lifecycle
apps/api/src/order/order.controller.ts - Payments and wallet
apps/api/src/payment/payment.controller.ts - Kitchen dispatch
apps/api/src/kds/kds.controller.ts - Restaurant setup
apps/api/src/restaurant/restaurant.controller.ts - Branches and tables
apps/api/src/branch/branch.controller.ts - Customer records
apps/api/src/customer/customer.controller.ts - Staff and roles
apps/api/src/user/user.controller.ts
Platform services
- Authentication and RBAC
apps/api/src/auth/auth.service.ts - Billing and subscriptions
apps/api/src/billing/billing.controller.ts - Media processing
apps/api/src/media/media.service.ts
Eleva assistant
- Eleva office
apps/api/src/eleva/eleva.office.controller.ts
Persistence and media
- Object storage
apps/api/src/media/storage/storage-provider.interface.ts - Tenant repositories
packages/db/src/repositories/BaseTenantRepository.ts - Local storage
apps/api/src/media/storage/local-storage.provider.ts - S3 storage
apps/api/src/media/storage/s3-storage.provider.ts
Other components
- Guest
- Restaurant staff
- External providers
Connections 30
- Guest → QR menu: browses menu
- QR menu → Guest API client: requests data
apps/qr-menu/src/app/components/MenuBrowser.tsx - Guest API client → Public menu: fetches menu
- Guest API client → Order lifecycle: submits orders
- Restaurant staff → Backoffice: manages venue
- Restaurant staff → Cashier terminal: handles sales
- Restaurant staff → Kitchen terminal: works kitchen
- Restaurant staff → Eleva interface: uses assistant
- Backoffice → Authentication and RBAC: uses session
apps/backoffice/src/app/page.tsx - Cashier terminal → Authentication and RBAC: uses session
- Eleva interface → Eleva office: calls assistant
- Menu management → Authentication and RBAC: guards routes
apps/api/src/menu/menu.controller.ts - Menu management → Tenant repositories: uses tenant data
- Public menu → Tenant repositories: reads menu data
- Order lifecycle → Tenant repositories: uses tenant data
- Payments and wallet → Tenant repositories: uses tenant data
- Kitchen terminal → Kitchen dispatch: updates cooking
- Kitchen dispatch → Authentication and RBAC: guards routes
apps/api/src/kds/kds.controller.ts - Branches and tables → Authentication and RBAC: guards routes
apps/api/src/branch/branch.controller.ts - Customer records → Authentication and RBAC: guards routes
apps/api/src/customer/customer.controller.ts - Staff and roles → Authentication and RBAC: guards routes
apps/api/src/user/user.controller.ts - Staff and roles → Tenant repositories: uses tenant data
- Billing and subscriptions → External providers: connects billing
- Media processing → Object storage: stores assets
- Object storage → Local storage: implemented by
apps/api/src/media/storage/local-storage.provider.ts - Object storage → S3 storage: implemented by
apps/api/src/media/storage/s3-storage.provider.ts - Local storage → External providers: writes files
- S3 storage → External providers: writes objects
- Eleva office → Authentication and RBAC: guards routes
apps/api/src/eleva/eleva.office.controller.ts - Eleva office → External providers: optional research