Best IndexDB Index I Can Find, Using IndexDB in MDN.
And there are many Firefox applications for the default OS ( gaia ), such as gallery, browser using IndexDB. You can see how it works in real life.
Or you can use the lighter window.localStorage API, which works like a dictionary.
localStorage.setItem(key, value); localStorage.getItem(key);
EDIT: Please note that localStorage is not recommended because it blocks the main thread. Instead, use gaia/shared/asyncStorage .
For XHR, you can check out the Firefox-OS-Boilerplate-App for a working XHR demo
gasolin
source share