localForage
💾 Offline storage, improved. Wraps IndexedDB, WebSQL, or localStorage using a simple but powerful API. (by localForage)
js-cookie
A simple, lightweight JavaScript API for handling browser cookies (by js-cookie)
Our great sponsors
localForage | js-cookie | |
---|---|---|
27 | 21 | |
24,228 | 21,570 | |
0.9% | 0.5% | |
0.0 | 7.7 | |
3 months ago | 10 days ago | |
JavaScript | JavaScript | |
Apache License 2.0 | MIT License |
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.
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.
-
How to get core.async to play well with IndexedDB
Not really an answer but have you looked into https://github.com/localForage/localForage
-
I need help about what is my problem and how to google it
I may not be pointing you in the right direction but, please read about [IndexDB storage](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB\_API) method and packages like [localForage](https://localforage.github.io/localForage/) that use it under the hood.
-
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.
- How to use Local Forage?!
-
Storing JSON data in project or fetching every time?
I find localForage is pretty helpful for this stuff https://github.com/localForage/localForage
-
[AskJS] Simple javascript database that can replace local storage?
localForage (https://localforage.github.io/localForage/) mirrors localStorage syntax, but uses IndexedDB in the background. If that's not supported, it uses WebSQL and then LocalStorage
-
Experienced JavaScript Developer Meme
This is why we have localForage.
- Where should I store images ?
js-cookie
Posts with mentions or reviews of js-cookie.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-27.
-
Coding Authentication? Stop now and let Choreo manage it.
Once the user is logged in, you may need to access information like the user's name, email, etc. Choreo sends this information encoded in a cookie (named userinfo) upon successful login. We can extract the information using a cookie parsing library. For this example, we will be using js-cookie library.
-
Rust For JavaScript Developers Ltd. Received a Cease and Desist From Oracle Due to JavaScript Trademark
Interesting thread. If oracle were to send a cease and desist to everyone that uses "javascript" I would have received one years ago: https://github.com/js-cookie/js-cookie
- Next.js authentication with getServerSideProps and cookies
-
How to set cookies on button click on next.js app route?
You could just use something like https://www.npmjs.com/package/js-cookie
-
How should I store bearer tokens in a React app?
Have a look at js-cookie. Also, read this.
-
Cookiebot: Problem with deleting cookies after user has changed consent
js-cookie might help?
-
Why am I getting undefined when I try to access the cookie that I set?
Are you using js-cookie, this js-cookie, on the server?
-
Saving users’ preferences in SvelteKit
So something like this... (I’ll be using this package to simplify the code)
-
React Cookie 🍪 Hook
This is a simple video start guide to see how to get, set and remove cookies using npm package js-cookie in react.
- GitHub - js-cookie/js-cookie: A simple, lightweight JavaScript API for handling browser cookies
What are some alternatives?
When comparing localForage and js-cookie you can also consider the following projects:
Dexie.js - A Minimalistic Wrapper for IndexedDB
vue-cookies - A simple Vue.js plugin for handling browser cookies
store.js - Cross-browser storage for all use cases, used across the web.
jquery-cookie
PouchDB - :koala: - PouchDB is a pocket-sized database.
cookies.js - 🍫 Tastier cookies, local, session, and db storage in a tiny package. Includes subscribe() events for changes.
svelte-persisted-store - A Svelte store that persists to localStorage
klaro-js - Klaro Privacy Manager. An open-source, privacy-friendly & compliant consent manager for your website.
Cookies - JavaScript Client-Side Cookie Manipulation Library
lockr - A minimal API wrapper for localStorage
LokiJS - javascript embeddable / in-memory database