HackerTrans
トップ新着トレンドコメント過去質問紹介求人

alixanderwang

no profile record

投稿

D2 (text to diagram tool) now supports ASCII renders

d2lang.com
441 ポイント·投稿者 alixanderwang·11 か月前·73 コメント

Software Architecture Diagrams Gallery

softwarediagrams.com
2 ポイント·投稿者 alixanderwang·2 年前·0 コメント

Gallery of software diagrams

softwarediagrams.com
1 ポイント·投稿者 alixanderwang·2 年前·0 コメント

コメント

alixanderwang
·9 か月前·議論
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.
alixanderwang
·9 か月前·議論
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.
alixanderwang
·9 か月前·議論
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.
alixanderwang
·9 か月前·議論
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
alixanderwang
·9 か月前·議論
What if that style is already used though? (e.g. other connections are red)
alixanderwang
·9 か月前·議論
Coauthor of D2 here. Lately I've been noodling on the idea of expanding the animation capabilities. I think out loud a bit here, and if you have thoughts, would love to hear them:

https://github.com/terrastruct/d2/discussions/2677
alixanderwang
·9 か月前·議論
D2 does allow custom layout tweaking in the proprietary layout engine. Sadly it's not possible in the open-source ones.

https://docs.d2studio.ai/tour/freehand
alixanderwang
·10 か月前·議論
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
alixanderwang
·11 か月前·議論
Thank you, made an issue: https://github.com/terrastruct/text-to-diagram-site/issues/6...
alixanderwang
·11 か月前·議論
Yeah that one's a community plugin vs an officially maintained one, which can have a range of activity from graveyard to some being maintained better than many of our official ones. That maintainer seems active on GitHub though and the d2-emacs plugin is his top pinned repo (https://github.com/andorsk), I think he'd be receptive if you let him know your interest!
alixanderwang
·11 か月前·議論
<3

The linking you can do already if I understand the request correctly: https://play.d2lang.com/?script=Ks5ILEi1UihOLSxNzUtOjU_JTEwv...

Okay, we'll put those sequence diagram improvements in our sprint for next release.
alixanderwang
·11 か月前·議論
Can definitely concur about the Reddit part. Feels like commenters there are always looking for a gotcha
alixanderwang
·11 か月前·議論
1. It depends on what you value =). For some, those 2 you mentioned are enough. For others, it can be something like the our CLI doesn't require a chromium browser to render SVGs (https://news.ycombinator.com/item?id=31275754). It doesn't cover every difference, but we made a little comparison site if it helps: https://text-to-diagram.com

2. I'm not trying to advertise our paid product in this post about the open source product, but since you mentioned it, we make an IDE that adds the ability to lock in positions and dimensions: https://docs.terrastruct.com/tour/freehand
alixanderwang
·11 か月前·議論
Yeah I think what you're looking for is the note at the end of this section: https://d2lang.com/tour/exports/#svg

Feel free to make a PR to d2/d2-docs to include it in our list of community tools/plugins if you do!
alixanderwang
·11 か月前·議論
Unfortunately not, I've tried reaching out to GH folks but no dice. However it should be noted that d2.js, which enables client-side renders, didn't really become usable until this month and still isn't really officially released (kind of hidden). So, we'll see if the official release (soon™) changes things. If any D2-enjoyers reading this knows anyone on the GH frontend team, plz bend their ear =)
alixanderwang
·11 か月前·議論
Thanks! Good to know, we'll slot this for 0.7.2 (next release)
alixanderwang
·11 か月前·議論
It switches to ELK: https://github.com/terrastruct/d2/blob/master/d2cli/main.go#...
alixanderwang
·11 か月前·議論
It does now! (As of a week ago)

Check out the network tab in the d2 playground. It's powered by d2.js, a wrapper around a wasm port of d2, which we've recently been working on. Not super officially ready yet but soon to be, and will be a separate announcement.
alixanderwang
·11 か月前·議論
Ah right, forgot to test the update with dark mode. Thanks for letting me know!

edit: fixed
alixanderwang
·11 か月前·議論
Hello fellow devs. Just wanted to share a new feature we added this morning, though it's very alpha stage (already someone's filed a github issue for it hah)

If you want to skip the blog post and poke around directly: https://play.d2lang.com/?script=qlDQtVOotFLIyFTwSEzOTi1S8Est...

For a bigger example: https://play.d2lang.com/?script=rJJBjtswDEX3OgWBrm2kzU4Feoru...