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'
const defaultState: {
Related skills
More from verekia/r3f-gamedev
smooth-interpolation
Animate values smoothly using exponential decay instead of linear interpolation.
12ui-useframe
Sync UI elements outside the Canvas with the render loop using R3F v10's external useFrame.
8r3f-setup
Set up a React Three Fiber project with WebGPU support.
7reactive-polling
Poll for changes to any value and trigger React re-renders when it changes.
7miniplex
Use Miniplex for minimalistic Entity Component System with TypeScript support.
6bone-attachment
Attach meshes to bones of a skinned mesh, such as attaching a sword to a character's hand.
6