awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com

Diagrams-as-Code Tools

Ranking updated Jun 30, 2026

For a tool for generating diagrams from code, the first results are knsv/mermaid (Mermaid is a text-to-diagram rendering engine that turns Markdown-inspired text into flowcharts, sequence diagrams, and Gantt charts, making it a flagship diagrams-as-code tool that fits your search for text-based diagram generation), terrastruct/d2 and mermaid-js/mermaid. blushft/go-diagrams and mingrammer/diagrams round out the shortlist. Compare the match explanations and check the project documentation against your requirements.

We curate open-source GitHub repositories matching “diagrams as code tools like PlantUML, Mermaid and Graphviz”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.

Diagrams-as-Code Tools

Find the best repos with AI.We'll search the best matching repositories with AI.
  • knsv/mermaidknsv avatar

    knsv/mermaid

    88,686View on GitHub↗

    Mermaid is a text-to-diagram rendering engine that transforms markdown-inspired text definitions into visual flowcharts, sequence diagrams, and Gantt charts. It functions as a markdown-based diagramming tool designed to keep technical documentation synchronized with development by defining visuals as plain text. The engine utilizes a sandboxed rendering process, executing diagram generation inside isolated frames to prevent malicious scripts embedded in user text from executing in the browser. The system handles client-side text transformation and domain-specific language parsing to map text

    Mermaid is a text-to-diagram rendering engine that turns Markdown-inspired text into flowcharts, sequence diagrams, and Gantt charts, making it a flagship diagrams-as-code tool that fits your search for text-based diagram generation.

    TypeScriptDiagramming EnginesText-to-Diagram Generators
    View on GitHub↗88,686
  • terrastruct/d2terrastruct avatar

    terrastruct/d2

    23,083View on GitHub↗

    This project is a diagram-as-code tool that transforms declarative text scripts into professional visual representations. It functions as a technical documentation generator, allowing users to define nodes, connections, and hierarchical relationships through a domain-specific modeling language that integrates directly into version-controlled developer workflows. The tool distinguishes itself through a highly modular architecture that decouples diagram definitions from spatial positioning. It features a pluggable layout engine that supports multiple arrangement algorithms, alongside a styling

    D2 is a diagrams-as-code tool that turns declarative text into professional diagrams with a powerful layout engine, supporting multiple diagram types, export to images, live preview via file watching, and customizable theming, making it an excellent fit for generating documentation-embedded diagrams from text.

    GoAutomatic Diagram RenderersDiagramming EnginesText-to-Diagram Generators
    View on GitHub↗23,083
  • mermaid-js/mermaidmermaid-js avatar

    mermaid-js/mermaid

    88,676View on GitHub↗

    This project is a client-side rendering engine that transforms declarative, text-based syntax into visual diagrams directly within the browser. By utilizing a domain-specific language, it allows users to define complex structures—such as software architectures, process flows, and system behaviors—without the need for manual layout configuration. The library functions as a browser-based runtime that parses these definitions into intermediate abstract syntax trees, which are then processed by specialized engines to generate high-fidelity, resolution-independent graphics. The system distinguishe

    Mermaid is a flagship diagrams-as-code tool that converts declarative text into a wide range of diagram types (flowcharts, sequence, class, Gantt, mindmaps, and more), supports SVG/PNG export, and is widely embedded in documentation, with real-time preview and theming capabilities — fitting this search perfectly.

    TypeScriptAutomatic Diagram RenderersText-to-Diagram EnginesText-to-Diagram Generators
    View on GitHub↗88,676
  • blushft/go-diagramsblushft avatar

    blushft/go-diagrams

    5,235View on GitHub↗

    go-diagrams is a Go visualization library and DOT language generator used to create system architecture diagrams. It implements a diagrams-as-code approach, allowing users to define system components, infrastructure dependencies, and data flows using Go source code. The library translates these code-based definitions into Graphviz DOT syntax, which is then processed by the Graphviz toolset to render final visual image assets. It supports mapping directional edges to illustrate dependencies and organizing related components into named clusters or subgraphs to represent architectural boundaries

    go-diagrams is a Go library that turns code into system architecture diagrams via Graphviz, fitting the diagrams-as-code approach but specialized for infrastructure visuals rather than the broad variety of diagram types like Mermaid or PlantUML.

    GoDiagram as Code FrameworksText-to-Diagram Generators
    View on GitHub↗5,235
  • mingrammer/diagramsmingrammer avatar

    mingrammer/diagrams

    42,356View on GitHub↗

    Diagrams is a diagram-as-code framework and infrastructure mapping tool used to generate system architecture visualizations via Python code. It functions as a programmatic wrapper for Graphviz, allowing users to define cloud services and their interconnections to create structured architectural layouts. The project specializes in cloud architecture visualization by mapping software components to a library of provider-specific icons. This approach enables the management of system designs within version control to track architecture changes over time. The library provides capabilities for conf

    Diagrams is a Python-based diagram-as-code framework that generates cloud architecture visualizations by defining components and connections in code, fitting the intent of text-based diagram generation; however, it is focused on infrastructure diagrams and lacks real-time preview and broader diagram type support.

    PythonDiagram as Code FrameworksText-to-Diagram Generators
    View on GitHub↗42,356
  • dayuanjiang/next-ai-draw-ioDayuanJiang avatar

    DayuanJiang/next-ai-draw-io

    32,028View on GitHub↗

    This project is a web-based diagramming platform that automates the creation of flowcharts and technical diagrams using generative artificial intelligence. It functions as a text-to-diagram generator, allowing users to input natural language prompts that are interpreted by large language models to produce structured visual representations. The platform distinguishes itself by integrating these AI-driven interpretations with a browser-based drawing surface. It translates user intent into standard diagramming syntax, which is then rendered as interactive visual elements on a digital canvas. Thi

    This is an AI-driven text-to-diagram platform that takes natural language prompts and renders them as flowcharts and technical diagrams, fitting the core intent of generating diagrams from text, though it focuses on AI interpretation rather than a dedicated diagramming syntax and may cover fewer diagram types and export options than typical diagrams-as-code tools.

    TypeScriptText-to-Diagram Generators
    View on GitHub↗32,028
  • yuzutech/krokiyuzutech avatar

    yuzutech/kroki

    3,967View on GitHub↗

    Kroki is a text-to-diagram rendering API and diagram-as-code server that transforms plain text definitions from various modeling languages into SVG or PNG images. It functions as a multi-language diagram renderer, providing a unified interface to generate flowcharts, UML diagrams, and charts using a collection of external libraries. The system utilizes a container-based plugin architecture and a sidecar rendering model to isolate external rendering engines. This design allows for the addition of new diagramming languages via companion containers and ensures stateless image generation where so

    Kroki is a text-to-diagram rendering server and unified API that takes plain text definitions from languages like PlantUML, Mermaid, and Graphviz and generates SVG/PNG images, directly supporting your need for multiple diagram types, image export, and embedding in documentation.

    JavaScriptDiagram as Code FrameworksText-to-Diagram Generators
    View on GitHub↗3,967
  • bramp/js-sequence-diagramsbramp avatar

    bramp/js-sequence-diagrams

    7,834View on GitHub↗

    js-sequence-diagrams is a JavaScript library used to generate SVG sequence diagrams from plain text descriptions. It functions as a text-to-diagram tool that transforms structured textual input into scalable vector graphics to represent system interaction flows. The library provides capabilities for system workflow visualization and technical documentation automation. It maps the communication between different components or services by converting text into visual representations of logic flows. The tool includes support for custom typeface loading to change the visual style and lettering of

    This library generates sequence diagrams from plain text, making it a text-to-diagram tool as requested, but it is specialized in sequence diagrams only, not supporting the multiple diagram types you may need.

    JavaScriptText-to-Diagram Generators
    View on GitHub↗7,834
  • plantuml/plantumlplantuml avatar

    plantuml/plantuml

    13,093View on GitHub↗

    PlantUML is a text-to-diagram generator that translates human-readable markup into structured graphical representations. It functions as a diagram-as-code tool, allowing users to create and maintain technical documentation, architectural models, and flowcharts by decoupling diagram content from visual layout. The project distinguishes itself through a comprehensive rendering pipeline that processes domain-specific markup into various output formats, including vector and raster graphics. It utilizes a graph-based layout engine to calculate spatial positioning, while a declarative styling layer

    PlantUML is the canonical text-to-diagram generator that turns human-readable markup into a wide range of diagram types (UML, flowcharts, network diagrams, etc.), supports exports to PNG/SVG, integrates into documentation workflows, and offers declarative styling — directly matching your search for a diagrams-as-code tool.

    JavaDiagramming EnginesText-to-Diagram Generators
    View on GitHub↗13,093
  • mermaid-js/mermaid-climermaid-js avatar

    mermaid-js/mermaid-cli

    4,168View on GitHub↗

    Mermaid-cli is a command line interface and programmatic tool that converts text-based diagram syntax into static visual assets. It functions as a headless browser renderer and markdown diagram processor, enabling the generation of diagrams through a CLI or a JavaScript-based generator. The tool distinguishes itself by supporting the conversion of diagram definitions into multiple image formats, including SVG, PNG, and PDF. It allows for custom diagram styling by applying external CSS files to override default themes and add visual animations. The project provides capabilities for markdown i

    Mermaid-cli is a command-line renderer that converts Mermaid text syntax into multiple image formats like SVG, PNG, and PDF, supporting custom CSS styling—making it a practical tool for generating diagrams as part of documentation pipelines, though it focuses solely on Mermaid and lacks a real-time preview feature.

    JavaScriptText-to-Diagram Generators
    View on GitHub↗4,168
  • mdaines/viz-jsmdaines avatar

    mdaines/viz-js

    4,330View on GitHub↗

    viz-js is a JavaScript rendering library and graph visualization engine that converts Graphviz DOT language descriptions into visual diagrams. It functions as a Graphviz rendering library designed to produce SVG output for web applications. The project utilizes a WebAssembly port of the Graphviz C library to execute layout engines directly in the browser. To maintain interface responsiveness, it processes computationally expensive layout calculations within background worker threads and uses a standardized JSON format for layout serialization. The library provides tools for dynamic graph vis

    viz-js is a JavaScript library that renders Graphviz DOT descriptions into SVG diagrams, making it a text-based diagram generation tool in the same family as Graphviz, though focused on graph layouts rather than multiple diagram types.

    JavaScriptDOT Language Parsers
    View on GitHub↗4,330
  • asmuth/clipasmuth avatar

    asmuth/clip

    5,148View on GitHub↗

    Clip is a command-line data visualization tool designed to generate image-based charts and diagrams from text descriptions. It functions as a chart generator that converts written data and descriptive patterns into visual formats without the use of a graphical user interface. The tool specializes in producing scalable vector graphics, translating text-to-chart transformations into XML-based vector paths. This approach allows for the automated creation of technical illustrations and diagrams specifically suited for developer documentation. The system employs a template-driven layout engine to

    Clip is a command-line tool that generates charts and diagrams from text descriptions, fitting the text-based diagram definition intent but with a focus on data visualization plots rather than the full range of diagram types.

    C++Text-to-Diagram Generators
    View on GitHub↗5,148
  • likec4/likec4likec4 avatar

    likec4/likec4

    2,723View on GitHub↗

    likec4 is an architecture-as-code framework that transforms text-based architecture definitions into interactive diagrams, static websites, and image files. It serves as a system architecture visualizer and C4 model diagram generator, allowing users to define software components, boundaries, and deployment infrastructure using a domain-specific language. The tool distinguishes itself by providing a modeling environment with Language Server Protocol integration for real-time validation and autocomplete. It enables interactive architecture documentation where users can navigate through hierarch

    likec4 is a text-to-diagram tool that converts architecture definitions (C4 model DSL) into interactive diagrams and exports, making it a genuine diagrams-as-code tool, but it is specialized to system architecture rather than offering the broad range of diagram types found in general-purpose tools like PlantUML or Mermaid.

    TypeScriptDiagram as Code FrameworksLive Preview ServersText-to-Diagram Generators
    View on GitHub↗2,723
  • adrai/flowchart.jsadrai avatar

    adrai/flowchart.js

    8,689View on GitHub↗

    Flowchart.js is a JavaScript library that converts a simple text-based domain-specific language into SVG flowcharts. It parses DSL keywords to define node types such as start, end, operation, condition, parallel, and subroutine, then renders them as distinct SVG shapes connected by directional paths. The library distinguishes itself through its styling and interactivity capabilities. It supports applying CSS classes to SVG elements for external stylesheet overrides, as well as inline attribute overrides for per-node and per-edge visual properties like fill, stroke, and font. Flowchart.js also

    Flowchart.js is a JavaScript library that turns a simple text-based DSL into SVG flowcharts, fitting the diagrams-as-code category exactly, though it is limited to flowcharts rather than covering multiple diagram types.

    JavaScriptText-to-Diagram Generators
    View on GitHub↗8,689
  • awslabs/diagram-as-codeawslabs avatar

    awslabs/diagram-as-code

    1,523View on GitHub↗

    This project is a library for generating visual architecture diagrams and network topologies directly from infrastructure-as-code templates and configuration specifications. It functions as a programmatic interface that transforms infrastructure definitions into visual documentation, allowing users to maintain system diagrams as version-controlled text files. The tool distinguishes itself through an automated layout engine that uses graph algorithms to calculate spatial positioning, connection routing, and link paths without manual coordinate configuration. It supports complex visual hierarch

    This tool generates AWS architecture diagrams from textual definitions, fitting the diagrams-as-code category, but it is specialized for AWS rather than supporting the wide range of diagram types and features the visitor likely expects.

    GoCloud Architecture Diagramming ToolsUML Diagram GeneratorsAutomated Diagram Routing
    View on GitHub↗1,523
  • tabatkins/railroad-diagramstabatkins avatar

    tabatkins/railroad-diagrams

    1,744View on GitHub↗

    Railroad-diagrams is a utility for generating visual representations of formal grammars and language structures. It functions as a library that transforms dense notation systems, such as Backus-Naur Form or regular expressions, into readable flowcharts. The tool utilizes a coordinate-based layout engine and recursive component composition to construct diagrams as hierarchical trees. By separating geometric calculation logic from the output layer, it supports rendering through Scalable Vector Graphics or Unicode text, ensuring diagrams remain clear and scalable across different environments.

    This library generates railroad syntax diagrams from textual definitions using a code-like approach, fitting the diagrams-as-code concept, but it is limited to one diagram type (railroad) and lacks broader features like real-time preview and multiple diagram types.

    PythonSyntax Diagram GeneratorsFormal Grammar Parser GeneratorsGrammar-to-Visual Mappers
    View on GitHub↗1,744
Compare the top 10 at a glance
RepositoryStarsLanguageLicenseLast push
knsv/mermaid88.7KTypeScriptMITJun 17, 2026
terrastruct/d223.1KGompl-2.0Oct 14, 2025
mermaid-js/mermaid
88.7K
TypeScript
MIT
Jun 16, 2026
blushft/go-diagrams5.2KGoMITMar 22, 2025
mingrammer/diagrams42.4KPythonMITJun 9, 2026
dayuanjiang/next-ai-draw-io32KTypeScriptApache-2.0Jun 16, 2026
yuzutech/kroki4KJavaScriptmitFeb 19, 2026
bramp/js-sequence-diagrams7.8KJavaScriptBSD-2-ClauseSep 21, 2022
plantuml/plantuml13.1KJavaNOASSERTIONJun 15, 2026
mermaid-js/mermaid-cli4.2KJavaScriptmitNov 24, 2025

Related searches

  • a diagramming tool
  • an open source diagramming tool for flowcharts
  • an open source diagramming tool for teams
  • a tool for diagramming cloud architecture
  • a diagramming and flowchart library for the web
  • an open source tool for diagramming models
  • an open source tool for graph notes
  • a mind-mapping app