Oh, https://www.ilograph.com/ looks amazing to build C4 Model charts with. Its diagrams are defined using a custom YAML based language which could be generated off source code: https://www.ilograph.com/docs/editing/idl/