Structured browser storage for production apps.

The browser gives us storage.
We give it structure.

Build a deliberate storage layer on top of localStorage: namespaces, metadata, TTL, optional encryption, and group-based cleanup without scattering raw browser APIs across your app.

Install package
$pnpm add localstorage-platform

Storage pipeline

localStorage becomes an application boundary

v1.x
1

namespace

company-name

Own every key written by the application.

2

record

company-name:user

Store values with metadata, TTL, and group context.

3

cleanup

clearGroup('session')

Remove related data without touching the rest.

storage.set("token", token, {
  group: "session",
  ttl: 60000,
  encrypt: true,
});