How crazyjourney-nice/careloop works
CareLoop is a community-canteen ordering demo. The main workflow takes a customer or proxy order through review and confirmation, then tracks kitchen preparation and simulated table delivery; staff can assist customers and operate fulfillment, while administrators manage menus and orders. The README documents these product surfaces, and sampled code confirms the API entry point, order-to-fulfillment calls, and in-memory task simulators. UI, admin, realtime, and persistence internals were not fully sampled, so their links are limited to documented or directly supported relationships.
Main entry points: orders.ts Order API · index.ts HTTP and WS server · ui Customer ordering · MenuItem.ts Menu and tables
Components 18
Ordering experience
- Customer ordering
src/ui - Staff workbench
src/ui - Operations admin
src/ui
API and operations
- HTTP and WS server
src/api/index.ts - Order API
src/api/orders.ts - Admin API
src/api/admin.ts - Realtime events
src/api/realtime.ts - Demo payment options
src/api/orders.ts
Order fulfillment
- Kitchen task simulator
src/kitchen/index.ts - Conveyor simulator
src/conveyor/index.ts
Domain and state
- Voice intent parsing
packages/domain/src/voice/index.ts - Order domain state
packages/domain/src/models/Order.ts - Menu and tables
packages/domain/src/models/MenuItem.ts - Demo data seed
src/database/seed.ts
Other components
- Customer or proxy
- Staff operator
- Canteen operator
- Browser clients
Connections 19
- Customer or proxy → Customer ordering: places or proxies
- Staff operator → Staff workbench: assists and fulfills
- Canteen operator → Operations admin: manages operations
- Customer ordering → Voice intent parsing: parses speech
- Customer ordering → HTTP and WS server: sends requests
- Staff workbench → HTTP and WS server: sends requests
- Operations admin → HTTP and WS server: sends requests
- HTTP and WS server → Order API: dispatches routes
- HTTP and WS server → Admin API: dispatches routes
- HTTP and WS server → Realtime events: registers clients
- Browser clients → HTTP and WS server: connects at /ws
- Order API → Order domain state: updates status
- Order API → Menu and tables: validates items
- Demo data seed → Menu and tables: seeds demo data
- Order API → Kitchen task simulator: creates and advances tasks
- Order API → Conveyor simulator: creates and advances tasks
- Order API → Realtime events: emits order events
- Admin API → Menu and tables: manages menu
- Order API → Demo payment options: offers demo methods