Working with large datasets in a browser: Libraries to work with IndxedDB
November 23, 2024•139 words
IndexedDB is an interesting technology. With it you can build close to native web apps without installing it to your user computer. But working with it is far from pleasant. Here we can take a look how to improve your developer experience to work with IndexedDB.
First of all there no right wrong library. Every tool is solving some problem and you should find a tool that fits your need.
IDB and IDB-keyval
https://github.com/jakearchibald/idb
It's basically same IndexedDB API, but wrapped with Promises. I think it will be best choice for 99% apps.
Prons:
- keyval is easy to start with
- You learning to work with IndexedDB
Cons:
- Only basic features
- No observability
You will need to find a way to sync changes to your backend
Dixie
RxDB
Limitations of the platform