VanillaStorage.js
Simple key/value based storage abstraction lib for usage in browser based environments. Uses IndexedDB with fallback to [deprecated but still widely supported and needed] WebSQL.
Check out the code & docs on
github
Watch the tests
here
or on
travis