idxf ( which stands for IndexedDb Facade) is a small javascript library that is aimed at providing an easy-to-use interface to the indexedDb API
idxf is written in pure javascript and does not depend on any 3rd party libraries.
Just include following code into the <head>
tag of your HTML:
<!-- include idxf.min.js-->
<script src="idxf.min.js"></script>
Create
a database.
var newdb = db("database_name", database_version:int );
Add
a store.
newdb.addStore("store_name");
-or-
newdb.addStore(["store_name_1","store_name_2"...]);
NB: The add store routine can only be called once per browser load.
Add
data to a store.
newdb.addData("store_name", data:object );