Structurizr looks popular but I don't love needing to learn yet another DSL. Does there exist a way to describe things in an existing language with a library?
To use the example on their website, I would like something like this in JS:
let { Component, Container, Diagram, Person } = import 'c4'
let user = new Person('User')
let system = new Container('Software System')
let webapp = new Component('Web Application')
let database = new Component('Web Application')
system.contains(webapp)
system.contains(database)
user.uses(webapp).via('Uses')
webapp.uses(database).via('Reads from and writes to')
export new Digram()
.title('Software System')
.theme('default')
.shows([user, system])
.type('container')
Edit: As it turns out, there are a couple libraries like this:
To use the example on their website, I would like something like this in JS:
Edit: As it turns out, there are a couple libraries like this:- Python: https://github.com/nielsvanspauwen/pystructurizr
- C#: https://github.com/8T4/c4sharp
Don't see one for JS though. Smells like an opportunity for someone.