surrealdb
A scalable, distributed, collaborative, document-graph database, for the realtime web
What is surrealdb?
A scalable, distributed, collaborative, document-graph database, for the realtime web
Overview of surrealdb
What it is
SurrealDB is a multi-model database built in Rust. It combines document, graph, relational, time-series, geospatial, and key-value data types with full-text, vector, and hybrid search. It also provides real-time and event-driven capabilities. SurrealDB can function as a backend-as-a-service with built-in end-user authentication. It runs as a single Rust binary and can be embedded (in-app), run in the browser via WebAssembly, deployed at the edge, self-hosted as a single node, or in a distributed cluster in the cloud.
Key features
- Reduces development time by simplifying the database and API stack, removing the need for most server-side components.
- Native multi-model support for document, graph, relational (enforcing schema and schemaless), time-series, geospatial, and retrieval (full-text, vector, hybrid) through SurrealQL.
- Real-time collaborative API backend service that functions as both a database and an API backend.
- Supports multiple querying languages: SQL, GraphQL, ISO GQL, PostgreSQL and MySQL SQL dialects over their wire protocols, ACID transactions, WebSocket connections, and geospatial querying.
- Granular row-level permissions-based access control.
Use cases
SurrealDB is used for data-intensive systems such as applications requiring multiple data types, data layers for AI agents, knowledge graphs, real-time applications (e.g., recommendation engines, fraud detection systems), and embedded/edge systems.
Getting started
Install SurrealDB on macOS using Homebrew: bash brew install surrealdb/tap/surreal On Linux: bash curl --proto '=https' --tlsv1.2 -sSf https://install.surrealdb.com | sh On Windows: ps1 iwr https://windows.surrealdb.com -useb | iex Or run with Docker: bash docker run --rm --pull always --name surrealdb -p 8000:8000 surrealdb/surrealdb:latest start For a development server in memory: bash docker run --rm --pull always --name surrealdb -p 8000:8000 surrealdb/surrealdb:latest start --log info --user root --pass root memory
License and pricing
The license is not stated in the repository metadata (NOASSERTION). The project is listed as open source, so it is free to use.
Based on the project's public README and repository metadata.