Familiar store ergonomics
Use `defineStore()` with option stores or setup stores while keeping direct mutation and Pinia-like helper names.
Direct-mutation stores with SSR-safe managers, explicit workflows, and opt-in plugins — from persistence to finite state machines.
Stately is a Svelte 5 state library for teams who want a small, composed core runtime with explicit plugin-based features. It is designed for package consumers who want predictable store behavior in both SPA and SSR flows, with enough structure to model real app workflows — without ceremony where none is warranted, and with full ceremony where it genuinely is.
The documentation is organized so you can move from learning the API to applying it in real apps:
Stately includes:
defineStore()send(), matches(), and can()src/lib/examples/ and the examples page for consumer-facing patterns that match the public API.