Closed peacememories closed 6 years ago
I myself never tried, but hope that helps https://github.com/substack/random-access-idb
I myself never tried, but hope that helps https://github.com/substack/random-access-idb
:+1: this works with hyperdrive, should work with hyperdb as well.
What @joehand said :) Feel free to re-open if you're having issues
Did you ever get this to work, @peacememories ?
I can’t quite remember (I never did finish that project) but I think I had success with random-access-idb
@eklem you can try random-access-web as well: https://github.com/random-access-storage/random-access-web
Thanks @joehand!
I've been trying to get a persistent hyperdb to work in my browser for the past 2 days. The problem is that hyperdb expects
random-access-storage
based storage as its backend, and the only existing implementation that works in the browser israndom-access-memory
, which is volatile. This would mean that everytime my browser tab is reloaded it will lose its content and when it connects to peers it will need to be reauthorized.I've tried frankensteining together
level-browserify
andrandom-access-memory
, but this is very error prone. Is there a backend for hyperdb that supports persistent browser storage? or maybe another way of preserving the key and replaying changes without breaking the database?