from Hacker News

Ask HN: What do you use to create diagrams?

by ttd on 3/12/25, 2:14 PM with 79 comments

I've been working on a diagramming tool [1] and wanted to get some thoughts from people who regularly make architecture and other technical diagrams. I know my own experiences but I'm quite curious to hear others.

I'm guessing for a lot of people draw.io and Excalidraw are probably the go-to. If you use draw.io (or something else), what do you like about it, or what do you wish was better?

[1] - https://app.vexlio.com/ for the curious

  • by shagie on 3/12/25, 4:22 PM

    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.

  • by ajkjk on 3/12/25, 2:31 PM

    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.

  • by brylie on 3/12/25, 2:26 PM

    I've had a great experience using Excalidraw, which is also open source:

    https://excalidraw.com/

    https://github.com/excalidraw/excalidraw

  • by flaminHotSpeedo on 3/12/25, 2:27 PM

    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
  • by hiAndrewQuinn on 3/13/25, 9:29 AM

    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/

  • by atoav on 3/15/25, 10:09 AM

    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.

  • by gmuslera on 3/12/25, 2:38 PM

    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.
  • by Octoth0rpe on 3/12/25, 2:23 PM

    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.

  • by viraptor on 3/12/25, 4:45 PM

    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)

  • by jamesponddotco on 3/12/25, 8:21 PM

    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.

    [2]: https://www.cloudcraft.co

    [3]: https://d2lang.com

  • by rednafi on 3/15/25, 4:54 AM

    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.

    [1]: https://mermaid.js.org/

    [2]: https://excalidraw.com/

  • by bqmjjx0kac on 3/12/25, 2:24 PM

    Graphviz! The syntax is kind of absurd, but it produces some beautiful results and can be version controlled.
  • by mindcrime on 3/12/25, 2:20 PM

    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...

    [1]: https://www.openoffice.org/product/draw.html

    [2]: https://www.archimatetool.com/

    [3]: https://graphviz.org

    [4]: https://eclipse.dev/papyrus/

  • by bitozoid on 3/15/25, 7:35 AM

    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, ...).

    I have found nothing that meets these criteria.

    I'm actually using https://metacpan.org/pod/App::Asciio as the best approach.

  • by eb0la on 3/12/25, 4:56 PM

    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.
  • by shagmin on 3/12/25, 2:36 PM

    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.
  • by argoeris on 3/12/25, 4:11 PM

    I use http://multiplayer.app/

    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)

  • by mkl on 3/15/25, 10:17 AM

    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.

  • by Ancapistani on 3/12/25, 2:53 PM

    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.

  • by Eddy_Viscosity2 on 3/13/25, 1:56 PM

    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.
  • by cratermoon on 3/12/25, 2:37 PM

    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.

  • by dp-hackernews on 3/12/25, 4:06 PM

  • by nunez on 3/12/25, 7:15 PM

    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.

  • by rthnbgrredf on 3/12/25, 6:55 PM

    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.

  • by fosco on 3/13/25, 3:36 AM

    I’ve worked at some very large networks.

    In a pinch and when on a call, it’s always Microsoft paint.

  • by simonsarris on 3/12/25, 3:59 PM

    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.

  • by nextts on 3/15/25, 5:52 AM

    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.
  • by mapmap on 3/15/25, 8:24 AM

    If you're looking for labeled shapes with connections, Apple's Keynote is a great free alternative to OmniGraffle.
  • by Aeolun on 3/12/25, 2:22 PM

    I’ve used terrastruct a lot over the past few years. It’s really nice to write your diagrams with code.
  • by outer_web on 3/15/25, 2:23 PM

    They always end up in Powerpoint at the end of the day so I just cut out the middleman.
  • by cj on 3/12/25, 2:22 PM

    Lucidchart has worked well for me in the past, with built in AWS icon packs.
  • by fullstackwife on 3/15/25, 6:22 PM

    Figjam, and then doing a screenshot, and paste to the destination doc
  • by schmookeeg on 3/12/25, 3:00 PM

    I find Miro the least vexing to use, but they are all pretty limited.
  • by valbaca on 3/12/25, 9:59 PM

    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.

  • by c-smile on 3/15/25, 5:28 AM

    yEd, for those of us who knows word "Visio"

    https://www.yworks.com/products/yed

  • by epirogov on 3/15/25, 4:04 PM

    Qt Visual Graph Editor is cool for thinking through graphs.
  • by mannyv on 3/12/25, 5:41 PM

    I usually will do a draft in notability then use draw.io.
  • by brunooliv on 3/12/25, 2:25 PM

    draw.io
  • by manishsharan on 3/15/25, 4:55 AM

    Visio.

    I have tried Graphviz but the diagrams looked shoddy.

  • by sathomasga on 3/12/25, 6:13 PM

    Apple Keynote.
  • by theyknowitsxmas on 3/12/25, 2:46 PM

    MermaidJS
  • by PaulHoule on 3/12/25, 2:26 PM

    Powerpoint
  • by thatxliner on 3/15/25, 5:18 AM

    Excalidraw and Mermaid
  • by rcarmo on 3/13/25, 8:13 AM

    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.
  • by ranger_danger on 3/12/25, 3:23 PM

    plantuml, it's hard to beat diagrams as code
  • by a9ex on 3/12/25, 2:26 PM

    FigJam by Figma
  • by mkranjec on 3/12/25, 2:50 PM

    excalidraw as already mentioned above
  • by olea on 3/12/25, 4:48 PM

    plantuml.
  • by stfp on 3/12/25, 2:42 PM

    miro
  • by andyjohnson0 on 3/13/25, 9:52 PM

    Visio. No drama, just works. Not cheap though.
  • by Jack5500 on 3/12/25, 2:29 PM

    tldraw.com