Live data from Hacker News

D2: A new declarative language to turn text into diagrams

d2-lang.com

21–30 of 130 posts

Re: D2: A new declarative language to turn text into diagrams

#21

Earlier quoted context omitted.

Why uh. Would you expect that to work? How much of your life were you planning to dedicate to scrolling from one side of the image to another?

I think he expects to be able to zoom out.

Yup for zoomed out views. It’s handy when visualizing large websites.

Re: D2: A new declarative language to turn text into diagrams

#22
post #13
post #4

The last question in the FAQ makes it clear that this can only be used in the context of their account-based online tool. Their free offering literally says "3 diagrams". Above this, the FAQ tries to compare their tool to Mermaid, Graphviz, PlantUML which are all open source, locally runnable, etc. Their comparison totally skips the fact that, because D2 can only be used in their service, a broad number of use cases…

Agree. To be honest, I'd find it useful if it were closed source but native installable tool that can convert text to diagram which then could be exported to image/pdf etc.

Yup. I use many paid, local tools. And because there’s no network service nonsense it’s not a problem at work.

Re: D2: A new declarative language to turn text into diagrams

#23
post #4

The last question in the FAQ makes it clear that this can only be used in the context of their account-based online tool. Their free offering literally says "3 diagrams". Above this, the FAQ tries to compare their tool to Mermaid, Graphviz, PlantUML which are all open source, locally runnable, etc. Their comparison totally skips the fact that, because D2 can only be used in their service, a broad number of use cases…

People seem to be missing that this is a preview, not a product (yet). And that: "When the language is more stable, we intend to open source D2. This will happen sometime in 2022."

Re: D2: A new declarative language to turn text into diagrams

#24
post #4

The last question in the FAQ makes it clear that this can only be used in the context of their account-based online tool. Their free offering literally says "3 diagrams". Above this, the FAQ tries to compare their tool to Mermaid, Graphviz, PlantUML which are all open source, locally runnable, etc. Their comparison totally skips the fact that, because D2 can only be used in their service, a broad number of use cases…

People seem to be missing that this is a preview, not a product (yet). And that: "When the language is more stable, we intend to open source D2. This will happen sometime in 2022."

Perhaps then "Preview/Beta online service" should be part of the Headline/title.

Re: D2: A new declarative language to turn text into diagrams

#26
post #4

The last question in the FAQ makes it clear that this can only be used in the context of their account-based online tool. Their free offering literally says "3 diagrams". Above this, the FAQ tries to compare their tool to Mermaid, Graphviz, PlantUML which are all open source, locally runnable, etc. Their comparison totally skips the fact that, because D2 can only be used in their service, a broad number of use cases…

This is a complete non starter for any regulated industry. Shame. Mermaid works almost okay and often looks like garbage. I wish there was an open source effort somewhere to do better, or even a paid locally runnable tool that has no service connections.

Here's an option: https://stonecypher.github.io/jssm-viz-demo/graph_explorer.h...

Re: D2: A new declarative language to turn text into diagrams

#27
post #2

A declarative language for diagrams without so much as a passing mention of Graphviz, or even Mermaid.js anywhere in the docs? It does look like a material upgrade from Graphviz, but even so...

graphviz svg output can be (with some tricks) CSS-styled + JS-animated, so the sky is the limit w.r.t. how fancy you want to make you DOT graphs, and their elements.

Re: D2: A new declarative language to turn text into diagrams

#28
post #2

A declarative language for diagrams without so much as a passing mention of Graphviz, or even Mermaid.js anywhere in the docs? It does look like a material upgrade from Graphviz, but even so...

graphviz svg output can be (with some tricks) CSS-styled + JS-animated, so the sky is the limit w.r.t. how fancy you want to make you DOT graphs, and their elements.

actually the effective limit seems to be around 50 nodes

Re: D2: A new declarative language to turn text into diagrams

#30
post #4

The last question in the FAQ makes it clear that this can only be used in the context of their account-based online tool. Their free offering literally says "3 diagrams". Above this, the FAQ tries to compare their tool to Mermaid, Graphviz, PlantUML which are all open source, locally runnable, etc. Their comparison totally skips the fact that, because D2 can only be used in their service, a broad number of use cases…

Would you believe me if I said this was just an ad and you wasted time on it? Just because HN isn't Reddit doesn't mean ads aren't thrown in with all the curated "content"

May be an ad but this is something I would actually use if it wasn't paid.

Like other said, maybe it will inspire someone to take this and make an open-source version

Post reply on HN