How alvarortzg-lang/app-paulino works
Paulino is a private, multi-location management platform for a takeaway restaurant. Staff and administrators use the web app to authenticate and manage kitchen work, orders, stock, time entries, and administration through a shared REST API and typed operation layer. That layer also serves MCP clients and supports event streams and signed webhooks; a worker dispatches webhook deliveries. The README documents several domain capabilities whose implementation files were not sampled, so their nodes use exact paths from the tree and links are limited to documented relationships.
Main entry points: operation.ts Operation dispatcher · schema.ts PostgreSQL · App.tsx Web app · app.ts REST and SSE API
Components 25
Web application
- Web app
apps/web/src/App.tsx - Sign-in
apps/web/src/routes/Login.tsx - Kitchen workspace
apps/web/src/routes/Kitchen.tsx - Admin workspace
apps/web/src/routes/AdminPanel.tsx - Browser session
apps/web/src/lib/session.tsx - REST client
apps/web/src/lib/api.ts
API and operations
- REST and SSE API
apps/api/src/app.ts - Operation dispatcher
packages/core/src/operation.ts - Authentication
packages/core/src/ops/auth.ts
Restaurant operations
- Orders and slots
packages/core/src/ops/orders.ts - Stock and production
packages/core/src/ops/stock.ts - Time and counts
packages/core/src/ops/time-entries.ts - Opening and closing tasks
packages/core/src/ops/tasks.ts - Catalog and recipes
packages/core/src/ops/products.ts - Sales and reports
packages/core/src/ops/reports.ts
Events and integrations
- Webhook management
packages/core/src/ops/webhooks.ts - Webhook dispatcher
packages/core/src/webhook-dispatch.ts - Delivery worker
apps/api/src/worker.ts - MCP endpoint
apps/api/src/app.ts - Live event stream
packages/core/src/events.ts - Glop inbound sales
packages/core/src/glop-webhook.ts
Persistence
- PostgreSQL
packages/db/src/schema.ts
Other components
- Restaurant staff
- Administrator
- MCP agent
Connections 33
- Restaurant staff → Web app: uses
README.md - Administrator → Web app: uses
README.md - Web app → Sign-in: routes to
apps/web/src/App.tsx - Restaurant staff → Sign-in: signs in
README.md - Sign-in → Browser session: stores session
apps/web/src/lib/session.tsx - Web app → Kitchen workspace: routes to
apps/web/src/App.tsx - Web app → Admin workspace: routes to
apps/web/src/App.tsx - Kitchen workspace → REST client: requests data
README.md - Admin workspace → REST client: requests data
README.md - REST client → REST and SSE API: calls REST
apps/web/src/lib/api.ts - REST and SSE API → Operation dispatcher: runs operations
apps/api/src/app.ts - REST and SSE API → Authentication: authenticates
apps/api/src/app.ts - Operation dispatcher → Orders and slots: dispatches operations
README.md - Operation dispatcher → Stock and production: dispatches operations
README.md - Operation dispatcher → Time and counts: dispatches operations
README.md - Operation dispatcher → Opening and closing tasks: dispatches operations
README.md - Operation dispatcher → Catalog and recipes: dispatches operations
README.md - Operation dispatcher → Sales and reports: dispatches operations
README.md - Operation dispatcher → PostgreSQL: reads and writes
packages/core/src/operation.ts - Orders and slots → PostgreSQL: reads and writes
- Stock and production → PostgreSQL: reads and writes
- Time and counts → PostgreSQL: reads and writes
- Opening and closing tasks → PostgreSQL: reads and writes
packages/core/src/ops/tasks.ts - Webhook management → PostgreSQL: stores configuration
packages/core/src/ops/webhooks.ts - Delivery worker → Webhook dispatcher: runs delivery
apps/api/src/worker.ts - Webhook dispatcher → PostgreSQL: reads outbox
packages/core/src/webhook-dispatch.ts - Webhook dispatcher → Webhook management: uses signing and delivery
packages/core/src/webhook-dispatch.ts - Administrator → Webhook management: configures endpoints
README.md - MCP agent → MCP endpoint: calls MCP
README.md - MCP endpoint → Operation dispatcher: runs same operations
README.md - Restaurant staff → Live event stream: receives live updates
README.md - REST and SSE API → Live event stream: streams visible events
apps/api/src/app.ts - Glop inbound sales → Stock and production: records sale movements
packages/core/src/glop-webhook.ts