Skip to content

Components

The engine's modules, what each one owns, and the services and libraries around them.

Applies to EngineCloud
View as Markdown
On this page
  1. The engine’s modules
  2. Around the engine

The engine’s modules

ModuleOwns
coreconfiguration; the project registry (which host is which project, and its database); a small connection pool per project; the auth context: turning an API key, an access token, a PAT or a DPoP proof into who is calling and which database role; encryption of keys at rest; rate limits; the audit writer; the one error shape
autheverything at /auth/v1: users, sessions, tokens, e-mails, providers, admin; and /auth/v1/oauth: clients, the token endpoint, device flow, DPoP, dynamic registration, metadata
maile-mail providers (Amazon SES, SMTP, Resend, Postmark) and templates
restthe Data API: parsing the PostgREST syntax, building one SQL statement, the schema cache
sqlthe SQL endpoint, SQL transactions, migrations and the schema as JSON
mcpthe MCP server: its tools call the engine’s own routes in-process, with the caller’s rights
installthe SQL that creates the engine’s schemas, tables, functions and roles in a database, versioned
serverthe binary: routing by host, the HTTP server, the AWS Lambda adapter, and the sypnia-data commands

Built with tokio (async runtime), axum (HTTP), sqlx (Postgres), ed25519-dalek and p256 (tokens, client assertions and DPoP proofs, without a JWT library), argon2 (passwords), lettre (SMTP) and a small SigV4 client for AWS (SES, KMS, SSM) instead of the AWS SDK, so the binary stays small.

Around the engine

PieceWhatOpen source
@sypnia/dataone npm package: /client (auth and data in apps), /server (direct Postgres, admin, machines) and the CLI npx @sypnia/data (login, init, pull, migrate). No ORM: use any (Use any ORM)yes
Your Postgresall the stateit is yours
E-mail providersends auth e-mailsyour choice
Google, GitHubprovider sign-in—
The console Cloudthe web app at data.app.sypnia.comno
The Cloud API Cloudorganizations, projects, managed databases, at data.api.sypnia.comno

The console and the Cloud API are clients of the engine, like your app: they use the same public endpoints and add no logic to it.

  1. The engine’s modules
  2. Around the engine

    Search pages, sections and terms