I've been using Emacs Org mode backed by a private github repository for a completely free way to take tree-like notes. Did anyone find anything better?
Can self host & sync, bidirectional links, note transclusion (incredibly powerful), built on markdown files, nice interactive graph views and in the case of obsidian there is a good plugin community.