localForage
idb-keyval
Our great sponsors
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 |
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
-
How to get core.async to play well with IndexedDB
Not really an answer but have you looked into https://github.com/localForage/localForage
-
Better Ways To Handle Data Storage on The Web Client
LocalForage: this is a wrapper around IndexedDB, WebSQL, LocalStorage, and SessionStorage with a way to define more interfaces (called drivers) *for additional storage solutions. It does a great job handling all your serialization needs, it is **asynchronous **and handles a large set of data types. Its **API resembles Web Storage API* and it is ridiculously simple to learn.
-
SvelteKit: Use local database in the browser
Depending on what kind of storage requirements you have, LocalForage might be a good fit. It provides a unified API to access WebSQL, indexedDB or localStorage.
-
Experienced JavaScript Developer Meme
Have a look at local forage. It is an almost drop in replacement for local storage, but with doing what you want and using the much nicer indexeddb when available.
This is why we have localForage.
- Where should I store images ?
-
Recommended storage for pinia
I have been using localforage (https://github.com/localForage/localForage) in non vue applications and haven't looked back since. All the features of indexeddb with the same interface as localstorage.
-
IndexedDB. Storing data in browsers
localForage: A Polyfill providing a simple name-value syntax for client-side data storage, which uses IndexedDB in the background, but falls back to WebSQL and then localStorage in browsers that don't support IndexedDB.
-
Is it possible to bundle a SQlite database file into a ReactJS web application using webpack?
Or even a wrapper like this https://github.com/localForage/localForage which falls back to local storage if indexeddb or Web SQL are not available
-
How do you persist Pinia state across reloads
LocalForage is a good wrapper for it that had worked well for me in Vue 3. https://github.com/localForage/localForage
idb-keyval
-
SvelteKit: Use local database in the browser
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 }`
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?
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.