# momalik5580-afk/xylo-os-01 architecture

> Architecture diagram of the GitHub repository momalik5580-afk/xylo-os-01, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/momalik5580-afk/xylo-os-01
- Repository: https://github.com/momalik5580-afk/xylo-os-01

## Overview

This is a hotel-operations dashboard spanning reservations, guest services, property operations, finance, CRM, and AI-assisted workflows. The principal user flow is selecting an operational module in the app, working with its domain view, and updating hotel state held by the app; reservations also expose group-block and allotment management. The graph reflects documented capabilities and sampled wiring. Many views were not excerpted, so their internal calls and connections are omitted; AI requests are shown only to the API boundary visible in the service code.

Main entry points: [`src/App.tsx`](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/App.tsx) (Hotel Operations App), [`src/components/reservations/ReservationsView.tsx`](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/reservations/ReservationsView.tsx) (Reservations), [`src/services/aiService.ts`](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/services/aiService.ts) (AI Service), [`src/components/workflows/WorkflowEngineView.tsx`](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/workflows/WorkflowEngineView.tsx) (Workflow Engine)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App Shell"]
  node_app["Hotel Operations App<br/>[App.tsx]"]
  node_header["Header<br/>[Header.tsx]"]
  node_sidebar["Sidebar Navigation<br/>[Sidebar.tsx]"]
  node_command["Command Center<br/>[CommandCenter.tsx]"]
  node_seed["Sample Hotel Data<br/>[mockData.ts]"]
end

subgraph group_guest["Guest Operations"]
  node_reservations["Reservations"]
  node_groupblocks["Group Blocks"]
  node_allotments["Allotments"]
  node_frontoffice["Front Office"]
  node_crm["Guest CRM<br/>[CrmView.tsx]"]
  node_allotmentseed["Sample Allotments<br/>[mockAllotments.ts]"]
end

subgraph group_property["Property Operations"]
  node_digitaltwin["Digital Twin"]
  node_housekeeping["Housekeeping"]
  node_engineering["Engineering"]
  node_inventory["Inventory<br/>[InventoryView.tsx]"]
  node_fnb["Food &amp; Beverage POS<br/>[FnbPosView.tsx]"]
end

subgraph group_intelligence["Intelligence &amp; Business"]
  node_finance["Finance<br/>[FinanceView.tsx]"]
  node_workflows["Workflow Engine"]
  node_ai["AI Copilot<br/>[AiBrainCopilot.tsx]"]
  node_aiservice["AI Service<br/>[aiService.ts]"]
end

node_user(("Hotel Staff"))
node_api{{"AI HTTP API"}}

node_user -->|"uses"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_sidebar
node_app -->|"renders"| node_command
node_app -->|"renders"| node_reservations
node_app -->|"renders"| node_groupblocks
node_app -->|"renders"| node_allotments
node_app -->|"renders"| node_frontoffice
node_app -->|"renders"| node_digitaltwin
node_app -->|"renders"| node_housekeeping
node_app -->|"renders"| node_engineering
node_app -->|"renders"| node_inventory
node_app -->|"renders"| node_fnb
node_app -->|"renders"| node_finance
node_app -->|"renders"| node_crm
node_app -->|"renders"| node_workflows
node_app -->|"renders"| node_ai
node_reservations -->|"renders"| node_groupblocks
node_reservations -->|"renders"| node_allotments
node_app -.->|"initializes state"| node_seed
node_app -.->|"initializes contracts"| node_allotmentseed
node_workflows -->|"generates workflow"| node_aiservice
node_ai -->|"requests AI"| node_aiservice
node_aiservice -->|"sends HTTP requests"| node_api

click node_app "https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/App.tsx"
click node_header "https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/layout/Header.tsx"
click node_sidebar "https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/layout/Sidebar.tsx"
click node_command "https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/command-center/CommandCenter.tsx"
click node_reservations "https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/reservations/ReservationsView.tsx"
click node_groupblocks "https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/reservations/GroupBlocksManager.tsx"
click node_allotments "https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/reservations/AllotmentsManager.tsx"
click node_frontoffice "https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/front-office/FrontOfficeView.tsx"
click node_crm "https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/crm/CrmView.tsx"
click node_digitaltwin "https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/digital-twin/DigitalTwinView.tsx"
click node_housekeeping "https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/housekeeping/HousekeepingView.tsx"
click node_engineering "https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/engineering/EngineeringView.tsx"
click node_inventory "https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/inventory/InventoryView.tsx"
click node_fnb "https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/fnb/FnbPosView.tsx"
click node_finance "https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/finance/FinanceView.tsx"
click node_workflows "https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/workflows/WorkflowEngineView.tsx"
click node_ai "https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/ai-brain/AiBrainCopilot.tsx"
click node_aiservice "https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/services/aiService.ts"
click node_seed "https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/data/mockData.ts"
click node_allotmentseed "https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/data/mockAllotments.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_header,node_sidebar,node_command,node_seed toneBlue
class node_reservations,node_groupblocks,node_allotments,node_frontoffice,node_crm,node_allotmentseed toneAmber
class node_digitaltwin,node_housekeeping,node_engineering,node_inventory,node_fnb,node_api toneMint
class node_finance,node_workflows,node_ai,node_aiservice toneRose
class node_user toneIndigo
```

## Components

### App Shell

- [Hotel Operations App](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/App.tsx): `src/App.tsx`
- [Header](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/layout/Header.tsx): `src/components/layout/Header.tsx`
- [Sidebar Navigation](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/layout/Sidebar.tsx): `src/components/layout/Sidebar.tsx`
- [Command Center](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/command-center/CommandCenter.tsx): `src/components/command-center/CommandCenter.tsx`
- [Sample Hotel Data](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/data/mockData.ts): `src/data/mockData.ts`

### Guest Operations

- [Reservations](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/reservations/ReservationsView.tsx): `src/components/reservations/ReservationsView.tsx`
- [Group Blocks](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/reservations/GroupBlocksManager.tsx): `src/components/reservations/GroupBlocksManager.tsx`
- [Allotments](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/reservations/AllotmentsManager.tsx): `src/components/reservations/AllotmentsManager.tsx`
- [Front Office](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/front-office/FrontOfficeView.tsx): `src/components/front-office/FrontOfficeView.tsx`
- [Guest CRM](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/crm/CrmView.tsx): `src/components/crm/CrmView.tsx`
- [Sample Allotments](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/data/mockAllotments.ts): `src/data/mockAllotments.ts`

### Property Operations

- [Digital Twin](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/digital-twin/DigitalTwinView.tsx): `src/components/digital-twin/DigitalTwinView.tsx`
- [Housekeeping](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/housekeeping/HousekeepingView.tsx): `src/components/housekeeping/HousekeepingView.tsx`
- [Engineering](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/engineering/EngineeringView.tsx): `src/components/engineering/EngineeringView.tsx`
- [Inventory](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/inventory/InventoryView.tsx): `src/components/inventory/InventoryView.tsx`
- [Food & Beverage POS](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/fnb/FnbPosView.tsx): `src/components/fnb/FnbPosView.tsx`

### Intelligence & Business

- [Finance](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/finance/FinanceView.tsx): `src/components/finance/FinanceView.tsx`
- [Workflow Engine](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/workflows/WorkflowEngineView.tsx): `src/components/workflows/WorkflowEngineView.tsx`
- [AI Copilot](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/components/ai-brain/AiBrainCopilot.tsx): `src/components/ai-brain/AiBrainCopilot.tsx`
- [AI Service](https://github.com/momalik5580-afk/xylo-os-01/blob/main/src/services/aiService.ts): `src/services/aiService.ts`

### Other components

- **Hotel Staff**
- **AI HTTP API**

## Connections

- Hotel Staff → Hotel Operations App: uses (evidence: `src/App.tsx`)
- Hotel Operations App → Header: renders (evidence: `src/App.tsx`)
- Hotel Operations App → Sidebar Navigation: renders (evidence: `src/App.tsx`)
- Hotel Operations App → Command Center: renders (evidence: `src/App.tsx`)
- Hotel Operations App → Reservations: renders (evidence: `src/App.tsx`)
- Hotel Operations App → Group Blocks: renders (evidence: `src/App.tsx`)
- Hotel Operations App → Allotments: renders (evidence: `src/App.tsx`)
- Hotel Operations App → Front Office: renders (evidence: `src/App.tsx`)
- Hotel Operations App → Digital Twin: renders (evidence: `src/App.tsx`)
- Hotel Operations App → Housekeeping: renders (evidence: `src/App.tsx`)
- Hotel Operations App → Engineering: renders (evidence: `src/App.tsx`)
- Hotel Operations App → Inventory: renders (evidence: `src/App.tsx`)
- Hotel Operations App → Food & Beverage POS: renders (evidence: `src/App.tsx`)
- Hotel Operations App → Finance: renders (evidence: `src/App.tsx`)
- Hotel Operations App → Guest CRM: renders (evidence: `src/App.tsx`)
- Hotel Operations App → Workflow Engine: renders (evidence: `src/App.tsx`)
- Hotel Operations App → AI Copilot: renders (evidence: `src/App.tsx`)
- Reservations → Group Blocks: renders (evidence: `src/components/reservations/ReservationsView.tsx`)
- Reservations → Allotments: renders (evidence: `src/components/reservations/ReservationsView.tsx`)
- Hotel Operations App → Sample Hotel Data: initializes state (evidence: `src/App.tsx`)
- Hotel Operations App → Sample Allotments: initializes contracts (evidence: `src/App.tsx`)
- Workflow Engine → AI Service: generates workflow (evidence: `src/components/workflows/WorkflowEngineView.tsx`)
- AI Copilot → AI Service: requests AI (evidence: `src/components/ai-brain/AiBrainCopilot.tsx`)
- AI Service → AI HTTP API: sends HTTP requests (evidence: `src/services/aiService.ts`)
