{"repo":"selfagency/stately","free":true,"listed":false,"github":"https://github.com/selfagency/stately","clone":"git clone https://github.com/selfagency/stately.git","description":"🧐 Stately — Pinia-inspired state for Svelte 5 and SvelteKit","language":"TypeScript","stars":23,"topics":["history","persistence","pinia","reactive-state","reactivity","state-management","store","svelte","sveltekit","sync"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"Stately Stately is a Pinia-inspired state management library built specifically for Svelte 5 runes and SvelteKit. It provides a familiar defineStore() API, direct mutation ergonomics, and SSR-safe patterns, with an extensible plugin system for advanced features. If you’ve used Pinia, you’ll feel at home. Stately provides a structured way to define shared state, mutate it directly, and observe changes. It includes built-in support for persistence, history, synchronization, and async orchestration without the boilerplate of manual state management. Why Stately? Stately is designed for those that need a store model that scales from simple counters to complex application workflows while maintaining Svelte 5 semantics and avoiding SSR pitfalls. It bridges the gap between simple writable stores and complex state frameworks, offering an API that is powerful yet intuitive. Key Features - Flexible Definitions: defineStore() supporting both option stores and setup stores . - Intuitive API: Direct mutations plus $patch() , $reset() , $subscribe() , and $onAction() . - SSR Ready: Request-scoped state managers designed for SvelteKit safety. - Persistence: Support for localStorage , sessionStorage , IndexedDB, and custom serializers with TTL and compression. - History: Built-in undo, redo, and time-travel debugging. - Finite State Machines: Manage complex UI logic with transitions and lifecycle hooks. - Multi-tab Sync: Synchronize state across tabs using BroadcastChannel . - Async Workflow","default_branch":null,"files":null,"tree":[],"storefront":"/r/selfagency","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/selfagency/stately/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}