Sypnia Data documentation
Sypnia Data is an open-source Postgres backend: sign-in, tables, an API and SQL, ready for people and for AI agents. It runs on any Postgres, and you write your app with the ORM you want: plain SQL, Prisma, Drizzle, or Sypnorm with Sypnia Cases.
Connect it to your app
The SDK talks to your project's API: sign-up, session and data, under your database's row-level security.
npm install @sypnia/dataimport { createClient } from '@sypnia/data/client';
const sypnia = createClient('https://<ref>.data.sypnia.com', 'syp_pk_<ref>_…');
await sypnia.auth.signUp({ email: 'ana@example.com' }); // she gets the e-mail to create her password
const { data } = await sypnia.from('orders').select('id, total').order('created_at', { ascending: false });Or let your agent do it
Everything in the console exists in the API. Your agent signs in with the device flow, without pasting secrets in a chat, and uses the project's MCP server.
npx @sypnia/data login --project <ref> # approve in the browser; the session stays in ~/.config/sypnia
claude mcp add --transport http sypnia-data https://<ref>.data.sypnia.com/mcpHosted by us, with a free tier
Use Sypnia Data in Sypnia Cloud
- DatabaseA managed database per project, or yours.
- E-mailIncluded for trying it out, and your provider for production.
- ConsoleThe full console: tables, SQL, users, machines, use cases.
Open source, on any Postgres
Run the open-source engine yourself
- DatabaseYours: any Postgres 14+ by connection string.
- E-mailSMTP, Resend, Postmark or your own SES.
- ConsoleThe API, SQL and MCP. No UI of its own.
Sypnia Cloud runs the same open-source engine, plus the console, managed databases, accounts, and Sypnia Mail for your auth e-mails. Compare the two, line by line
The map
Every page says whether it is about the engine, Sypnia Cloud or both.
-
What Sypnia Data is, how it works, what is open source and what is Sypnia Cloud, and the quickstarts.
-
Sign-up and sign-in for the people who use your app, with sessions you control and e-mails sent through the provider you choose.
-
How services, CLIs, MCP clients and AI agents sign in to a project with standard OAuth 2.0, and which credential to use when.
-
Your tables as an API, protected by row-level security, plus SQL and migrations over HTTPS, on any Postgres.
-
Sypnia Cloud's web app for Sypnia Data, at data.app.sypnia.com, and the rule that everything it does is also in the API.
-
Sypnia Data run for you: projects and their databases, addresses, limits and plans.
-
How the engine is built, where Rust runs and where the logic lives, how requests flow, what is stored, how it runs on AWS, what happens when something fails, and how it scales.
-
Run the open-source engine yourself, with Docker or on AWS, against your own Postgres.
-
The addresses, how to authenticate, the error shape and the limits shared by every endpoint.
-
How Sypnia Data protects people's accounts, your data and its own secrets, in the engine and in Sypnia Cloud.
-
The glossary, the design decisions, the changelog and common questions.
Written for people and for coding agents. Every page is also plain Markdown: add .md to its address, or use the «Copy page for your agent» button. Agents can start from the index.