Today I learned and practiced using Pikchr. Pikchr is a low-level diagram markup language. This is my second attempt at it and I think it clicked this time.
The program is available is a single function library and a CLI that emits SVG.
There is obviously an #emacs mode for it with preview and org-babel support that works well.