About SpacetimeDB
SpacetimeDB is a relational database that doubles as an application server. Instead of deploying a separate web or game server between clients and a database, you describe your schema and business rules in a module, upload it into the database, and let clients connect to it directly. Modules can be written in Rust, C#, TypeScript or C++.
It compiles the module, hosts it inside the database engine and pushes state changes to connected clients in real time. Permission and authorization logic live in the module just as they would in a normal server, so an entire application can be written in a single language and deployed as one binary. The project argues this removes the need for a separate web server, containers, orchestration and a caching layer. Its topics highlight game development, MMORPG servers and web development.
SpacetimeDB is written in Rust, and its license is listed as 'Other' on GitHub, so review the terms before building commercial products on it. Its creators, Clockwork Labs, offer documentation and a website at spacetimedb.com. It suits real-time apps and multiplayer games where low latency and simple architecture matter.
Key features
- Relational database that runs app logic
- Modules in Rust, C#, TypeScript or C++
- Automatic real-time state sync to clients
- Permissions defined inside modules
- Deploys as a single binary
- Direct client connections without a middle server
Good fit for
- Multiplayer game backends
- Real-time collaborative apps
- Simplifying backend architecture
SpacetimeDB: questions and answers
- What is SpacetimeDB used for?
- SpacetimeDB is a relational database that doubles as an application server: you upload server logic as modules, and clients connect directly with state synced in real time. It is a good fit for multiplayer game backends, real-time collaborative apps and simplifying backend architecture.
- Is SpacetimeDB open source?
- Yes. SpacetimeDB is open source under a custom licence. Its source code is on GitHub at clockworklabs/SpacetimeDB and is written mainly in Rust.
- Is SpacetimeDB free?
- Yes. SpacetimeDB is open source, so the software itself is free to use under the terms of its own licence.
- Can I self-host SpacetimeDB?
- Yes. SpacetimeDB can be self-hosted on your own server or infrastructure.
- What is SpacetimeDB an alternative to?
- SpacetimeDB is an open-source alternative to PlayFab, Photon Engine, AccelByte and Unity Gaming Services. Other open-source alternatives to PlayFab include Nakama, Supabase and Appwrite.
- Is SpacetimeDB actively maintained?
- Yes. The most recent commit to SpacetimeDB was on 12 November 2026, and the latest release is v2.15.0, published on 10 November 2026. The project has 26k stars on GitHub, with 263 added in the last 30 days.
Open-source alternatives to SpacetimeDB
See all
Nakama
Games & Emulation
Scalable open-source game backend server: multiplayer, matchmaking, leaderboards, chat, an
Apache-2.0vs AccelByte★ 14k
Supabase
Backend as a Service
The Postgres development platform. Supabase gives you a dedicated Postgres database to bui
Apache-2.0vs Firebase★ 115k
Appwrite
Backend as a Service
Appwrite is an open-source developer platform with Auth, Databases, Storage, Functions, Me
BSD-3-Clausevs Firebase★ 58k
PocketBase
Backend as a Service
Open Source realtime backend in 1 file
MITvs Firebase★ 62k
Parse Server
Backend as a Service
Parse Server for Node.js / Express
Apache-2.0vs Firebase★ 21k
SurrealDB
Databases
A scalable, distributed, collaborative, document-graph database, for the realtime web
OSSvs MongoDB Atlas★ 33k
SaaS alternatives to SpacetimeDB
See all
PlayFab
Backend as a Service
Microsoft game backend with player accounts, economy, leaderboards and live ops
SaaS
Photon Engine
Backend as a Service
Multiplayer game networking and realtime backend for Unity and other engines
SaaS
AccelByte
Backend as a Service
Game backend services for accounts, matchmaking, economy and live operations
SaaS
Unity Gaming Services
Backend as a Service
Unity cloud services for game authentication, cloud save, multiplayer and analytics
SaaSBeamable
Backend as a Service
Live game backend platform for player accounts, inventory, leaderboards and live ops in Unity
SaaS
LootLocker
Backend as a Service
Game backend service for player data, inventories, leaderboards and progression
SaaS

