I built a small utility library called *Pocketstore*: a TypeScript wrapper around `sessionStorage` and `localStorage`.
It adds: - Optional encryption - TTL support (auto-expiring keys) - Namespaces - SSR fallback (memory store) - Fully typed API
I created it because most libraries are either outdated, overly complex, or don’t support basic things like expiry or server-side rendering.
Here’s the npm package: https://www.npmjs.com/package/@m4dm4x/pocketstore And the source code: https://github.com/kritarth1107/pocketstore
Would love feedback and feature requests!
Cheers