News for hackers. Stuff that matters.
Re:Show HN: Prompt-to-Excalidraw demo with Gemma 4 E2B in th... by locusofself on Sunday April 19, 2026 @03:28PM (#47826920)
I've had excellent luck using Claude Code to generate "mermaid diagrams" for me, and convert them to .png format headlessly using mmdc/puppeteer. Really helped me out with an engineering proposal I just finished. In past years I would have fumbled around with Visio forever and the result would have been worse.
Re:Show HN: Prompt-to-Excalidraw demo with Gemma 4 E2B in th... by halJordan on Sunday April 19, 2026 @03:33PM (#47826956)
And yet people here insist that the height of an llm is not being above to draw a pelican or count letters in a word
Re:Show HN: Prompt-to-Excalidraw demo with Gemma 4 E2B in th... by christkv on Sunday April 19, 2026 @04:22PM (#47827353)
Just wait if they go public. Claude 5.4 fails the Pelican test stock sheds 20% of value pf news. Wall street wonders if the lack of front wheel means there is something seriously wrong with the stocks underlying value
Re:Show HN: Prompt-to-Excalidraw demo with Gemma 4 E2B in th... by wongarsu on Sunday April 19, 2026 @08:44PM (#47829117)
Well, mermaid diagrams are "just" a list of nodes and their relations. You'd expect any llm capable of generating code to be able to generate them

Writing an SVG of a pelican riding a bicycle without being able to see the result and iterate based on that is incredibly difficult by comparison. I'm sure some humans could do it, but I sure can't. That's part of the beauty of it: it's very difficult to do but a toddler could judge the results

Writing an SVG of a diagram by hand would be somewhere on the middle ground. Or depending on the number of nodes might be even harder than the pelican. Layouting diagrams can get tricky very quickly. It's also one of Mermaid's biggest weaknesses

Re:Show HN: Prompt-to-Excalidraw demo with Gemma 4 E2B in th... by system_operator on Sunday April 19, 2026 @05:02PM (#47827625)
do the same.

I just ask Claude code for mermaid to visualize any topic I'm discussing.

Re:Show HN: Prompt-to-Excalidraw demo with Gemma 4 E2B in th... by lxgr on Monday April 20, 2026 @05:47AM (#47832150)
In a pinch, Claude is also quite good at ASCII art in my experience!
Re:Show HN: Prompt-to-Excalidraw demo with Gemma 4 E2B in th... by alfiedotwtf on Monday April 20, 2026 @11:09AM (#47835443)
Same here!
Re:Show HN: Prompt-to-Excalidraw demo with Gemma 4 E2B in th... by thawab on Monday April 20, 2026 @02:36AM (#47831050)
You can copy past the mermaid to excalidraw to visualize it.
Re:Show HN: Prompt-to-Excalidraw demo with Gemma 4 E2B in th... by ascorbic on Monday April 20, 2026 @03:06AM (#47831194)
I find Mermaid diagram rendering is quite ugly by default. I've gotten much better-looking results by asking it to just generate SVGs. As a bonus it can do animations too. e.g. see slide 3 here, which I first tried with Mermaid and then switched to SVG when I couldn't get the rendering to look good: https://talks.mk.gg/2026/atmosphereconf/
Re:Show HN: Prompt-to-Excalidraw demo with Gemma 4 E2B in th... by d4rkp4ttern on Monday April 20, 2026 @06:26AM (#47832367)
I now often have CC make technical/architecture diagrams with tikz, the results look much better than mermaid but still requires multiple iterations to fix bad arrows, bad layouts etc.

Diagrams are still far from solved. We need a good non-gameable diagrams benchmark.

Re:Show HN: Prompt-to-Excalidraw demo with Gemma 4 E2B in th... by 0xchamin on Monday April 20, 2026 @07:39AM (#47832861)
I use Claude Code and Gemini and to LLM as a judge among the two to review each others result and generate a final mermiad diagram.
Re:Show HN: Prompt-to-Excalidraw demo with Gemma 4 E2B in th... by chermi on Tuesday April 21, 2026 @06:32PM (#47855506)
Could you share your setup + workflow? How do you get it to not give shit layouts?