small-tech / jsdb

A transparent, in-memory, streaming write-on-update JavaScript database for Small Web applications that persists to a JavaScript transaction log.
Other
237 stars 8 forks source link

Save to local storage ? #12

Closed johnoscott closed 1 year ago

johnoscott commented 2 years ago

For a browser-only use of JSDB, how can I use JSDB without a server and store to localstorage ?

and further to this, can I still use a server but implement a "local storage - first" solution that will allow offline use ?

aral commented 1 year ago

@johnoscott Unfortunately, there’s no way to do this currently. My use case for JSDB is currently server-side only. That said, if anyone comes up with creative ways of achieving this without introducing too much additional complexity, I’ll be happy to consider it.

PS. I’m in the process of moving the repository to Codeberg. If anyone wants to discuss implementing this there, please feel free to open an issue there.