D2 (text to diagram tool) now supports ASCII renders

110 alixanderwang 13 8/19/2025, 6:14:41 PM d2lang.com ↗

Comments (13)

smusamashah · 5m ago
I maintain a list of browser based text to diagram tools (which I have shared a number of times here). I recently realised that the online version of D2 does NOT work solely in browser, diagram's are generated by backend servers.

Can D2 work in browser by itself? Does the extension mentioned in the post work offline? (lots of tools do)

alixanderwang · 47s ago
It does!

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 · 2h ago
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...

rng-concern · 30m ago
I thought your playground wasn't working as it renders black text on black background. Maybe I have darkmode enabled or something. Other renderers work, but ascii is invisible.
alixanderwang · 19m ago
Ah right, forgot to test the update with dark mode. Thanks for letting me know!
sidewndr46 · 11m ago
Does this mean a quine is possible?
robertlagrant · 2h ago
This looks cool. And I saw the previous post you got C4 support! I'm just about to do some C4 things; I'll check it out.
eric-p7 · 1h ago
Not to be confused with The D Programming Language, which has a similar domain (dlang.org), and is currently on version 2.
reactordev · 1h ago
The vim extension is such a flex...
bxpn77 · 1h ago
Super cool!
jillesvangurp · 1h ago
Llm to text to diagram is the killer workflow these days.

The key challenge is making these things presentable. Optimizing them for human editability is a secondary concern at this point. This is where a lot of these tools fall apart.

justonceokay · 28m ago
I use LLM to tell my children bedtime stories and to wish my wife goodnight. Saves me a lot of time and energy
billyp-rva · 1h ago
> Llm to text to diagram is the killer workflow these days.

It's useful, but I think only marginally. When using a diagrams-as-code tool, having an LLM write it for you gets you up and running faster, but long term you have more control (and no hallucinations) just writing the code yourself. It'll probably be fewer keystrokes in the end. Doubly so if your diagrams-as-code tool has decent autocomplete.