[Media] Diagrams as Code with Draggable Editing on Static Site
![[Media] Diagrams as Code with Draggable Editing on Static Site](https://i.redd.it/vk794tnuopqg1.gif)
TLDR - Oxdraw got more rusty and now can be used for diagramming with code without the CLI
Hello happy to share a new update about a project I maintain called Oxdraw. The goal of it is to make it easy to customize diagrams specified by code (Mermaid syntax) so that they are presentable without having to be stuck to the algorithm or move to another tool like Lucidchart.
Feel free to try it on the static site or check out the Github!
As for the refactor itself, the previous architecture was a Rust CLI with the path algorithm to render the charts and then a React webview to drag things around. The issue with this as time progressed is that when the user is dragging an element around live rerendering is needed, meaning the React code needed to know a lot about the rendering leading to duplicate logic. The solution was to use WASM and Rust so that now all the rendering logic can remain inside the Rust code.
I'd appreciate hearing about any features you would like to see or thoughts you have on the diagram tools you use!
Previously: First Post