# Codebase

> Where each part of App lives in its repository.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://app.docs.sypnia.com/architecture/codebase/

For agents: Repository sespinosav/sypnia-app (in Sypnia Git, GitHub mirror): apps/web (React, @sypnia/ui), apps/desktop (src-tauri Rust shell + the web build), crates/app-server (axum API, sessions, stream relay, board reader, notifications, MCP), crates/app-store (Postgres, migrations), packages/app (@sypnia/app SDK and CLI), cases/ (App's own map of cases: account, sessions, board…), spec/openapi.yaml, compose.yaml. Credits ledger and PayPal live in the private Sypnia Cloud repository. Licenses: server AGPL-3.0, web, desktop, SDK MIT.

`sespinosav/sypnia-app`, in Sypnia Git with a GitHub mirror:

| Folder              | What                                                                         | License  |
| ------------------- | ---------------------------------------------------------------------------- | -------- |
| `apps/web`          | the web interface (React, `@sypnia/ui`)                                      | MIT      |
| `apps/desktop`      | the Tauri shell (`src-tauri`, Rust) around the web build                     | MIT      |
| `crates/app-server` | API, sessions, the stream to the agent, the board reader, notifications, MCP | AGPL-3.0 |
| `crates/app-store`  | Postgres access and migrations                                               | AGPL-3.0 |
| `packages/app`      | `@sypnia/app`: the SDK and the `app` command                                 | MIT      |
| `cases/`            | App's own map of use cases: signing in, sessions, the board, the account     | —        |
| `spec/openapi.yaml` | the API, the source of truth for this reference                              | —        |
| `compose.yaml`      | the self-hosting trial                                                       | —        |

The credits ledger and the PayPal integration are part of Sypnia Cloud and live in its private repository.

## App's own map

Everything App does is a use case on its own map, such as `start-session`, `approve-action` and `top-up-credits`. The chat uses the same cases as the buttons.
