August 12, 2025
Working on images!
Right now the images are stored as a base64 string but I noticed that this is an absolute RAM and storage killer so I'll definitely check out the so called blobs (binary smth. smth. idk).
Also noticed that the Tab's RAM usage jumps to SEVEN HUNDRED MEGABYTES ON A FRESH FIREFOX PROFILE upon literally just opening the Attachments Window. Definitely messed something up there but it works fine on Chrome for some reason .-.
Still refactoring to indexedDB but I'm almost done now! Almost everything expect exporting and importing diary entries works now (≧∇≦)/
First time using Github branches and I gotta say that they're pretty useful. I've created one when I tried to add the ability to add attachments to your entries (will delete that branch though cuz I'm refactoring from localStorage to indexedDB) and now one for refactoring to indexedDB. You can push all you want without breaking the demo and still work on other features on the main branch!
Gonna try to finish refactoring tomorrow and try to finally add attachments tomorrow or the day after tomorrow - we'll see!
Okay okay, so I took a step back and decided to refactor everything from localStorage to the indexedDB, not just the attachments. After quite some time I kinda figured out how to corretly use the indexedDB (I still struggle... (T_T)) and managed to refactor quite some stuff already. Will continue refactoring the rest tomorrow.
After that I'll try to finally add attachments to entries so you can upload pictures and other stuff! The basic code for that already exists but only using localStorage... .-. (Shouldn't be too hard to refactor that a well though, right..., right..., RIGHT???)
Mostly used Chrome while figuring out indexedDB's actually! I normally use Firefox cuz I thought that their tools are pretty straightforward and enough for what I do but I gotta say that Chrome's Storage tab is way cleaner and simply better than Firefox's.
Thought I'd get it working soon but apparently the localStorage has a storage limit LOL. Gonna explore IndexedDB (which allows using like 50% of disk space apparently?) tomorrow and try to use that instead. Maybe even for the diary entries cuz if you were to really use this for a loooong time then the entries alone could probably exceed that limit as well. Eughhh, I love refactoring...
You can change your theme in the settings now! Planning on adding more themes in the future (luckily I made it easy add new ones!!). Maybe even some theme-specific elements like a cute cat lying around in the corner or adding oneko, the ever popular kitty-that-follows-your-mouse-pointer toy :3
Worked on some QOL features that make coding easier and the site more enjoyable to use!
Made it way easier to send toast notifications everywhere on the site and made.
Worked on some QOL features that make coding easier. Can send notications from everywhere on the site now. Also worked a bit on responsiveness for different devices and made it possible to update your name without it reloading the page by just changing the one element where the name actually appears. And on the next page load it'll just load the name from the localStorage.
Also made the notifications a little bit more silly :3
I added toast notifications that occur when you don't fill in required input fields. I used React-Toastify by Fadi Khadra for that, it's really easy to use!
Apart from that I tweaked around with some css stuff and also added the ability to delete your entries. I'll also try to add a confirmation popup soon so you don't let your curious inner voices win (unless they also tell you to confirm...).
For the modules I also had the idea to make one where you could pick a song from Spotify e.g. I think that'd be pretty cool cuz songs can tell quite a lot about your feelings!
Anyways, that's it, thank ya' for reading!
Made some pretty dumb mistakes during those two hours so it took quite long, but I made progress!
There's a setup screen now. You can enter a name and upon submitting, it saves a JSON object, containing user information (only the name for now) in the localStorage.
There's also a button for random cat images now!! Took way too long to do that, but HEY IT'S THERE NOW!! (It's an <img> embedding a random image from CATAAS (Cat as a service; REST API)
Also made an Array containing quite a few fun facts that get shown randomly upon page load.
Howdy! 🤠
You can now edit your entries \(^▽^)/
The code's a mess, but hey... it works!!
Forgot to mention this in the last devlog but I also want to add different toggleable modules to diary entries (Mood, Pictures, Videos, etc.) so you can know even more about that day!!
Thanks for reading o/
You can finally view your diary entries!!
Next goal will be the ability to edit your entries but I'll most likely do that tmrw.
Goals for the future are:
- Quick setup when you first open the page (idk, will only ask for the name as of right now I think)
- Looots of cute Fun-Facts
- Ability to export & import a JSON file for your entries
- Some work on the design
- Maybeeee some kind of cloud-sync or at least automatic cloud backup? yea, I dunno yet :P
- And more customization options ofc but first I gotta do the basic stuff!!
This was widely regarded as a great move by everyone.