{
  "id": "task_libraries:graph-visualization/react",
  "path": "/exapedia/react-graph-visualization-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "React graph visualization libraries",
  "answer": [
    {
      "t": "text",
      "text": "React graph visualization libraries draw networks of nodes and edges that users can explore. A renderer positions nodes with a layout algorithm, such as a force simulation, and draws the result on Canvas or WebGL. These libraries let knowledge graph tools, security dashboards, and AI agents show how entities connect."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "React graph visualization libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#xyflow-react",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F134"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-force-graph-d",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F151"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#ant-design-graphs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F166"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#antv-graphin",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F179"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-sigma",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F196"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#reagraph",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F211"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-cytoscapejs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F226"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#reaflow",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F237"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#react-force-graph-d",
          "label": [
            {
              "t": "fact",
              "fact": "F151"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads among the dedicated graph visualization libraries in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F152"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Automatic graph layout",
            "Default WebGL renderer"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#xyflow-react",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F134"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-force-graph-d",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F151"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#ant-design-graphs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F166"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#antv-graphin",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F179"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-sigma",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F196"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#reagraph",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F211"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-cytoscapejs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F226"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#reaflow",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F237"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "xyflow-react",
          "name": [
            {
              "t": "fact",
              "fact": "F134"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/xyflow/xyflow"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@xyflow/react"
            },
            {
              "label": "Docs",
              "href": "https://reactflow.dev/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F141"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://reactflow.dev/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F134"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/langflow-ai/langflow",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F149"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "const onEdgeUpdate = useCallback(\n  (oldEdge: EdgeType, newConnection: Connection) => {\n    if (isValidConnection(newConnection, nodes, edges)) {\n      edgeUpdateSuccessful.current = true;\n      oldEdge.data = {\n        targetHandle: scapeJSONParse(newConnection.targetHandle!),\n        sourceHandle: scapeJSONParse(newConnection.sourceHandle!),\n      };\n      setEdges((els) => reconnectEdge(oldEdge, newConnection, els));\n    }\n  },\n  [setEdges],\n);\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/langflow-ai/langflow/blob/260cbf347cc5563cc48c79094c175ca31532ea2b/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx#L826-L838",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F148"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40xyflow/react%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F134"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { ReactFlow } from '@xyflow/react';\nimport '@xyflow/react/dist/style.css';\n\nconst nodes = [{ id: '1', position: { x: 0, y: 0 }, data: { label: 'Node 1' } }];\n\nexport default function App() {\n  return <div style={{ width: 600, height: 400 }}><ReactFlow defaultNodes={nodes} /></div>;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@xyflow/react@13.0.2/dist/index.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.d.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F139"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-force-graph-d",
          "name": [
            {
              "t": "fact",
              "fact": "F151"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/vasturiano/react-force-graph"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-force-graph-2d"
            },
            {
              "label": "Docs",
              "href": "https://github.com/vasturiano/react-force-graph/blob/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/vasturiano/react-force-graph/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F151"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/fuma-nama/fumadocs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F164"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "function ClientOnly({\n  containerRef,\n  graph,\n}: GraphViewProps & { containerRef: RefObject<HTMLDivElement | null> }) {\n  const graphRef = useRef<ForceGraphMethods<Node, Link> | undefined>(undefined);\n  const hoveredRef = useRef<Node | null>(null);\n  const router = useRouter();\n  const [tooltip, setTooltip] = useState<{\n    x: number;\n    y: number;\n    content: string;\n  } | null>(null);\n\n  const handleNodeHover = (node: Node | null) => {\n    const graph = graphRef.current;\n    if (!graph) return;\n    hoveredRef.current = node;\n\n    if (node) {\n      const coords = graph.graph2ScreenCoords(node.x!, node.y!);\n      setTooltip({\n        x: coords.x + 4,\n        y: coords.y + 4,\n        content: node.description ?? 'No description',\n      });\n    } else {\n      setTooltip(null);\n    }\n  };\n\n  // Custom node rendering: circle with text label below\n  const nodeCanvasObject: ForceGraphProps['nodeCanvasObject'] = (node, ctx) => {\n    const container = containerRef.current;\n    if (!container) return;\n    const style = getComputedStyle(container);\n    const fontSize = 14;\n    const radius = 5;\n\n    // Draw circle\n    ctx.beginPath();\n    ctx.arc(node.x!, node.y!, radius, 0, 2 * Math.PI, false);\n\n    const hoverNode = hoveredRef.current;\n    const isActive = hoverNode?.id === node.id || hoverNode?.neighbors?.includes(node.id as string);\n\n    ctx.fillStyle = isActive\n      ? style.getPropertyValue('--color-fd-primary')\n      : style.getPropertyValue('--color-purple-300');\n    ctx.fill();\n\n    // Draw text below the node\n    ctx.font = `${fontSize}px Sans-Serif`;\n    ctx.textAlign = 'center';\n    ctx.textBaseline = 'middle';\n    ctx.fillStyle = getComputedStyle(container).getPropertyValue('color');\n    ctx.fillText(node.text, node.x!, node.y! + radius + fontSize);\n  };\n\n  const linkColor = (link: Link) => {\n    const container = containerRef.current;\n    if (!container) return '#999';\n    const style = getComputedStyle(container);\n    const hoverNode = hoveredRef.current;\n\n    if (\n      hoverNode &&\n      typeof link.source === 'object' &&\n      typeof link.target === 'object' &&\n      (hoverNode.id === link.source.id || hoverNode.id === link.target.id)\n    ) {\n      return style.getPropertyValue('--color-fd-primary');\n    }\n\n    return `color-mix(in oklab, ${style.getPropertyValue('--color-fd-muted-foreground')} 50%, transparent)`;\n  };\n\n  // Enrich nodes with neighbors for hover effects\n  const enrichedNodes = useMemo(() => {\n    const { nodes, links } = structuredClone(graph);\n    for (const node of nodes) {\n      node.neighbors = links.flatMap((link) => {\n        if (link.source === node.id) return link.target as string;\n        if (link.target === node.id) return link.source as string;\n        return [];\n      });\n    }\n\n    return {\n      nodes,\n      links,\n    };\n  }, [graph]);\n\n  return (\n    <>\n      <ForceGraph2D<NodeType, LinkType>\n        ref={{\n          get current() {\n            return graphRef.current;\n          },\n          set current(fg) {\n            graphRef.current = fg;\n            if (fg) {\n              fg.d3Force('link', forceLink().distance(200));\n              fg.d3Force('charge', forceManyBody().strength(10));\n              fg.d3Force('collision', forceCollide(60));\n            }\n          },\n        }}\n        graphData={enrichedNodes}\n        nodeCanvasObject={nodeCanvasObject}\n        linkColor={linkColor}\n        onNodeHover={handleNodeHover}\n        onNodeClick={(node) => {\n          router.push(node.url);\n        }}\n        linkWidth={2}\n        enableNodeDrag\n        enableZoomInteraction\n      />\n      {tooltip && (\n        <div\n          className=\"absolute bg-fd-popover text-fd-popover-foreground size-fit p-2 border rounded-xl shadow-lg text-sm max-w-xs\"\n          style={{ top: tooltip.y, left: tooltip.x }}\n        >\n          {tooltip.content}\n        </div>\n      )}\n    </>\n  );\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/fuma-nama/fumadocs/blob/53e851baa5bb3db7697ea9552855cfe7209bbb8e/apps/docs/components/graph-view.tsx#L54-L184",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F163"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20TypeScript%20JavaScript%20applications%20using%20react-force-graph-2d%20for%20network%20graph%20visualization%2C%20node%20interactions%2C%20graph%20layouts%20and%20graph%20exploration&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F151"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import ForceGraph2D from \"react-force-graph-2d\";\n\nconst graphData = {\n  nodes: [{ id: \"a\" }, { id: \"b\" }],\n  links: [{ source: \"a\", target: \"b\" }],\n};\n\nexport default function App() {\n  return <ForceGraph2D width={600} height={400} graphData={graphData} />;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/vasturiano/react-force-graph/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "index-canvas.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F156"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "ant-design-graphs",
          "name": [
            {
              "t": "fact",
              "fact": "F166"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/ant-design/ant-design-charts"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@ant-design/graphs"
            },
            {
              "label": "Docs",
              "href": "https://ant-design-charts.antgroup.com/en/components/graphs/overview"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F173"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://ant-design-charts.antgroup.com/en/components/graphs/overview",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F166"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { FlowGraph } from \"@ant-design/graphs\";\n\nconst data = {\n  nodes: [{ id: \"a\" }, { id: \"b\" }],\n  edges: [{ id: \"a-b\", source: \"a\", target: \"b\" }],\n};\n\nexport default function App() {\n  return (\n    <div style={{ width: 600, height: 400 }}>\n      <FlowGraph data={data} autoFit=\"view\" />\n    </div>\n  );\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@ant-design/graphs@2.1.1/lib/index.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.d.ts"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40ant-design/graphs%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F166"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F171"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "antv-graphin",
          "name": [
            {
              "t": "fact",
              "fact": "F179"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/antvis/Graphin"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@antv/graphin"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F186"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/antvis/Graphin",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F179"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/ant-design/ant-design-charts",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F194"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "export const BaseGraph: ForwardRefExoticComponent<\n  PropsWithoutRef<PropsWithChildren<GraphOptions>> & RefAttributes<Graph>\n> = forwardRef<Graph, PropsWithChildren<GraphOptions>>(({ children, ...props }, ref) => {\n  const { containerStyle, className, onInit, onReady, onDestroy, errorTemplate, loading, loadingTemplate, ...options } =\n    props;\n  const graphRef = useRef<Graph | null>(null);\n\n  useImperativeHandle(ref, () => graphRef.current!);\n\n  return (\n    <ErrorBoundary errorTemplate={errorTemplate}>\n      {loading && <ChartLoading loadingTemplate={loadingTemplate} />}\n      {!isEmpty(options.data) && (\n        <Graphin\n          ref={(ref) => {\n            graphRef.current = ref;\n          }}\n          className={className}\n          style={containerStyle}\n          options={options as G6GraphOptions}\n          onInit={onInit}\n          onReady={onReady}\n          onDestroy={onDestroy}\n        >\n          {children}\n        </Graphin>\n      )}\n    </ErrorBoundary>\n  );\n});\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/ant-design/ant-design-charts/blob/5bb63627fab6629f4bd556e0290873c1b19fdc32/packages/graphs/src/core/base-graph.tsx#L16-L45",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F193"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40antv/graphin%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F179"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { Graphin } from \"@antv/graphin\";\n\nconst data = {\n  nodes: [{ id: \"a\" }, { id: \"b\" }],\n  edges: [{ id: \"a-b\", source: \"a\", target: \"b\" }],\n};\n\nexport default function App() {\n  return <Graphin style={{ width: 600, height: 400 }} options={{ data, layout: { type: \"grid\" } }} />;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@antv/graphin@3.0.5/lib/types.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "types.d.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F184"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-sigma",
          "name": [
            {
              "t": "fact",
              "fact": "F196"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/sim51/react-sigma"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@react-sigma/core"
            },
            {
              "label": "Docs",
              "href": "https://github.com/sim51/react-sigma/blob/main/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F39"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/sim51/react-sigma/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F196"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F46"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F47"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/HKUDS/LightRAG",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F209"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "const FocusOnNode = ({ node, move }: { node: string | null; move?: boolean }) => {\n  const sigma = useSigma()\n  const { gotoNode } = useCamera()\n\n  /**\n   * When the selected item changes, highlighted the node and center the camera on it.\n   */\n  useEffect(() => {\n    const graph = sigma.getGraph();\n\n    if (move) {\n      if (node && graph.hasNode(node)) {\n        try {\n          graph.setNodeAttribute(node, 'highlighted', true);\n          gotoNode(node);\n        } catch (error) {\n          console.error('Error focusing on node:', error);\n        }\n      } else {\n        // If no node is selected but move is true, reset to default view\n        sigma.setCustomBBox(null);\n        sigma.getCamera().animate({ x: 0.5, y: 0.5, ratio: 1 }, { duration: 0 });\n      }\n      useGraphStore.getState().setMoveToSelectedNode(false);\n    } else if (node && graph.hasNode(node)) {\n      try {\n        graph.setNodeAttribute(node, 'highlighted', true);\n      } catch (error) {\n        console.error('Error highlighting node:', error);\n      }\n    }\n\n    return () => {\n      if (node && graph.hasNode(node)) {\n        try {\n          graph.setNodeAttribute(node, 'highlighted', false);\n        } catch (error) {\n          console.error('Error cleaning up node highlight:', error);\n        }\n      }\n    }\n  }, [node, move, sigma, gotoNode])\n\n  return null\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/HKUDS/LightRAG/blob/64e57fc241653bef1fb284ea8cf6b8852460cbc6/lightrag_webui/src/components/graph/FocusOnNode.tsx#L8-L52",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F208"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20TypeScript%20JavaScript%20applications%20using%20%40react-sigma/core%20for%20network%20graph%20visualization%2C%20node%20interactions%2C%20graph%20layouts%20and%20graph%20exploration&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F196"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import Graph from \"graphology\";\nimport { SigmaContainer } from \"@react-sigma/core\";\nimport \"@react-sigma/core/lib/style.css\";\n\nconst graph = new Graph();\ngraph.addNode(\"a\", { x: 0, y: 0, size: 10, label: \"A\" });\ngraph.addNode(\"b\", { x: 1, y: 1, size: 10, label: \"B\" });\ngraph.addEdge(\"a\", \"b\");\n\nexport default function App() {\n  return <SigmaContainer graph={graph} style={{ height: 400, width: 600 }} />;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@react-sigma/core@6.0.0/lib/components/SigmaContainer.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "start-setup.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F201"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "reagraph",
          "name": [
            {
              "t": "fact",
              "fact": "F211"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/reaviz/reagraph"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/reagraph"
            },
            {
              "label": "Docs",
              "href": "https://github.com/reaviz/reagraph/blob/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F66"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/reaviz/reagraph/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F211"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F72"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F73"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F74"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/builderz-labs/mission-control",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F224"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "() => {\n    if (!graphNodes.length) return\n    // reagraph force layout needs time to settle before fitNodesInView works\n    const t1 = setTimeout(() => graphRef.current?.fitNodesInView(undefined, { animated: false }), 800)\n    const t2 = setTimeout(() => graphRef.current?.fitNodesInView(undefined, { animated: false }), 2500)\n    const t3 = setTimeout(() => graphRef.current?.fitNodesInView(undefined, { animated: false }), 5000)\n    const t4 = setTimeout(() => graphRef.current?.fitNodesInView(undefined, { animated: false }), 8000)\n    return () => { clearTimeout(t1); clearTimeout(t2); clearTimeout(t3); clearTimeout(t4) }\n  }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/builderz-labs/mission-control/blob/c1a846fe020567bb3ceb3b65db9f00db875618cd/src/components/panels/memory-graph.tsx#L265-L273",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F223"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20TypeScript%20JavaScript%20applications%20using%20reagraph%20for%20network%20graph%20visualization%2C%20node%20interactions%2C%20graph%20layouts%20and%20graph%20exploration&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F211"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { GraphCanvas } from \"reagraph\";\n\nconst nodes = [{ id: \"a\", label: \"A\" }, { id: \"b\", label: \"B\" }];\nconst edges = [{ id: \"a-b\", source: \"a\", target: \"b\" }];\n\nexport default function App() {\n  return (\n    <div style={{ position: \"relative\", width: 600, height: 400 }}>\n      <GraphCanvas nodes={nodes} edges={edges} />\n    </div>\n  );\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://reagraph.dev/docs/getting-started/Basics",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F216"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-cytoscapejs",
          "name": [
            {
              "t": "fact",
              "fact": "F226"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/plotly/react-cytoscapejs"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-cytoscapejs"
            },
            {
              "label": "Docs",
              "href": "https://github.com/plotly/react-cytoscapejs/blob/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F92"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/plotly/react-cytoscapejs/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F226"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F93"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F94"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F95"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F96"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F97"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F98"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F99"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F100"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import CytoscapeComponent from \"react-cytoscapejs\";\n\nconst elements = [\n  { data: { id: \"a\", label: \"A\" }, position: { x: 0, y: 0 } },\n  { data: { id: \"b\", label: \"B\" }, position: { x: 100, y: 0 } },\n  { data: { id: \"a-b\", source: \"a\", target: \"b\" } },\n];\n\nexport default function App() {\n  return <CytoscapeComponent elements={elements} layout={{ name: \"preset\" }} style={{ width: 600, height: 400 }} />;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/plotly/react-cytoscapejs/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20TypeScript%20JavaScript%20applications%20using%20react-cytoscapejs%20for%20network%20graph%20visualization%2C%20node%20interactions%2C%20graph%20layouts%20and%20graph%20exploration&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F226"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F231"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "reaflow",
          "name": [
            {
              "t": "fact",
              "fact": "F237"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/reaviz/reaflow"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/reaflow"
            },
            {
              "label": "Docs",
              "href": "https://reaflow.dev/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F244"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://reaflow.dev/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F237"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/AykutSarac/jsoncrack.com",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F252"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "const CustomNodeWrapper = (nodeProps: NodeProps<NodeData[\"data\"]>) => {\n  const data = nodeProps.properties.data;\n  const setSelectedNode = useGraph(state => state.setSelectedNode);\n  const setVisible = useModal(state => state.setVisible);\n\n  const handleNodeClick = React.useCallback(\n    (_: React.MouseEvent<SVGGElement, MouseEvent>, data: NodeData) => {\n      if (setSelectedNode) setSelectedNode(data);\n      setVisible(\"node\")(true);\n    },\n    [setSelectedNode, setVisible]\n  );\n\n  return (\n    <Node\n      {...nodeProps}\n      {...(data?.isEmpty && rootProps)}\n      onClick={handleNodeClick as any}\n      animated={false}\n      label={null as any}\n    >\n      {({ node, x, y }) => {\n        if (Array.isArray(nodeProps.properties.text)) {\n          if (data?.isEmpty) return null;\n          return <ObjectNode node={node as NodeData} x={x} y={y} />;\n        }\n\n        return <TextNode node={node as NodeData} hasCollapse={!!data?.childrenCount} x={x} y={y} />;\n      }}\n    </Node>\n  );\n};\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/AykutSarac/jsoncrack.com/blob/844d6bdeb4d9360501cdf45dd2be637d5bb5979e/src/components/Graph/CustomNode/index.tsx#L26-L57",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F251"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=reaflow%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F237"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import React from 'react';\nimport { Canvas } from 'reaflow';\n\nexport default () => (\n  <Canvas\n    maxWidth={800}\n    maxHeight={600}\n    nodes={[\n      {\n        id: '1',\n        text: '1'\n      },\n      {\n        id: '2',\n        text: '2'\n      }\n    ]}\n    edges={[\n      {\n        id: '1-2',\n        from: '1',\n        to: '2'\n      }\n    ]}\n  />\n);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/reaviz/reaflow/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F242"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which React graph visualization library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#react-force-graph-d",
          "label": [
            {
              "t": "fact",
              "fact": "F151"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits force-directed network graphs drawn on Canvas. "
        },
        {
          "t": "link",
          "href": "#reagraph",
          "label": [
            {
              "t": "text",
              "text": "Reagraph"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits WebGL graphs with several layouts and exploration controls. "
        },
        {
          "t": "link",
          "href": "#react-sigma",
          "label": [
            {
              "t": "text",
              "text": "React Sigma"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits Sigma graphs with React event hooks."
        }
      ]
    },
    {
      "q": "What is react-force-graph?",
      "a": [
        {
          "t": "link",
          "href": "#react-force-graph-d",
          "label": [
            {
              "t": "fact",
              "fact": "F151"
            }
          ]
        },
        {
          "t": "text",
          "text": " displays force-directed network graphs with a two-dimensional Canvas renderer. Custom nodes are drawn through the provided Canvas context."
        }
      ]
    },
    {
      "q": "What is Reagraph?",
      "a": [
        {
          "t": "link",
          "href": "#reagraph",
          "label": [
            {
              "t": "text",
              "text": "Reagraph"
            }
          ]
        },
        {
          "t": "text",
          "text": " renders interactive WebGL network graphs with force, tree, radial, concentric, and hierarchical layouts. Scene animation turns off for large graphs."
        }
      ]
    },
    {
      "q": "How do I use Cytoscape in React?",
      "a": [
        {
          "t": "link",
          "href": "#react-cytoscapejs",
          "label": [
            {
              "t": "text",
              "text": "react-cytoscapejs"
            }
          ]
        },
        {
          "t": "text",
          "text": " displays Cytoscape network graphs through a declarative React component. Layout extensions must be registered before the component mounts."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, react-force-graph-2d",
      "display": "React Force Graph 2D",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, react-force-graph-2d",
      "display": "4.8M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, react-force-graph-2d",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, react-force-graph-2d",
      "display": "1.29.2",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, react-force-graph-2d",
      "display": "v1.29.2",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, react-force-graph-2d",
      "display": "3.4K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Runs force-directed layout, react-force-graph-2d",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Customizes node rendering, react-force-graph-2d",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Handles node clicks, react-force-graph-2d",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Renders with WebGL, react-force-graph-2d",
      "display": "Unsupported",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, react-force-graph-2d",
      "display": "npm install react-force-graph-2d",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, react-force-graph-2d",
      "display": "Displays force-directed network graphs using a two-dimensional Canvas renderer.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, react-force-graph-2d",
      "display": "Runs a force-directed layout",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, react-force-graph-2d",
      "display": "Position graph nodes with the included force simulation.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, react-force-graph-2d",
      "display": "Customizes node painting",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, react-force-graph-2d",
      "display": "Draw custom nodes through the provided Canvas context.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, react-force-graph-2d",
      "display": "Directional layout requires acyclic data",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, react-force-graph-2d",
      "display": "Enable dagMode only for directed graphs without cycles.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, react-force-graph-2d",
      "display": "Custom nodes need Canvas drawing",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, react-force-graph-2d",
      "display": "Use nodeCanvasObject to draw through the provided Canvas context.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, react-force-graph-2d",
      "display": "\n    import ForceGraph2D from 'https://esm.sh/react-force-graph-2d?external=react';\n    import React from 'react';\n    import { createRoot } from 'react-dom';\n    import { genRandomTree } from '../datasets/random-data.js';\n\n    function nodePaint({ id, x, y }, color, ctx) {\n      ctx.fillStyle = color;\n      [\n        () => { ctx.fillRect(x - 6, y - 4, 12, 8); }, // rectangle\n        () => { ctx.beginPath(); ctx.moveTo(x, y - 5); ctx.lineTo(x - 5, y + 5); ctx.lineTo(x + 5, y + 5); ctx.fill(); }, // triangle\n        () => { ctx.beginPath(); ctx.arc(x, y, 5, 0, 2 * Math.PI, false); ctx.fill(); }, // circle\n        () => { ctx.font = '10px Sans-Serif'; ctx.textAlign = 'center'; ctx.textBaseline = 'middle'; ctx.fillText('Text', x, y); } // text\n      ][id%4]();\n    }\n\n    // gen a number persistent color from around the palette\n    const getColor = n => '#' + ((n * 1234567) % Math.pow(2, 24)).toString(16).padStart(6, '0');\n\n    createRoot(document.getElementById('graph')).render(\n      <ForceGraph2D\n        graphData={genRandomTree(20)}\n        nodeLabel=\"id\"\n        nodeCanvasObject={(node, ctx) => nodePaint(node, getColor(node.id), ctx)}\n        nodePointerAreaPaint={nodePaint}\n      />\n    );\n  ",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, react-force-graph-2d",
      "display": "function ClientOnly({\n  containerRef,\n  graph,\n}: GraphViewProps & { containerRef: RefObject<HTMLDivElement | null> }) {\n  const graphRef = useRef<ForceGraphMethods<Node, Link> | undefined>(undefined);\n  const hoveredRef = useRef<Node | null>(null);\n  const router = useRouter();\n  const [tooltip, setTooltip] = useState<{\n    x: number;\n    y: number;\n    content: string;\n  } | null>(null);\n\n  const handleNodeHover = (node: Node | null) => {\n    const graph = graphRef.current;\n    if (!graph) return;\n    hoveredRef.current = node;\n\n    if (node) {\n      const coords = graph.graph2ScreenCoords(node.x!, node.y!);\n      setTooltip({\n        x: coords.x + 4,\n        y: coords.y + 4,\n        content: node.description ?? 'No description',\n      });\n    } else {\n      setTooltip(null);\n    }\n  };\n\n  // Custom node rendering: circle with text label below\n  const nodeCanvasObject: ForceGraphProps['nodeCanvasObject'] = (node, ctx) => {\n    const container = containerRef.current;\n    if (!container) return;\n    const style = getComputedStyle(container);\n    const fontSize = 14;\n    const radius = 5;\n\n    // Draw circle\n    ctx.beginPath();\n    ctx.arc(node.x!, node.y!, radius, 0, 2 * Math.PI, false);\n\n    const hoverNode = hoveredRef.current;\n    const isActive = hoverNode?.id === node.id || hoverNode?.neighbors?.includes(node.id as string);\n\n    ctx.fillStyle = isActive\n      ? style.getPropertyValue('--color-fd-primary')\n      : style.getPropertyValue('--color-purple-300');\n    ctx.fill();\n\n    // Draw text below the node\n    ctx.font = `${fontSize}px Sans-Serif`;\n    ctx.textAlign = 'center';\n    ctx.textBaseline = 'middle';\n    ctx.fillStyle = getComputedStyle(container).getPropertyValue('color');\n    ctx.fillText(node.text, node.x!, node.y! + radius + fontSize);\n  };\n\n  const linkColor = (link: Link) => {\n    const container = containerRef.current;\n    if (!container) return '#999';\n    const style = getComputedStyle(container);\n    const hoverNode = hoveredRef.current;\n\n    if (\n      hoverNode &&\n      typeof link.source === 'object' &&\n      typeof link.target === 'object' &&\n      (hoverNode.id === link.source.id || hoverNode.id === link.target.id)\n    ) {\n      return style.getPropertyValue('--color-fd-primary');\n    }\n\n    return `color-mix(in oklab, ${style.getPropertyValue('--color-fd-muted-foreground')} 50%, transparent)`;\n  };\n\n  // Enrich nodes with neighbors for hover effects\n  const enrichedNodes = useMemo(() => {\n    const { nodes, links } = structuredClone(graph);\n    for (const node of nodes) {\n      node.neighbors = links.flatMap((link) => {\n        if (link.source === node.id) return link.target as string;\n        if (link.target === node.id) return link.source as string;\n        return [];\n      });\n    }\n\n    return {\n      nodes,\n      links,\n    };\n  }, [graph]);\n\n  return (\n    <>\n      <ForceGraph2D<NodeType, LinkType>\n        ref={{\n          get current() {\n            return graphRef.current;\n          },\n          set current(fg) {\n            graphRef.current = fg;\n            if (fg) {\n              fg.d3Force('link', forceLink().distance(200));\n              fg.d3Force('charge', forceManyBody().strength(10));\n              fg.d3Force('collision', forceCollide(60));\n            }\n          },\n        }}\n        graphData={enrichedNodes}\n        nodeCanvasObject={nodeCanvasObject}\n        linkColor={linkColor}\n        onNodeHover={handleNodeHover}\n        onNodeClick={(node) => {\n          router.push(node.url);\n        }}\n        linkWidth={2}\n        enableNodeDrag\n        enableZoomInteraction\n      />\n      {tooltip && (\n        <div\n          className=\"absolute bg-fd-popover text-fd-popover-foreground size-fit p-2 border rounded-xl shadow-lg text-sm max-w-xs\"\n          style={{ top: tooltip.y, left: tooltip.x }}\n        >\n          {tooltip.content}\n        </div>\n      )}\n    </>\n  );\n}\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, react-force-graph-2d",
      "display": "graph-view.tsx · ClientOnly()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, react-force-graph-2d",
      "display": "fuma-nama/fumadocs",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, fuma-nama/fumadocs",
      "display": "13.6K",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, fuma-nama/fumadocs",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F27": {
      "label": "Library name, @react-sigma/core",
      "display": "React Sigma",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, @react-sigma/core",
      "display": "539.2K",
      "asOf": "2026-11-15"
    },
    "F29": {
      "label": "License, @react-sigma/core",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, @react-sigma/core",
      "display": "6.0.0",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Undated package release, @react-sigma/core",
      "display": "v6.0.0",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Repository stars, @react-sigma/core",
      "display": "240",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Runs force-directed layout, @react-sigma/core",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Customizes node rendering, @react-sigma/core",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Handles node clicks, @react-sigma/core",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Renders with WebGL, @react-sigma/core",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Output formats, @react-sigma/core",
      "display": "JPEG, PNG",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "Install, @react-sigma/core",
      "display": "npm install @react-sigma/core sigma graphology graphology-types",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "What it does, @react-sigma/core",
      "display": "Provides React graph containers, event hooks, and camera access for Sigma.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, @react-sigma/core",
      "display": "Manages graph event listeners",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, @react-sigma/core",
      "display": "Register event handlers through useRegisterEvents with automatic removal.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths lead, @react-sigma/core",
      "display": "Supports different graph models",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "strengths, @react-sigma/core",
      "display": "Pass a Graphology constructor for the graph structure the application needs.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations lead, @react-sigma/core",
      "display": "New graph instances recreate Sigma",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations, @react-sigma/core",
      "display": "Keep graph references stable when updating React state.",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "limitations lead, @react-sigma/core",
      "display": "Parallel edges need a multigraph",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "limitations, @react-sigma/core",
      "display": "Use MultiDirectedGraph for multiple directed edges between the same two nodes.",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Quickstart, @react-sigma/core",
      "display": "import \"@react-sigma/core/lib/style.css\";\nimport { FC, useEffect } from \"react\";\nimport { MultiDirectedGraph } from \"graphology\";\n\nimport { SigmaContainer, useLoadGraph } from \"@react-sigma/core\";\n\nconst MyGraph: FC = () => {\n  const loadGraph = useLoadGraph();\n\n  useEffect(() => {\n    // Create the graph\n    const graph = new MultiDirectedGraph();\n    graph.addNode(\"A\", { x: 0, y: 0, label: \"Node A\", size: 10 });\n    graph.addNode(\"B\", { x: 1, y: 1, label: \"Node B\", size: 10 });\n    graph.addEdgeWithKey(\"rel1\", \"A\", \"B\", { label: \"REL_1\" });\n    graph.addEdgeWithKey(\"rel2\", \"A\", \"B\", { label: \"REL_2\" });\n\n    loadGraph(graph);\n  }, [loadGraph]);\n\n  return null;\n};\n\nexport const MultiDirectedGraphView: FC = () => {\n  return (\n    <SigmaContainer graph={MultiDirectedGraph}>\n      <MyGraph />\n    </SigmaContainer>\n  );\n};\n",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project function, @react-sigma/core",
      "display": "const FocusOnNode = ({ node, move }: { node: string | null; move?: boolean }) => {\n  const sigma = useSigma()\n  const { gotoNode } = useCamera()\n\n  /**\n   * When the selected item changes, highlighted the node and center the camera on it.\n   */\n  useEffect(() => {\n    const graph = sigma.getGraph();\n\n    if (move) {\n      if (node && graph.hasNode(node)) {\n        try {\n          graph.setNodeAttribute(node, 'highlighted', true);\n          gotoNode(node);\n        } catch (error) {\n          console.error('Error focusing on node:', error);\n        }\n      } else {\n        // If no node is selected but move is true, reset to default view\n        sigma.setCustomBBox(null);\n        sigma.getCamera().animate({ x: 0.5, y: 0.5, ratio: 1 }, { duration: 0 });\n      }\n      useGraphStore.getState().setMoveToSelectedNode(false);\n    } else if (node && graph.hasNode(node)) {\n      try {\n        graph.setNodeAttribute(node, 'highlighted', true);\n      } catch (error) {\n        console.error('Error highlighting node:', error);\n      }\n    }\n\n    return () => {\n      if (node && graph.hasNode(node)) {\n        try {\n          graph.setNodeAttribute(node, 'highlighted', false);\n        } catch (error) {\n          console.error('Error cleaning up node highlight:', error);\n        }\n      }\n    }\n  }, [node, move, sigma, gotoNode])\n\n  return null\n}\n",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project function reference, @react-sigma/core",
      "display": "FocusOnNode.tsx · FocusOnNode()",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project repository, @react-sigma/core",
      "display": "HKUDS/LightRAG",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project stars, HKUDS/LightRAG",
      "display": "40.7K",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Project push date, HKUDS/LightRAG",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F54": {
      "label": "Library name, reagraph",
      "display": "Reagraph",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Monthly downloads, reagraph",
      "display": "410.6K",
      "asOf": "2026-11-15"
    },
    "F56": {
      "label": "License, reagraph",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Package release, reagraph",
      "display": "4.32.0",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Undated package release, reagraph",
      "display": "v4.32.0",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Repository stars, reagraph",
      "display": "1.1K",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Runs force-directed layout, reagraph",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Customizes node rendering, reagraph",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Handles node clicks, reagraph",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "Renders with WebGL, reagraph",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "Output formats, reagraph",
      "display": "PNG",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "Install, reagraph",
      "display": "npm install reagraph",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "What it does, reagraph",
      "display": "Renders interactive WebGL network graphs with included graph layouts.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths lead, reagraph",
      "display": "Includes varied graph layouts",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "strengths, reagraph",
      "display": "Choose force, tree, radial, concentric, or hierarchical layouts.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "strengths lead, reagraph",
      "display": "Supports graph exploration controls",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "strengths, reagraph",
      "display": "Use lasso selection, clustering, highlighting, and node expansion.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations lead, reagraph",
      "display": "Large graphs disable scene animation",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "limitations, reagraph",
      "display": "Scene animation is disabled above 400 combined nodes and edges.",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "limitations lead, reagraph",
      "display": "Custom nodes use WebGL geometry",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "limitations, reagraph",
      "display": "Use React Three Fiber components when overriding node shapes.",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Quickstart, reagraph",
      "display": "import React from 'react';\nimport { GraphCanvas } from 'reagraph';\n\nexport default () => (\n  <GraphCanvas\n    nodes={[\n      {\n        id: 'n-1',\n        label: '1'\n      },\n      {\n        id: 'n-2',\n        label: '2'\n      }\n    ]}\n    edges={[\n      {\n        id: '1->2',\n        source: 'n-1',\n        target: 'n-2',\n        label: 'Edge 1-2'\n      }\n    ]}\n  />\n);\n",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project function, reagraph",
      "display": "() => {\n    if (!graphNodes.length) return\n    // reagraph force layout needs time to settle before fitNodesInView works\n    const t1 = setTimeout(() => graphRef.current?.fitNodesInView(undefined, { animated: false }), 800)\n    const t2 = setTimeout(() => graphRef.current?.fitNodesInView(undefined, { animated: false }), 2500)\n    const t3 = setTimeout(() => graphRef.current?.fitNodesInView(undefined, { animated: false }), 5000)\n    const t4 = setTimeout(() => graphRef.current?.fitNodesInView(undefined, { animated: false }), 8000)\n    return () => { clearTimeout(t1); clearTimeout(t2); clearTimeout(t3); clearTimeout(t4) }\n  }\n",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Project function reference, reagraph",
      "display": "memory-graph.tsx · useEffect callback()",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Project repository, reagraph",
      "display": "builderz-labs/mission-control",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Project stars, builderz-labs/mission-control",
      "display": "6.5K",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Project push date, builderz-labs/mission-control",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F81": {
      "label": "Library name, react-cytoscapejs",
      "display": "react-cytoscapejs",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Monthly downloads, react-cytoscapejs",
      "display": "349.9K",
      "asOf": "2026-11-15"
    },
    "F83": {
      "label": "License, react-cytoscapejs",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Package release, react-cytoscapejs",
      "display": "2.0.0",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Undated package release, react-cytoscapejs",
      "display": "v2.0.0",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Repository stars, react-cytoscapejs",
      "display": "534",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Runs force-directed layout, react-cytoscapejs",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "Customizes node rendering, react-cytoscapejs",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "Handles node clicks, react-cytoscapejs",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "Output formats, react-cytoscapejs",
      "display": "JPEG, PNG",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "Install, react-cytoscapejs",
      "display": "npm install react-cytoscapejs cytoscape",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "What it does, react-cytoscapejs",
      "display": "Displays Cytoscape network graphs through a declarative React component.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "strengths lead, react-cytoscapejs",
      "display": "Uses Cytoscape’s layout ecosystem",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "strengths, react-cytoscapejs",
      "display": "Use built-in layouts or register additional layout extensions.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "strengths lead, react-cytoscapejs",
      "display": "Styles graphs through selectors",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "strengths, react-cytoscapejs",
      "display": "Apply node and edge appearance with the stylesheet prop.",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "limitations lead, react-cytoscapejs",
      "display": "Nested data needs custom diffing",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "limitations, react-cytoscapejs",
      "display": "Provide diff when element data or scratch fields contain nested objects.",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "limitations lead, react-cytoscapejs",
      "display": "Extensions must register before rendering",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "limitations, react-cytoscapejs",
      "display": "Register layout extensions before mounting the React graph component.",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Quickstart, react-cytoscapejs",
      "display": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport CytoscapeComponent from 'react-cytoscapejs';\n\nclass MyApp extends React.Component {\n  constructor(props){\n    super(props);\n  }\n\n  render(){\n    const elements = [\n       { data: { id: 'one', label: 'Node 1' }, position: { x: 0, y: 0 } },\n       { data: { id: 'two', label: 'Node 2' }, position: { x: 100, y: 0 } },\n       { data: { source: 'one', target: 'two', label: 'Edge from Node1 to Node2' } }\n    ];\n\n    return <CytoscapeComponent elements={elements} style={ { width: '600px', height: '600px' } } />;\n  }\n}\n\nReactDOM.render( React.createElement(MyApp, document.getElementById('root')));\n",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need",
      "display": "Custom Canvas graph rendering",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Why choose react-force-graph-2d",
      "display": "painting custom nodes and handling graph interactions",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need in introduction",
      "display": "custom Canvas graph rendering",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "When to consider reagraph",
      "display": "included WebGL graph layouts are preferred",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need",
      "display": "WebGL graphs with included layouts",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Why choose reagraph",
      "display": "choosing included force, tree, or radial layouts",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need in introduction",
      "display": "WebGL graphs with included layouts",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need",
      "display": "React-managed graph events",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Why choose @react-sigma/core",
      "display": "registering renderer events with managed removal",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Developer need in introduction",
      "display": "React-managed graph events",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "When to consider reagraph",
      "display": "included layout choices meet the requirement",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Developer need",
      "display": "Cytoscape layout integrations",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "Why choose react-cytoscapejs",
      "display": "using the Cytoscape layout ecosystem",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "Developer need in introduction",
      "display": "cytoscape layout integrations",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "Page introduction",
      "display": "React graph visualization libraries let application developers display connected nodes and edges.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Which React graph visualization library should I choose?",
      "display": "React Force Graph provides a Canvas-based two-dimensional component.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Which React graph visualization library should I choose?",
      "display": "Reagraph includes multiple graph layout families.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Which React graph visualization library should I choose?",
      "display": "React Sigma provides event-registration hooks with managed listener removal.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Does the two-dimensional force-graph package use WebGL?",
      "display": "The two-dimensional package binds the HTML Canvas engine; the WebGL engine belongs to separate sibling packages.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Can directed-layout mode display a cyclic graph?",
      "display": "dagMode only works correctly with directed acyclic graph structures.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Can Reagraph override individual node positions?",
      "display": "getNodePosition can override node positions within any layout.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Does Reagraph always honor its animated setting?",
      "display": "The selected implementation disables the animated setting above the combined node-and-edge threshold.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: How are custom Reagraph nodes authored?",
      "display": "Use renderNode to provide a custom node component.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: How are custom Reagraph nodes authored?",
      "display": "The custom WebGL-node example uses React Three Fiber.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Does React Sigma core include a force layout?",
      "display": "Force and ForceAtlas layouts are separate companion packages.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Can React Sigma display multiple edges between the same nodes?",
      "display": "Choose a multigraph constructor such as MultiDirectedGraph.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Can React Sigma display multiple edges between the same nodes?",
      "display": "The default Graphology model does not allow multiple edges.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: Why can graph-instance changes recreate the Sigma renderer?",
      "display": "The setup guidance warns that graph-instance replacement recreates Sigma and reloads the graph.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: Which dependencies supply React Sigma rendering and image export?",
      "display": "Sigma and Graphology are required peers.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: Which dependencies supply React Sigma rendering and image export?",
      "display": "The separate Sigma export-image package provides PNG/JPEG image output.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "FAQ: Can react-cytoscapejs use nested data objects by default?",
      "display": "Arrays or objects in element data or scratch fields require a custom diff function.",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "FAQ: Can Cytoscape export images from a headless graph?",
      "display": "Image export requires a currently rendered graph and cannot run on a headless instance.",
      "asOf": "2026-11-17"
    },
    "F134": {
      "label": "Library name, @xyflow/react",
      "display": "React Flow",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Monthly downloads, @xyflow/react",
      "display": "80.1M",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "License, @xyflow/react",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Package release, @xyflow/react",
      "display": "13.0.2",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Package release date, @xyflow/react",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Install, @xyflow/react",
      "display": "npm install react@^19 react-dom@^19 @xyflow/react@13.0.2",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Quickstart, @xyflow/react",
      "display": "import { ReactFlow } from '@xyflow/react';\nimport '@xyflow/react/dist/style.css';\n\nconst nodes = [{ id: '1', position: { x: 0, y: 0 }, data: { label: 'Node 1' } }];\n\nexport default function App() {\n  return <div style={{ width: 600, height: 400 }}><ReactFlow defaultNodes={nodes} /></div>;\n}\n",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Official description, @xyflow/react",
      "display": "Builds node-based editors and interactive flow charts in React.",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Quickstart source file, @xyflow/react",
      "display": "dist/index.d.ts",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Repository stars, @xyflow/react",
      "display": "39.1K",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Automatic graph layout, @xyflow/react",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Default WebGL renderer, @xyflow/react",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Graph interaction model, @xyflow/react",
      "display": "Interactive node/edge editor with custom React nodes; supplies positions or uses external layout engine.",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Project function, @xyflow/react",
      "display": "const onEdgeUpdate = useCallback(\n  (oldEdge: EdgeType, newConnection: Connection) => {\n    if (isValidConnection(newConnection, nodes, edges)) {\n      edgeUpdateSuccessful.current = true;\n      oldEdge.data = {\n        targetHandle: scapeJSONParse(newConnection.targetHandle!),\n        sourceHandle: scapeJSONParse(newConnection.sourceHandle!),\n      };\n      setEdges((els) => reconnectEdge(oldEdge, newConnection, els));\n    }\n  },\n  [setEdges],\n);\n",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Project source file, @xyflow/react",
      "display": "src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Project full_name, @xyflow/react",
      "display": "langflow-ai/langflow",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Project stargazers_count, @xyflow/react",
      "display": "156.7K",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Library name, react-force-graph-2d",
      "display": "react-force-graph-2d",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Monthly downloads, react-force-graph-2d",
      "display": "5.0M",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "License, react-force-graph-2d",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Package release, react-force-graph-2d",
      "display": "1.29.2",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Package release date, react-force-graph-2d",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Install, react-force-graph-2d",
      "display": "npm install react@^18.3 react-dom@^18.3 react-force-graph-2d@1.29.2",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Quickstart, react-force-graph-2d",
      "display": "import ForceGraph2D from \"react-force-graph-2d\";\n\nconst graphData = {\n  nodes: [{ id: \"a\" }, { id: \"b\" }],\n  links: [{ source: \"a\", target: \"b\" }],\n};\n\nexport default function App() {\n  return <ForceGraph2D width={600} height={400} graphData={graphData} />;\n}\n",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Repository stars, react-force-graph-2d",
      "display": "3.4K",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Automatic graph layout, react-force-graph-2d",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Default WebGL renderer, react-force-graph-2d",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Graph interaction model, react-force-graph-2d",
      "display": "2D Canvas force-directed network with custom node painters and graph/viewport coordinate transforms.",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Project function, react-force-graph-2d",
      "display": "function ClientOnly({\n  containerRef,\n  graph,\n}: GraphViewProps & { containerRef: RefObject<HTMLDivElement | null> }) {\n  const graphRef = useRef<ForceGraphMethods<Node, Link> | undefined>(undefined);\n  const hoveredRef = useRef<Node | null>(null);\n  const router = useRouter();\n  const [tooltip, setTooltip] = useState<{\n    x: number;\n    y: number;\n    content: string;\n  } | null>(null);\n\n  const handleNodeHover = (node: Node | null) => {\n    const graph = graphRef.current;\n    if (!graph) return;\n    hoveredRef.current = node;\n\n    if (node) {\n      const coords = graph.graph2ScreenCoords(node.x!, node.y!);\n      setTooltip({\n        x: coords.x + 4,\n        y: coords.y + 4,\n        content: node.description ?? 'No description',\n      });\n    } else {\n      setTooltip(null);\n    }\n  };\n\n  // Custom node rendering: circle with text label below\n  const nodeCanvasObject: ForceGraphProps['nodeCanvasObject'] = (node, ctx) => {\n    const container = containerRef.current;\n    if (!container) return;\n    const style = getComputedStyle(container);\n    const fontSize = 14;\n    const radius = 5;\n\n    // Draw circle\n    ctx.beginPath();\n    ctx.arc(node.x!, node.y!, radius, 0, 2 * Math.PI, false);\n\n    const hoverNode = hoveredRef.current;\n    const isActive = hoverNode?.id === node.id || hoverNode?.neighbors?.includes(node.id as string);\n\n    ctx.fillStyle = isActive\n      ? style.getPropertyValue('--color-fd-primary')\n      : style.getPropertyValue('--color-purple-300');\n    ctx.fill();\n\n    // Draw text below the node\n    ctx.font = `${fontSize}px Sans-Serif`;\n    ctx.textAlign = 'center';\n    ctx.textBaseline = 'middle';\n    ctx.fillStyle = getComputedStyle(container).getPropertyValue('color');\n    ctx.fillText(node.text, node.x!, node.y! + radius + fontSize);\n  };\n\n  const linkColor = (link: Link) => {\n    const container = containerRef.current;\n    if (!container) return '#999';\n    const style = getComputedStyle(container);\n    const hoverNode = hoveredRef.current;\n\n    if (\n      hoverNode &&\n      typeof link.source === 'object' &&\n      typeof link.target === 'object' &&\n      (hoverNode.id === link.source.id || hoverNode.id === link.target.id)\n    ) {\n      return style.getPropertyValue('--color-fd-primary');\n    }\n\n    return `color-mix(in oklab, ${style.getPropertyValue('--color-fd-muted-foreground')} 50%, transparent)`;\n  };\n\n  // Enrich nodes with neighbors for hover effects\n  const enrichedNodes = useMemo(() => {\n    const { nodes, links } = structuredClone(graph);\n    for (const node of nodes) {\n      node.neighbors = links.flatMap((link) => {\n        if (link.source === node.id) return link.target as string;\n        if (link.target === node.id) return link.source as string;\n        return [];\n      });\n    }\n\n    return {\n      nodes,\n      links,\n    };\n  }, [graph]);\n\n  return (\n    <>\n      <ForceGraph2D<NodeType, LinkType>\n        ref={{\n          get current() {\n            return graphRef.current;\n          },\n          set current(fg) {\n            graphRef.current = fg;\n            if (fg) {\n              fg.d3Force('link', forceLink().distance(200));\n              fg.d3Force('charge', forceManyBody().strength(10));\n              fg.d3Force('collision', forceCollide(60));\n            }\n          },\n        }}\n        graphData={enrichedNodes}\n        nodeCanvasObject={nodeCanvasObject}\n        linkColor={linkColor}\n        onNodeHover={handleNodeHover}\n        onNodeClick={(node) => {\n          router.push(node.url);\n        }}\n        linkWidth={2}\n        enableNodeDrag\n        enableZoomInteraction\n      />\n      {tooltip && (\n        <div\n          className=\"absolute bg-fd-popover text-fd-popover-foreground size-fit p-2 border rounded-xl shadow-lg text-sm max-w-xs\"\n          style={{ top: tooltip.y, left: tooltip.x }}\n        >\n          {tooltip.content}\n        </div>\n      )}\n    </>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Project source file, react-force-graph-2d",
      "display": "apps/docs/components/graph-view.tsx",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Project full_name, react-force-graph-2d",
      "display": "fuma-nama/fumadocs",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Project stargazers_count, react-force-graph-2d",
      "display": "13.6K",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Library name, @ant-design/graphs",
      "display": "@ant-design/graphs",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Monthly downloads, @ant-design/graphs",
      "display": "639.8K",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "License, @ant-design/graphs",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Package release, @ant-design/graphs",
      "display": "2.1.1",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Package release date, @ant-design/graphs",
      "display": "Aug 2025",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Install, @ant-design/graphs",
      "display": "npm install react@^18.3 react-dom@^18.3 @ant-design/graphs@2.1.1",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Quickstart, @ant-design/graphs",
      "display": "import { FlowGraph } from \"@ant-design/graphs\";\n\nconst data = {\n  nodes: [{ id: \"a\" }, { id: \"b\" }],\n  edges: [{ id: \"a-b\", source: \"a\", target: \"b\" }],\n};\n\nexport default function App() {\n  return (\n    <div style={{ width: 600, height: 400 }}>\n      <FlowGraph data={data} autoFit=\"view\" />\n    </div>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Official description, @ant-design/graphs",
      "display": "Provides a React graph library based on Graphin.",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Quickstart source file, @ant-design/graphs",
      "display": "index.d.ts",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Repository stars, @ant-design/graphs",
      "display": "2.2K",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Automatic graph layout, @ant-design/graphs",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Default WebGL renderer, @ant-design/graphs",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Graph interaction model, @ant-design/graphs",
      "display": "Preset graph components over Graphin/G6, including directed workflow layouts and specialized graph views.",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Library name, @antv/graphin",
      "display": "Graphin",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Monthly downloads, @antv/graphin",
      "display": "602.4K",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "License, @antv/graphin",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Package release, @antv/graphin",
      "display": "3.0.5",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Package release date, @antv/graphin",
      "display": "Apr 2025",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Install, @antv/graphin",
      "display": "npm install react@^18.3 react-dom@^18.3 @antv/graphin@3.0.5",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Quickstart, @antv/graphin",
      "display": "import { Graphin } from \"@antv/graphin\";\n\nconst data = {\n  nodes: [{ id: \"a\" }, { id: \"b\" }],\n  edges: [{ id: \"a-b\", source: \"a\", target: \"b\" }],\n};\n\nexport default function App() {\n  return <Graphin style={{ width: 600, height: 400 }} options={{ data, layout: { type: \"grid\" } }} />;\n}\n",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Official description, @antv/graphin",
      "display": "Provides a React toolkit for graph analysis based on G6.",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Quickstart source file, @antv/graphin",
      "display": "types.d.ts",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Repository stars, @antv/graphin",
      "display": "1.1K",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Automatic graph layout, @antv/graphin",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Default WebGL renderer, @antv/graphin",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Graph interaction model, @antv/graphin",
      "display": "Low-level React G6 toolkit with graph context, forwarding configuration and graph lifecycle/ref access.",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Project function, @antv/graphin",
      "display": "export const BaseGraph: ForwardRefExoticComponent<\n  PropsWithoutRef<PropsWithChildren<GraphOptions>> & RefAttributes<Graph>\n> = forwardRef<Graph, PropsWithChildren<GraphOptions>>(({ children, ...props }, ref) => {\n  const { containerStyle, className, onInit, onReady, onDestroy, errorTemplate, loading, loadingTemplate, ...options } =\n    props;\n  const graphRef = useRef<Graph | null>(null);\n\n  useImperativeHandle(ref, () => graphRef.current!);\n\n  return (\n    <ErrorBoundary errorTemplate={errorTemplate}>\n      {loading && <ChartLoading loadingTemplate={loadingTemplate} />}\n      {!isEmpty(options.data) && (\n        <Graphin\n          ref={(ref) => {\n            graphRef.current = ref;\n          }}\n          className={className}\n          style={containerStyle}\n          options={options as G6GraphOptions}\n          onInit={onInit}\n          onReady={onReady}\n          onDestroy={onDestroy}\n        >\n          {children}\n        </Graphin>\n      )}\n    </ErrorBoundary>\n  );\n});\n",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Project source file, @antv/graphin",
      "display": "packages/graphs/src/core/base-graph.tsx",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Project full_name, @antv/graphin",
      "display": "ant-design/ant-design-charts",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Project stargazers_count, @antv/graphin",
      "display": "2.2K",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Library name, @react-sigma/core",
      "display": "React Sigma",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Monthly downloads, @react-sigma/core",
      "display": "548.1K",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "License, @react-sigma/core",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Package release, @react-sigma/core",
      "display": "6.0.0",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Package release date, @react-sigma/core",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Install, @react-sigma/core",
      "display": "npm install react@^18.3 react-dom@^18.3 @react-sigma/core@6.0.0 graphology@0.26.0 sigma@4.0.6",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Quickstart, @react-sigma/core",
      "display": "import Graph from \"graphology\";\nimport { SigmaContainer } from \"@react-sigma/core\";\nimport \"@react-sigma/core/lib/style.css\";\n\nconst graph = new Graph();\ngraph.addNode(\"a\", { x: 0, y: 0, size: 10, label: \"A\" });\ngraph.addNode(\"b\", { x: 1, y: 1, size: 10, label: \"B\" });\ngraph.addEdge(\"a\", \"b\");\n\nexport default function App() {\n  return <SigmaContainer graph={graph} style={{ height: 400, width: 600 }} />;\n}\n",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Repository stars, @react-sigma/core",
      "display": "240",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Automatic graph layout, @react-sigma/core",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Default WebGL renderer, @react-sigma/core",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Graph interaction model, @react-sigma/core",
      "display": "React lifecycle/events/camera hooks around Sigma WebGL and Graphology; layout packages are separate.",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Project function, @react-sigma/core",
      "display": "const FocusOnNode = ({ node, move }: { node: string | null; move?: boolean }) => {\n  const sigma = useSigma()\n  const { gotoNode } = useCamera()\n\n  /**\n   * When the selected item changes, highlighted the node and center the camera on it.\n   */\n  useEffect(() => {\n    const graph = sigma.getGraph();\n\n    if (move) {\n      if (node && graph.hasNode(node)) {\n        try {\n          graph.setNodeAttribute(node, 'highlighted', true);\n          gotoNode(node);\n        } catch (error) {\n          console.error('Error focusing on node:', error);\n        }\n      } else {\n        // If no node is selected but move is true, reset to default view\n        sigma.setCustomBBox(null);\n        sigma.getCamera().animate({ x: 0.5, y: 0.5, ratio: 1 }, { duration: 0 });\n      }\n      useGraphStore.getState().setMoveToSelectedNode(false);\n    } else if (node && graph.hasNode(node)) {\n      try {\n        graph.setNodeAttribute(node, 'highlighted', true);\n      } catch (error) {\n        console.error('Error highlighting node:', error);\n      }\n    }\n\n    return () => {\n      if (node && graph.hasNode(node)) {\n        try {\n          graph.setNodeAttribute(node, 'highlighted', false);\n        } catch (error) {\n          console.error('Error cleaning up node highlight:', error);\n        }\n      }\n    }\n  }, [node, move, sigma, gotoNode])\n\n  return null\n}\n",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Project source file, @react-sigma/core",
      "display": "lightrag_webui/src/components/graph/FocusOnNode.tsx",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Project full_name, @react-sigma/core",
      "display": "HKUDS/LightRAG",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Project stargazers_count, @react-sigma/core",
      "display": "40.7K",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Library name, reagraph",
      "display": "Reagraph",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Monthly downloads, reagraph",
      "display": "418.4K",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "License, reagraph",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Package release, reagraph",
      "display": "4.32.0",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Package release date, reagraph",
      "display": "Jun 2026",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Install, reagraph",
      "display": "npm install react@^19 react-dom@^19 reagraph@4.32.0",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Quickstart, reagraph",
      "display": "import { GraphCanvas } from \"reagraph\";\n\nconst nodes = [{ id: \"a\", label: \"A\" }, { id: \"b\", label: \"B\" }];\nconst edges = [{ id: \"a-b\", source: \"a\", target: \"b\" }];\n\nexport default function App() {\n  return (\n    <div style={{ position: \"relative\", width: 600, height: 400 }}>\n      <GraphCanvas nodes={nodes} edges={edges} />\n    </div>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Repository stars, reagraph",
      "display": "1.1K",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Automatic graph layout, reagraph",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Default WebGL renderer, reagraph",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Graph interaction model, reagraph",
      "display": "WebGL network graphs with included force/tree/radial layouts and imperative camera fitting.",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Project function, reagraph",
      "display": "() => {\n    if (!graphNodes.length) return\n    // reagraph force layout needs time to settle before fitNodesInView works\n    const t1 = setTimeout(() => graphRef.current?.fitNodesInView(undefined, { animated: false }), 800)\n    const t2 = setTimeout(() => graphRef.current?.fitNodesInView(undefined, { animated: false }), 2500)\n    const t3 = setTimeout(() => graphRef.current?.fitNodesInView(undefined, { animated: false }), 5000)\n    const t4 = setTimeout(() => graphRef.current?.fitNodesInView(undefined, { animated: false }), 8000)\n    return () => { clearTimeout(t1); clearTimeout(t2); clearTimeout(t3); clearTimeout(t4) }\n  }\n",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Project source file, reagraph",
      "display": "src/components/panels/memory-graph.tsx",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Project full_name, reagraph",
      "display": "builderz-labs/mission-control",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Project stargazers_count, reagraph",
      "display": "6.5K",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Library name, react-cytoscapejs",
      "display": "react-cytoscapejs",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Monthly downloads, react-cytoscapejs",
      "display": "359.0K",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "License, react-cytoscapejs",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Package release, react-cytoscapejs",
      "display": "2.0.0",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Package release date, react-cytoscapejs",
      "display": "Sep 2022",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Install, react-cytoscapejs",
      "display": "npm install react@^18.3 react-dom@^18.3 react-cytoscapejs@2.0.0 cytoscape@3.35.0",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Quickstart, react-cytoscapejs",
      "display": "import CytoscapeComponent from \"react-cytoscapejs\";\n\nconst elements = [\n  { data: { id: \"a\", label: \"A\" }, position: { x: 0, y: 0 } },\n  { data: { id: \"b\", label: \"B\" }, position: { x: 100, y: 0 } },\n  { data: { id: \"a-b\", source: \"a\", target: \"b\" } },\n];\n\nexport default function App() {\n  return <CytoscapeComponent elements={elements} layout={{ name: \"preset\" }} style={{ width: 600, height: 400 }} />;\n}\n",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Repository stars, react-cytoscapejs",
      "display": "534",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Automatic graph layout, react-cytoscapejs",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Default WebGL renderer, react-cytoscapejs",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Graph interaction model, react-cytoscapejs",
      "display": "Controlled Cytoscape graph wrapper; styles/layouts and imperative graph refs belong to Cytoscape peer.",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Library name, reaflow",
      "display": "reaflow",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Monthly downloads, reaflow",
      "display": "153.1K",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "License, reaflow",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Package release, reaflow",
      "display": "5.4.1",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Package release date, reaflow",
      "display": "Apr 2025",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Install, reaflow",
      "display": "npm install react@^18.3 react-dom@^18.3 reaflow@5.4.1",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Quickstart, reaflow",
      "display": "import React from 'react';\nimport { Canvas } from 'reaflow';\n\nexport default () => (\n  <Canvas\n    maxWidth={800}\n    maxHeight={600}\n    nodes={[\n      {\n        id: '1',\n        text: '1'\n      },\n      {\n        id: '2',\n        text: '2'\n      }\n    ]}\n    edges={[\n      {\n        id: '1-2',\n        from: '1',\n        to: '2'\n      }\n    ]}\n  />\n);\n",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Official description, reaflow",
      "display": "Renders node-based visualizations in React.",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Quickstart source file, reaflow",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Repository stars, reaflow",
      "display": "2.5K",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Automatic graph layout, reaflow",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Default WebGL renderer, reaflow",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Graph interaction model, reaflow",
      "display": "SVG node/edge diagrams with automatic ELK layout and custom node renderer components.",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Project function, reaflow",
      "display": "const CustomNodeWrapper = (nodeProps: NodeProps<NodeData[\"data\"]>) => {\n  const data = nodeProps.properties.data;\n  const setSelectedNode = useGraph(state => state.setSelectedNode);\n  const setVisible = useModal(state => state.setVisible);\n\n  const handleNodeClick = React.useCallback(\n    (_: React.MouseEvent<SVGGElement, MouseEvent>, data: NodeData) => {\n      if (setSelectedNode) setSelectedNode(data);\n      setVisible(\"node\")(true);\n    },\n    [setSelectedNode, setVisible]\n  );\n\n  return (\n    <Node\n      {...nodeProps}\n      {...(data?.isEmpty && rootProps)}\n      onClick={handleNodeClick as any}\n      animated={false}\n      label={null as any}\n    >\n      {({ node, x, y }) => {\n        if (Array.isArray(nodeProps.properties.text)) {\n          if (data?.isEmpty) return null;\n          return <ObjectNode node={node as NodeData} x={x} y={y} />;\n        }\n\n        return <TextNode node={node as NodeData} hasCollapse={!!data?.childrenCount} x={x} y={y} />;\n      }}\n    </Node>\n  );\n};\n",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Project source file, reaflow",
      "display": "src/components/Graph/CustomNode/index.tsx",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Project full_name, reaflow",
      "display": "AykutSarac/jsoncrack.com",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Project stargazers_count, reaflow",
      "display": "44.6K",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best React graph visualization libraries react-force-graph-2d Reagraph React Sigma react-cytoscapejs code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
