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
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
RavenDB
Databases
ACID Document Database
OSSvs MongoDB Atlas★ 4k
ArangoDB
Databases
🥑 ArangoDB is a native multi-model database with flexible data models for documents, grap
OSSvs Azure Cosmos DB★ 14k
MongoDB
Databases
The MongoDB Database
OSSvs Amazon DynamoDB★ 29k
Apache CouchDB
Databases
Seamless multi-primary syncing database with an intuitive HTTP/JSON API, designed for reli
Apache-2.0vs Amazon DynamoDB★ 7k
ScyllaDB
Databases
NoSQL data store using the Seastar framework, compatible with Apache Cassandra and Amazon
OSSvs Amazon DynamoDB★ 16k
OrientDB
Databases
OrientDB is the most versatile DBMS supporting Graph, Document, Reactive, Full-Text and Ge
Apache-2.0vs Amazon Neptune★ 5k
SaaS alternatives to SurrealDB
See all
MongoDB Atlas
Databases
Managed MongoDB service across AWS, Azure and Google Cloud
SaaS
Azure Cosmos DB
Databases
Microsoft globally distributed multi-model NoSQL database
SaaS
Couchbase Capella
Databases
Managed document database service from Couchbase with SQL++ queries
SaaS
Google Cloud Firestore
Databases
Serverless NoSQL document database with real-time sync for web and mobile apps
SaaS
Amazon DocumentDB
Databases
Managed document database on AWS with a MongoDB-compatible API
SaaS
MarkLogic
Databases
Multi-model database and data hub platform for integrating and searching enterprise data
SaaS

Amazon DynamoDB
Cloudflare D1