Pocketstore – Type-safe session/localStorage with expiry
Pocketstore – Type-safe session/localStorage with expiry
Hey HN! 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
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
I made type-safe Firestore ORM and call it Typesaurus
C8x type safe K8s deployments
Newzly-phantom – Asynchronous type-safe Scala DSL for Cassandra
Type-Safe alternative to stdio.h for C
Promises – Type safe promise library for go
Type-safe metaprogramming for Java (and other killer lang features)
Podman container with VNC GNOME Phosh session
Type-Safe and Promisified API for Web Worker and Iframe
Rescue – type-safe exceptions for Python
JStachio a type-safe Mustache engine that is incredible fast