Have you ever wanted to layout a graph -- well now Roc's got you sorted... introducing the roc-graph-layout package :tada:
https://lukewilliamboswell.github.io/roc-graph-layout/
![]()
Thank you @Niclas Ahden for the Joy platform, I used that to make an online playground which was helpful for testing.
Also thank you @Jasper Woudenberg for RVN which is nice to use for the graph data input.
The docs/examples/playground look a little vibe coded -- I kind of spent all my time getting it working and definitely underestimated how deep this particular topic is. But happy to get something working to share.
I tried it out, it's really cool! Nice use of Joy. :+1:
@Jeroen Vennegoor op Nijhuis found this today https://crates.io/crates/elkrs -- I had an idea that I may try out ... but if I was building this again from scratch, I could have implemented a test platform using Rust that uses that crate and then set a goal for a byte for byte implementation with that across the test cases. That may have been a more reliable approach than the one I took, and also result in an implementation based on a mature library.
Something like that https://reactflow.dev/ as a reusable part with datastar or the like as tech would be <3 :sweat_smile:
I'm late to the party, but this is super cool! I kind of want to add a graph feature to some app I work on just to use this :P
Last updated: Sep 03 2026 at 15:16 UTC