> For the complete documentation index, see [llms.txt](https://yonda.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yonda.gitbook.io/docs/technology/system-architecture.md).

# System Architecture

## Layers:

1. **Client Layer**:
   * Web and mobile apps.
   * Local storage via IndexedDB.
2. **Server Layer**:
   * API servers (Node.js).
   * AI model processing.
3. **Storage Layer**:
   * Local (device) and encrypted cloud.
4. **AI Layer**:
   * Microservices for text/image generation.

## Communication:

* WebSockets for real-time sync.
* REST API for data synchronization.

<figure><img src="https://2619733076-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSsk5X0EKo31AkOJkhrJn%2Fuploads%2F99aXDDy7dnzgbhYPRHps%2Fimage.png?alt=media&amp;token=8e2739c3-86b0-4381-8314-a5b362fc2d35" alt=""><figcaption></figcaption></figure>
