IndexedDB Notes
I’ve been playing with a few toys. IndexedDB notes… let’s start there.
Ooh, I’ve just spotted something undesirable as I type this out! I wrote the first sentence, pressed ‘Save Note’ and then wrote the second sentence. After that, I pressed ‘Save Note’ again and it pushed a new document instead of overwriting the existing one. OK, that is not cool; I’ll fix that.
Anyway, I digress. I started this note to write out an actual blog post.
As I was saying, I’ve been playing. IndexedDB Notes (as the name implies) writes to the browser’s IndexedDB storage. It’s all self-contained in one .html file. Therefore, because of where it writes to, it does not require a server instance running.
After a few weeks of playing around with it, I’m once again on the fence with this. The all-in-one browser operation is a massive convenience. Or is it? I mean, I just do not trust browsers — any browser, Firefox included — to keep my notes 100% private. Why would I? Can’t add-ons gain access to all storage? They certainly can.
Ublock Origin, for example, has permission to “Access your data for all web sites”. It needs it. And I trust it so it is installed on my browser. I don’t have many add-ons; only two in total. But still, there is that voice at the back of my head which is nagging me.
OK, let’s look at reality. My humble notes are… rubbish! Random thoughts and blog post drafts, some half-written and forgotten as the moment fades. But… this is like a diary. My sisters used to keep diaries and heaven help you if you got within 10 meters of it! They contain private thoughts, emotions and wishes, given life through words. Some things are written but shouldn’t be. Other things are written and can become a bestseller. But all those words are — should be — private until the writer decides otherwise.
I quite like the idea of using a browser. I guess that is why I made it this way. There is less to faff about with: spellchecking, for one; compiling a full-blown app, for two. That said, I’m seriously considering throwing this into a server to write to an external database, local-only, of course. But still in a browser.
I’ll be back.
Written in: IndexedDB Notes –> https://git.cybrkyd.com/IndexedDB-notes/index.html
Bugs found: [1] Save again on new active note creates a new note.
Changes considered:
- Move writes to external database
- Add thousands separators to word and character count
- Maybe some feedback on save and exports?
