localForage VS idb-keyval

Compare localForage vs idb-keyval and see what are their differences.

localForage

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

idb-keyval

A super-simple-small promise-based keyval store implemented with IndexedDB (by jakearchibald)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
localForage idb-keyval
27 5
24,150 2,563
1.1% -
0.0 1.3
3 months ago 9 months ago
JavaScript TypeScript
Apache License 2.0 GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

localForage

Posts with mentions or reviews of localForage. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-23.

idb-keyval

Posts with mentions or reviews of idb-keyval. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-26.
  • SvelteKit: Use local database in the browser
    6 projects | /r/sveltejs | 26 Jan 2023
    idb-keyval is a great library for storing simple data in the browser using IndexedDB. secure-ls is great for storing data securely in Local Storage in the browser. There is also svelte-local-storage-store for saving and retrieving data to/from Local Storage in the browser easily with just a svelte store.
  • `export default thing` behaves differently to `export { thing as default }`
    4 projects | /r/javascript | 6 Jul 2021
    I'm not sure this is clear cut. Take idb-keyval for instance. The exported names are get and set. If someone was import them individually I'd totally understand why they might them different names to make the context clear. Eg:

What are some alternatives?

When comparing localForage and idb-keyval you can also consider the following projects:

Dexie.js - A Minimalistic Wrapper for IndexedDB

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

PouchDB - :koala: - PouchDB is a pocket-sized database.

svelte-persisted-store - A Svelte store that persists to localStorage

Cookies - JavaScript Client-Side Cookie Manipulation Library

LokiJS - javascript embeddable / in-memory database

WatermelonDB - 🍉 Reactive & asynchronous database for powerful React and React Native apps ⚡️

cross-storage - Cross domain local storage, with permissions

js-cookie - A simple, lightweight JavaScript API for handling browser cookies

sql.js - A javascript library to run SQLite on the web.

jStorage - jStorage is a simple key/value database to store data on browser side

pinia-plugin-persistedstate - 🍍 Configurable persistence and rehydration of Pinia stores.