SurrealDB

Open source

A multi-model database written in Rust that combines document, graph, relational, time-series and vector data with real-time features, from embedded use to distributed clusters.

surrealdb.com
SurrealDB homepage screenshot
GitHub stars
33k
Last 30 days
+187(+1%)
Last commit
4 days ago
Repository age
4 years
Version
v4.0.1
Licence
Custom
Self-hosted
Yes

About SurrealDB

SurrealDB is a Rust-based multi-model database that brings several data models into one engine: key-value, document, graph, relational, time-series and geospatial data. Search and retrieval options include full-text, vector and hybrid, and it adds real-time and event-driven capabilities, queried through its SQL-like language, SurrealQL.

Because it supports end-user authentication, SurrealDB can also act as a backend-as-a-service, reducing the amount of server-side code an app needs. It ships as a single Rust binary that can run embedded inside an application, in the browser via WebAssembly, at the edge, as a self-hosted single node, or as a distributed cluster in the cloud. Typical workloads include data-intensive systems that need several data types, storage for AI agents, knowledge graphs, live applications such as recommenders and fraud detection, and embedded or edge deployments.

The repository license is listed as 'Other' on GitHub, so confirm the terms before commercial use. SurrealDB also offers cloud-hosted database service, and topics tag it as a serverless, realtime database for the web.

Key features

  • Document, graph and relational models in one engine
  • Full-text, vector and hybrid search
  • Real-time and event-driven queries
  • Built-in user authentication
  • Single binary: embedded, edge or cluster
  • SurrealQL SQL-like query language

Good fit for

  • Backend database for real-time apps
  • Knowledge graphs and AI agent data layers
  • Embedded or edge data storage
Built with
Rust tools
Tags
database
multi-model
graph-database
document-database
rust
realtime
vector-search
backend-as-a-service
sql

SurrealDB: questions and answers

What is SurrealDB used for?
SurrealDB is a multi-model database written in Rust that combines document, graph, relational, time-series and vector data with real-time features, from embedded use to distributed clusters. It is a good fit for backend database for real-time apps, knowledge graphs and AI agent data layers, and embedded or edge data storage.
Is SurrealDB open source?
Yes. SurrealDB is open source under a custom licence. Its source code is on GitHub at surrealdb/surrealdb and is written mainly in Rust.
Is SurrealDB free?
Yes. SurrealDB is open source, so the software itself is free to use under the terms of its own licence. A managed cloud version is also available.
Can I self-host SurrealDB?
Yes. SurrealDB can be self-hosted on your own server or infrastructure.
What is SurrealDB an alternative to?
SurrealDB is an open-source alternative to MongoDB Atlas, Azure Cosmos DB, Couchbase Capella and Google Cloud Firestore. Other open-source alternatives to MongoDB Atlas include RavenDB, ArangoDB and MongoDB.
Is SurrealDB actively maintained?
Yes. The most recent commit to SurrealDB was on 9 November 2026, and the latest release is v4.0.1, published on 9 November 2026. The project has 33k stars on GitHub, with 187 added in the last 30 days.

Open-source alternatives to SurrealDB

See all

SaaS alternatives to SurrealDB

See all