Hacker News new | ask | show | jobs
by TehShrike 1774 days ago
> Every [IndexedDB] library I looked at was messy and made performance even worse

Seconded – I was pretty dismayed when I saw the IndexedDB helper library landscape.

I ended up making https://github.com/TehShrike/small-indexeddb which is ~50 lines to make it less onerous to work directly with the IDBObjectStore.

1 comments

I've had good experiences with

https://github.com/jakearchibald/idb

It's basically a promise-based version of the standard API.

Yeah, Jake made idb not too long after I made small-indexeddb. I think it's one of the most reasonable options (and it has TypeScript types!), but it's still about 5x as much code as small-indexeddb.