News for hackers. Stuff that matters.
Re:Ask HN: Have you made any use of IndexedDB? by evrimfeyyaz on Wednesday June 10, 2020 @03:48PM (#23481242)
I use it on a simple website I built: https://covid19incharts.com

This website fetches the Johns Hopkins University COVID-19 data from GitHub (in CSV files), and fetching this every single user action is not feasible.

When a user first enters the website, this data is fetched from GitHub, parsed and formatted, and stored in IndexedDB (until it's deemed "stale").

I first used Local Storage, but I needed more space than most browsers allow on Local Storage, so I moved to IndexedDB.

By the way, the API of IndexedDB is somewhat awkward, but there are great libraries like IDB (https://github.com/jakearchibald/idb) that make it much more developer-friendly.

Re:Ask HN: Have you made any use of IndexedDB? by kizer on Thursday June 11, 2020 @08:02PM (#23494526)
Cool! I figure now that it’s mostly used to cache (relational/made relational) datasets.