nowfound

Dev tools · December 14, 2024

DC

Diagify – CLI to convert natural language into technical diagrams

Hello HN, I've created Diagify, a CLI for converting natural language to technical diagrams. There are a bunch of diagram-as-code tools out there and I had the idea that it should be possible to use LLMs to generate the diagram code based on a natural language description, execute it, and return the generated image. This is essentially what Diagify does. More specifically, Diagify generates code for the Mingrammer library which is specifically for technical diagrams. It also uses the OpenAI API to generate the Mingrammer code from the natural language description. The workflow is first…

What it does

In the maker’s words, at launch

Hello HN, I've created Diagify, a CLI for converting natural language to technical diagrams. There are a bunch of diagram-as-code tools out there and I had the idea that it should be possible to use LLMs to generate the diagram code based on a natural language description, execute it, and return the generated image. This is essentially what Diagify does. More specifically, Diagify generates code for the Mingrammer library which is specifically for technical diagrams. It also uses the OpenAI API to generate the Mingrammer code from the natural language description. The workflow is first OpenAI generates the Mingrammer python code based on the description, then it does some basic error checking. It was found that often the generated Mingrammer code had incorrect imports so this is checked. If incorrect imports are found, OpenAI is called again for correction with the incorrect imports identified and also some suggested imports to replace them with. Then the Mingrammer code is executed. If it is executed successfully the corresponding image is generated. If there is a runtime error then OpenAI is called again with the identified error in an effort to correct it. It's become somewhat reliable at this point. My reasons for creating Diagify are two-fold 1) to see if it even would work and 2) creating technical diagrams by hand or even using diagram-as-code tools can be tedious so using a simple natural language interface could be helpful.

Does the same job

all alternatives →
  • DiaChat2022 · ▲102

    Create and edit diagrams easily using natural language

  • Sketch2scheme2024 · ▲208

    Convert hand-drawn diagrams into digital schemes

  • Open Interpreter2023 · ▲182

    Control your computer with natural language

  • CodeGuideMar 2026 · ▲126

    Generate PRDs, specs and wireframes your AI understands.

  • NaturalyCode2021 · ▲204

    Transform boring lines of code into natural English

  • Dataherald2024 · ▲126

    Embed NL-to-SQL into your product

More dev tools this month

the category →
  • Dograh592

    The open source VAPI alternative

    Dev tools · 25d ago · dograh.com

  • Meridian530

    Don't let your work go unnoticed. Get promoted!

    Dev tools · 20d ago · meridiona.com

  • x1516

    Lovable for iPhone apps go from idea to App Store

    Dev tools · 11d ago · x1.new

  • Open-source GTM skills for technical founders

    Dev tools · 29d ago · gtmcofounder.com

  • OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.

    Dev tools · 2d ago · opentrailpaper.com

  • Nuphos380

    The AI-Native DevOps Workspace.

    Dev tools · 24d ago · nuphos.ai

Launched alongside, December 2024

the whole month →
  • Remy AI2,172

    Anyone can sleep and recover better

    AI · 2024 · apps.apple.com

  • Remento1,686

    The AI biographer for loved ones

    AI · 2024 · remento.co

  • Aimfox1,213

    Built for LinkedIn outreach, made to close deals

    Growth · 2024 · aimfox.com

  • Stackfix1,112

    Compare software in seconds

    AI · 2024 · stackfix.com

  • Coval1,012

    Simulation & evals to ship delightful voice & chat AI agents

    AI · 2024 · coval.ai

  • VocAdapt961

    Master languages with AI-adapted authentic content

    Life & fun · 2024 · vocadapt.com