News for hackers. Stuff that matters.
Re:Diagrams · Diagram as Code by BerislavLopac on Tuesday November 05, 2024 @03:59AM (#42049861)
> you can share your drawings, and export them as SVG files -- yay! I can version them again

Out of curiosity, does anyone know of a drawing tool -- like Excalidraw, Lucid or Draw.io -- that has the option of exporting diagrams to code, i.e. something like PlantUML or Mermaid?

Re:Diagrams · Diagram as Code by KennedyRichard on Friday November 08, 2024 @07:02AM (#42086188)
Not a diagram tool, but can be used like one, since it converts Python functions into nodes that you can connect to each other and export the resulting layout as images (PNG, SVG, SVG inside an HTML page) or as plain Python code: https://github.com/IndiePython/nodezator

full disclosure: I'm the creator and maintainer of the tool (but this is no advertising, as I released it to the public domain since day 1)