IDB

Back to Hell-licensed code

Download idb.js, Quick start with dummy example, Read the manual, Learn the native API, Dive into W3 Specs

Before you even start

There is a bit misconception among some coders when they first meet IndexedDB. To avoid it, it is important to keep in mind that:

When you start

Brace yourself for complex native API, which is far less intuitive than in webSQL. IDB simplifies it with help of Promises, keeping most but not all IndexedDB features. It is not needed to be familiar with Promises and IndexedDB to start with IDB, but the more features coder knows, the cleaner and simpler code he can write.

Consider running IndexedDB in Web Worker, for it is not dependent on DOM and runs many asynchronous operations, so the main thread is not cluttered with accidental complexity of the data manipulation.

IndexedDB is created locally in origin separated spaces. It can be created even without web server, in the file:// origin.