Org-mode is a mode for marked-up plain text files in emacs that gives you note taking, outlining, to-do lists, scheduling, project management, time tracking, and journaling. It's really a good candidate for a private Memex, and you can store it however you want, not just on someone else's computer. There are mobile apps for it as well, and somewhat less-capable compatibility modes for vim and VSCode.
The only shortcoming I see for it as a personal Memex is the weak support for binary content (images, audio, word processing documents). It does support binary attachments, but they're not presented very well.