cookies.js VS localForage

Compare cookies.js vs localForage and see what are their differences.


๐Ÿซ Tastier cookies, local, session, and db storage in a tiny package. Includes subscribe() events for changes. (by franciscop)


๐Ÿ’พ Offline storage, improved. Wraps IndexedDB, WebSQL, or localStorage using a simple but powerful API. (by localForage)
Our great sponsors
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • Scout APM - Less time debugging, more time building
  • SonarQube - Static code analysis for 29 languages.
cookies.js localForage
1 12
2,390 20,468
- 1.2%
0.0 1.6
about 3 years ago 2 months ago
JavaScript JavaScript
MIT License Apache License 2.0
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.


Posts with mentions or reviews of cookies.js. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-03-01.
  • DDD Is Overrated
    2 projects | | 1 Mar 2021
    Sure you might not be able to write 100% of the documentation in one go and then the code, but AFAIK that's neither the goal or the intention of DDD, it's more like "document a bit, write a bit, repeat".

    The way I do it is first write a draft of the documentation, of how I want the API to look like. Then check if that basic code is possible (which I can predict most of the times based on experience), then write some more docs or methods. When writing a lib I normally already know where I want to use it, so I can put example snippets from how I want to use it as the documentation first and then try to implement those methods.

    Examples of libraries I've written mostly this way:





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 2022-04-10.

What are some alternatives?

When comparing cookies.js and localForage 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.

svelte-local-storage-store - Adds pub/sub to local storage.

Cookies - JavaScript Client-Side Cookie Manipulation Library

LokiJS - javascript embeddable / in-memory database

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

cross-storage - Cross domain local storage, with permissions

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

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

WatermelonDB - ๐Ÿ‰ Reactive & asynchronous database for powerful React and React Native apps โšก๏ธ

lawnchair.js - A lightweight clientside JSON document store,