Architecture
How Sypnia Cases is built, where each part runs, and how a request moves through it.
On this page
- People use the editor; agents use MCP; CI uses the CLI.
- The Cases server owns maps, versions, proposals, comments and checks.
- Its state lives in Postgres, through Sypnia Data.
- The link readers ask Data, Telemetry, Git and Agent, with the member’s own token.
- Repositories hold the same map as files.
The parts
| Part | What it does | Runs as | Open source |
|---|---|---|---|
@sypnia/cases | Sypnorm (the use-case ORM and its runners), the runtime inside each area’s service (outbox, background delivery task, loop guard), deriving the map from code, the format’s types and schemas, parser, validator, diff, the API client, the CLI | TypeScript, in your app, your terminal and CI | yes, MIT |
| The Cases server | the API: maps, versions, proposals, comments, checks, sync with repositories | TypeScript on Node; one process, stateless | yes, AGPL-3.0 |
| Storage | maps, versions, proposals, comments, audit | Postgres, with Sypnia Data and Sypnorm | your Postgres |
| The editor Cloud | the visual map, the reviews | a static web app (Vite + React) | no |
| Link readers Cloud | read tables, health, commits, tasks from the other products | inside the server, with the member’s token | yes, AGPL-3.0, part of the server |
| MCP | the tools for agents | inside the server, at mcp.cases.sypnia.com | yes, AGPL-3.0, part of the server |
sypnia-cases crate | the same runtime for services written in Rust, such as Telemetry’s engine: outbox rows, the tokio delivery task, idempotency | Rust, inside your service | yes, MIT |
| Delivery on AWS | the bus, the queue per listener and its dead letters | Amazon EventBridge and SQS, set up by Sypnia Run from the map | the template, yes |
Which language where
Sypnia’s engines that sit on a hot path (Telemetry’s ingestion, Data’s API) are Rust. The Cases server is not on a hot path: a map has hundreds of cases, not millions of events, and checks run in CI where the code is, so it is TypeScript, one language with Sypnorm and the editor. The runtime lives where your code lives: in @sypnia/cases for TypeScript services, and in the sypnia-cases crate for Rust services, both writing the same outbox and the same events.
- A proposal, an approval, a check, a link.
- The tables of the Cases server.
- The reference implementation, service by service.
- What happens when something breaks.
- Where everything lives.