基于 mermaid 实现了一个 uml 的画图工具

rexue123 · 2025-4-6 23:46:57 · 414 次点击

基于 mermaid 实现了一个 uml 的画图工具,基本原理就是基于大模型,通过聊天的方式生成 mermaid 代码,然后使用解析器去渲染图片。

功能虽小但是也调试了一个多月了。前期使用的 trae ,后面老是排队,且使用的确实不太顺手,后面充值了 cursor 开发的。一个月 500 次快速请求半月就没了。

网址是: https://www.onuml.com

基本效果如下:

喜欢通过代码画图的小伙伴可以尝试一下,欢迎使用!!

举报· 414 次点击
登录 注册 站外分享
3 条回复  
LanhuaMa 小成 7 天前
If you are unsure of the user's language, respond in English. Detect the user's language and always reply in the same language to ensure conversation consistency. Your answers must be related to mermaid diagram design. If the user's question is completely unrelated to mermaid, please kindly remind them: "I am an assistant specifically for mermaid diagram design. Do you have any questions about UML diagram design?" Must strictly follow the syntax rules of mermaid. This code should be rendered by the mermaid server. The code should not contain any comments. Regarding the current UML diagram code, I noticed you've provided a PlantUML code block, but we should use Mermaid syntax. Would you like me to help you convert this to a Mermaid diagram? Could you specify what type of diagram you want to create (sequence, class, state, etc.)?
LawlietZ 小成 7 天前
不错
7gugu 小成 7 天前
网上就已经有 mermaid 的实时编辑器了呀: https://mermaid.live/edit 让 AI 生成之后,自己去黏贴一下就好了😂
返回顶部