Recent submissions

Comment · 1 month ago
Comment · 1 month ago
Yes, I'm planning to open-source it tomorrow.
Comment · 1 year ago
You get this when transitioning boards in our hosted platform (try clicking): https://d2studio.ai/diagrams/664641071

I don't add this for D2 CLI because the outputs there are SVG, and this feature requires Javascript.

Comment · 1 year ago
I love this hahah. Diagrams as a comic book.

The urge to add silly stuff like this vs working on v2 of sequence diagram that has much more demand is often tempting.

Comment · 1 year ago
The purpose is to make use of a dimension of the visual space previously unused to make diagrams more expressive.

Even if it's something simple like a node turning from green to red to convey it's shutting down. Maybe something like that before animations would be a text saying, "this node will shut down now", which takes reading/zooming into text.

I also think it can, if used well, result in diagrams that ⋆⋆spark joy⋆⋆. People like to see diagrams like that, even if it's not more utilitarian. I think sketch mode is an example of this. It changes the font to an objectively less readable one, yet I often hear people make all their D2 diagrams in sketch mode.

Comment · 1 year ago
We have examples here, though I need to add more.

https://d2lang.com/examples/elk/

I like ELK's output better sometimes too, e.g. the Golang Queue example. Choice is good

Comment · 1 year ago
What if that style is already used though? (e.g. other connections are red)
Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago
At the very least, assuming you're correct the current slow infrastructure is by design, it seems good there are options.

A business can choose if they want

1. slow, pay for customer support and fraud protection

2. instant, lower cost, mistakes are irreversible

Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton