Comment by tithe

1 year ago

It seems it's using `better-sqlite3`[0] and saving the database to a file called "private/unforget.db"[1].

(Although, I don't have experience with SQLite, so that file might be as volatile as `localStorage`.)

[0] https://www.npmjs.com/package/better-sqlite3

[1] https://github.com/computing-den/unforget/blob/master/src/se...

Yes that's the database on the server for storing encrypted notes and syncing. My experience with SQLite has been very positive. It really is rock solid.

Also, wanted to mention that Unforget doesn't use browser's localStorage. LocalStorage has a low limit and the browser can nuke it when it wants. Instead we use IndexedDB which has much higher limits and persistent.