What problem does it solve?
Provides clear, type-safe guidance and patterns to build robust TypeScript clients that connect directly to SpacetimeDB modules, removing ambiguity about bindings, reducer calls, subscriptions, and data types so developers avoid runtime errors and sync issues.
Core Features & Use Cases
- Generated module bindings that map server schema to client types for safe table access and reducer invocation.
- Real-time subscriptions and reactive updates using WebSocket-based connection builders and subscription handles.
- Correct invocation patterns and data handling including object-style reducer calls, BigInt usage for 64-bit fields, index and view best practices, and explicit transaction usage for procedures.
- Use case: Build a multiplayer game or collaborative app that synchronizes player state, events, and leaderboards with predictable types and minimal client-side reconciliation.
Quick Start
Connect a TypeScript client to a SpacetimeDB module using the generated module bindings, a WebSocket URI, and an optional token to establish a subscription and load tables.