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
- Built with
- Rust
- Tags
- database
- realtime
- rust
- game-development
- relational
- backend
- multiplayer
- serverless
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.
- Is SpacetimeDB actively maintained?
- Yes. The most recent commit to SpacetimeDB was on 2 October 2026, and the latest release is v2.10.2, published on 29 September 2026. The project has 25k stars on GitHub.
Open-source alternatives to SpacetimeDB
See all
SurrealDB
Databases
A scalable, distributed, collaborative, document-graph database, for the realtime web
OSSvs MongoDB Atlas★ 33k
Neon
Databases
Neon: Serverless Postgres. We separated storage and compute to offer autoscaling, code-lik
Apache-2.0vs Amazon Aurora★ 23k
InfluxDB
Databases
Scalable datastore for metrics, events, and real-time analytics
Apache-2.0vs KX kdb+★ 32k
PostgreSQL
Databases
Mirror of the official PostgreSQL GIT repository. Note that this is just a *mirror* - we d
OSSvs Oracle Database★ 22k
libSQL
Databases
libSQL is a fork of SQLite that is both Open Source, and Open Contributions.
MITvs Cloudflare D1★ 17k
GreptimeDB
Databases
GreptimeDB open source: metrics, logs, and traces share one table model on a columnar engi
Apache-2.0vs Elastic★ 6.7k
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

