Everything your AI agent needs

Let AI ship the whole
backend, glue-free.

SpacetimeDB is a rock-solid foundation for AI agents to build on: database, server logic, auth, deployment, and real-time sync in one place. LLMs go much further with SpacetimeDB because there's no glue to wire up, no extra services to misconfigure, and one type system across your client, server, and database. Your agent gets it right the first time.

Select your preferred LLM, and try building a full Discord clone with AI.

1Install SpacetimeDB
curl -sSf https://install.spacetimedb.com | sh
2Initialize Your Project
spacetime dev --template chat-react-ts
3Tell the LLM to Build It For You
claude "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"
Programmable Everything

Make an app
in realtime

SpacetimeDB automatically publishes updates to your clients so they're always in sync. Your server code is embedded into the database to give you extreme flexibility and type safety.

Select your preferred language and try editing the server code to see the behavior of this app change on the fly!

Code Editor
Editable lines are highlighted
STDB Chat Demo
Online Users
Demo User (You)
All-in-one

One system replaces your entire stack

No web server, ORM, cache, networking, or sync layer to stand up. SpacetimeDB is all of it, so your agent has one thing to build against instead of a dozen.

Node.js
ORM
PostgreSQL
Redis
WebSockets
Networking
Auth
Docker + K8s
Client sync
SpacetimeDBEverything built in
Transactions at the speed of light

Millions of Transactions.
Zero
Bottlenecks.

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

SpacetimeDBjs
SpacetimeDBrust
Node.js + SQLite
Bun + Postgres
Node.js + Supabase
Node.js + Postgres
Node.js + PlanetScale (HA)
Node.js + PlanetScale (SN)
Convex
Node.js + CockroachDB
Transactions Per Second
050,000100,000150,000200,000250,000300,000
The Zen of SpacetimeDB

Five guarantees your agent can build on

Everything is a Table

Your entire application state lives in tables.

Everything is Persistent

Persisted by default, including the full history of every row.

Everything is Real-Time

Subscribed data stays synced to your clients automatically.

Everything is Transactional

Every reducer is atomic. It fully completes, or it does not run.

Everything is Programmable

Real code running inside the database, in Rust, C#, or TypeScript.

Modern database environment illustration

Your whole backend, one system

SpacetimeDB is a general purpose relational database with strongly serializable ACID transactions, that takes stored procedures to the next level. You get to deploy your server logic directly into the database for 100x-1000x better performance and a dead-simple developer experience, so whatever your agent builds is correct, not subtly broken.

Documentation
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!
SpacetimeDB Integrations

SpacetimeDB works with your favorite frameworks

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

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.
Supporters

Some of our investors

Skycatcher
Firstminute Capital
1Up Ventures
Supernode Global
David BaszuckiFounder of Roblox
David HelgasonFounder of Unity
Hilmar PéturssonCEO of CCP Games
Ed FriesEx VP Publishing Microsoft