AliTajeldin/solidjs-dep-graph ? reverse-engineered prompt

Reverse engineered prompt

Build me a SolidJS component library that can render a dependency graph from a list of nodes and edges, and lay everything out automatically with Dagre.

I want a simple API where I can pass in nodes and edges, then show a graph on the page with readable labels and clean spacing. It should support basic styling for nodes, edges, and labels, and let me swap in custom shapes or markers when I need a different look.

Please also include a small demo app so I can see a basic graph and a styled custom example working right away. If it helps, make the demo easy to run locally with clear setup steps. Add simple documentation for how to use the main component and how to customize the appearance.

If you need to check the latest SolidJS or Dagre docs while building it, go ahead and look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab