# What Sypnia Data is

> An open-source Postgres backend with auth, an automatic API, SQL and row-level security, made for people and for AI agents, with any ORM.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://data.docs.sypnia.com/start/what-it-is/

For agents: Read this to understand what Sypnia Data offers: auth (e-mail, passwords, magic links, Google/GitHub, sessions with configurable lifetime including never), machine auth (OAuth client credentials, DPoP, device flow, PATs, API keys, MCP), the Data API (PostgREST-compatible REST over your schema), SQL and migrations, row-level security and @sypnia/data (client SDK), with any ORM (Sypnorm, the use-case ORM, comes with Sypnia Cases). Runs on any Postgres 14+.

Sypnia Data is the backend of your app, built on the database you already trust: Postgres. You get five things, and you can use any of them alone.

| What                    | In one line                                                                                                                                      | Read                                                                       |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------- |
| **Auth**                | Sign-up, sign-in, e-mail confirmation, passwords, magic links and codes, Google and GitHub (SSO), sessions you control (down to «never expires») | [Auth](https://data.docs.sypnia.com/auth)                                  |
| **Machines and agents** | OAuth 2.0 for services, CLIs and AI agents: key pairs, DPoP, the device flow, personal access tokens, API keys, an MCP server                    | [Machines and agents](https://data.docs.sypnia.com/machines)               |
| **The Data API**        | Every table and view of your schema as REST, filtered and sorted in the URL, under your row-level security                                       | [The Data API](https://data.docs.sypnia.com/data/rest-api)                 |
| **SQL**                 | Run queries and migrations over HTTPS, for servers, the console and agents                                                                       | [SQL and migrations](https://data.docs.sypnia.com/data/sql-and-migrations) |
| **Any ORM**             | Plain SQL, Prisma, Drizzle, or Sypnorm (the use-case ORM, with Sypnia Cases), on the same tables                                                 | [Use any ORM](https://data.docs.sypnia.com/data/any-orm)                   |

## Who it is for

- **People building an app at any level.** A beginner gets sign-in and a database without writing a server. A senior gets plain Postgres, SQL, migrations and standard OAuth, with nothing hidden.
- **AI agents.** Everything you can do in the console you can do through the API, and agents sign in with standard protocols, not with a password you paste into a chat.
- **Teams leaving Supabase or Firebase.** The auth API keeps GoTrue's shape, the Data API keeps PostgREST's query syntax, and `auth.uid()` works in your policies, so most code moves with small changes.

## Any Postgres, no lock-in

The engine installs its own schemas (`sypnia_auth`, `sypnia_data`) and roles in **your** database and never asks for a superuser. Your tables are ordinary tables: read them with `psql`, Prisma, Drizzle or anything else, back them up with `pg_dump`, move them whenever you want. [Any Postgres](https://data.docs.sypnia.com/data/any-postgres) lists what the engine needs.

## What it is not

- **Not a database host by itself.** The engine needs a Postgres. Sypnia Cloud can create one for you; self-hosted, you bring yours.
- **Not file storage.** Files and images are Sypnia Files, a separate product.
- **Not a hosted login page.** Your app shows its own sign-in screens; the engine sends the e-mails and handles the links. Sypnia Cloud's console has ready screens you can copy.
- **Not a realtime bus.** Data does not stream database changes to browsers: your app reads through the Data API when it needs to.
