Readit News logoReadit News
carltheperson · 5 months ago
This is a great library. I especially appreciate that they added a version for Svelte (with specific examples for Svelte 5).

It's very convenient how you create the graph, with nodes just being Svelte components. Adding custom edges isn't very hard either.

If you're curious what you can do with it, I made this demo for myself https://youtu.be/aVY7ySPiSo8 (never launched it). I used Svelte Flow to visualize AI doing research, my first project using LLMs.

wallzero · 5 months ago
This is an excellent library! I only wish it had react-native support.

I've worked on a few prototype react directed acyclical diagram libraries. jsplumb-react, react-yad, and recently @lincle.

@lincle is my most recent and first attempt at supporting react-native. I tried leveraging existing interactive libraries. I was also inspired by react-flow's minimap. It is still a prototype and needs documentation but works well. I'm realizing now the demo isn't working but the demo source should hopefully give an example of how to use it.

https://gitlab.com/digested/lincle

tcoff91 · 5 months ago
With expo DOM components it’s easy to just use this library and expo will wrap it in a webview. Then you can easily integrate it into a RN app.
teunlao · 5 months ago
Great library. Just memo your custom nodes properly - edge re-renders cascade faster than you'd expect.
gardnr · 5 months ago
Sammi · 5 months ago
It's quite impressive how many layers of oopsies there are in the React api now.

The curse of being successful as a software project: more people want more from you, but you are not allowed to actually remove cruft, because too many people depend on it.

19: 193 kB -> 60.3 kB (gzip) https://bundlejs.com/?q=react%4019.2.0%2Creact%4019.2.0%2Cre...

18: 142 kB -> 45.6 kB (gzip) https://bundlejs.com/?q=react%4018.3.1%2Creact%4018.3.1%2Cre...

throwaway290 · 5 months ago
React.memo(MyFlowNodeComponent) like this?
krebby · 5 months ago
I'm working on an open source tool called noodles.gl that uses this library and it's been great. The devs have been good about keeping a cadence of solid changes and keeping the community updated, and overall I'm happy to have bet on this library years ago.

I love the flexibility and the fact that there's a variety of examples for basically anything I want to accomplish with it. Great work to the team.

https://noodles.gl

CuriouslyC · 5 months ago
Hah, this pops up right after I note how it's eating good with all the AI tools that use it. Deservedly so, if you're creating node based interfaces there's no reason to hand roll with D3.
artur_makly · 5 months ago
I made https://VisualFlows.io with it - among many other AI powered canvases:

https://www.design2dev.com/work/agentic-ai-canvases/

Contact me for UX consulting if you need it -;) artur at design2dev.com

randomdrake · 5 months ago
This is a well-done library that’s fun to work with. I put together a proof of concept org chart generator[0] with it a while back when working on another project. Very easy to use and well-documented.

[0] - https://github.com/randomdrake/react-flow-org-chart

iamcreasy · 5 months ago
This is cool. Is there web component library/resources for something equivalent?