Pinia
Pinia is the current standard state management library for Vue 3 applications. It provides explicit stores for shared client-side state without forcing a heavy architectural model.
Where it fits
Pinia is most useful when multiple views need access to the same authenticated user state, filters, cached API responses, or UI workflow state.
Repeated project patterns
- Status Alganize uses store-based state around authenticated dashboard workflows.
- MaRESS uses shared state around search, map, and graph exploration.
- Study Duel uses Pinia for auth, duel setup, and profile-oriented application state.
Trade-offs
- It is easy to move too much business logic into stores instead of keeping a clear separation between API access, derived state, and view concerns.
- Good store boundaries matter more than the library choice itself.