News for hackers. Stuff that matters.
Re:Show HN: Svelvet – A component library for building inter... by ravenstine on Thursday June 02, 2022 @12:44PM (#31597214)
Oh man, I could have really used something like this 4 years ago. I was doing a personal project that would have involved a node graph UI, and it was actually kind of challenging finding an existing library this simple and nice looking. Yeah, I know there's D3.js but that involved way more knowledge and learning than I was interested in. If I remember correctly, I ended up writing my own.

Dunno if it's feasible with the way it's designed, but it'd be really useful for this to have force-directed drawing, even if it's not a real-time thing.

Re:Show HN: Svelvet – A component library for building inter... by lhoursquentin on Thursday June 02, 2022 @01:13PM (#31597703)
> Yeah, I know there's D3.js but that involved way more knowledge and learning than I was interested in.

Same, d3 looked very powerful but had a steep learning curve. I was looking for something simple to generate process trees in real time and ended up using cytoscape js [0], helped me have a working POC in an hour, highly recommended.

[0] https://js.cytoscape.org/

Re:Show HN: Svelvet – A component library for building inter... by robertlagrant on Thursday June 02, 2022 @04:32PM (#31600156)
If you're on React these days ReactFlow (https://reactflow.dev) is good for this.