DEV Community

Discussion on: IndexedDB, something to rely upon?

Collapse
 
rhymes profile image
rhymes

Why do you say it is not used?

Anyhow IndexedDB has a complicated API, even Mozilla suggests using a wrapping library:

mdn

Collapse
 
misterhtmlcss profile image
Roger K.

Nice. Thanks for the tip.
By the way I know it's used per say, but what I'm saying is look at my examples and I don't see anything built like that. Not sure if I'm making myself understood or not.

Collapse
 
rhymes profile image
rhymes

Don't know, it's not easy to know how much IndexedDB is used. You would need to check web apps and see where they store their data. That's a daunting task :D

Checking the wrappers usage it would probably be easier:

  • dexie.js (IndexedDB only) has 3k stars on github, 15k weekly downloads
  • localForage (multiple backends, defaults to IndexedDB) has 15k stars and 133k weekly downloads
  • pouchdb (multiple backends, defaults to IndexedDB) has 11k stars and 14k weekly downloads

someone must be using them :D