
from rivet-dev
Build and manage high-performance, stateful actors on the Rivet runtime.
RivetKit provides a comprehensive framework for building long-lived, in-memory processes (Actors) that maintain state across requests. This skill provides guidance on defining actor registries, managing persistent state (c.state, c.kv, c.db) versus ephemeral variables (c.vars), and implementing real-time communication via broadcasts and events. It covers the full lifecycle from local development and debugging via the Inspector API to deploying to Rivet Cloud or self-hosted environments. Key patterns include 'Actor Per Entity' for scaling and 'Coordinator' patterns for indexing actor collections.
This skill has not been reviewed by our automated audit pipeline yet.