# Architecture

> How Sypnia Git is built, what runs where, and why we build on an open-source engine.

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

For agents: Components: edge (CloudFront for web+HTTPS git at git.app.sypnia.com; NLB for SSH at ssh.git.sypnia.com), the git engine (Forgejo, Go, GPLv3+, on ECS with repositories on EFS or EBS), Sypnia's layer (TypeScript: the Git API git.api.sypnia.com, MCP, the web interface in Sypnia's design, OIDC with auth.sypnia.com, Case: trailer reader, events to Run/Cases/webhooks, mirrors and imports as jobs), Postgres (engine metadata + Sypnia tables), S3 (LFS, release files, git bundle backups), SQS (jobs).

**Figure**: Sypnia Git. An open-source git engine underneath; Sypnia's own API, interface and links on top.

1. People and agents reach Git through the web, HTTPS or SSH.
2. Sypnia's layer signs people in with their Sypnia account and checks the rules.
3. The git engine stores the repositories on disk; metadata goes to Postgres.
4. Events go to Run, Cases and webhooks; LFS and backups go to S3.
5. Jobs import, export and mirror to GitHub.

| Part               | What it does                                                                                                    | Built on                                                                                      |
| ------------------ | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| **The git engine** | git over SSH and HTTPS, repositories, pull requests, issues, protection                                         | an open-source forge ([Choosing the engine](https://git.docs.sypnia.com/architecture/engine)) |
| **Sypnia's layer** | the Git API, MCP, the web interface in Sypnia's design, sign-in with the Sypnia account, use-case links, events | TypeScript                                                                                    |
| **Storage**        | repositories on disk; metadata in Postgres; LFS, release files and backups in S3                                | AWS                                                                                           |
| **Jobs**           | imports, exports, mirrors, backups                                                                              | a queue and workers                                                                           |

Sypnia Git does not write a git server of its own: git's protocol and storage are mature, and a forge is years of work. What makes Sypnia Git different — the account, the use cases, Run, the design, the easy exit — lives in our layer.
