I love how more and more of us are using Git to store our notes, though in this case it's more coupled to GitHub than Git. If there is already a need to self-host this, then why not just hook into git and make this more generic?
In fact, why is a Postgres database even needed?
Please note that I'm biased. I work on [GitJournal](https://gitjournal.io) which is similar, but only mobile based.