IndexedDB Playground

Mr. Tono's archive cabinet: IndexedDB requests, versions and transactions run for real, stepped in the browser's order. An interactive IndexedDB playground…

Why it matters

IndexedDB keeps real objects in large amounts without blocking the page, but its API is built on requests and events. Misreading the order, the versions or a transaction’s lifetime gives puzzling errors: InvalidStateError, TransactionInactiveError, data lost to an abort.

The key idea

Every call is a request; every errand is a transaction that closes itself

Common mistakes

Try it in this playground