If you've ever used Blender's Geometry Nodes, it has an amazing implementation that respects the types of a Geometry Nodes' Sockets when attempting to connect nodes. This library is a starting point for implementing something similar in TypeScript.
These Node Graphs are not simple Graphs/DAGs because they have multiple input/output sockets which are all typed. Only Sockets of the same type are allowed to connect with one another.
Better Examples:
- Integrate With @xyflow types
- connect node sockets
- drag and drop nodes over an edge, automatically connecting sockets
- Install Deno
- deno run type-check
Feel free to make a PR and I will review it!
