# Codebase

> How the open-source repository is organized.

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

For agents: sypnia-domains repo: engine/ Rust workspace (api, search, registrar trait + Route 53 Domains adapter, dns trait + Route 53 adapter + reconciler, operations, connections + product adapters, renewals, zonefile, mcp), migrations/, packages/domains (@sypnia/domains server/zone/cli), deploy/ (compose, IAM policy, AWS template), spec/openapi.yaml, docs/ARCHITECTURE.md; tests with recorded Route 53 fake and local DNS, never register.

```text
sypnia-domains/
├─ engine/              Rust workspace
│  ├─ api/              HTTP API (axum)
│  ├─ search/           names, suggestions, internationalized names, prices
│  ├─ registrar/        the Registrar trait and the Route 53 Domains adapter
│  ├─ dns/              the DnsProvider trait, the Route 53 adapter, the reconciler
│  ├─ operations/       long operations: registrations, renewals, transfers, moves
│  ├─ connections/      connections and the product adapters (run, mail, data, files)
│  ├─ renewals/         schedule, set-aside, reminders
│  ├─ zonefile/         parse and write zone files
│  └─ mcp/              the MCP server
├─ migrations/          sypnia_domains schema
├─ packages/domains/    @sypnia/domains (server, zone, cli)
├─ deploy/              docker compose, IAM policy, AWS template
├─ spec/openapi.yaml
└─ docs/ARCHITECTURE.md
```

Tests use a recorded fake of Route 53 Domains and a local DNS server, so they never register anything.
