TypedStorage gives you a type-safe way to access localStorage. Moreover, you can use zod or any other schema validation library to make sure your data is always valid.
Usage does vary depending on the framework you're using.
- React
- Vue (coming soon)
- Vanilla JS
I highly appreceate your feedback! Please create an issue, if you've found any bugs or want to request a feature.