Serverless PostgreSQL
A real Postgres in seconds. Free tier, no credit card, the same drivers, ORMs, and migration tools you already use. Cloud, desktop, or self-host with SpinDB.
Tables
- users
- events
- orders
- sessions
| id | name | created_at |
|---|---|---|
| 1247 | signup | 2026-03-12 14:21 |
| 1246 | purchase | 2026-03-12 14:08 |
| 1245 | login | 2026-03-12 13:55 |
| 1244 | signup | 2026-03-12 13:44 |
| 1243 | purchase | 2026-03-12 13:30 |
Where to run it
Cloud, desktop, or self-host
One database, three places it can live. Pick the speed you want and move between them when you outgrow it.
What you get
Production features, free tier included
Every PostgreSQL database ships with the same primitives: TLS, web console, hibernation, and a real dashboard. No tiered features hidden behind a sales call.
Web IDE
Query console in the dashboard, no extra client to install.
TLS by default
All connections encrypted. No setup required.
Always-on connections
Pin a database to your always-on pool to prevent hibernation.
Scale to zero
Hibernates when idle. Wakes on the next connection.
Connection pooling
Pooled endpoint for serverless and edge workloads.
Direct connections
Bypass the pooler for migrations and replication.
Native HTTPS endpoint
Engines whose own wire protocol speaks HTTPS. Every database, including this one, is also queryable over the platform's HTTPS query API and web console.
Serverless driver
Drop-in HTTP driver for edge runtimes (Upstash REST, PlanetScale, or the engine-native client).
IP whitelisting
Restrict access to specific IPs or CIDR ranges.
Automatic backups
Scheduled dumps and volume snapshots with one-click restore on paid plans. Free tier includes a manual backup slot.
Quick start
Connect with any PostgreSQL client
Primary application databases, SaaS backends, transactional workloads, and frameworks that expect a normal Postgres URL.
- Drop a managed Postgres behind a side project without paying for a dedicated instance
- Per-tenant or per-developer databases that scale to zero between bursts
- Run logical replication or migration tooling against the direct connection string
- Serve a serverless app with the pooled connection string from edge runtimes
- Self-host on your own hardware with SpinDB when compliance requires it
psql "postgresql://layerbase:password@your-host.cloud.layerbase.dev:5432/app?sslmode=require"Questions
Common PostgreSQL questions
Which PostgreSQL version do you run?+
Layerbase Cloud tracks the latest stable PostgreSQL major version. The dashboard shows the exact version, and the supported versions list is visible in the create flow so you can pin a specific one.
Do you support extensions like pg_vector or PostGIS?+
Most popular extensions are available out of the box. The dashboard exposes the extension list per database; if something you need is missing, open an issue and we will look at adding it.
Pooled vs direct connection strings?+
Pooled is the right default for serverless and connection-heavy web apps; it multiplexes requests so you do not exhaust the server connection limit. Direct bypasses the pooler and is required for migrations, logical replication, and tools that hold a session.
What about backups?+
Free databases hibernate but persist their data; paid plans add scheduled snapshots with 7 or 30 day retention and one-click restore. Manual snapshots are available on demand.
Can I run PostgreSQL locally too?+
Yes. SpinDB is our open-source CLI for managing local Postgres versions, schemas, and seed data; Layerbase Desktop wraps SpinDB with a GUI for the same workflows.