Magnit.NodeGraph
litegraph.js
Magnit.NodeGraph | litegraph.js | |
---|---|---|
3 | 4 | |
7 | 5,280 | |
- | - | |
10.0 | 6.6 | |
over 1 year ago | about 1 month ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Magnit.NodeGraph
-
JSON Canvas – An open file format for infinite canvas data
Oh sweet! I was in the middle of building my own version of a node-graph component (ref: https://github.com/catapart/Magnit.NodeGraph), but the `canvas.js` implementation from this JsonCanvas repo is exactly what I was trying to build. I really, really like how elegantly uncomplex it is. Could not have been more exactly what I was looking for. So thanks for this!
As far as the spec, I don't really like the idea of forcing well-known types for the nodes. A generic spec should allow for entirely generic nodes that can represent themselves to consuming functions with a 'type' property as a key, as well as arbitrary data types linked to arbitrary nodes. For instance: one of my use cases is an 'addition' node, which would take two number values and produce a number value. This node would also use an entrance execution pin as well as an exit execution pin.
If the spec were to include a 'pin' data type and capture the type keys and labels for pins, those pins could be stored as a list on the node. Then, the type property could just tell the executing context how to route the node data and the pin properties would bring type safety to the functional inputs passed to the mapped function.
Anyway, I assume all of that is out of scope for initial offerings, but that's my two cents on a generalized node spec. Regardless, thanks again for the sweet, simplistic node graph implementation!
-
Visual Node Graph with ImGui
> If people don't intrinsically understand you, maybe you need to go in to more detail so your explanation isn't so abstract.
People did; you didn't.
> Ergo, vis-a-vi have you ever actually tried making a graph that is rearranging itself while you're using it?
No one said anything about "while you're using it". Linters don't fuck up your text as you type it. It's a utility like anything else. And, YES, I have built a working version of one. It doesn't use machine learning/tensors at all, and it's a fucking nightmare to develop. I can see exactly where those things would help me. It's too abstract, to you, to understand? That's a shame! But other people seem to get it, so if you are having trouble, maybe try approaching your ignorance with openness and curiosity instead of cynicism and trivialization ('uncross some lines').
If you want to know how much time I've spent working on node edge graphs, you wouldn't believe me. But I can at least point you to the start of the web-component version I'm porting: https://github.com/catapart/Magnit.NodeGraph
-
Node-Based UIs
Shameless plug time! I've been working on something like this as a custom web component with no dependencies: https://github.com/catapart/Magnit.NodeGraph
Not the most feature rich - I'm developing it for a single project, so that's project's needs come first. But it's rudimentary enough to start from if you're looking to build your own, and it's simple enough to customize if it already does what you need.
litegraph.js
-
Show HN: Comflowy – A ComfyUI Tutorial for Beginners
It's litegraph.js [1] and seems to be the only lib they include in /web [2] :
[1] https://github.com/jagenjo/litegraph.js
[2] https://github.com/comfyanonymous/ComfyUI/tree/master/web/li...
- ComfyUI is now 4 months old!
-
Choosing graph editor
I've found retejs and litegraph Has anyone used any of these or some others. What's the pros and cons? Or limitations of these.
-
Node-Based UIs
the docs are missing but this looks good https://github.com/jagenjo/litegraph.js
What are some alternatives?
nodes-io - A new way to create with code.
Rete.js - Rete.js is a framework for creating visual interfaces and workflows. It provides out-of-the-box solutions for visualization using various libraries and frameworks, as well as solutions for processing graphs based on dataflow and control flow approaches.
GrapesJS - Free and Open source Web Builder Framework. Next generation tool for building templates without coding
Drawflow - Simple flow library 🖥️🖱️
React - The library for web and native user interfaces.
Alpine.js - A rugged, minimal framework for composing JavaScript behavior in your markup.
Monkberry - Monkberry is a JavaScript library for building web user interfaces
ComfyUI-Manager
react-native - A framework for building native applications using React
blockly - The web-based visual programming editor.
foal - Full-featured Node.js framework, with no complexity. 🚀 Simple and easy to use, TypeScript-based and well-documented.
finity - A finite state machine library for Node.js and the browser with a friendly configuration DSL.