verekia-stores
Installation
SKILL.md
Zustand Stores
Use Zustand stores for state that doesn't belong in the ECS. Each store has a consistent API pattern with use*, get*, set*, and reset* exports.
Store Types
- core-store: Global reactive state that doesn't fit in ECS (room metadata, connection status)
- ui-store: UI state like modals, panels, debug overlays
- local-store: User preferences persisted to localStorage
Core Store
For global reactive state that doesn't fit in ECS:
// stores/core-store.ts
import { create } from 'zustand'