# Codebase

> Where everything of Sypnia Git lives.

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

For agents: Repository sypnia-git: packages/git (@sypnia/git: client, webhooks, CLI incl. git-credential-sypnia), layer/ (TS: api/, mcp/, auth/ OIDC bridge, hooks/ pre-receive service, events/, jobs/ import export mirror backup), engine/ (Forgejo build and config, our patches upstreamed when possible), spec/ (OpenAPI, webhook payload schemas), deploy/. Web interface in sypnia-cloud (private).

```text
sypnia-git/
├── packages/git/       @sypnia/git: client, webhooks, CLI (with git-credential-sypnia)
├── layer/
│   ├── api/            git.api.sypnia.com
│   ├── mcp/            mcp.git.sypnia.com
│   ├── auth/           sign-in with the Sypnia account (OpenID Connect) for the engine
│   ├── hooks/          the pre-receive service: branch rules, limits
│   ├── events/         Case: trailers, Run, Cases, webhooks
│   └── jobs/           imports, exports, mirrors, backups
├── engine/             the engine's build and configuration (changes sent upstream when possible)
├── spec/               OpenAPI, webhook payload schemas
└── deploy/

sypnia-cloud/           private
└── git-web/            the web interface in Sypnia's design
```
