I have one requirement where should be stored locally when internet is not available. It should handle it in cross browser compatible way. Now as I know there are variety of options to store the data locally (indexedDB, WebSQL, localStorage). All I really want is a unified API. I don’t want to detect and write code for several storage engines.
All I really care about is give a key, and give the data and it should be persisted across browser sessions/crashes.
After lot of googling the only library that I have actually come across is persisJS:
http://pablotron.org/?cid=1557
But it is roughly 4 1/2 years old. Is there anything better ormore reliable and newer than this?
Try out SequelSphere
It is a 100% HTML5/JavaScript Relational Database that works cross-browser and uses local storage to persist it’s data. You can use SQL to query it as well. It is it’s own database engine, and doesn’t rely upon the built-in relational databases. As such, it will work across all browsers.