ONE RELEASE, THREE FOUNDATIONS
SurrealDB 4, SurrealDB Earth and SurrealDS. Three releases for every agent and user you need: a database that speaks Postgres and MySQL, starts on its first query on Earth, and, with the default two-zone policy, acknowledges a write only once it is stored on disks in both zones, with the scale to grow when it needs to.
SurrealDB 4
More than 240 fixes that no 3.x release contains, including more than 90 community bug reports that 3.x did not fix, with faster indexing and a rebuilt query core.
240+ fixes
SurrealDB Earth
Serverless SurrealDB on Cloudflare, with thousands of isolated instances. Earth handles 10+ billion peak rows per second, fully transactional.
10+ billion
SurrealDS
Distributed storage on object storage, in SurrealDB Cloud multi-node clusters and Enterprise Edition. With the default two-zone policy, writes are acknowledged only after being stored on disks in both zones.
Two zones
RELIABILITY
Compute is replaceable. Data stays durable. SurrealDS copies every write across failure domains before it is acknowledged, and a replacement node recovers from the surviving copy and object storage. SurrealDB 4 is built around stability, with more than 240 fixes that no 3.x release contains.
240+ fixes
90+ bug reports
4,500+ test files
Two zones
PERFORMANCE
Faster at every size. A rebuilt query core in SurrealDB 4, with faster storage engines, indexes and graph traversals.
7.4x
27 ms to 1.1 ms
24.5 to 9.4 min
COMPATIBILITY
Speaks Postgres and MySQL. PostgreSQL and MySQL clients, and code written for the MongoDB driver, reach the same records as SurrealQL, through one query planner.
PostgreSQL
SELECT p.name,
pr.name AS product
FROM person p
JOIN bought b ON b.in = p.id
JOIN product pr ON pr.id = b.out
WHERE p.age > 30;
MySQL
SELECT pr.name,
COUNT(*) AS buyers
FROM bought b
JOIN product pr ON pr.id = b.out
GROUP BY pr.name
ORDER BY buyers DESC;
MongoDB
import { MongoClient }
from "mql.js";
const client =
new MongoClient(SURREALDB_URL);
const people = client
.db("shop")
.collection("person");
await people
.find({ age: { $gt: 30 } })
.toArray();
SCALE
From zero to massive. Serverless databases that scale to zero when idle, thousands of isolated ones across Cloudflare, and clusters over very large datasets, all on SurrealDB.
Scales to zero when idle
Thousands of instances
One query, many Workers
Compute apart from storage
WHAT IT UNLOCKS
Data infrastructure for AI agents at any scale. One agent, one database. Thousands of agents, thousands of databases. Large platforms, shared clusters. The data model stays the same at every step.
One agent
Thousands of agents
Large platforms
START ON SURREALDB 4
Run it today, wherever you build. Embedded in an application, on a laptop, in the browser, as a server or in SurrealDB Cloud, and as an upgrade from 3.x with every 3.x record still readable.
Your questions,answered
THE PLATFORM
Everything an application and its agents know. Five surfaces, one engine.
Database
Document, graph, vector, time-series and relational in one engine.

Agent Memory
What an agent learns, with its source and its time, in the same engine.

Cloud
Dedicated clusters by region, or serverless on SurrealDB Earth.

Studio
Query, explore and design the schema from the browser.

MCP
Every model that speaks MCP reaches the database and the memory directly.

IN PRODUCTION
Trusted at scale. Samsung, Nvidia, Verizon, Tencent, and Walmart run on SurrealDB.
14,000+
Developers building on SurrealDB Cloud
4M+
Developers building on SurrealDB worldwide
FROM THE TEAMS
SurrealDB gives us a foundation where we can unify semantic search, knowledge graphs, and AI-driven decision making without stitching together multiple systems. Collapsing responsibility into SurrealDB has become our default engineering posture.
VP of Engineering, Later
GET STARTED