SpacetimeDB

Databases & Data

Database that runs application logic inside the server.

Latest v2.14.1 · by Clockwork LabsWritten in RustWebsiteclockworklabs/SpacetimeDBRSS

Release activity

Release activity — 13 releases across 13 days since Aug 5, 2026. Each cell is one day; darker means more releases that day. Nothing is recorded before Aug 5, 2026. Older weeks are hidden at this screen width.
AugSepOctNov
SundayNo releases on Aug 9, 2026No releases on Aug 16, 2026No releases on Aug 23, 2026No releases on Aug 30, 2026No releases on Sep 6, 2026No releases on Sep 13, 2026No releases on Sep 20, 2026No releases on Sep 27, 2026No releases on Oct 4, 2026No releases on Oct 11, 2026No releases on Oct 18, 2026No releases on Oct 25, 2026No releases on Nov 1, 2026No releases on Nov 8, 2026
MondayNo releases on Aug 10, 2026No releases on Aug 17, 2026No releases on Aug 24, 2026No releases on Aug 31, 2026No releases on Sep 7, 2026No releases on Sep 14, 2026No releases on Sep 21, 2026No releases on Sep 28, 2026No releases on Oct 5, 2026No releases on Oct 12, 2026No releases on Oct 19, 2026No releases on Oct 26, 2026No releases on Nov 2, 2026No releases on Nov 9, 2026
TuesdayNo releases on Aug 11, 20261 release on Aug 18, 20261 release on Aug 25, 20261 release on Sep 1, 2026No releases on Sep 8, 20261 release on Sep 15, 2026No releases on Sep 22, 20261 release on Sep 29, 2026No releases on Oct 6, 20261 release on Oct 13, 2026No releases on Oct 20, 2026No releases on Oct 27, 2026No releases on Nov 3, 2026No releases on Nov 10, 2026
Wednesday1 release on Aug 5, 20261 release on Aug 12, 2026No releases on Aug 19, 2026No releases on Aug 26, 2026No releases on Sep 2, 2026No releases on Sep 9, 2026No releases on Sep 16, 2026No releases on Sep 23, 2026No releases on Sep 30, 20261 release on Oct 7, 2026No releases on Oct 14, 20261 release on Oct 21, 2026No releases on Oct 28, 20261 release on Nov 4, 2026
ThursdayNo releases on Aug 6, 2026No releases on Aug 13, 2026No releases on Aug 20, 2026No releases on Aug 27, 2026No releases on Sep 3, 2026No releases on Sep 10, 2026No releases on Sep 17, 2026No releases on Sep 24, 2026No releases on Oct 1, 2026No releases on Oct 8, 2026No releases on Oct 15, 2026No releases on Oct 22, 2026No releases on Oct 29, 2026No releases on Nov 5, 2026
FridayNo releases on Aug 7, 2026No releases on Aug 14, 2026No releases on Aug 21, 2026No releases on Aug 28, 20261 release on Sep 4, 2026No releases on Sep 11, 2026No releases on Sep 18, 2026No releases on Sep 25, 2026No releases on Oct 2, 2026No releases on Oct 9, 2026No releases on Oct 16, 2026No releases on Oct 23, 20261 release on Oct 30, 2026No releases on Nov 6, 2026
SaturdayNo releases on Aug 8, 2026No releases on Aug 15, 2026No releases on Aug 22, 2026No releases on Aug 29, 2026No releases on Sep 5, 2026No releases on Sep 12, 2026No releases on Sep 19, 2026No releases on Sep 26, 2026No releases on Oct 3, 2026No releases on Oct 10, 2026No releases on Oct 17, 2026No releases on Oct 24, 2026No releases on Oct 31, 2026No releases on Nov 7, 2026

13 releases since Aug 5, 2026

Changelog

v2.14.1Latest

Release v2.14.1

Fixed 2
  • TypeScript type inference now preserves Uuid values and branded primitives instead of expanding them into structural records, with UUID columns retaining their Uuid type and branded strings remaining assignable to string
  • Updated the Nix flake to Rust 1.97.1 and pinned the required wasm-bindgen version, restoring the Nix development workflow
Security 2
  • Updated TLS certificate verification dependencies and refreshed certificate trust stores in distributed container images to address the eMudhra/emSign certificate authority key compromise
  • The updated WebPKI verifier rejects the compromised intermediate keys and affected roots are removed from the Nix development environment's CA bundle

From SpacetimeDB

Bug Fixes
Refresh TLS trust following the eMudhra/emSign CA incident

Updated TLS certificate verification dependencies and refreshed certificate trust stores in distributed container images to address the eMudhra/emSign certificate authority key compromise. The updated WebPKI verifier rejects the compromised intermediate keys, and affected roots are removed from the Nix development environment's CA bundle.

Operators should upgrade their SpacetimeDB binaries and container images. See the RustSec advisory for details about the upstream incident.

(#6366)

Preserve UUID and branded primitive types in TypeScript

TypeScript type inference now preserves Uuid values and branded primitives instead of expanding them into structural records. UUID columns retain their Uuid type, and branded strings remain assignable to string. This is a types-only fix with no runtime behavior change.

(#5971)

Restore Nix development builds

Updated the Nix flake to Rust 1.97.1 and pinned the required wasm-bindgen version, restoring the Nix development workflow.

(#6344)

What's Changed
  • Updated TLS verification dependencies and container trust stores following the eMudhra/emSign CA incident in #6366
  • Fixed TypeScript inference for UUIDs and branded primitives in #5971
  • Restored Nix development builds in #6344

Full public changelog: v2.14.0...v2.14.1

View originalPermalink
How v2.14.1 went
v2.14.0

Release v2.14.0

Added 8
  • Rust and TypeScript modules can call reducers in other databases asynchronously through declared dependencies in spacetime.json and generated typed receiver bindings
  • Insert-only outbox tables with compile-time type checking of reducer parameters for enqueuing asynchronous inter-database calls
  • New IDC actor that delivers outbox streams concurrently over HTTP/2, with optional on_result/onResult callbacks reporting delivery outcomes
  • Dependencies are namespaced by name so a module can depend on two databases exporting identically named types
  • C# modules can nest submodules to arbitrary depth and mount the same module assembly as multiple independent instances
  • ctx.As selects an instance when passing context to functions, ctx.From provides instance-aware query builders, and scheduling overloads are context-aware
  • Generated C# client bindings expose nested namespace paths such as ctx.Db.SubmoduleA.SubmoduleC
  • spacetime generate --lang typescript accepts --import-extension none|js|ts, also settable per generate entry in spacetime.json
Changed 6
  • is_internal() means ctx.sender() == ctx.database_identity() in every module library, consistent across Rust, C#, C++, and TypeScript
  • init is no longer internal since its sender is the database owner
  • In TypeScript, isInternal is now true for scheduled reducers and procedures
  • jwt() returns none whenever is_internal() is true
  • HTTP handlers run with a real per-request identity and JWT instead of Identity::ZERO, and expose a sender (ctx.sender() in Rust and C++, ctx.sender in TypeScript, ctx.Sender in C#)
  • C++ get_caller_identity() returns the sender rather than the database identity for callers without a JWT
Fixed 1
  • Generated TypeScript bindings typecheck under exactOptionalPropertyTypes and no longer produce never for conn.reducers, with affected option types declaring name?: string | undefined
View originalRead the notes
How v2.14.0 went
v2.13.0

Release v2.13.0

Added 5
  • TypeScript modules can use reusable submodules providing cron-style and interval scheduling, retry with exponential backoff, fixed-window rate limiting, cryptographic and encoding helpers, and Resend email integration
  • C# modules can compose separately built module assemblies as submodules, with assembly-level namespace declarations controlling how a dependency is exposed
  • The spacetime auth command group lets Maincloud users manage a database's SpacetimeAuth configuration, including identity-provider configuration, project settings, and client creation, inspection, and deletion
  • TypeScript modules provide deterministic random shuffling alongside the existing deterministic random helpers
  • Rust module unit tests can access declared environment values and exercise procedures that open transactions with withTx
Changed 3
  • Confirmed HTTP reducer calls report success only after their transaction is durable, and procedures using confirmed reads wait for withTx transactions to become durable before returning
  • Confirmation waits have a five-second deadline, and a timed-out HTTP call returns 504 Gateway Timeout with an unknown-outcome error
  • The datastore records transaction-local subscriber and timestamp changes instead of cloning the full subscriber state for each transaction, substantially reducing memory usage for databases with many subscribers
Fixed 5
  • TypeScript result builders use the same { ok: value } | { err: value } representation as the serializer and deserializer, and error values serialize with the correct variant
  • TypeScript module HTTP requests and handler responses no longer split header values at commas, fixing headers such as webhook signatures, HTTP dates, and cookies with Expires attributes
  • ctx.http.fetch accepts nonstandard status codes, such as proxy-specific 5xx responses, instead of throwing while constructing the response
  • C# BSATN code generation no longer recurses indefinitely when comparing recursive struct type definitions
  • New projects created from templates correctly rewrite module unit-test dependencies that use repository-local paths, so generated projects can build outside the SpacetimeDB source tree
Security 1
  • The C# toolchain uses an updated System.Security.Cryptography.Xml dependency that addresses a known vulnerability in the previous package version
View originalRead the notes
How v2.13.0 went
v2.12.0

Release v2.12.0

Added 9
  • Modules can declare typed environment variables for configuration and secrets, readable from Rust, TypeScript, C#, and C++ execution contexts, with required and optional strings and constrained allowed-value sets
  • Environment values can be sourced from project configuration or the publishing process's environment, validated against module declarations, and updated atomically with a module publish
  • Stored environment values are preserved by default across publishes, with --env-only, --unset-env, and --replace-env flags for configuration changes without replacing the module
  • The spacetime env get and spacetime env list commands let authorized users inspect published environment values
  • TypeScript and C# SDKs support automatic reconnect via withAutomaticReconnect() and WithAutomaticReconnect(), using exponential backoff, subscription replay, and cache reconciliation while preserving client identity
  • TypeScript and C# SDKs support token refresh for expiring credentials via withTokenProvider() and WithTokenProvider()
Changed 3
  • Outbound HTTPS requests from procedures negotiate HTTP/2 when the remote service supports it while remaining compatible with HTTP/1.1 servers
  • New databases write system-table schema information to the commit log before writing rows to system tables, allowing older versions to replay databases containing unrecognized system tables
  • Local commands such as spacetime publish and spacetime generate now include the underlying schema validation or module-inspector diagnostic in error messages
Fixed 4
  • The PostgreSQL wire-protocol server isolates authentication and session state per connection and rejects SQL execution until that connection has authenticated
  • Updating an interval-scheduled row without changing its scheduling data no longer leaves duplicate pending queue entries; the existing pending entry is replaced
  • The CLI recognizes tsc.exe in addition to tsc.cmd when locating the TypeScript compiler, restoring type checking on Windows with package managers such as Bun
  • The TypeScript SDK declares terser as a development dependency so clean SDK builds are reproducible
Security 1
  • JWTs signed with HS256 are rejected for authentication because symmetric signing cannot be validated through an issuer's public key
View originalRead the notes
How v2.12.0 went
v2.11.0

Release v2.11.0

Added 2
  • spacetime describe can now print a human-readable description of a database schema in addition to its machine-readable form
  • The C# SDK permits enum-valued index columns
Changed 3
  • Failed database updates now print the complete error chain instead of only the outermost error
  • The C# SDK now handles an unsubscribe request made before a subscription becomes active
  • CLI self-install and update behavior handles custom --root-dir installation paths more consistently
Fixed 4
  • The C# SDK validates malformed fixed-size row data instead of risking a divide-by-zero failure
  • spacetime init --template react-ts now writes the generated database name to .env.local, preventing broken initial configuration
  • HTTP handlers now preserve the caller's authorization context when opening transactions, so authenticated operations no longer incorrectly run with internal authority
  • C++ modules can now read authentication claims repeatedly without exhausting the underlying byte source
Removed 1
  • Removed the nonexistent --force option from CLI documentation
Security 1
  • Fixed a vulnerability that allowed an attacker who knew a token's subject and issuer to impersonate the corresponding Identity, addressed by upgrading the JWT authentication library in v2.10.0
View originalRead the notes
How v2.11.0 went
v2.10.2

Release v2.10.2

Changed 6
  • Outbound HTTP requests made by module procedures advertise gzip and Brotli support and transparently decode compressed responses
  • Response Content-Encoding and compressed Content-Length headers are removed after decoding, and HTTP response-size metrics now report decompressed bytes
  • TypeScript module bindings avoid per-string codec allocation and use an allocation-free fast path for ASCII strings, with serialized bytes and public APIs unchanged
  • Module, table, reducer, and type namespaces are canonicalized consistently during schema validation and code generation across Rust, TypeScript, C#, C++, and generated client APIs
  • Maincloud replication confirms commit-log data is durable before advancing the Omnipaxos decided index
  • Scheduled functions that overrun their interval no longer produce warning-level log messages
Fixed 3
  • TypeScript SDK WebSocket message decompression is sequenced correctly, preventing out-of-memory errors when multiple compressed messages arrive in rapid succession
  • Replication startup is hardened against races during cluster initialization
  • Follower peer synchronization is corrected to avoid stale replica state after topology changes
Removed 2
  • Non-transactional sequence state has been removed
  • Non-default sequence parameters are no longer allowed
View originalRead the notes
How v2.10.2 went
v2.10.1

Release v2.10.1

Changed 2
  • Already-expired scheduled functions are no longer guaranteed to run in strict scheduled_at order, although timestamps observed inside reducers remain monotonic
  • The C# SDK uses direct loops in place of some LINQ, pools arrays, uses smaller initial WebSocket buffers, and avoids several .ToArray() calls, reducing allocations in SpacetimeDBClient, WebSocket, BSATNHelpers, and decompression
Fixed 2
  • spacetime list, spacetime rename, and spacetime mcp now read the server value from spacetime.json instead of falling back to the CLI's global default, matching spacetime call, logs, sql, and other database-addressing commands
  • The scheduler no longer awaits each scheduled function to completion before dispatching the next, so slow procedures no longer block scheduled reducers; scheduled calls are submitted to the executor concurrently, bounded at the ModuleHost level
View originalRead the notes
How v2.10.1 went
v2.10.0

Release v2.10.0

Added 4
  • Generated C# module exports dispatch directly to statically-known generic entrypoints for reducers, procedures, HTTP handlers, views, and anonymous views when building with NativeAOT-LLVM, eliminating virtual dispatch overhead at the module boundary.
  • The SpacetimeDB MCP endpoint (/v1/mcp) is now available on Maincloud, allowing AI agents and MCP-compatible tools to connect directly to Maincloud databases.
  • MCP requests sent to any node are automatically proxied to the leader replica through cluster-aware routing.
  • Egress tracking for MCP tool calls.
Fixed 3
  • The TypeScript SDK routes mid-session websocket errors to onDisconnect instead of onConnectError, and closes the socket so existing reconnect handling can take over.
  • C++ auto-increment field macros use table and field names instead of __LINE__, preventing symbol collisions between table definitions on the same line number in separate files.
  • The spacetime dev command no longer incorrectly warns about C# on macOS when C# is not in use.
View originalRead the notes
How v2.10.0 went
v2.9.0

Release v2.9.0

Added 1
  • Standalone operators can disable module-originated outbound HTTP requests with the [module-http] enabled = false configuration setting
Changed 5
  • spacetime init and spacetime dev choose a compatible .NET target based on host OS: .NET 10 on Windows and Linux, and .NET 8 on macOS
  • C# build, generation, development, and publish commands report incompatible host and .NET combinations clearly
  • Any client data counts as WebSocket activity and extends the idle deadline, rather than requiring a pong specifically
  • Idle WebSocket connections are closed with a proper close handshake and an idle timeout reason, with a grace period before forced teardown
  • Invalid C++ index queries with a non-terminal range are rejected at compile time
Fixed 9
  • Duplicate package references in .NET 8 NativeAOT module projects are fixed
  • Commitlog segment rotation and compression durably sync newly installed segment files and their containing directory, preserving acknowledged transactions across power loss
  • TypeScript SDK reuses the identity token issued during a first-time anonymous connection when automatically reconnecting, instead of requesting a new anonymous identity
  • C++ multi-column index scans correctly support exact prefixes followed by an optional terminal range across indexes with three or more columns
  • C++ index iterator buffering handles large result payloads correctly
  • C# SDK resets generated generic table-handle static state through a non-generic Unity initialization path, fixing Play Mode behavior when domain reload is disabled
View originalRead the notes
How v2.9.0 went
v2.8.3

Release v2.8.3

Fixed 1
  • Scheduled functions are now rescheduled from their intended execution time rather than the actual execution time of the current run, preventing the schedule from permanently drifting later over time
View originalRead the notes
How v2.8.3 went
v2.8.2

Release v2.8.2

Added 1
  • Claude plugin bundling agent skills and the MCP server for Claude users, alongside the existing Codex plugin
Changed 2
  • SpacetimeDB MCP is not yet available for Maincloud
  • C# module FFI exports reuse buffers when consuming BytesSource values instead of allocating new byte arrays per call, giving 3-29% speedups for iteration and argument deserialization on .NET 10 NativeAOT-LLVM
Fixed 2
  • Renaming a table accessor no longer leaves the internal st_*_accessor tables stale during auto-migration, which previously caused a runtime panic on the next module call; the migration system now detects accessor name changes and applies them
  • C# runtime HttpClient.MaxTimeout corrected from 500 ms to the host-enforced limit of 180 seconds, so HTTP requests in C# procedures no longer time out prematurely
View originalRead the notes
How v2.8.2 went
v2.8.1

Release v2.8.1

Added 4
  • Add `spacetime mcp` CLI subcommand that launches an MCP server over stdio and bridges it to SpacetimeDB's HTTP-based MCP route
  • Add SpacetimeDB Codex plugin bundling agent skills covering SpacetimeDB concepts, the CLI, and module/client development in Rust, C#, TypeScript, C++, Unity, and Unreal
  • Rust modules can declare a default value for `string` columns using `#[default(value)]` with a `&'static str`
  • Add `ResetStaticFields` reset methods to Unity `Log`, `SpacetimeDBNetworkManager`, `RemoteTableHandleBase`, and `DbConnectionBase`, invoked automatically on subsystem init to support disabled Domain Reloading
Changed 2
  • The `/v1/mcp` route accepts the target database as a per-call tool argument with inherited auth, removing the need for per-user database/identity configuration
  • C# exported callback IDs changed from `uint` to `int`
Fixed 6
  • Fix deadlock in `remove_single_subscription` (v1 websocket) by acquiring the `tx` lock before the `subscription` lock
  • Fix rows of exactly 1024 bytes being ignored in C# by correctly treating `Errno.EXHAUSTED` from `row_iter_bsatn_advance` as zero or more bytes written with the iterator done
  • Fix `readUInt8Array` in the TypeScript SDK to return an owned copy instead of a view over the reused scan buffer
  • Handle WebSocket decompression failures in the TypeScript SDK by catching and logging them and closing the socket so reconnect handling takes over
  • Fix several cross-language column default value bugs uncovered by new smoketests
  • Fix `FollowerActor::sync_logs` not updating its local last-synced offset after a reset
View originalRead the notes
How v2.8.1 went
v2.8.0

Release v2.8.0

Added 6
  • TypeScript modules can import and mount other modules under a namespace, with namespaced reducer and procedure dispatch and HTTP handler delegation
  • Client codegen exports namespace-aware table, reducer, and procedure handles and a query builder for submodule tables and views
  • The CLI supports namespaced `spacetime call` and `spacetime sql`
  • Auto-migration is supported for submodule tables, views, and indexes
  • The C++ and C# bindings include autogenerated `RawSubmoduleV10` types
  • The server emits a warning and records a Prometheus metric when a scheduled function starts more than 50 ms after its expected start time
Changed 2
  • `ModuleDef` now includes a `submodule` field, and modules using submodules require a v2.8.0+ server
  • Routine client connection lifecycle, SQL query, JWT payload lookup, PostgreSQL socket processing, migration planning, and reducer-returned error logs are logged at quieter levels or only to the module log
Fixed 1
  • TypeScript composite btree range scans now correctly apply `Range` bounds after the key prefix in `filter()` and `delete()`
View originalRead the notes
How v2.8.0 went
View all

Discussion

If you publish SpacetimeDB, you can claim this product by proving you administer its repository.