Mermaid Gantt diagrams are great for displaying distributed traces in Markdown

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • Mermaid

    Edit, preview and share mermaid charts/diagrams. New implementation of the live editor.

    The thing that's problematic is rendering Mermaid SVGs outside of a browser environment - i.e. what static site generators need in order to generate JS-free HTML docs from Markdown content.

    If you're looking at a rendered Mermaid diagram on your screen, you probably already have the SVG in your browser's dom. You can just right click -> view source -> find element -> view as html -> save that to a file. I expect this is how the SVG export on the Mermaid live editor[0] works.

    (the Mermaid live editor is great, it's where I tend to go if I want an SVG export)

    [0]:https://mermaid.live/

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • jsonresume.org

    The mono repo that builds the homepage, utils, ui components, registry and anything else

    I've been loving this service called CodeRabbit that auto generates these diagrams off my pull requests, it's fantastic -> https://github.com/jsonresume/jsonresume.org/pull/131#issuec...

  • gitlab-ci

    Related, we at Nunet use a GitlabCI Template to render SVGs from Mermaid files so you can reuse them: https://gitlab.com/nunet/gitlab-ci/templates/-/tree/main/mer...

    This can be ported to Github, because the logic is very simple.

  • mermaid-cli

    Command line tool for the Mermaid library

    I was going to point to https://github.com/mermaid-js/mermaid-cli, but it uses puppeteer and chromium under the hood. That seems...excessive, to render an SVG.

  • scroll

    Scroll is a language for scientists of all ages. Scroll includes a command line app that builds static blogs, websites, CSVs, text files, and more.

    I work on Scroll (https://scroll.pub), which currently compiles to HTML/TXT et cetera.

    Compiling to JPG, SVG, PDF, MKV, MP4, et cetera, are high on my todo list, but I really haven't seen a standout way to do that, beyond Chromium.

    I wonder if Ladybird (https://ladybird.org/) might be appropriate for that use case? Not sure if it's a new rendering engine or what.

  • ladybird

    Truly independent web browser

    I work on Scroll (https://scroll.pub), which currently compiles to HTML/TXT et cetera.

    Compiling to JPG, SVG, PDF, MKV, MP4, et cetera, are high on my todo list, but I really haven't seen a standout way to do that, beyond Chromium.

    I wonder if Ladybird (https://ladybird.org/) might be appropriate for that use case? Not sure if it's a new rendering engine or what.

  • mermaid

    Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown

  • viz.js

    Graphviz for the web (Viz.js on a diet) (by rapidlua)

    You can define nodes and edges on the same line in graphviz. Here is an example: https://viz-js.com/?dot=ZGlncmFwaCB7CiAgYSAtPiBiIC0-IGMgLT4g... Of course depending on complexity of graph you might want to do it separately.

    A potentially much bigger difference in verbosity comes from graphviz being a general purpose graph drawing software, while mermaid is more of a software for drawing software development related diagrams (not just graphs and tables). This is well reflected by the fact that in graphviz the diagram types are categorized by layout engine (hierarchical drawing, spring model, force directed placement, circular layout,...), but in Mermaid they are categorized by what data the diagram represents (flowchart, sequence diagram, class diagram, state diagram, entity relationship diagram, gant diagram). You can draw many of those types of diagrams in Graphviz but you will have to potentially do a lot more of reinventing the wheel and low level manual formatting (arrow and node shapes, line style, etc.), while Mermaid documentation uses more of diagram specific terms like cardinality, visibility(public, private, ...) and many others.

    That's like comparing Excel with purpose built accounting software or an inventory management system. Excel might be a lot more flexible, but if the usecase specific software matches your needs it can be a lot more streamlined and less error prone.

    So the conclusions will very much depend on your use case. If you are trying to draw one of the standard software engineering diagrams as part of design documentation, Mermaid can be great. For less formal design diagrams or quickly visualizing the state of some algorithm it's much more even playing field.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Mermaid: Diagramming and Charting Tool

    7 projects | news.ycombinator.com | 15 Aug 2024
  • Argdown, like Markdown for argument mapping

    7 projects | news.ycombinator.com | 7 Aug 2024
  • Diagram as Code with Mermaid

    1 project | dev.to | 8 Sep 2024
  • plantuml VS vizdom - a user suggested alternative

    2 projects | 1 Sep 2024
  • Blockdiag – simple diagram images generator – blockdiag 1.0 documentation

    2 projects | news.ycombinator.com | 20 Aug 2024