

I can still recommend you Logseq and Obsidian.
They store their database mostly as plain markdown, so you can just use your sync app of choice (Nextcloud, Syncthing, etc.) to sync everything between devices.
Maybe Logseq offers their sync as self hostable service too, I don’t know.
I find Logseq extremely awesome and would recommend it to you.
Obsidian or Logseq.
I’ve used Logseq for my lab journal, thoughts, and whatsoever, and it works excellent for that.
It can be tricky tho if you want to collaborate, because the sync isn’t perfect yet, but the devs are working really hard on it