localStorage-patterns - Build resilient client-side persistence with localStorage
Guides localStorage schema design, error handling, quota management, React state synchronization, versioning, migration, and testing.
Tags
Updated: 2026-12-03Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Design JSON storage schemas
- Handle storage operation errors
- Manage browser storage quotas
- Synchronize localStorage with React
- Migrate versioned storage data
- Test browser storage behavior
Inputs
- User notes
- Module progress
- Browser storage state
- Application storage schema
Outputs
- Persisted notes
- Persisted module progress
- Save status feedback
- Storage error messages
- Storage diagnostics
- Migrated storage data
Requirements
- Browser Web Storage API
- localStorage access
- React for state synchronization
