Iāve used idb to good effect. Simplifies the event logic. https://www.npmjs.com/package/idb
Havenāt tried PouchDB yet, but I think thatās likely the way Iād go on a fresh project. Since Nostr events are immutable, pairing PouchDB with one or more CouchDB replicas may be straightforward.