browser-storage-patterns
Installation
SKILL.md
Browser Storage Patterns
Overview
Browser storage is for data that must survive beyond a single render or request.
Common questions:
- Should this live in a cookie or in
localStorage? - Should it persist across tabs or only this tab?
- Does the server need to read it?
- Is the data sensitive?
- What happens during SSR when browser APIs do not exist yet?
Choosing the wrong storage mechanism creates security, UX, and correctness problems quickly.