10 Best JavaScript localStorage Libraries

List hand-picked by Openbase Experts
Learn More

uls

use-local-storage-state

React hook that persists data in localStorage

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
760
Weekly Downloads
61.6K
Last Commit
8mos ago
User Rating
5.0/ 5
1
Top Feedback
1Great Documentation
realm

realm

Realm is a mobile database: an alternative to SQLite & key-value stores

apache-2.0
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
5K
Weekly Downloads
29.5K
Last Commit
9mos ago
User Rating
4.5/ 5
6
Top Feedback
2Easy to Use
2Highly Customizable
1Great Documentation
low

lowdb

Simple to use local JSON database. Use native JavaScript API to query. Written in TypeScript. (supports Node, Electron and the browser)

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
18.6K
Weekly Downloads
456K
Last Commit
9mos ago
User Rating
4.4/ 5
22
Top Feedback
3Great Documentation
2Easy to Use
localforage

localforage

💾 Offline storage, improved. Wraps IndexedDB, WebSQL, or localStorage using a simple but powerful API.

Apache-2.0
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
21.4K
Weekly Downloads
2.3M
Last Commit
1yr ago
User Rating
4.6/ 5
27
Top Feedback
rp

redux-persist

persist and rehydrate a redux store

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
12.2K
Weekly Downloads
820K
Last Commit
1yr ago
User Rating
4.7/ 5
12
Top Feedback
3Poor Documentation
3Hard to Use
2Slow
vl

vue-ls

đŸ’Ĩ Vue plugin for work with local storage, session storage and memory storage from Vue context

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
525
Weekly Downloads
8.5K
Last Commit
8mos ago
User Rating
5.0/ 5
1
Top Feedback
1Great Documentation
1Easy to Use
sto

store

Cross-browser storage for all use cases, used across the web.

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
13.9K
Weekly Downloads
216K
Last Commit
5yrs ago
User Rating
5.0/ 5
6
Top Feedback
sto

stormdb

🌩ī¸ StormDB is a tiny, lightweight, 0 dependency, easy-to-use JSON-based database for NodeJS, the browser or Electron.

MIT
TypeScript Icon
TypeScript Definitions: Built-In
TypeScript Icon
Deprecated
GitHub Stars
521
Weekly Downloads
2.7K
Last Commit
7mos ago
User Rating
5.0/ 5
4
Top Feedback
4Easy to Use
1Performant
vp

vuex-persistedstate

💾 Persist and rehydrate your Vuex state between page reloads.

MIT
TypeScript Icon
TypeScript Definitions: Built-In
TypeScript Icon
Deprecated
GitHub Stars
5.7K
Weekly Downloads
179K
Last Commit
10mos ago
User Rating
4.7/ 5
3
Top Feedback
2Great Documentation
1Easy to Use
1Performant
nw

ngx-webstorage

Localstorage and sessionstorage manager - Angular service

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
405
Weekly Downloads
47.8K
Last Commit
1yr ago
User Rating
5.0/ 5
1
Top Feedback
mp

mobx-persist

persist mobx stores

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
557
Weekly Downloads
15.8K
Last Commit
4yrs ago
User Rating
5.0/ 5
1
Top Feedback
rns

react-native-storage

local storage wrapper for both react-native and browser. Support size controlling, auto expiring, remote data auto syncing and getting batch data in one query.

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
2.9K
Weekly Downloads
8.6K
Last Commit
1yr ago
User Rating
5.0/ 5
1
Top Feedback
1Performant
rl

redux-localstorage

Store enhancer that syncs (a subset) of your Redux store state to localstorage.

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
1.3K
Weekly Downloads
114K
Last Commit
6yrs ago
User Rating
4.0/ 5
1
Top Feedback
1Great Documentation
1Easy to Use
expo-secure-store

expo-secure-store

An open-source platform for making universal native apps with React. Expo runs on Android, iOS, and the web.

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
18.2K
Weekly Downloads
94.2K
Last Commit
9mos ago
sto

store2

A better way to use localStorage and sessionStorage

(MIT OR GPL-3.0)
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
1.7K
Weekly Downloads
4.4M
Last Commit
7mos ago
us

@fabrice8/ui-store

User-Interface (Browser) storage manager

ISC
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
1
Weekly Downloads
3
Last Commit
1yr ago
User Rating
5.0/ 5
1
Top Feedback
1Great Documentation
1Easy to Use
1Performant
ls

@ngx-pwa/local-storage

Efficient local storage module for Angular apps and PWA: simple API + performance + Observables + validation

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
632
Weekly Downloads
16.3K
Last Commit
9mos ago
rls

redux-localstorage-simple

Save and load Redux state to and from LocalStorage.

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
122
Weekly Downloads
26.1K
Last Commit
7mos ago
vs

vuejs-storage

Vue and Vuex plugin to persistence data with localStorage/sessionStorage

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
119
Weekly Downloads
394
Last Commit
2yrs ago
User Rating
3.0/ 5
1
Top Feedback
1Easy to Use
jlm

jest-localstorage-mock

A module to mock window.localStorage and window.sessionStorage in Jest

BSD-3-Clause
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
300
Weekly Downloads
435K
Last Commit
8mos ago
cls

continuation-local-storage

implementation of https://github.com/joyent/node/issues/5243

BSD-2-Clause
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
1.1K
Weekly Downloads
2.6M
Last Commit
5yrs ago
es

encrypt-storage

EncryptStorage provide a little more security in frontend

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
170
Weekly Downloads
4.6K
Last Commit
7mos ago
nl

node-localstorage

A drop-in substitute for the browser native localStorage API that runs on node.js.

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
395
Weekly Downloads
196K
Last Commit
1yr ago
rss

redux-state-sync

A lightweight middleware to sync your redux state across browser tabs

ISC
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
194
Weekly Downloads
30.7K
Last Commit
9mos ago
ups

use-persisted-state

A custom React Hook that provides a multi-instance, multi-tab/browser shared and persistent state.

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
1.2K
Weekly Downloads
60.8K
Last Commit
2yrs ago
rsh

react-storage-hooks

React hooks for persistent state

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
166
Weekly Downloads
59.9K
Last Commit
2yrs ago
np

node-persist

Super-easy persistent data structures in Node.js

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
655
Weekly Downloads
44.5K
Last Commit
2yrs ago
ngf

ngforage

localForage bindings for Angular

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
106
Weekly Downloads
3.5K
Last Commit
10mos ago
User Rating
Top Feedback
1Great Documentation
1Easy to Use
1Performant
lsc

lscache

A localStorage-based memcache-inspired client-side caching library.

Apache-2.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
1.4K
Weekly Downloads
30.5K
Last Commit
1yr ago
mb

mock-browser

A mock browser with window, document, location, navigation, local and session storage to use for client side code tests in a node environment.

Apache 2.0
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
84
Weekly Downloads
17.6K
Last Commit
6yrs ago
vl

vue-localstorage

Vue.js localStorage plugin with types support

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
670
Weekly Downloads
9.9K
Last Commit
2yrs ago
tl

ttl-localstorage

simple API for localStorage in browser or node

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
11
Weekly Downloads
2.6K
Last Commit
1yr ago
rul

react-use-localstorage

(seeking maintainers) ⚓ React hook for using local storage

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
162
Weekly Downloads
7.7K
Last Commit
2yrs ago
asyncstorage-down

asyncstorage-down

A leveldown API implementation that maps to AsyncStorage in React Native

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
80
Weekly Downloads
7.1K
Last Commit
2yrs ago
vue-save-state

vue-save-state

A Vue mixin to save the state of a component to local storage

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
244
Weekly Downloads
708
Last Commit
8mos ago
vs

vue2-storage

Wrapper over browser storage for JavaScript or Vue.js app

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
114
Weekly Downloads
3.3K
Last Commit
7mos ago
al

angular-localforage

Angular service & directive for https://github.com/mozilla/localForage (Offline storage, improved.)

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
Weekly Downloads
2.5K
Last Commit
ngx-store

ngx-store

Angular decorators to automagically keep variables in HTML5 LocalStorage, SessionStorage, cookies; injectable services for managing and listening to data changes and a bit more.

ISC
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
166
Weekly Downloads
2.5K
Last Commit
1yr ago
cro

croxydb

a JSON/YAML/LocalStorage database module

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
3
Weekly Downloads
2.3K
Last Commit
ml

mock-localstorage

[experimental] Mock Object library for localstorage.

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
6
Weekly Downloads
1.2K
Last Commit
3yrs ago
cor

@nano-sql/core

Universal database layer for the client, server & mobile devices. It's like Lego for databases.

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
691
Weekly Downloads
1K
Last Commit
vw

vue-warehouse

A Cross-browser storage for Vue.js and Nuxt.js, with plugins support and easy extensibility based on Store.js.

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
170
Weekly Downloads
995
Last Commit
1yr ago
vws

vue-web-storage

Vue.js plugin for local storage and session storage (1.8 kb min+gz) 💾

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
85
Weekly Downloads
966
Last Commit
1yr ago
lib

libreact

Collection of useful React components

Unknown
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
2.5K
Weekly Downloads
932
Last Commit
1yr ago
as

angular-safeguard

Wrapper around cookies/sessionStorage/localStorage for angular2. If all are unavailable will use an in memory storage.

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
78
Weekly Downloads
824
Last Commit
3yrs ago
al

angular-locker

🗄ī¸ A simple & configurable abstraction for local/session storage in angular js projects

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
315
Weekly Downloads
741
Last Commit
5yrs ago
ns

ng-storage

localStorage and sessionStorage done right for AngularJS.

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
2.3K
Weekly Downloads
445
Last Commit
4yrs ago
loc

localstoragedb

A simple database layer for localStorage and sessionStorage for creating structured data in the form of databases and tables

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
736
Weekly Downloads
376
Last Commit
2yrs ago
feathers-localstorage

feathers-localstorage

A client side service based on feathers-memory that persists to LocalStorage

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
38
Weekly Downloads
314
Last Commit
2yrs ago
next-persist

next-persist

Bridging the gap between client-side persistence and server-side rendering.

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
93
Weekly Downloads
222
Last Commit
2yrs ago