News for hackers. Stuff that matters.
Re:Create diagrams with code using Graphviz by samatman on Wednesday June 10, 2020 @08:34PM (#23483883)
This is something I've not only thought out but have a design document surrounding.

What I want from graphviz is a rich library, based on D3, for building interactive web components for graphviz SVG output.

dot is an absolute dream for constructing automatic representations of graph and tree data, including great stuff like lexical scope and project maps. But simply building it into a raw SVG runs the risk of drowning in detail.

If this library were built in support of a graph generator SPA, something that lets a user tweak the huge state space of graphviz style parameters in real time, well, sky's the limit.

I work with parsers and abstract syntax trees professionally. I've been salivating over the kind of legibility we could introduce into this space with just such a library.

I know it's a huge undertaking! I think you'd find a lot of enthusiasm for actually doing it, if you organized the space to make it possible and put out a call to action.

Re:Create diagrams with code using Graphviz by samatman on Wednesday June 10, 2020 @08:38PM (#23483919)
There's a proof of concept here: https://github.com/mstefaniuk/graph-viz-d3-js