Skip to content

Eric162/multi-socket-node-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi-Socket Node Graph

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.

qU4Af7i

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.

Future Plans

Better Examples:

  • Integrate With @xyflow types
    • connect node sockets
    • drag and drop nodes over an edge, automatically connecting sockets

Contributing

  1. Install Deno
  2. deno run type-check

Feel free to make a PR and I will review it!

About

Type Safety for Socketed Graphs and DAGs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published