IndexedDB

Liron Navon
codesight
Published in
Jan 24, 2019

IndexedDB is a low-level browser API, designed to manage large amounts of data, it is also the only form of storage available for service workers, and is very useful for storing images, audio files and more.

IndexedDB is limited in size, but that limit depends on the browser, for storing blobs bigger than 50MB in firefox you would have to request permission, and in chrome, you get 20%

An image of a library with many books 🤷‍♂️

We are going to create a simple todo application, we will not have to create any UI, I’m solely focusing on the javascript implementation of indexedDB, I will, however, wrap all the calls with promises that return the result and an instance of the DB for easier chaining.

--

--