Skip to content

Architecture

How Sypnia Cases is built, where each part runs, and how a request moves through it.

Applies to EngineCloud
View as Markdown
On this page
  1. The parts
  2. Which language where
Figure. Sypnia Cases. The format and its tools are open; the server stores maps, versions and proposals in Postgres; the editor and the link readers are clients of it.
  1. People use the editor; agents use MCP; CI uses the CLI.
  2. The Cases server owns maps, versions, proposals, comments and checks.
  3. Its state lives in Postgres, through Sypnia Data.
  4. The link readers ask Data, Telemetry, Git and Agent, with the member’s own token.
  5. Repositories hold the same map as files.

The parts

PartWhat it doesRuns asOpen source
@sypnia/casesSypnorm (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 CLITypeScript, in your app, your terminal and CIyes, MIT
The Cases serverthe API: maps, versions, proposals, comments, checks, sync with repositoriesTypeScript on Node; one process, statelessyes, AGPL-3.0
Storagemaps, versions, proposals, comments, auditPostgres, with Sypnia Data and Sypnormyour Postgres
The editor Cloudthe visual map, the reviewsa static web app (Vite + React)no
Link readers Cloudread tables, health, commits, tasks from the other productsinside the server, with the member’s tokenyes, AGPL-3.0, part of the server
MCPthe tools for agentsinside the server, at mcp.cases.sypnia.comyes, AGPL-3.0, part of the server
sypnia-cases cratethe same runtime for services written in Rust, such as Telemetry’s engine: outbox rows, the tokio delivery task, idempotencyRust, inside your serviceyes, MIT
Delivery on AWSthe bus, the queue per listener and its dead lettersAmazon EventBridge and SQS, set up by Sypnia Run from the mapthe 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.

  • Request paths

    A proposal, an approval, a check, a link.
  • Data model

    The tables of the Cases server.
  • On AWS

    The reference implementation, service by service.
  • Failures

    What happens when something breaks.
  • Codebase

    Where everything lives.
  1. The parts
  2. Which language where

    Search pages, sections and terms