Loading page
Loading page

Database tools · Firebase alternative
A relational database that runs your server logic inside it, so clients connect straight to the database.
SpacetimeDB is a relational database that is also a server. You write your schema and logic as a module. The database compiles it and runs it. Clients connect directly to the database, call functions called reducers, and subscribe to tables. When data changes, SpacetimeDB pushes the update to every client that subscribed.
This means you can skip a separate web or game server in the middle. The README says it is built for speed and low latency, with ACID guarantees.
SpacetimeDB suits developers of multiplayer games, chat and collaborative apps. It also suits web developers who want a reactive backend written in TypeScript, Rust, C# or C++.
Running your own server keeps your game or app data in your own service, with no usage-based bill from a hosted backend. You choose when to upgrade.
Check the license first. It is the Business Source License, which limits some uses until the code converts to AGPL. You look after backups of the data volume and updates. Data lives in memory while hot, so give the server enough RAM.
Containers: clockworklabs/spacetime:v2.6.1
Step 1
Choose the Starter plan. It costs $20 a month and runs up to 3 apps.
Step 2
Open App templates in the dashboard, choose SpacetimeDB, and click Deploy. We set up the containers, secrets and domain.
Step 3
Wait a few minutes for the first deploy, then open your new URL and finish the SpacetimeDB setup screen.