spacetimedb-views

Installation
SKILL.md

Use this skill for derived data exposed through SpacetimeDB views.

Core view patterns

Views expose read-only, derived data to clients. Use them for filtered or joined results that should be computed server side instead of duplicating rows into another table.

TypeScript view shape:

export const high_scorers = spacetimedb.anonymousView(
  { name: "high_scorers", public: true },
  t.array(players.rowType),
  (ctx) =>
    ctx.from.players
      .where((p) => p.score.gte(1000n))
      .where((p) => p.name.ne("BOT")),
);
Installs
28
GitHub Stars
7
First Seen
May 7, 2026
spacetimedb-views — danmossa/spacetimedb-skills