spacetimedb-typescript

Official

Type-safe real-time TypeScript clients

Authorclockworklabs
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: spacetimedb-typescript
Download link: https://github.com/clockworklabs/SpacetimeDB/archive/main.zip#spacetimedb-typescript

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.