Developer platform

Serverless Postgres that costs nothing while idle.

Postgres-compatible SQL databases that start in a minute, scale on their own and are billed only for the work they do. Query them from Edge Functions, psql or any Postgres library.

// lyrcloud.json: "databases": { "DB": "shop-db" }
export default {
  async fetch(request, env) {
    const { results } = await env.DB
      .prepare('SELECT id, name, price FROM products WHERE price < $1')
      .bind(50)
      .all();
    return Response.json(results);
  },
};

// $ lyrcloud db create shop-db
// $ lyrcloud db query shop-db "select count(*) from products"
โ› SQL Databases

What you get

Scales to zero

No instance sizes, no servers to patch, no idle bill. Each database grows with your traffic and costs nothing while nobody uses it.

Postgres-compatible

Standard SQL with psql and the Postgres drivers you already use. Built on Amazon Aurora DSQL.

Built into Edge Functions

Add "databases": { "DB": "my-db" } to lyrcloud.json and query env.DB: no passwords to store.

SQL console

Run queries and browse results in the dashboard, or with lyrcloud db query.

Safe connections

psql passwords are signed tokens that expire within an hour, so nothing long-lived can leak.

Isolated and durable

Every database is its own cluster, encrypted and replicated across three availability zones.

Included in every plan

Launch: 1 database, 0.5 GB and 250k DPU a month. Scale: 5 databases, 5 GB and 3M DPU. Past that, $14 per million DPU and $0.60 per GB-month from Lyrcloud credit.

Works with the rest of Lyrcloud

๐ŸŒ

Domains

Register or transfer a domain with free WHOIS privacy and Lyrcloud DNS, paid by card or with Lyrpay.

Learn more
โšก

Global CDN

Response caching, static files and whole static sites for your edge functions, with cache headers you control and purges from the CLI.

Learn more
๐Ÿ”’

Application Security

Rate limits, IP rules, a firewall for common attacks, bot checks and secure headers for your edge functions, set in lyrcloud.json and enforced before your code runs.

Learn more

Try SQL Databases free.

Create a free account in under a minute. No credit card required.