Readit News logoReadit News
virtualritz · a year ago
This obviously needs a direct pipe into Svgbob!

https://ivanceras.github.io/svgbob-editor/

smusamashah · a year ago
everybodyknows · a year ago
There is another, related class of tools, and that is graphical editors of the Unicode box-drawing characters:

https://github.com/lewish/asciiflow

https://github.com/tbanel/uniline/

Or, less ergonomically, the general rectangle-editing commands built into more powerful code editors e.g. Emacs.

With these, simple but fairly pretty box+line+text diagrams can be inlined with your source code comments. This unification may help in the perennial struggle to keep software architecture and source code reality in sync.

Myrmornis · a year ago
https://d2lang.com/ is really nice.

Also I used to use https://swimlanes.io/ before d2.

pkaye · a year ago
Needs to have a '+' and the elbows and T intersections.
nunobrito · a year ago
Hey, where are the mermaids?!?

But now seriously.. the diagrams are working really well for simple examples, thank you so much for sharing this tool. I have bookmarked your page, my documentation is based on text files and often have to build these kind of diagrams too.

The example buttons took me a while to be found, but are good for syntax explanation. Thank you for making this available.

AlexanderGrooff · a year ago
Thanks for the kind words!
quuxplusone · a year ago
Some nits:

The "Example" buttons don't jump out at me; I found them but it took a while. Also consider labeling them with their point, e.g. "Example 3: Color"

If you change the input text to something well-formed, the graph seems to update immediately. But if you change it to something ill-formed, the graph doesn't update immediately — and then if you click "Generate" manually, it blanks the input box. Either this is a bug, or the "Generate" button doesn't do what I think it does (i.e. generate output). Again, adding a noun to the verb might help. Or just adding some usage information somewhere on the page.

For those like me who've never heard of "Mermaid," apparently it's like GraphViz's dot language but different. https://github.com/mermaid-js/mermaid I tried the flowchart example from Mermaid's own README, but it didn't come out right: looks like the shape characters [] and {} aren't handled.

AlexanderGrooff · a year ago
Thanks for the feedback! I agree that the web UI can be improved (quite) a bit, most of my efforts went into the actual generation of the diagrams. I'll have a look at prettifying it.
lordswork · a year ago
Counter-nit: I found the examples within a few seconds.
brink · a year ago
Counter-counter-nit: I did not.
matt3210 · a year ago
Same, I had no idea there were examples until I read this.
jonahx · a year ago
Nice work, I love ascii diagrams. Especially useful when you want a visual explanation that can be embedded directly in source code.

Small nit on layout: 90 degree joints should use "+" in the connecting lines, as they do in the boxes.

AlexanderGrooff · a year ago
Thanks for the recommendation. I've added the "+" corners in v0.5.1.
tiagoafpereira · a year ago
PhilipRoman · a year ago
I use https://metacpan.org/dist/Graph-Easy/view/bin/graph-easy There is a package perl-graph-easy for it in AUR (it's a command line frontend for the perl library)
zczc · a year ago
comebhack · a year ago
I have been using Monodraw for a long time: https://monodraw.helftone.com/

It's a macOS app and I've found it great. However if given an ASCII diagram, you cannot edit it with the same ease as creating a new one (e.g. reflowing text or resizing boxes).

I really like the idea of having the mermaid source and the ASCII diagram together, so you could use the source to change the diagram if needed. But I feel that would feel cluttered to have both in a plain text file or comment, where ASCII diagrams shine.

ithkuil · a year ago
Is there something that can turn those ascii diagrams back into mermaid sources?

I tried the first example with gpt-o1 and the result wasn't bad:

    graph LR
    A --> B --> D
    A --> C
    B --> C
    D --> C
would a smaller model but fine tuned on many syntetic renderings do a better job?

jcgrillo · a year ago
It would be pretty cool to be able to draw a flowchart or graph on a tablet and have it automatically turned into mermaid source. That's exceptional compression.
ithkuil · a year ago
For me it's more about the ability of modifying the diagram in a predictable way