localForage

a handy library that improves the offline experience of your web app by using asynchronous storage (via IndexedDB or WebSQL where available) but with a simple, localStorage-like API.

Website:http://mozilla.github.io/localForage/

 You can edit this code