Skip to content

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/data
import { 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 });

Full quickstart

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/mcp

Agents and the device flow

Hosted 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.

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.

    Search pages, sections and terms