Mermaid - support in many markdown rendering pages. Embedding a ``` block in Markdown and having it versioned as text is the big win.
Graphviz - same basic reason as Mermaid, though no markdown support. Versioning text is a lot easier than versioning binaries.
Draw.io - if you've got to have a binary, this is it. In particular, it allows you to embed the drawing information in the image so that you can import a .png file into draw.io and get the drawing.
rcarmo 3 days ago [-]
My big complaint about mermaid is that you cannot easily generate and store the SVGs without a browser engine—-even the CLI goes and runs Chrome, which feels insane.
Regarding graphviz/dot, I have been using it from what feels like the dawn of time and am somewhat sad that we haven’t improved upon it. The syntax, styling imitations, etc. put me off enough that I tend to avoid it.
For graphviz, the "problem" with it is that it truly is general purpose and trying to make a general purpose syntax for diagrams is difficult. Mermaid tackles this by not having it be applicable to all possible graphs (flow chart has a different syntax than gitGraph) allowing for a better domain specific language for each subset of functionality.
https://mermaid.js.org/syntax/packet.html is really neat... and it would be a pain to do that in GraphViz ... but I believe that's more of a demonstration that it might be better to do specific syntaxes for specific types of diagrams.
mermaid-cli uses puppeteer to run a browser. The container packs Chromium. It makes no real effort to render anything without all that overhead.
scrapheap 3 days ago [-]
I'm a big fan of both Mermaid and Graphviz - Thanks to GitLab supporting Mermaid we can put relevant project diagrams inline in Markdown docs that live in the same git repo as the rest of the project code.
And if I need to generate a graph programmaticaly then I instinctively reach for Graphviz as it's solid and can produce the graphs in so many different file formats that they're easy to include wherever they're needed. Your code is a lot simpler as it doesn't need to handle any of the rendering logic, it just needs to work out which nodes are connected by which edges.
ajkjk 4 days ago [-]
Semi, aside, but I'm desperate for a better way to make math diagrams (WYSIWYG style, not TeX). I asked about this a while ago and nothing is really doing it for me: https://news.ycombinator.com/item?id=38351370. Although since then I have heard about https://penrose.cs.cmu.edu/ as well. Right now I use Excalidraw because there's a fork (never landed... ugh) which supports TeX in labels. But its actual drawing tools are quite limited, not to mention janky. There are some other options not mentioned in that thread which I've found in since then, but I still haven't seen anything satisfactory.
If you made math stuff easy to draw I'd use your tool in a heartbeat. Unfortunately there's probably not a large market for that sort of thing.
ttd 4 days ago [-]
I completely get this usecase, TikZ is great but sometimes WYSIWYG is just easier to work with. Re: math stuff in particular, you may be in luck, my tool does already support LaTeX equations as first-class objects. Check out https://vexlio.com/latex-equation-editing/ for a quick screencap if you're interested.
lr1970 3 days ago [-]
Obsidian has an excalidraw plugin that supports LaTeX both math and text. Then you can export your final diagram in many formats (pdf, svg, png, jpg).
ajkjk 3 days ago [-]
I'm aware, but excalidraw is fairly underpowered for diagramming. It can do TeX but very little in the way of actual figures without a lot of finicky manual effort.
brylie 4 days ago [-]
I've had a great experience using Excalidraw, which is also open source:
Occasionally it can be hard to wrestle with but my go-to is PlantUML, which has a simple syntax and for better or for worse doesn't support many formatting options, so I can't get distracted tweaking the specifics of the layout
hiAndrewQuinn 3 days ago [-]
https://mermaid.live/ ! Mostly because it lets me generate my diagrams in code rather than drawing them out by hand, which means I can version control them, as well as generate said code from human-language descriptions given to ChatGPT. Sequence diagrams are an especially favorite of mine.
There are a few good options in the code to SVG (PNG, JPG, whatever) space besides Mermaid. The venerable graphviz has been around since the 90s, I think, and uses the DOT language. The newer D2 language probably has the nicest overall aesthetics as well: https://play.d2lang.com/
manishsharan 1 days ago [-]
Thanks for posting this. I can not t use Graphviz as the diagrams look too amateurish to be shared in a presentation . But D2 diagrams look amazing and polished. I will try it out and maybe I can finally get rid of Visio. I find working with Visio very tedious.
gmuslera 4 days ago [-]
It depends on the use. If it is simple enough, mermaid diagrams have several advantages, like easy to understand versioning, and integration with many note taking programs.
viraptor 4 days ago [-]
Excalidraw for life. It can be embedded in Obsidian as well.
Draw.io is OK too, but the interaction is much slower when editing. The strict position/shape of arrows makes me want to clean things up way more than necessary and waste time.
I'd maybe consider miro or draw.io if I was working on something with other people and expected lots of edits and change history.
Mermaid is an interesting concept, but putting things in the reasonable location can be next to impossible and a single new connection can blow up the whole layout. And the integration is never quite polished - so many times I've been scrolling down a github page just to suddenly stop and resize a diagram. Then the panning/zoom is a bit clunky. (I know it's a client issue, but unless the defaults become reasonable, it's a mermaid issue too)
2 days ago [-]
Octoth0rpe 4 days ago [-]
99% sure this is not what you're asking for, but I think it's worth mentioning monodraw: https://monodraw.helftone.com
It's really useful for embedding diagrams in your code. Not so much for uses outside of code though.
ttd 4 days ago [-]
Hey, I got some good use out of Emacs artist-mode for a while - so I love seeing ideas like this! Thanks for linking that, hadn't seen it before.
oliverx0 4 days ago [-]
This looks so much fun, thanks for sharing.
jamesponddotco 4 days ago [-]
I'm clearly biased since I work at Datadog[1], but I use and recommend Cloudcraft[2] for diagramming. As I don't use the cloud I focus more on the manual design tools, but the automatic stuff are pretty neat.
Recently, though, I've been using D2[3] a lot and really liking it. The diagrams don't look as aesthetically pleasing to my eyes, but being able to design everything with a simple language is pretty cool, and helps with automation.
[1]: Datadog owns Cloudcraft, hence the bias. Plus, I work in the Cloudcraft team, haha.
Does Cloudcraft do generic diagramming? At least from the landing page it seems pretty purpose-built for cloud architecture diagramming only. I also have to give major kudos for whoever made the call to go with an isometric projection... visually and mentally, it's a perfect choice for that domain!
jamesponddotco 4 days ago [-]
The focus is cloud architecture diagramming, but you can use the design tools to diagram bare-metal architectures if you want or anything else, really. Heck, we had an internal game of chess going at some point and someone was rebuilding pieces of New York City using the design tools.
Terretta 3 days ago [-]
Due to pricing model, due to cost CloudCraft is effectively unusable for small shops using accounts as an information boundary (per best practices for certain sectors).
Doesn't mean small firms wouldn't want to. Just, it's not sold that way. Super disappointing!
rednafi 2 days ago [-]
I like Mermaid[1], but can’t be bothered to learn the syntax. So, most of the time, I ask LLMs to generate the scaffolding and work from that.
For freehand drawing, to me, nothing beats Excalidraw[2]. I use it for pretty much everything—from system design work to planning a project and explaining a concept. Such a wonderful tool from the Czech Republic.
Graphviz! The syntax is kind of absurd, but it produces some beautiful results and can be version controlled.
ttd 4 days ago [-]
Definitely a personal fan of Graphviz as well! One thing I'm curious about are usecases that require version-controlled diagram sources. Do you guys have e.g. a build step that updates the rendered version somewhere? Or Confluence integration, etc?
SAI_Peregrinus 4 days ago [-]
I'm not the person you replied to, but for projects I maintain at work we've got a plugin for Confluence called Mark. It allows using Markdown to create Confluence pages, which is useful because the company uses Confluence for some reason. For diagrams (Mermaid, GraphViz, etc.) the source for the diagram is kept with the Markdown & I've got a CI job that generates diagrams & then runs Mark to update Confluence.
It makes it a lot easier to keep the documentation in sync with the code than having to remember to go to Confluence and update things. And avoids the pain of dealing with Atlassian's slow-loading site.
bqmjjx0kac 4 days ago [-]
I work at a BigCorp with a fancy md-to-html generator that supports graphviz via code blocks, e.g.
```dot
digraph { a -> b }
```
But day-to-day, I actually use graphviz inside emacs org-mode (and in a private git repo). If you press C-c C-c with your cursor on the code blocks, it plops the rendered graph below.
ttd 4 days ago [-]
TIL org-mode can do that (though I really shouldn't be surprised). Thanks for the info!
bitozoid 1 days ago [-]
What I ask to a diagramming software:
- To be open source, or open specification/format.
- Easy eaditable (gui/tui/source), that is, primitives. I don't want to edit a text based diagram with a text editor (emacs artist mode).
- Free design features, so I have some control on the presentation.
- Render to text diagram as a first class feature, so it can be integrated in source code/control. From text rendering it can easily be converted to vectorial/raster.
- CLI to render.
- DSL, better with geometric (position, size) and styling features (color, bold face, ...).
Depends on the diagram. But a lot of times it's OpenOffice Draw[1]. I might also use Archi[2] or GraphViz[3] depending on what I'm trying to do. I've also dabbled with using Papyrus[4] but it hasn't yet become a routine part of my workflow. Maybe it should though...
Excalidraw and PlantUML
Each one has its own benefits / drawbacks.
PlantUML is great for version-controlled files.
Excalidraw for throwaway diagrams and discussion. Ocassionally I draw comic strips with Excalidraw.
shagmin 4 days ago [-]
For work especially if it's for a large audience I use Visio or GraphViz. For my own consumption (and a couple co-workers) I really prefer mermaidjs, especially just to have it embedded in markdown files.
ttd 4 days ago [-]
For your large audience cases - do those typically go in one-off presentations or are they for more long-lived things (design docs, customer-facing docs, etc)?
shagmin 3 days ago [-]
Where I work now 95% of the time it's long-lived things - design docs, architecture diagrams, etc.,.
mkl 1 days ago [-]
I generally use TikZ or Inkscape, or occasionally Asymptote, depending on the context.
Some quick notes about your app:
- No touch zoom/pan. Apart from that it worked okay on a Galaxy Note phone with the pen.
- I managed to make a shape vanish by (I think) rotating it quickly. I couldn't repeat that.
- The polyline selection seems quite broken. Draw a shape, then draw a polyline around it. Now you can't select the first shape, even though it's not obscured by anything.
It connects to your system using OpenTelemetry and it lets you automatically document all the components, dependencies, APIs, etc. I prefer it to static, drag and drop whiteboards because I get immediate visibility without having to waste time moving boxes and arrows.
(Of course you can still create sketches if you want, but the real value is in getting the information you need immediately)
Terretta 3 days ago [-]
Such a shame products like this hide features behind Call Us or Let's Chat buttons. Just let people buy it.
Ancapistani 4 days ago [-]
I use Mermaid.js - either through Notion or via an Mkdocs static site.
Increasingly, I'm describing my diagrams to an LLM and letting _it_ generate the Mermaid.
Eddy_Viscosity2 3 days ago [-]
I'm a latex user so I tried tikz and I like the results but it's often too much work. I end up most of the time using PowerPoint and using those drawing tools on a blank slide and then printing that slide to pdf so I get vector graphics then loading that into a pdf tool to crop it. Not a great system but still faster than tikz. I would love a better tool.
cratermoon 4 days ago [-]
None of the visual diagramming tools pass muster for me.
They are all too fiddly and trying to use them requires a lot of yak-shaving to get the layout acceptable.
The diagrams I draw are all done with something like graphviz, plantuml, mermaid, Structurizr, or d2.
Very rarely I'll use excalidraw to throw together a one-off.
nunez 4 days ago [-]
I'm a Sales/Solutions/Systems Engineer/Consultant/Architect, but I also code still. I create loads of diagrams for work.
For Enterprise-Grade Slideware™, I'll use either Lucidchart or draw.io.
For my personal projects, I'll use Mermaid.
ttd 4 days ago [-]
Hah, I appreciate the distinction on enterprise-grade... Anything in particular you like or dislike in particular from your experience with Lucidchart or draw.io?
nunez 3 days ago [-]
I prefer draw.io, honestly. It's lighter weight and does 99% of what I use Lucidchart for. However, Lucid has a bigger icon library, which matters sometimes.
rthnbgrredf 4 days ago [-]
I instruct sonnet-3.7-thinking in Cursor Agent mode to draw latex tikz diagrams for me and that works iteratively quite well.
Draw a circle, add a label to the circle, draw a box right to it, draw an arrow from the circle to the box, and so on.
fosco 4 days ago [-]
I’ve worked at some very large networks.
In a pinch and when on a call, it’s always Microsoft paint.
simonsarris 4 days ago [-]
Well I make https://gojs.net, so I just use the GoJS diagramming library to make diagrams :D
Of course, its made for developers trying to make applications, not end users.
mapmap 1 days ago [-]
If you're looking for labeled shapes with connections, Apple's Keynote is a great free alternative to OmniGraffle.
nextts 2 days ago [-]
The one built into confluence because then someone else can edit it. But I am not an architect. If I was I may get a dedicated tool.
outer_web 1 days ago [-]
They always end up in Powerpoint at the end of the day so I just cut out the middleman.
fullstackwife 1 days ago [-]
Figjam, and then doing a screenshot, and paste to the destination doc
Aeolun 4 days ago [-]
I’ve used terrastruct a lot over the past few years. It’s really nice to write your diagrams with code.
draw.io mostly, export as PNG and include the actual diagram XML within the PNG so it can be opened and edited.
very rarely use mermaid, but good for some simple README/markdown style diagrams.
mannyv 4 days ago [-]
I usually will do a draft in notability then use draw.io.
brunooliv 4 days ago [-]
draw.io
freefaler 4 days ago [-]
Indeed, very useful, because they can be embedded and have many integrations.
johntitorjr 4 days ago [-]
[dead]
sathomasga 4 days ago [-]
Apple Keynote.
atoav 1 days ago [-]
As others mentioned mermaid and graphviz already, I want to throw in two slightly more obscure ways:
schemdraw (python library) is a library for drawing beautiful circuit diagrams. It has a surprisingly effective flowchart part as well, that allows you even to draw custom beziers arrows and stuff. You can do manual positioning of everything, which is sometimes an anonoyance with mermaid. Outputs to svg or png. https://schemdraw.readthedocs.io/en/stable/
matplotlib (python library), people know it for drawing charts and such things, but if you want to build your own drawings that deviate strongly from existing solutions, all the drawing primitives are in there. See for example: https://matplotlib.org/matplotblog/posts/mpl-for-making-diag...
And for just wrapping your head around something, a piece of paper and a sharpened pencil are surprisingly effective at not wasting your time.
theyknowitsxmas 4 days ago [-]
MermaidJS
PaulHoule 4 days ago [-]
Powerpoint
plasma_beam 4 days ago [-]
Powerpoint is also my go to. It just feels more natural and I prefer editing locally, not in web browser.
thatxliner 2 days ago [-]
Excalidraw and Mermaid
rcarmo 3 days ago [-]
This is timely. I have grown disappointed with mermaid as it can only render stuff in the browser and libraries that use dot underneath but do not afford full control over the generation, so I have stared writing little Python programs that generate SVGs for things like sequence diagrams and store their output.
ranger_danger 4 days ago [-]
plantuml, it's hard to beat diagrams as code
a9ex 4 days ago [-]
FigJam by Figma
mkranjec 4 days ago [-]
excalidraw as already mentioned above
manishsharan 2 days ago [-]
Visio.
I have tried Graphviz but the diagrams looked shoddy.
olea 4 days ago [-]
plantuml.
stfp 4 days ago [-]
miro
andyjohnson0 3 days ago [-]
Visio. No drama, just works. Not cheap though.
4 days ago [-]
Jack5500 4 days ago [-]
tldraw.com
Rendered at 18:51:28 GMT+0000 (Coordinated Universal Time) with Vercel.
Graphviz - same basic reason as Mermaid, though no markdown support. Versioning text is a lot easier than versioning binaries.
Draw.io - if you've got to have a binary, this is it. In particular, it allows you to embed the drawing information in the image so that you can import a .png file into draw.io and get the drawing.
Regarding graphviz/dot, I have been using it from what feels like the dawn of time and am somewhat sad that we haven’t improved upon it. The syntax, styling imitations, etc. put me off enough that I tend to avoid it.
For graphviz, the "problem" with it is that it truly is general purpose and trying to make a general purpose syntax for diagrams is difficult. Mermaid tackles this by not having it be applicable to all possible graphs (flow chart has a different syntax than gitGraph) allowing for a better domain specific language for each subset of functionality.
https://mermaid.js.org/syntax/packet.html is really neat... and it would be a pain to do that in GraphViz ... but I believe that's more of a demonstration that it might be better to do specific syntaxes for specific types of diagrams.
The most general Mermaid form is https://mermaid.js.org/syntax/block.html - and that syntax doesn't really feel like it is an improvement over GraphViz.
And if I need to generate a graph programmaticaly then I instinctively reach for Graphviz as it's solid and can produce the graphs in so many different file formats that they're easy to include wherever they're needed. Your code is a lot simpler as it doesn't need to handle any of the rendering logic, it just needs to work out which nodes are connected by which edges.
If you made math stuff easy to draw I'd use your tool in a heartbeat. Unfortunately there's probably not a large market for that sort of thing.
https://excalidraw.com/
https://github.com/excalidraw/excalidraw
There are a few good options in the code to SVG (PNG, JPG, whatever) space besides Mermaid. The venerable graphviz has been around since the 90s, I think, and uses the DOT language. The newer D2 language probably has the nicest overall aesthetics as well: https://play.d2lang.com/
Draw.io is OK too, but the interaction is much slower when editing. The strict position/shape of arrows makes me want to clean things up way more than necessary and waste time.
I'd maybe consider miro or draw.io if I was working on something with other people and expected lots of edits and change history.
Mermaid is an interesting concept, but putting things in the reasonable location can be next to impossible and a single new connection can blow up the whole layout. And the integration is never quite polished - so many times I've been scrolling down a github page just to suddenly stop and resize a diagram. Then the panning/zoom is a bit clunky. (I know it's a client issue, but unless the defaults become reasonable, it's a mermaid issue too)
It's really useful for embedding diagrams in your code. Not so much for uses outside of code though.
Recently, though, I've been using D2[3] a lot and really liking it. The diagrams don't look as aesthetically pleasing to my eyes, but being able to design everything with a simple language is pretty cool, and helps with automation.
[1]: Datadog owns Cloudcraft, hence the bias. Plus, I work in the Cloudcraft team, haha.
[2]: https://www.cloudcraft.co
[3]: https://d2lang.com
Doesn't mean small firms wouldn't want to. Just, it's not sold that way. Super disappointing!
For freehand drawing, to me, nothing beats Excalidraw[2]. I use it for pretty much everything—from system design work to planning a project and explaining a concept. Such a wonderful tool from the Czech Republic.
[1]: https://mermaid.js.org/
[2]: https://excalidraw.com/
It makes it a lot easier to keep the documentation in sync with the code than having to remember to go to Confluence and update things. And avoids the pain of dealing with Atlassian's slow-loading site.
- To be open source, or open specification/format.
- Easy eaditable (gui/tui/source), that is, primitives. I don't want to edit a text based diagram with a text editor (emacs artist mode).
- Free design features, so I have some control on the presentation.
- Render to text diagram as a first class feature, so it can be integrated in source code/control. From text rendering it can easily be converted to vectorial/raster.
- CLI to render.
- DSL, better with geometric (position, size) and styling features (color, bold face, ...).
I have found nothing that meets these criteria.
I'm actually using https://metacpan.org/pod/App::Asciio as the best approach.
[1]: https://www.openoffice.org/product/draw.html
[2]: https://www.archimatetool.com/
[3]: https://graphviz.org
[4]: https://eclipse.dev/papyrus/
Some quick notes about your app:
- No touch zoom/pan. Apart from that it worked okay on a Galaxy Note phone with the pen.
- I managed to make a shape vanish by (I think) rotating it quickly. I couldn't repeat that.
- The polyline selection seems quite broken. Draw a shape, then draw a polyline around it. Now you can't select the first shape, even though it's not obscured by anything.
It connects to your system using OpenTelemetry and it lets you automatically document all the components, dependencies, APIs, etc. I prefer it to static, drag and drop whiteboards because I get immediate visibility without having to waste time moving boxes and arrows.
(Of course you can still create sketches if you want, but the real value is in getting the information you need immediately)
Increasingly, I'm describing my diagrams to an LLM and letting _it_ generate the Mermaid.
The diagrams I draw are all done with something like graphviz, plantuml, mermaid, Structurizr, or d2.
Very rarely I'll use excalidraw to throw together a one-off.
For Enterprise-Grade Slideware™, I'll use either Lucidchart or draw.io.
For my personal projects, I'll use Mermaid.
Draw a circle, add a label to the circle, draw a box right to it, draw an arrow from the circle to the box, and so on.
In a pinch and when on a call, it’s always Microsoft paint.
Of course, its made for developers trying to make applications, not end users.
https://www.yworks.com/products/yed
very rarely use mermaid, but good for some simple README/markdown style diagrams.
schemdraw (python library) is a library for drawing beautiful circuit diagrams. It has a surprisingly effective flowchart part as well, that allows you even to draw custom beziers arrows and stuff. You can do manual positioning of everything, which is sometimes an anonoyance with mermaid. Outputs to svg or png. https://schemdraw.readthedocs.io/en/stable/
matplotlib (python library), people know it for drawing charts and such things, but if you want to build your own drawings that deviate strongly from existing solutions, all the drawing primitives are in there. See for example: https://matplotlib.org/matplotblog/posts/mpl-for-making-diag...
And for just wrapping your head around something, a piece of paper and a sharpened pencil are surprisingly effective at not wasting your time.
I have tried Graphviz but the diagrams looked shoddy.