I was recently turned on to Notesnook and it’s been incredible. It really is a FOSS replacement for Evernote.
Getting sync server running is a bit of a challenge, though, since there is very little documentation for it. If you’ve ever set up an internet-connected server before, though, it’s not too hard to figure out. There’s a docker-compose.yml file that does a lot of the work for you.