7,363 open-source and SaaS tools, with GitHub stats refreshed every day.

SpacetimeDB

Open source

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.

spacetimedb.com
SpacetimeDB homepage screenshot
GitHub stars
25k
Last commit
today
Repository age
3 years
Version
v2.10.2
Licence
Custom
Self-hosted
Yes

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

SaaS alternatives to SpacetimeDB

See all