spacetimedb-rust

Originally fromdouglance/spacetimedb
Installation
SKILL.md

SpacetimeDB Rust Module Development

SpacetimeDB modules are WebAssembly applications that run inside the database. They define tables to store data and reducers to modify data. Clients connect directly to the database and execute application logic inside it.

Tested with: SpacetimeDB 2.0+ APIs


HALLUCINATED APIs — DO NOT USE

These APIs/patterns are incorrect. LLMs frequently hallucinate them.

Both macro forms are valid in 2.0: #[spacetimedb::table(...)] / #[table(...)] and #[spacetimedb::reducer] / #[reducer].

#[derive(Table)]                // Tables use #[table] attribute, not derive
#[derive(Reducer)]              // Reducers use #[reducer] attribute
Related skills
Installs
85
GitHub Stars
24.7K
First Seen
Mar 8, 2026