# domits1/domits architecture

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

- Interactive diagram: https://gitdiagram.com/domits1/domits
- Repository: https://github.com/domits1/domits

## Overview

Domits is a hospitality-management platform for hosts and guests, spanning property and availability management, booking, payments, reviews, messaging, and distribution. The README describes React/React Native clients backed by serverless AWS Lambdas, API Gateway, a relational database, and integrations such as Stripe. The graph shows those documented product-level relationships alongside sampled review and messaging internals; unsampled subsystem connections are not inferred.

Main entry points: [`backend/functions`](https://github.com/domits1/domits/tree/acceptance/backend/functions) (AWS Lambda Backend), [`backend/functions/ReviewSystem/business/service/reviewService.js`](https://github.com/domits1/domits/blob/acceptance/backend/functions/ReviewSystem/business/service/reviewService.js) (Reviews), [`backend/functions/UnifiedMessaging/business/ingestionService.js`](https://github.com/domits1/domits/blob/acceptance/backend/functions/UnifiedMessaging/business/ingestionService.js) (Message Ingestion), [`frontend/web/src/App.js`](https://github.com/domits1/domits/blob/acceptance/frontend/web/src/App.js) (Web Client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Guest and Host Clients"]
  node_web_app["Web Client<br/>[App.js]"]
  node_mobile_app["Mobile Client<br/>[App.js]"]
end

subgraph group_hospitality["Hospitality Workflows"]
  node_property_ops["Property Management"]
  node_availability["Availability<br/>[index.js]"]
  node_booking["Bookings<br/>[bookingService.js]"]
  node_payments["Payments<br/>[paymentService.js]"]
  node_invoicing["Invoicing<br/>[index.js]"]
  node_reviews["Reviews<br/>[reviewService.js]"]
  node_review_rules["Review Rules<br/>[reviewRules.js]"]
  node_review_repository["Review Storage"]
end

subgraph group_integrations["Communications and Integrations"]
  node_messaging_ingestion["Message Ingestion"]
  node_channel_management["Channel Management<br/>[index.js]"]
  node_ical_sync["Calendar Sync<br/>[index.js]"]
end

subgraph group_platform["Serverless Data Platform"]
  node_api_gateway{{"API Gateway"}}
  node_lambda_backend["AWS Lambda Backend"]
  node_database[("Relational Database<br/>[index.js]")]
  node_thread_repository["Thread Storage"]
  node_message_repository["Message Storage"]
end

node_guests_hosts(("Guests and Hosts"))
node_stripe{{"Stripe"}}

node_guests_hosts -->|"use"| node_web_app
node_guests_hosts -->|"use"| node_mobile_app
node_web_app -->|"send requests"| node_api_gateway
node_mobile_app -->|"send requests"| node_api_gateway
node_api_gateway -->|"routes to"| node_lambda_backend
node_lambda_backend -->|"uses"| node_database
node_lambda_backend -.->|"integrates with"| node_stripe
node_reviews -->|"validates with"| node_review_rules
node_reviews -->|"queries"| node_review_repository
node_review_repository -->|"reads and writes"| node_database
node_messaging_ingestion -->|"upserts thread"| node_thread_repository
node_messaging_ingestion -->|"stores messages"| node_message_repository

click node_web_app "https://github.com/domits1/domits/blob/acceptance/frontend/web/src/App.js"
click node_mobile_app "https://github.com/domits1/domits/blob/acceptance/frontend/app/Domits/App.js"
click node_property_ops "https://github.com/domits1/domits/blob/acceptance/backend/functions/PropertyHandler/controller/propertyController.js"
click node_availability "https://github.com/domits1/domits/blob/acceptance/backend/functions/Availability_API/index.js"
click node_booking "https://github.com/domits1/domits/blob/acceptance/backend/functions/General-Bookings-CRUD-Bookings-develop/business/bookingService.js"
click node_payments "https://github.com/domits1/domits/blob/acceptance/backend/functions/General-Bookings-CRUD-Bookings-develop/business/paymentService.js"
click node_invoicing "https://github.com/domits1/domits/blob/acceptance/backend/functions/General-Invoicing-CRUD/index.js"
click node_reviews "https://github.com/domits1/domits/blob/acceptance/backend/functions/ReviewSystem/business/service/reviewService.js"
click node_review_rules "https://github.com/domits1/domits/blob/acceptance/backend/functions/ReviewSystem/business/model/reviewRules.js"
click node_review_repository "https://github.com/domits1/domits/blob/acceptance/backend/functions/ReviewSystem/data/reviewRepository.js"
click node_messaging_ingestion "https://github.com/domits1/domits/blob/acceptance/backend/functions/UnifiedMessaging/business/ingestionService.js"
click node_channel_management "https://github.com/domits1/domits/blob/acceptance/backend/functions/ChannelManagement/index.js"
click node_ical_sync "https://github.com/domits1/domits/blob/acceptance/backend/functions/Ical-sync-scheduler/index.js"
click node_lambda_backend "https://github.com/domits1/domits/tree/acceptance/backend/functions"
click node_database "https://github.com/domits1/domits/blob/acceptance/backend/ORM/index.js"
click node_thread_repository "https://github.com/domits1/domits/blob/acceptance/backend/functions/UnifiedMessaging/data/threadRepository.js"
click node_message_repository "https://github.com/domits1/domits/blob/acceptance/backend/functions/UnifiedMessaging/data/messageRepository.js"

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_web_app,node_mobile_app toneBlue
class node_property_ops,node_availability,node_booking,node_payments,node_invoicing,node_reviews,node_review_rules,node_review_repository toneAmber
class node_messaging_ingestion,node_channel_management,node_ical_sync toneMint
class node_api_gateway,node_lambda_backend,node_database,node_thread_repository,node_message_repository toneRose
class node_guests_hosts,node_stripe toneIndigo
```

## Components

### Guest and Host Clients

- [Web Client](https://github.com/domits1/domits/blob/acceptance/frontend/web/src/App.js): `frontend/web/src/App.js`
- [Mobile Client](https://github.com/domits1/domits/blob/acceptance/frontend/app/Domits/App.js): `frontend/app/Domits/App.js`

### Hospitality Workflows

- [Property Management](https://github.com/domits1/domits/blob/acceptance/backend/functions/PropertyHandler/controller/propertyController.js): `backend/functions/PropertyHandler/controller/propertyController.js`
- [Availability](https://github.com/domits1/domits/blob/acceptance/backend/functions/Availability_API/index.js): `backend/functions/Availability_API/index.js`
- [Bookings](https://github.com/domits1/domits/blob/acceptance/backend/functions/General-Bookings-CRUD-Bookings-develop/business/bookingService.js): `backend/functions/General-Bookings-CRUD-Bookings-develop/business/bookingService.js`
- [Payments](https://github.com/domits1/domits/blob/acceptance/backend/functions/General-Bookings-CRUD-Bookings-develop/business/paymentService.js): `backend/functions/General-Bookings-CRUD-Bookings-develop/business/paymentService.js`
- [Invoicing](https://github.com/domits1/domits/blob/acceptance/backend/functions/General-Invoicing-CRUD/index.js): `backend/functions/General-Invoicing-CRUD/index.js`
- [Reviews](https://github.com/domits1/domits/blob/acceptance/backend/functions/ReviewSystem/business/service/reviewService.js): `backend/functions/ReviewSystem/business/service/reviewService.js`
- [Review Rules](https://github.com/domits1/domits/blob/acceptance/backend/functions/ReviewSystem/business/model/reviewRules.js): `backend/functions/ReviewSystem/business/model/reviewRules.js`
- [Review Storage](https://github.com/domits1/domits/blob/acceptance/backend/functions/ReviewSystem/data/reviewRepository.js): `backend/functions/ReviewSystem/data/reviewRepository.js`

### Communications and Integrations

- [Message Ingestion](https://github.com/domits1/domits/blob/acceptance/backend/functions/UnifiedMessaging/business/ingestionService.js): `backend/functions/UnifiedMessaging/business/ingestionService.js`
- [Channel Management](https://github.com/domits1/domits/blob/acceptance/backend/functions/ChannelManagement/index.js): `backend/functions/ChannelManagement/index.js`
- [Calendar Sync](https://github.com/domits1/domits/blob/acceptance/backend/functions/Ical-sync-scheduler/index.js): `backend/functions/Ical-sync-scheduler/index.js`

### Serverless Data Platform

- **API Gateway**
- [AWS Lambda Backend](https://github.com/domits1/domits/tree/acceptance/backend/functions): `backend/functions`
- [Relational Database](https://github.com/domits1/domits/blob/acceptance/backend/ORM/index.js): `backend/ORM/index.js`
- [Thread Storage](https://github.com/domits1/domits/blob/acceptance/backend/functions/UnifiedMessaging/data/threadRepository.js): `backend/functions/UnifiedMessaging/data/threadRepository.js`
- [Message Storage](https://github.com/domits1/domits/blob/acceptance/backend/functions/UnifiedMessaging/data/messageRepository.js): `backend/functions/UnifiedMessaging/data/messageRepository.js`

### Other components

- **Guests and Hosts**
- **Stripe**

## Connections

- Guests and Hosts → Web Client: use (evidence: `README.md`)
- Guests and Hosts → Mobile Client: use (evidence: `README.md`)
- Web Client → API Gateway: send requests (evidence: `README.md`)
- Mobile Client → API Gateway: send requests (evidence: `README.md`)
- API Gateway → AWS Lambda Backend: routes to (evidence: `README.md`)
- AWS Lambda Backend → Relational Database: uses (evidence: `README.md`)
- AWS Lambda Backend → Stripe: integrates with (evidence: `README.md`)
- Reviews → Review Rules: validates with (evidence: `backend/functions/ReviewSystem/business/service/reviewService.js`)
- Reviews → Review Storage: queries (evidence: `backend/functions/ReviewSystem/business/service/reviewService.js`)
- Review Storage → Relational Database: reads and writes (evidence: `backend/functions/ReviewSystem/data/reviewRepository.js`)
- Message Ingestion → Thread Storage: upserts thread (evidence: `backend/functions/UnifiedMessaging/business/ingestionService.js`)
- Message Ingestion → Message Storage: stores messages (evidence: `backend/functions/UnifiedMessaging/business/ingestionService.js`)
