Skip to content
ultrastorage
Esc
navigateopen⌘Jpreview
On this page

ultrastorage

Gives localStorage superpowers: rich values, expiration, namespaces, validation, and subscriptions.

ultrastorage keeps the familiar Storage API and adds the features applications need. Use it directly from JavaScript or TypeScript, or subscribe from React.

Install

npm install ultrastorage

Store your first value

import { createStorage } from 'ultrastorage';

const storage = createStorage({ prefix: 'app' });
storage.setItem('user', { name: 'Alice', age: 30 });
storage.getItem<{ name: string; age: number }>('user');
// { name: 'Alice', age: 30 }

What you can do

The package provides ESM, CJS, and TypeScript declarations. Get started or jump to the storage API.

Was this page helpful?