Skip to content
Jude Payne edited this page Dec 30, 2022 · 10 revisions

Motivation

Producing diagrams dynamically is super powerful.

d2 is a toolkit for producing (technology) architectural diagrams from a text description (the d2 language). The text description is a great building block, but is isn't data in a programming language environment, so still has to be produced either by hand or by something else.

For example, say you're working in Technology in a large organization which has hundreds of applications and thousands of flows of data betwen them, then it's very hard to keep up with with that with a set of fixed, statically maintained diagrams that probably don't show the view you were looking for.

A better approach would be to collect the metadata about the applications and flows and then dynamically produce diagrams of selections of that metadata on the fly.

To do this, you'd to gather the metadata from where its stored and turn it into d2. Dictim is intended as a building block in that process for people working in Clojure/script - a data representation as d2 and functions to go from data to d2, and back again. It's designed for others to build on top of rather than as an end in itself, very much like hiccup is to html in the Clojure/script world.

Clone this wiki locally