Show HN: Svelvet – A component library for building interactive flow diagrams
svelvet.io
svelvet.io
Easy install with a NPM or Yarn package!
Would be great if it could generate static images of a diagram in e.g. SVG.
This would be super-useful because currently not many tools exist for non-tech users for creating graph datasets AND visually laying them out in a sensible way.
What's the purpose, then?
Bootcamps are treasure troves of stolen projects. I got into a rabbit hole on this a few weeks ago, and you'll find the same "project" done by several different people at several different bootcamps. There were even some that were verbatim the same despite proudly saying the project was independent.
Bit off topic but I really dig the clean look and feel of this. Is there anything close in Flutter? Think building this in Flutter might improve performance for your case (running on a high end samsung phone)
Surely if react/svelte etc are built well they're relatively low processor / compute? When manipulating canvas / images / rich-whatever, I assume graphic accelerated functions would work substantially better than alternatives.
Has anybody made a customizable JSON tree editor / browser for Svelte? Especially one that supports schema driven custom views for json data structures.
Is there a React library that does this well?
I think the reason people make these projects is specifically because they want to manually place some nodes at particular 2d positions, which I think is a little difficult if you are just recording nodes and connections. (I think many people are not as excited about solutions like "just use a bunch of invisible edges to enforce additional position requirements" as us).
How hard would/will it be to make the nodes draggable?
Edit: maybe it already does this but it is hard to interact with on the phone.
Edit2: can’t move them on iPad either. Maybe a use case for long press? Double-tap? Two finger select?
Edit3: Is Svelte in general under-developed when it comes to handling touch events? I can’t find a good touch example with draggable components.
[1] http://jcosine.if.unram.ac.id/public/site/images/suwardiman/...
"Svelvet is an open source Svelte component library which seeks to port React Flow functionality over to Svelte." [1]
[1] https://medium.com/@alexander.zambrano/simplify-application-...
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.
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.
Quite sad Google Diagrams is stuck in the stone ages. They solved the hard parts of multi-user editing diagrams before anyone else and then just basically stopped. This would be a nice feature.
EDIT: Ohh, it’s an English word
“(of a person) slender and elegant.”
The component library is called Svelvet, and it's (presumably) made for Svelte.
But I disagree that this isn't confusing. Imagine the conversation:
Dev1: Says something about nodal diagrams.
Dev2: Suggests taking a look at Svelvet.
Dev1: Confused since they're already using Svelte and ignores the comment or suggestion and moves on.
<months later>
Dev1: We're developing our own internal nodal diagram library.
Dev2: Did you look at Svelvet like I suggested.
Dev1: Yes, we're already using Svelte.
Dev2: No, I mean *Svelvet*.
Dev1: Oh...
It's like calling a React library Reactor or Reacts or something like that. It's way too close for no reason.Just look at this thread for many examples of why naming your library so close to the framework it sits on top of is a bad idea.
I think they should have just called it Velvet. (or something else entirely)
This looks awesome though! Thank you for sharing!
It's a Svelte component library.
[edit: If you show some minimal page description that doesn't rely on JS being run in the browser, then more people will be willing to unblock the script if the site looks interesting]
There is also the github page at https://github.com/oslabs-beta/Svelvet
EDIT: I see what you mean and I agree - _nothing_ works on the page without Javascript. It's just blank.