@hod.greeley thank you for your answer.
I would have been shocked if you used PouchDB — there’s quite a number of issues with CBSG + PouchDB but it does work. Yes, I use it for offline storage. I’m aiming for an “offline first” PWA experience.
If you do publish the source, please do reply here