Postgres, hardened.
PostgreSQL 17 with the extensions an app needs, our own extensions, and safe defaults. It is the database under every Supatype project. Use it on its own too.
docker run -d \ --name supatype-postgres \ -e POSTGRES_PASSWORD=your-password \ -p 5432:5432 \ supatype/postgres:17-latest
Built here, in the image.
pg_keyspacepg_keyspace runs a Redis and Valkey compatible server inside Postgres. Your Redis client connects unchanged, and SQL reads the same keys.
pg_topicspg_topics turns a Postgres table into a Kafka topic. Stock Kafka clients produce and consume on a port the extension opens, and SQL can do the same work inside your own transaction.
pg_guardpg_guard lets a non-superuser role create extensions, event triggers and publications. It still cannot make itself a superuser.
supatype_masksupatype_mask masks reads and rejects writes on a single column, row by row. The rule is a SQL function you name in a security label, and the planner enforces it on every query.
The usual extensions, ready.
| Extension | What it does |
|---|---|
PostGIS | Geography and geometry types, and spatial queries. |
pgvector | Vector embeddings and similarity search. |
pg_graphql | A GraphQL API over your schema. |
pg_net | Async HTTP requests from triggers and functions. |
pgjwt | JWT signing and checking in SQL. |
pg_cron | Scheduled jobs inside Postgres. |
pg_safeupdate | Stops UPDATE and DELETE with no WHERE clause. |
pg_plan_filter | Rejects queries over a cost limit. |
wal2json | Logical decoding as JSON, for realtime. |
Locked down before your first table.
Migrations run on first boot and on every start after, so pulling a newer tag over an existing volume applies what is new. supatype migrate doctor checks that the important ones took effect.
- ✓Row level security is on by default.
- ✓Passwords are stored as scram-sha-256.
- ✓The ordinary postgres role is not a superuser.
- ✓A table you make by hand in public is not granted to anon or authenticated until you grant it.
- ✓pg_guard loads on every connection, so roles can manage extensions without SUPERUSER.
- ✓A failed migration stops the container, so no client reaches a half-migrated database.
Pick a tag.
| Tag | What it is |
|---|---|
supatype/postgres:17-latest | The newest PG17 release. Moves only when a release is tagged. |
supatype/postgres:x.y.z | One release, pinned and never changed. |
supatype/postgres:latest | The same image as 17-latest. |
supatype/postgres:develop | The newest build of the develop branch. |
Not using Docker? Each release also ships native archives for Linux, macOS and Windows. It runs under CloudNativePG too. The supatype/postgres repository covers both.
The whole backend, on top.
Supatype runs this image for you, with migrations, access rules, an API, a typed client and Studio generated from your TypeScript types. Cloud starts with 2 projects, 500 MB database and 1 GB storage, free and with no card.