Featured Products
- Home
- JavaScript Scripts
- fridge: Offline Data Storage. Stores Anything, Everywhere
fridge: Offline Data Storage. Stores Anything, Everywhere
By : JaguarScript Published on Thursday, July 06, 2017,01:56:53 in JavaScript Scripts
Overview
fridge â Offline Data Storage. Stores Anything, Everywhere. fridge is the Worldâs lightest multi-backend offline web storage JavaScript library on the planet. It uses localStorage, indexedDB, and webSQL backends as key-value store database to store data locally in the web browser. It wraps all of them using a fast, cross-browser localStorage-like API and stores a very wide range of data types in the most optimal way possible, everywhere. It uses all the available web storage backends. If one is full, it automatically stores in another. It checks the data type, and then chooses the one that offers the best functionality, which makes fridge the first of its kind. You can head to our website to read more: fridge



Why use fridge?
Web browsers provides many ways to store data locally in the browser, but itâs very complicated, there are many headaches, many bugs, some has limited storage support, some has broken buggy implementations, and they all come with limitations, you canât store this and you canât store that. Even professional web developers struggle in this. There are many web storage libraries that solve these issues, but very large in size, and they donât have the luxury of using the optimal storage based on data type, which makes them slower than fridge, such as localForage. And some provides wrappers around certain storage technology, but with bugs, and requires storage polyfills. If you want to store an image or an audio file, you have to use a very big library to do a simple job. For these reasons, JaguarScript built fridge.js, an extremely lightweight and production-ready replacement for localStorage and localForage. Itâs fast, the lightest multi-backend storage ever made, perfect for mobile, cross-browser, and it does the offline web storage job perfectly.Features
How is this even possible? A well-thought-out mechanism that just works.
If you havenât noticed yet, fridge stores a very wide range of data types, not even localForage can store these much of data types.
Not just that, it checks the data type, and then chooses the one that offers the best functionality, and it provides a proper fallback as well, which makes fridge the first of its kind.
For example: if you store a string, it chooses localStorage. If you store a Blob file, it chooses indexedDB. And If one storage was full, It will fallback to another storage backend automatically.
Weâre not finished just yet, If both indexedDB and webSQL were supported by the browser, It chooses the faster one.



