It was on HN recently, the open source text-to-diagram tool d2 just launched an ascii output mode: https://d2lang.com/blog/ascii/
This is really close to what I wanted, thanks!