antvis/G6 ? reverse-engineered prompt
Reverse engineered prompt
Build me a TypeScript graph visualization library that lets people draw and explore network data in the browser.
I want to be able to pass in nodes and edges, choose a layout like force or tree, and render an interactive graph with drag, zoom, selection, animation, and nice built in styles for nodes, edges, and grouped clusters. Please include a simple API for custom shapes, custom interactions, themes, and plugins, so it feels easy to extend for real apps.
It should work well in modern browsers, support light and dark themes, and render cleanly with canvas, SVG, and WebGL if possible. A basic demo page with a sample graph and a getting started example would be great too. If you need to look up current docs online while building it, go ahead.
Are you gonna build this?
make sure you review the code using coderabbit