> 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="/files/QwcWdLcfUKRPoHlvf6VS" alt=""><figcaption></figcaption></figure>
