Check out our all new pricing plans! Learn more.

Serverless. ACID + Relational. Built for speed.

App development at the speed of light

Code Editor
Editable lines are highlighted
SpacetimeDB Chat Demo
Online Users
Demo User (You)
Reducer Behavior
Validation: Messages must not be empty
Message field: sender, sent, text
Edit the reducer code to modify reducer behavior
AI + SpacetimeDB

Build Faster with AI

Using SpacetimeDB as the backend for your application gets you so much further because it handles all the persistence, logic, and state sync for you. Plus deployment is so easy that you can get up and running in minutes.

The true strength is the performance, try your hands on a realtime app!

1. Initialize SpacetimeDB Project
spacetime init --template quickstart-chat-typescript
2. Query your AI assistant
gemini "This folder is initialized with a basic spacetimedb project. Using this as a starting point build a full Discord clone with channels, threads, and real time messaging with React.js...."
Transactions at the speed of light

Millions of Transactions. Zero Bottlenecks.

SpacetimeDB processes transactions at a scale and speed that leaves conventional databases behind.

rustSpacetimeDB
jsSpacetimeDB
Node.js + SQLite
Bun + Postgres
Node.js + Postgres
Node.js + Supabase
Node.js + CockroachDB
Node.js + PlanetScale
Convex
025,00050,00075,000100,000125,000150,000
Transactions Per Second

A SERVER AND DATABASE IN ONE.

What is SpacetimeDB

You can think of SpacetimeDB as both a relational database and a server combined into one. Instead of deploying a web or game server that sits in between your clients and your database, clients connect directly to the database and execute your logic inside the database itself. No more Docker, Kubernetes, VMs, microservices or extensive ops infrastructure.

We built SpacetimeDB because we needed a reliable, transactional and super fast backend to run BitCraft. The entire backend, including all logic, real-time updates, and persistent state, is implemented as a SpacetimeDB module.

Learn More
Why use SpacetimeDB
Deploying to
Cloud Service Provider
  • 1
    Set up accounts/billing with a cloud provider
  • 2
    Figure out cloud services for your use case
  • 3
    Provision services and machines
  • 4
    Configure a persistence layer/database
  • 5
    Manage persistent state across deploys
  • 6
    Become a Docker + Kubernetes wizard
  • 7
    Configure networking policy
  • 8
    Choose a performant web server technology
  • 9
    Use an ORM or raw SQL to talk to your database
  • 10
    Develop a protocol for client/.server state sync
  • 11
    Hard-code persistence logic for in-memory state
  • 12
    Design a bespoke permissions system
  • 13
    And after all that you've still got atomicity, consistency, and isolation problems!
  • 1
    Set up accounts/billing with a cloud provider
  • 2
    Figure out cloud services for your use case
  • 3
    Provision services and machines
  • 4
    Configure a persistence layer/database
  • 5
    Manage persistent state across deploys
  • 6
    Become a Docker + Kubernetes wizard
  • 7
    Configure networking policy
  • 8
    Choose a performant web server technology
  • 9
    Use an ORM or raw SQL to talk to your database
  • 10
    Develop a protocol for client/.server state sync
  • 11
    Hard-code persistence logic for in-memory state
  • 12
    Design a bespoke permissions system
  • 13
    And after all that you've still got atomicity, consistency, and isolation problems!
Deploying to
SpacetimeDB
1
Write a SpacetimeDB module
2
Run spacetime publish to deploy
3
Your database is ready to use!
Built by developers. Proven in production.

Why developers choose SpacetimeDB

What people building with SpacetimeDB are saying.

Ok, SpacetimeDB is actually pretty cool! It gives you almost everything you need on the server side to build a multiplayer game. Think of it as Supabase but for building games.

You can write reducers to handle events on the server, and you can call them directly from the client or subscribe to their changes.

Shayan@ImSh4yy

SpacetimeDB collapses your entire backend into the database itself. No servers, no microservices, just Rust modules running at memory speed. Powers an entire MMORPG with zero traditional infrastructure.

Mudit Juneja@being_mudit

Spacetime is a cheat code.

Ray Fernando@RayFernando1337

The design of SpacetimeDB—or rather, its underlying mechanism—is so genius that I just can't stop grinning like an idiot, oh my.

とぴ。⎈🐧🦀@topi_banana

If you don't know yet, SpacetimeDB is here and it's going to warp the game dev space into a new big bang.

Think of it as whatever levelsio had to vibe code for his plane game to be a smooth multiplayer game, you can do it in an hour now.

Priyav K Kaneria@_diginova

Ok, SpacetimeDB is actually pretty cool! It gives you almost everything you need on the server side to build a multiplayer game. Think of it as Supabase but for building games.

You can write reducers to handle events on the server, and you can call them directly from the client or subscribe to their changes.

Shayan@ImSh4yy

SpacetimeDB collapses your entire backend into the database itself. No servers, no microservices, just Rust modules running at memory speed. Powers an entire MMORPG with zero traditional infrastructure.

Mudit Juneja@being_mudit

Spacetime is a cheat code.

Ray Fernando@RayFernando1337

The design of SpacetimeDB—or rather, its underlying mechanism—is so genius that I just can't stop grinning like an idiot, oh my.

とぴ。⎈🐧🦀@topi_banana

If you don't know yet, SpacetimeDB is here and it's going to warp the game dev space into a new big bang.

Think of it as whatever levelsio had to vibe code for his plane game to be a smooth multiplayer game, you can do it in an hour now.

Priyav K Kaneria@_diginova

SpacetimeDB — a database and server in one. Clients connect directly, run logic inside the DB. No Docker, no K8s, no ops bloat.

Used to power the entire backend of BitCraft, including real-time multiplayer.

Alvar Laigna@alvarlaigna

It's time! I'm using SpacetimeDB to backend my game, Vaerfel idle. It's an original idle mmorpg. We're almost at a point to where I'm comfortable asking for fundraising money for professional hooman-made art assets, etc.. Let me know what you think!

Marty McGlovin@MartyMcGlovin

I did develop and operate a successful web3 marketplace with the full stack.. kubernetes, postgres, elastic search, risingwave, redis etc... imho for game dev go with @spacetime_db. Currently building an @PlayArtifact clone in godot and spacetimedb and its fun and painless

Code Crusader@CrusaderCode

Unironically you can achieve this with a single rocket API and spacetimedb behind a loadbalancer.

wleddzig@wleddzig

We started concepting the game in July, and shipped it to the App Store before Halloween. 95% of the 3 month development time was spent developing the front-end client.

The backend was completely plug-and-play. It's genuinely shocking how easy SpacetimeDB made it to create a persistent open world.

Ryan Murphy@LightfoxGames

SpacetimeDB — a database and server in one. Clients connect directly, run logic inside the DB. No Docker, no K8s, no ops bloat.

Used to power the entire backend of BitCraft, including real-time multiplayer.

Alvar Laigna@alvarlaigna

It's time! I'm using SpacetimeDB to backend my game, Vaerfel idle. It's an original idle mmorpg. We're almost at a point to where I'm comfortable asking for fundraising money for professional hooman-made art assets, etc.. Let me know what you think!

Marty McGlovin@MartyMcGlovin

I did develop and operate a successful web3 marketplace with the full stack.. kubernetes, postgres, elastic search, risingwave, redis etc... imho for game dev go with @spacetime_db. Currently building an @PlayArtifact clone in godot and spacetimedb and its fun and painless

Code Crusader@CrusaderCode

Unironically you can achieve this with a single rocket API and spacetimedb behind a loadbalancer.

wleddzig@wleddzig

We started concepting the game in July, and shipped it to the App Store before Halloween. 95% of the 3 month development time was spent developing the front-end client.

The backend was completely plug-and-play. It's genuinely shocking how easy SpacetimeDB made it to create a persistent open world.

Ryan Murphy@LightfoxGames
Modern Database Environment
Modern database environment
SpacetimeDB takes stored procedures to the next level, allowing you to deploy your whole app directly into the database for the best performance and developer experience.
documentation

Old ideas. Brand new paradigm.

SpacetimeDB is a developer-first platform that builds on concepts from computer science which date back to the 1960s. We're bridging the gap between theoretical foundations and developer experience to make development delightful again.
  • Serverless

    Serverless

    SpacetimeDB is a serverless technology. That means you don't have to deal with machines, VMs, containers, or deployments. All you do is upload your module and we handle scaling, replicas, scheduling, data migration, and more.
  • ACID + Relational

    ACID + Relational

    SpacetimeDB is a genuine, general purpose relational database with ACID transactions. That means it's just as powerful as your old relational database and better performance is just an index declaration away. Imagine being able to query every single piece of live game data at run-time.
  • Built for speed

    Built for speed

    SpacetimeDB wasn't built in a vacuum. It's the system that powers our own large-scale MMORPG BitCraft. We designed it specifically for the performance requirements of games. That means extremely low latency (~100 us/Tx) and extremely high throughput (~100,000 Tx/s).
Supporters

Some of our investors