BASE

SpacetimeDB

SpacetimeDB

Game engine / realtime backend · Free + paid

A database and server logic in one runtime for realtime applications: synchronizes client state through subscriptions.

Also known as: clockworklabs/spacetimedb; spacetimedb; clockworklabs-spacetimedb; multiplayer-database

Resource illustration: SpacetimeDB

Open resource ↗

What you can use for free

Development and production within the grant for one instance, without a Database Service.

Paid features and costs

Other production deployments and Database Service use require alternative rights; cloud hosting is paid for separately.

Access and limitations

Development and production within the grant for one instance, without a Database Service. Other production deployments and Database Service use require alternative rights; cloud hosting is paid for separately.

Use cases

  • Synchronize an application's realtime state
  • Connect client subscriptions and check synchronization between two clients

Example workflow

A possible workflow; this is not a report of hands-on testing.

Synchronize an application's realtime state.

Before you start

  • A game workflow and state model.
  • A client, runtime, and target platform.

Steps

  1. Describe tables and server logic for changing game state.
  2. Connect client subscriptions and check synchronization between two clients.
  3. Check the build and workflow with several users.

Check your result

  • State stays consistent during reconnects and concurrent actions.
  • Check export, load, and the server license terms.

Choosing SpacetimeDB

Synchronize an application's realtime state

Choose this when

  • Synchronize an application's realtime state
  • Connect client subscriptions and check synchronization between two clients

Requirements

  • Develop the schema/reducers, permissions, and client subscriptions; choose an appropriate SDK.

Things to consider

  • Costs and limits of free use: Other production deployments and Database Service use require alternative rights; cloud hosting is paid for separately.
  • Terms of use: Business Source License 1.1, snapshot 2.11.0: the production grant allows no more than one instance and no Database Service. The Change License is AGPL-3.0 with a linking exception; transition occurs on the earlier of 2031-09-15 (the Change Date) or the fourth anniversary of this specific version's first public distribution. SDKs have their own licenses.
  • The current quick start dev publishes the template to Maincloud and republishes on changes: it is not a completely local run. Cloud pricing and the production license are checked separately.

Frequently asked questions

What can you use for free in SpacetimeDB?

Development and production within the grant for one instance, without a Database Service.

What additional costs might arise with SpacetimeDB?

Other production deployments and Database Service use require alternative rights; cloud hosting is paid for separately.

What terms of use matter for SpacetimeDB?

Business Source License 1.1, snapshot 2.11.0: the production grant allows no more than one instance and no Database Service. The Change License is AGPL-3.0 with a linking exception; transition occurs on the earlier of 2031-09-15 (the Change Date) or the fourth anniversary of this specific version's first public distribution. SDKs have their own licenses.

How do you get started with SpacetimeDB?

Describe tables and server logic for changing game state. Connect client subscriptions and check synchronization between two clients. Check the build and workflow with several users.

Where does SpacetimeDB business logic run, and how do clients receive updates?

A module defines tables and reducers; the client calls reducers and subscribes to data, and changes are automatically sent to subscribers. Server modules support Rust, C#, TypeScript, and C++; state is held in memory, with durability provided by a disk commit log. Permission and authorization logic is written inside the module.

License

Business Source License 1.1, snapshot 2.11.0: the production grant allows no more than one instance and no Database Service. The Change License is AGPL-3.0 with a linking exception; transition occurs on the earlier of 2031-09-15 (the Change Date) or the fourth anniversary of this specific version's first public distribution. SDKs have their own licenses.

Custom license — this product's terms apply

The license name does not imply standard MIT or GPL rights. Its own text determines permission to modify, work commercially, distribute, and use outputs. Follow the use case stated for the product above and the primary source for its terms.

Technologies and topics

  • SpacetimeDB
  • game
  • Development

Sources

Other resources