Develop easier. Build faster. Scale quicker.
SurrealDB is an end-to-end cloud native database for web, mobile, serverless, jamstack, backend, and traditional applications. SurrealDB reduces the development time of modern applications by simplifying your database and API stack, removing the need for most server-side components, allowing you to build secure, performant apps quicker and cheaper. SurrealDB acts as both a database and a modern, realtime, collaborative API backend layer. SurrealDB can run as a single server or in a highly-available, highly-scalable distributed mode - with support for SQL querying from client devices, GraphQL, ACID transactions, WebSocket connections, structured and unstructured data, graph querying, full-text indexing, geospatial querying, and row-by-row permissions-based access.
SurrealDB can run as a single-instance, or as a highly-available, highly-scalable cluster. If you don't want to manage your own database, we can run SurrealDB for you, in the Cloud, with just a couple of clicks. To get started with SurrealDB Cloud see our website.
Getting started with SurrealDB is as easy as starting up the SurrealDB database server, choosing your platform, and integrating its SDK into your code. You can easily get started with your platform of choice by reading one of our tutorials.
Client side apps
- Getting started with Ember.js
- Getting started with React.js
- Getting started with Angular.js (coming soon)
- Getting started with Vue.js (coming soon)
- Getting started with Apollo GraphQL (coming soon)
Server side code
- Getting started with Deno
- Getting started with Golang
- Getting started with Python
- Getting started with Node.js
- Getting started with Swift (coming soon)
- Getting started with Rust (coming soon)
- Getting started with Ruby (coming soon)
- Getting started with PHP (coming soon)
For guidance on installation, development, deployment, and administration, see our documentation.
SurrealDB is designed to be simple to install and simple to run - using just one command from your terminal. In addition to traditional installation, SurrealDB can be installed and run with HomeBrew, Docker, or using any other container orchestration tool such as Docker Compose, Docker Swarm, Rancher, or in Kubernetes.
The quickest way to get going with SurrealDB on macOS is to use Homebrew. This will install both the command-line tools, and the SurrealDB server as a single executable. If you don't use Homebrew, follow the instructions for Linux below to install SurrealDB.
brew install surrealdb/tap/surreal
The easiest and preferred way to get going with SurrealDB on Unix operating systems is to install and use the SurrealDB command-line tool. Run the following command in your terminal and follow the on-screen instructions.
curl -L https://install.surrealdb.com | sh
The easiest and preferred way to get going with SurrealDB on Windows is to install and use the SurrealDB command-line tool. Run the following command in your terminal and follow the on-screen instructions.
iwr https://ps1.surrealdb.com -useb | iex
Docker can be used to manage and run SurrealDB database instances without the need to install any command-line tools. The SurrealDB docker container contains the full command-line tools for importing and exporting data from a running server, or for running a server itself.
docker run --rm -p 8000:8000 surrealdb/surrealdb:latest start
Join our growing community around the world, for help, ideas, and discussions regarding SurrealDB.
- View our official Blog
- Follow us on Twitter
- Connect with us on LinkedIn
- Join our Dev community
- Chat live with us on Discord
- Questions tagged #surrealdb on Stack Overflow
We would for you to get involved with SurrealDB development! If you wish to help, you can learn more about how you can contribute to this project in the contribution guide.
For security issues, kindly email us at [email protected] instead of posting a public issue on GitHub.
Source code for SurrealDB is variously licensed under a number of different licenses. A copy of each license can be found in each repository.
- Libraries and SDKs, each located in its own distinct repository, are released under either the Apache License 2.0 or MIT License.
- Certain core database components, each located in its own distinct repository, are released under the Apache License 2.0.
- Core database code for SurrealDB, located in this repository, is released under the Business Source License 1.1.
For more information, see the licensing information.