About this page: a concept mockup of the Developer Platform website design language from Design Atlas by H190K, shown on Basalt, a fictional brand (every name, figure and image is a placeholder). For developers and AI agents: design spec (JSON) https://designatlas.h190k.com/designs/developer-platform.json, design brief (Markdown) https://designatlas.h190k.com/designs/developer-platform.md, reference guide https://designatlas.h190k.com/agents.md.

v3.0Branching for every pull request is live

serverless database · 38 edge regions

The database that runs where your users are.

Basalt replicates your data to 38 edge regions and gives you a typed API in every language. Single-digit millisecond reads, strongly consistent writes, nothing to provision.

Start building, free
$ npm i @basalt/client
p50 read
4.2ms
uptime, 90d
99.999%
queries / mo
2.1T
app/orders.tstyped · 0 errors
1import { basalt } from '@basalt/client'
2import type { Order } from './schema'
3
4const db = basalt({ region: 'auto' })
5
6export async function recentOrders(customerId: string) {
7  // Reads go to the nearest replica (p50 4 ms)
8  const orders = await db
9    .from<Order>('orders')
10    .where({ customerId, status: 'paid' })
11    .orderBy('createdAt', 'desc')
12    .limit(20)
13
14  return orders // Order[], fully typed
15}

Trusted by 41,000 teams shipping at the edge

  • northwind/labs
  • ACRONYM
  • Pallet
  • tessera
  • Quillon
  • hyperloop.fm
  • Driftwood
  • OKTANE

01 / Architecture

Follow a query around the world in 4 ms.

Reads stop at the closest replica. Writes go to a single primary and replicate out through a change stream that also powers webhooks and realtime subscriptions.

REGION · eu-central (fra1)TLSauth ✓read · 3.8mswrite · 17msWALreplicate · 12ms lagClientbrowser · servermobile · CLIEdge PoPnearest of 38anycast · 0.6msQuery routerplans + routesRLS policiescache hit · 0.8msRead replicaregional · NVMePrimaryRaft · 3 zonesChange streamordered · durableSubscriberswebhooks · realtime123456
  1. 1–2 Anycast lands the request on the nearest edge; TLS and token checks finish there.
  2. 3 The router plans the query, applies row-level policies and answers from cache when it can.
  3. 4 Reads go to the regional replica. Typical lag behind the primary is 12 ms.
  4. 5–6 Writes commit on a Raft quorum across three zones, then stream out to every region.

02 / Platform

Everything a database should do, nothing you have to babysit.

Branch per pull request

Every preview deploy gets an isolated copy-on-write branch of production data in under a second.

Schemas as types

Your schema compiles to types for TypeScript, Python, Go and Rust. Break a column, break the build.

Point-in-time restore

Rewind any branch to any second in the last 30 days. No snapshots to schedule.

Vector search

Store embeddings next to rows and query them with the same filters and permissions.

Row-level security

Policies written in SQL run at the edge, so tokens never reach the primary.

Realtime streams

Subscribe to any query. Changes arrive over WebSockets within 50 ms worldwide.

03 / API reference

A small, boring, versioned HTTP API.

Every client library is a thin, typed wrapper over the same eight endpoints. Use them from anywhere that can make an HTTPS request.

POST/v1/db/{db}/query

Run a query

Executes one parameterised statement. Reads are served by the nearest replica unless consistency is "strong". Writes are always routed to the primary.

Body parameters
ParameterTypeDescription
sqlrequiredstringParameterised SQL. Up to 64 KB.
paramsarrayPositional values for $1, $2 …
consistency"nearest" | "strong"Read from the nearest replica or the primary. Default nearest.
branchstringBranch to query. Defaults to main.
timeout_msintegerAbort after this many milliseconds. Max 30000.
cURLTypeScriptPythonRequest
curl -X POST api.basalt.example/v1/db/shop/query \
  -H "Authorization: Bearer $BASALT_KEY" \
  -d '{ "sql": "select id, total from orders limit 2" }'
200 OK4.1 ms · fra1
{
  "rows": [
    { "id": "ord_9fK2", "total": 4200 },
    { "id": "ord_9fK3", "total": 1850 }
  ],
  "region": "fra1",
  "replica_lag_ms": 12,
  "timing": { "total_ms": 4.1, "cache": "miss" }
}

04 / Edge network

38 regions. Every user is close to one.

sfo1iad1gru1lhr1fra1jnb1bom1sin1nrt1syd1

RegionTraffic shareLive · updated 14:02 UTC

Regionp50p9924h
lhr13.6ms10ms
fra13.8ms11ms
iad13.9ms11ms
sfo14.0ms12ms
nrt14.2ms12ms
bom14.4ms13ms
sin14.6ms14ms
syd15.1ms15ms
gru15.2ms16ms
jnb16.1ms19ms

05 / Pricing

Pay for rows, not for servers.

Start free. On Pro you pay a flat $19 plus what you use beyond the included allowance, billed per million rows.

Estimated Pro bill

  • Base plan$19.00
  • Reads over 25B $1.00 / B$15.00
  • Writes over 50M $1.00 / M$70.00
  • Storage over 50 GB $0.25 / GB$7.50

Total / month$111.50

Compared with a provisioned cluster of the same peak: $1,240 / month.

Hobby

$0forever

  • 500M row reads / mo
  • 10M row writes / mo
  • 5 GB storage
  • 3 regions
  • Community support
Start free

ProMost teams

$19per month + usage

  • 25B row reads included
  • 50M row writes included
  • 50 GB storage
  • All 38 regions
  • Branching and PITR (30 days)
Upgrade to Pro

Enterprise

Customannual commit

  • Dedicated primaries
  • Private networking
  • SSO, SCIM and audit log
  • 99.999% SLA
  • 24/7 support with 15-min response
Contact sales

06 / Reliability

Boringly up.

All systems operational· checked 32 s ago

Query API99.999%
Edge network99.998%
Replication99.997%
Dashboard99.990%

90 days agoToday

  • SOC 2Type II
  • ISO27001
  • GDPREU data residency
  • HIPAABAA available
  • RPO0 s · RTO 30 s

07 / Changelog

Shipped this month.

Full changelog · RSS →
  1. v3.0.0
    Major

    Branching for every pull request

    Preview deploys now get an isolated branch automatically. Branches are copy-on-write, so they cost nothing until they diverge.

    - basalt branch create preview-482
    + # nothing to do: branches follow your git provider
    
  2. v2.14.0
    Feature

    Vector indexes are generally available

    HNSW indexes with filtered search, up to 4,096 dimensions.

  3. v2.13.2
    Fix

    Faster cold starts in sin1 and syd1

    Connection set-up from Asia Pacific edges dropped from 38 ms to 9 ms.

  4. v2.13.0
    Feature

    Rust client 1.0

    Async-first, zero-copy row decoding and compile-time checked queries.

“We deleted our read-replica fleet, our cache layer and two on-call rotations. p95 for checkout went from 180 ms to 22 ms.”
IRInes Rautio · Staff Engineer, Pallet-14,212 lines
“Branch-per-PR changed how we review migrations. Reviewers click the preview and the data is already there.”
DODara Okonkwo · CTO, tessera+1 workflow

From zero to a global database in one command.

$ npx basalt@latest init