https://logseq.com/

focused on privacy but that leans more towards RoamResearch UX

open source, the file encryption feature is built-in (you can opt-in or opt-out) and all the documents are saved locally in md files.