This looks very, very close! I may end up trying it as it seems I may be looking into a 'perfect is enemy of good' situation here.
This does not support handwriting / free-inking AFAICT but does have a very promising feature set:
* save to local sqlite
* desktop, terminal, mobile app
* E2EE
* Portable app for USBs
* WebDAV sync
* Dropbox, Evernote sync
* File attachments, and if they are images, the images are rendered