{
  "id": "task_libraries:diagram/javascript",
  "path": "/exapedia/javascript-diagram-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript diagram libraries",
  "answer": [
    {
      "t": "fact",
      "fact": "F111"
    },
    {
      "t": "text",
      "text": " A diagram library keeps a model of nodes and the edges between them, then lays that model out and renders it as SVG or canvas. These libraries draw the flowcharts in documentation, the process editors in business apps, and the network maps in analysis tools."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript diagram libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#cytoscape-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F112"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F113"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F119"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F116"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F114"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mermaid",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F130"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#viz-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F148"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#bpmn-js",
                  "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-gsix",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F187"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#gojs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F204"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#maxgraph-core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F219"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#antv-xsix",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F236"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            ]
          ],
          "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": "#cytoscape-js",
          "label": [
            {
              "t": "text",
              "text": "cytoscape"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F113"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Node dragging",
            "SVG export"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#cytoscape-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F112"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F120"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F121"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mermaid",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F130"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#viz-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F148"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#bpmn-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F166"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#antv-gsix",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F187"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#gojs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F204"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#maxgraph-core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F219"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#antv-xsix",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F236"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "cytoscape-js",
          "name": [
            {
              "t": "fact",
              "fact": "F112"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/cytoscape/cytoscape.js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/cytoscape"
            },
            {
              "label": "Docs",
              "href": "http://js.cytoscape.org"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F13"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F113"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F119"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F115"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F114"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "http://js.cytoscape.org",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F112"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F21"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/kiali/kiali-ui",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F128"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "private focus(cy: Cy.Core) {\n    if (!this.focusSelector) {\n      return;\n    }\n\n    // only perform the focus one time\n    const focusSelector = this.focusSelector;\n    this.focusSelector = undefined;\n\n    let selected = cy.$(focusSelector);\n\n    if (!selected) {\n      addInfo(\n        'Could not focus on requested node. The node may be idle or hidden.',\n        true,\n        undefined,\n        `${focusSelector}`\n      );\n      return;\n    }\n\n    // If there is only one, select it\n    if (selected.length === 1) {\n      this.selectTargetAndUpdateSummary(selected[0]);\n    } else {\n      // If we have many elements, try to check if a compound in this query contains everything, if so, select it.\n      const compound = selected.filter('$node > node');\n      if (compound && compound.length === 1 && selected.subtract(compound).same(compound.children())) {\n        this.selectTargetAndUpdateSummary(compound[0]);\n        selected = compound;\n      }\n    }\n\n    // Start animation\n    new FocusAnimation(cy).start(selected);\n  }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/kiali/kiali-ui/blob/1dcea29a9d7227d81a7018b8e4d227027fe031a0/src/components/CytoscapeGraph/CytoscapeGraph.tsx#L717-L752",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F127"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20projects%20that%20use%20cytoscape&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": "F112"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import cytoscape from 'cytoscape';\n\nconst cy = cytoscape({\n  container: document.getElementById('cy'),\n  elements: [\n    { data: { id: 'a' } },\n    { data: { id: 'b' } },\n    { data: { id: 'ab', source: 'a', target: 'b' } },\n  ],\n  layout: { name: 'grid', rows: 1 },\n});\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/cytoscape@3.35.0/index.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "getting-started.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F117"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "mermaid",
          "name": [
            {
              "t": "fact",
              "fact": "F130"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mermaid-js/mermaid"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/mermaid"
            },
            {
              "label": "Docs",
              "href": "https://github.com/mermaid-js/mermaid#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F39"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/mermaid-js/mermaid#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F130"
                    },
                    {
                      "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": "F146"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/slidevjs/slidev",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F146"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export async function renderMermaid(lzEncoded: string, options: any) {\n  containerElement ??= document.getElementById('mermaid-rendering-container')!\n  const key = lzEncoded + JSON.stringify(options)\n  const _cache = cache.get(key)\n  if (_cache)\n    return _cache\n\n  const code = lz.decompressFromBase64(lzEncoded)\n\n  // custom renderer\n  for (const setup of mermaidRenderers) {\n    const renderer = await setup()\n    if (renderer) {\n      const svg = await renderer(code, options)\n      cache.set(key, svg)\n      return svg\n    }\n  }\n\n  // fallback: existing mermaid\n  mermaid.initialize({\n    startOnLoad: false,\n    ...clearUndefined(await setupMermaid() || {}),\n    ...clearUndefined(options),\n  })\n  const id = makeId()\n  const { svg } = await mermaid.render(id, code, containerElement)\n  cache.set(key, svg)\n  return svg\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/slidevjs/slidev/blob/437f139ccd4c8482a193b217922e7800a5b3baec/packages/client/modules/mermaid.ts#L14-L43",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F145"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20projects%20that%20use%20mermaid&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": "F130"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import mermaid from 'mermaid';\n\nmermaid.initialize({ startOnLoad: false });\nconst { svg } = await mermaid.render('example', 'graph LR; A-->B;');\ndocument.getElementById('diagram').innerHTML = svg;\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/mermaid@12.3.0/dist/mermaid.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "usage.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F135"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "viz-js",
          "name": [
            {
              "t": "fact",
              "fact": "F148"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mdaines/viz-js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@viz-js/viz"
            },
            {
              "label": "Docs",
              "href": "https://github.com/mdaines/viz-js#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F64"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/mdaines/viz-js#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F148"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/simonw/tools",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F164"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async function renderGraph() {\n  const dotContent = dotInput.value.trim();\n  \n  if (!dotContent) {\n    output.innerHTML = '';\n    return;\n  }\n\n  if (!viz) {\n    output.innerHTML = '<div class=\"error\">Viz.js is still loading, please wait...</div>';\n    return;\n  }\n\n  try {\n    output.innerHTML = '<div style=\"color: #666;\">Rendering...</div>';\n    const svg = await viz.renderSVGElement(dotContent);\n    output.innerHTML = '';\n    output.appendChild(svg);\n  } catch (error) {\n    output.innerHTML = `<div class=\"error\"><strong>Error:</strong> ${error.message}</div>`;\n  }\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/simonw/tools/blob/a285d172df23d622f7cbafdcba978733de244bde/dot.html#L201-L222",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F163"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20projects%20that%20use%20%40viz-js/viz&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": "F148"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import * as Viz from \"@viz-js/viz\";\n\nViz.instance().then(viz => {\n  const svg = viz.renderSVGElement(\"digraph { a -> b }\");\n\n  document.getElementById(\"graph\").appendChild(svg);\n});\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://viz-js.com/api/",
                  "label": [
                    {
                      "t": "text",
                      "text": "viz-js.com"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F153"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "bpmn-js",
          "name": [
            {
              "t": "fact",
              "fact": "F166"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/bpmn-io/bpmn-js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/bpmn-js"
            },
            {
              "label": "Docs",
              "href": "https://github.com/bpmn-io/bpmn-js#readme"
            }
          ],
          "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://github.com/bpmn-io/bpmn-js#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F166"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/camunda/camunda-modeler",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F185"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async exportSVG() {\n    const modeler = this.getModeler();\n\n    try {\n      const { svg } = await modeler.saveSVG();\n\n      return svg;\n    } catch (err) {\n\n      return Promise.reject(err);\n    }\n  }",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/camunda/camunda-modeler/blob/3605bae02897fa55bae6130132303a00ca30f1ab/client/src/app/tabs/bpmn/BpmnEditor.js#L761-L772",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F184"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=bpmn-js%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F166"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import Modeler from 'bpmn-js/lib/Modeler';\nimport 'bpmn-js/dist/assets/diagram-js.css';\nimport 'bpmn-js/dist/assets/bpmn-font/css/bpmn.css';\n\nconst modeler = new Modeler({ container: '#canvas' });\nawait modeler.createDiagram();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/bpmn-js@18.33.0/lib/Modeler.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "Modeler.d.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F171"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "antv-gsix",
          "name": [
            {
              "t": "fact",
              "fact": "F187"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/antvis/G6"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@antv/g6"
            },
            {
              "label": "Docs",
              "href": "https://g6.antv.antgroup.com/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F194"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://g6.antv.antgroup.com/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F187"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F257"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F258"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { Graph } from '@antv/g6';\n\nconst graph = new Graph({\n  container: 'container',\n  data: { nodes: [{ id: 'node-1', style: { x: 100, y: 100 } }] },\n});\nawait graph.render();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@antv/g6@5.1.1/lib/runtime/graph.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "graph.d.ts"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40antv/g6%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F187"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F192"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "gojs",
          "name": [
            {
              "t": "fact",
              "fact": "F204"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/NorthwoodsSoftware/GoJS"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/gojs"
            },
            {
              "label": "Docs",
              "href": "https://gojs.net"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F89"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://gojs.net",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F204"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F90"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F91"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F92"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F93"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F94"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F95"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F96"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F97"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import * as go from 'gojs';\n\nconst diagram = new go.Diagram('myDiagramDiv');\ndiagram.nodeTemplate = new go.Node('Auto').add(\n  new go.TextBlock().bind('text', 'key'),\n);\ndiagram.model = new go.GraphLinksModel(\n  [{ key: 'Alpha' }, { key: 'Beta' }],\n  [{ from: 'Alpha', to: 'Beta' }],\n);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/NorthwoodsSoftware/GoJS/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20projects%20that%20use%20gojs&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": "F204"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F209"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "maxgraph-core",
          "name": [
            {
              "t": "fact",
              "fact": "F219"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/maxGraph/maxGraph"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@maxgraph/core"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F226"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/maxGraph/maxGraph",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F219"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F264"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { Graph } from '@maxgraph/core';\nimport '@maxgraph/core/css/common.css';\n\nconst graph = new Graph(document.getElementById('graph'));\ngraph.batchUpdate(() => {\n  graph.insertVertex({\n    parent: graph.getDefaultParent(),\n    value: 'Hello',\n    position: [20, 20],\n    size: [80, 30],\n  });\n});\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@maxgraph/core@0.25.1/lib/esm/view/mixin/VertexMixin.type.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40maxgraph/core%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F219"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F224"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "antv-xsix",
          "name": [
            {
              "t": "fact",
              "fact": "F236"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/antvis/X6"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@antv/x6"
            },
            {
              "label": "Docs",
              "href": "https://x6.antv.antgroup.com/tutorial/about"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F243"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://x6.antv.antgroup.com/tutorial/about",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F236"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F265"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F266"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F267"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { Graph } from '@antv/x6';\n\nconst graph = new Graph({\n  container: document.getElementById('graph'),\n  width: 600,\n  height: 400,\n});\ngraph.addNode({\n  shape: 'rect', x: 40, y: 40, width: 80, height: 40,\n  attrs: { label: { text: 'Hello' } },\n});\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@antv/x6@3.1.8/lib/graph/graph.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "graph.d.ts"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40antv/x6%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F236"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F241"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "What is Mermaid.js?",
      "a": [
        {
          "t": "link",
          "href": "#mermaid",
          "label": [
            {
              "t": "text",
              "text": "Mermaid"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a JavaScript tool that renders diagrams, charts, and visualizations from a Markdown-based text syntax. "
        },
        {
          "t": "fact",
          "fact": "F41"
        }
      ]
    },
    {
      "q": "What is GoJS, and does it need a license?",
      "a": [
        {
          "t": "link",
          "href": "#gojs",
          "label": [
            {
              "t": "text",
              "text": "GoJS"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a JavaScript and TypeScript library for creating and manipulating diagrams, charts, and graphs. "
        },
        {
          "t": "fact",
          "fact": "F95"
        }
      ]
    },
    {
      "q": "What are the alternatives to GoJS?",
      "a": [
        {
          "t": "link",
          "href": "#maxgraph-core",
          "label": [
            {
              "t": "text",
              "text": "maxGraph"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#antv-xsix",
          "label": [
            {
              "t": "fact",
              "fact": "F236"
            }
          ]
        },
        {
          "t": "text",
          "text": " build editable diagrams in the browser with SVG and HTML rendering. "
        },
        {
          "t": "link",
          "href": "#bpmn-js",
          "label": [
            {
              "t": "text",
              "text": "bpmn-js"
            }
          ]
        },
        {
          "t": "text",
          "text": " covers BPMN process diagrams."
        }
      ]
    },
    {
      "q": "What is the difference between Mermaid and Graphviz?",
      "a": [
        {
          "t": "link",
          "href": "#mermaid",
          "label": [
            {
              "t": "text",
              "text": "Mermaid"
            }
          ]
        },
        {
          "t": "text",
          "text": " compiles its own Markdown-based diagram languages to SVG, while "
        },
        {
          "t": "link",
          "href": "#viz-js",
          "label": [
            {
              "t": "text",
              "text": "Viz.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " renders Graphviz DOT text through a WebAssembly build of Graphviz."
        }
      ]
    },
    {
      "q": "What is Cytoscape.js?",
      "a": [
        {
          "t": "link",
          "href": "#cytoscape-js",
          "label": [
            {
              "t": "text",
              "text": "Cytoscape.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a graph theory library for network analysis and visualization, with layouts that position nodes automatically."
        }
      ]
    },
    {
      "q": "How does Viz.js report a rendering error?",
      "a": [
        {
          "t": "fact",
          "fact": "F70"
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, cytoscape",
      "display": "Cytoscape.js",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, cytoscape",
      "display": "91.3M",
      "asOf": "2026-11-11"
    },
    "F3": {
      "label": "License, cytoscape",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, cytoscape",
      "display": "3.35.0, Nov 2026",
      "asOf": "2026-11-10"
    },
    "F5": {
      "label": "Package release date, cytoscape",
      "display": "Nov 2026",
      "asOf": "2026-11-10"
    },
    "F6": {
      "label": "Repository stars, cytoscape",
      "display": "11.3K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Automatic layout, cytoscape",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Node dragging, cytoscape",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Click callbacks, cytoscape",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Styling, cytoscape",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Output formats, cytoscape",
      "display": "PNG",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "Install, cytoscape",
      "display": "npm install cytoscape",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "What it does, cytoscape",
      "display": "Builds interactive graph visualizations with selectors, layouts, and graph operations.",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths lead, cytoscape",
      "display": "Positions graph nodes automatically",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths, cytoscape",
      "display": "Use layouts to arrange nodes instead of assigning every position.",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths lead, cytoscape",
      "display": "Styles graph elements with selectors",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "strengths, cytoscape",
      "display": "Apply graph styles using familiar CSS conventions.",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations lead, cytoscape",
      "display": "Image export needs a renderer",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations, cytoscape",
      "display": "Headless graph instances cannot export the currently rendered graph image.",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations lead, cytoscape",
      "display": "Styles ignore CSS specificity",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "limitations, cytoscape",
      "display": "When selectors overlap, the last matching selector wins.",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Quickstart, cytoscape",
      "display": "import cytoscape from 'cytoscape';\n\nvar cy = cytoscape({\n\n  container: document.getElementById('cy'), // container to render in\n\n  elements: [ // list of graph elements to start with\n    { // node a\n      data: { id: 'a' }\n    },\n    { // node b\n      data: { id: 'b' }\n    },\n    { // edge ab\n      data: { id: 'ab', source: 'a', target: 'b' }\n    }\n  ],\n\n  style: [ // the stylesheet for the graph\n    {\n      selector: 'node',\n      style: {\n        'background-color': '#666',\n        'label': 'data(id)'\n      }\n    },\n\n    {\n      selector: 'edge',\n      style: {\n        'width': 3,\n        'line-color': '#ccc',\n        'target-arrow-color': '#ccc',\n        'target-arrow-shape': 'triangle',\n        'curve-style': 'bezier'\n      }\n    }\n  ],\n\n  layout: {\n    name: 'grid',\n    rows: 1\n  }\n\n});\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function, cytoscape",
      "display": "private focus(cy: Cy.Core) {\n    if (!this.focusSelector) {\n      return;\n    }\n\n    // only perform the focus one time\n    const focusSelector = this.focusSelector;\n    this.focusSelector = undefined;\n\n    let selected = cy.$(focusSelector);\n\n    if (!selected) {\n      addInfo(\n        'Could not focus on requested node. The node may be idle or hidden.',\n        true,\n        undefined,\n        `${focusSelector}`\n      );\n      return;\n    }\n\n    // If there is only one, select it\n    if (selected.length === 1) {\n      this.selectTargetAndUpdateSummary(selected[0]);\n    } else {\n      // If we have many elements, try to check if a compound in this query contains everything, if so, select it.\n      const compound = selected.filter('$node > node');\n      if (compound && compound.length === 1 && selected.subtract(compound).same(compound.children())) {\n        this.selectTargetAndUpdateSummary(compound[0]);\n        selected = compound;\n      }\n    }\n\n    // Start animation\n    new FocusAnimation(cy).start(selected);\n  }\n",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project function reference, cytoscape",
      "display": "CytoscapeGraph.tsx · focus()",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project repository, cytoscape",
      "display": "kiali/kiali-ui",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project stars, kiali/kiali-ui",
      "display": "208",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Project push date, kiali/kiali-ui",
      "display": "Apr 2023",
      "asOf": "2023-04-10"
    },
    "F28": {
      "label": "Library name, mermaid",
      "display": "Mermaid",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Monthly downloads, mermaid",
      "display": "90.2M",
      "asOf": "2026-11-11"
    },
    "F30": {
      "label": "License, mermaid",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Package release, mermaid",
      "display": "12.3.0",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Undated package release, mermaid",
      "display": "v12.3.0",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Repository stars, mermaid",
      "display": "91.1K",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Automatic layout, mermaid",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Click callbacks, mermaid",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Styling, mermaid",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Output formats, mermaid",
      "display": "SVG",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "Install, mermaid",
      "display": "npm install mermaid",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "What it does, mermaid",
      "display": "Renders text descriptions into diagrams and visualizations.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, mermaid",
      "display": "Keeps diagrams in text",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, mermaid",
      "display": "Update the diagram description to change the rendered result.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths lead, mermaid",
      "display": "Themes individual diagrams",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "strengths, mermaid",
      "display": "Apply themes across a site or to individual diagrams.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations lead, mermaid",
      "display": "Clicks disabled by default",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations, mermaid",
      "display": "The default strict security mode disables node click interactions.",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "limitations lead, mermaid",
      "display": "Custom colors need base theme",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "limitations, mermaid",
      "display": "Use the base theme when changing theme variables.",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Quickstart, mermaid",
      "display": "<!doctype html>\n<head>\n  <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/@fontsource/open-sans@5/400.css\" />\n  <link\n    rel=\"stylesheet\"\n    href=\"https://cdn.jsdelivr.net/npm/@fontsource/open-sans@5/400-italic.css\"\n  />\n  <link\n    rel=\"stylesheet\"\n    href=\"https://cdn.jsdelivr.net/npm/@fontsource-variable/recursive@5/index.css\"\n  />\n</head>\n<html lang=\"en\">\n  <body>\n    <pre class=\"mermaid\">\n  graph LR\n      A --- B\n      B-->C[fa:fa-ban forbidden]\n      B-->D(fa:fa-spinner);\n    </pre>\n    <script type=\"module\">\n      import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@12/dist/mermaid.esm.min.mjs';\n    </script>\n  </body>\n</html>\n",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project function, mermaid",
      "display": "export async function renderMermaid(lzEncoded: string, options: any) {\n  containerElement ??= document.getElementById('mermaid-rendering-container')!\n  const key = lzEncoded + JSON.stringify(options)\n  const _cache = cache.get(key)\n  if (_cache)\n    return _cache\n\n  const code = lz.decompressFromBase64(lzEncoded)\n\n  // custom renderer\n  for (const setup of mermaidRenderers) {\n    const renderer = await setup()\n    if (renderer) {\n      const svg = await renderer(code, options)\n      cache.set(key, svg)\n      return svg\n    }\n  }\n\n  // fallback: existing mermaid\n  mermaid.initialize({\n    startOnLoad: false,\n    ...clearUndefined(await setupMermaid() || {}),\n    ...clearUndefined(options),\n  })\n  const id = makeId()\n  const { svg } = await mermaid.render(id, code, containerElement)\n  cache.set(key, svg)\n  return svg\n}\n",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project function reference, mermaid",
      "display": "mermaid.ts · renderMermaid()",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project repository, mermaid",
      "display": "slidevjs/slidev",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project stars, slidevjs/slidev",
      "display": "49.5K",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Project push date, slidevjs/slidev",
      "display": "Nov 2026",
      "asOf": "2026-11-05"
    },
    "F54": {
      "label": "Library name, @viz-js/viz",
      "display": "Viz.js",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Monthly downloads, @viz-js/viz",
      "display": "1.6M",
      "asOf": "2026-11-11"
    },
    "F56": {
      "label": "License, @viz-js/viz",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Package release, @viz-js/viz",
      "display": "3.31.0, Sep 2026",
      "asOf": "2026-09-28"
    },
    "F58": {
      "label": "Package release date, @viz-js/viz",
      "display": "Sep 2026",
      "asOf": "2026-09-28"
    },
    "F59": {
      "label": "Repository stars, @viz-js/viz",
      "display": "4.4K",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Automatic layout, @viz-js/viz",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Styling, @viz-js/viz",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Output formats, @viz-js/viz",
      "display": "SVG",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "Install, @viz-js/viz",
      "display": "npm install @viz-js/viz",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "What it does, @viz-js/viz",
      "display": "Renders Graphviz diagrams through a WebAssembly build and JavaScript wrapper.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths lead, @viz-js/viz",
      "display": "Accepts DOT or graph objects",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths, @viz-js/viz",
      "display": "Pass DOT text or construct a graph object in JavaScript.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths lead, @viz-js/viz",
      "display": "Reuses the rendering instance",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "strengths, @viz-js/viz",
      "display": "Render additional graphs without creating another rendering instance.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations lead, @viz-js/viz",
      "display": "Render failures need status checks",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations, @viz-js/viz",
      "display": "The render method returns failures without throwing for invalid DOT syntax.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Quickstart, @viz-js/viz",
      "display": "import * as Viz from \"@viz-js/viz\";\n\nViz.instance().then(viz => {\n  const svg = viz.renderSVGElement(\"digraph { a -> b }\");\n\n  document.getElementById(\"graph\").appendChild(svg);\n});\n",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Project function, @viz-js/viz",
      "display": "async function renderGraph() {\n  const dotContent = dotInput.value.trim();\n  \n  if (!dotContent) {\n    output.innerHTML = '';\n    return;\n  }\n\n  if (!viz) {\n    output.innerHTML = '<div class=\"error\">Viz.js is still loading, please wait...</div>';\n    return;\n  }\n\n  try {\n    output.innerHTML = '<div style=\"color: #666;\">Rendering...</div>';\n    const svg = await viz.renderSVGElement(dotContent);\n    output.innerHTML = '';\n    output.appendChild(svg);\n  } catch (error) {\n    output.innerHTML = `<div class=\"error\"><strong>Error:</strong> ${error.message}</div>`;\n  }\n}\n",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project function reference, @viz-js/viz",
      "display": "dot.html · renderGraph()",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project repository, @viz-js/viz",
      "display": "simonw/tools",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project stars, simonw/tools",
      "display": "1.9K",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project push date, simonw/tools",
      "display": "Nov 2026",
      "asOf": "2026-11-11"
    },
    "F77": {
      "label": "Library name, gojs",
      "display": "GoJS",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Monthly downloads, gojs",
      "display": "1.1M",
      "asOf": "2026-11-11"
    },
    "F79": {
      "label": "License, gojs",
      "display": "SEE LICENSE IN license.html",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Package release, gojs",
      "display": "4.0.5, Oct 2026",
      "asOf": "2026-10-02"
    },
    "F81": {
      "label": "Package release date, gojs",
      "display": "Oct 2026",
      "asOf": "2026-10-02"
    },
    "F82": {
      "label": "Repository stars, gojs",
      "display": "8.5K",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Automatic layout, gojs",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Node dragging, gojs",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Click callbacks, gojs",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Styling, gojs",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Output formats, gojs",
      "display": "SVG",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "Install, gojs",
      "display": "npm install gojs",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "What it does, gojs",
      "display": "Builds interactive diagram editors with templates, models, and layouts.",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths lead, gojs",
      "display": "Includes interactive editing tools",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths, gojs",
      "display": "Users can select, drag, copy, delete, pan, and zoom diagram elements.",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths lead, gojs",
      "display": "Includes automatic graph layouts",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "strengths, gojs",
      "display": "Choose built-in layouts for trees, force-directed graphs, and layered diagrams.",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations lead, gojs",
      "display": "Organizations need a commercial license",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations, gojs",
      "display": "Organizational use requires a purchased license beyond private evaluation.",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "limitations lead, gojs",
      "display": "SVG exports lose interactivity",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "limitations, gojs",
      "display": "Exported SVG images are static, unlike the interactive diagram.",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Quickstart, gojs",
      "display": "const myDiagram = new go.Diagram('myDiagramDiv', {\n    // create a Diagram for the HTML div element\n    'undoManager.isEnabled': true // enable undo & redo\n  });\n\n  // define a simple Node template\n  // the Shape will automatically surround the TextBlock\n  myDiagram.nodeTemplate = new go.Node('Auto').add(\n    // add a Shape and a TextBlock to this \"Auto\" Panel\n    new go.Shape('RoundedRectangle', { strokeWidth: 0, fill: 'white' }) // no border; default fill is white\n      .bind('fill', 'color'), // Shape.fill is bound to Node.data.color\n    new go.TextBlock({ margin: 8, font: 'bold 14px sans-serif', stroke: '#333' }) // some room around the text\n      .bind('text', 'key') // TextBlock.text is bound to Node.data.key\n  );\n\n  // but use the default Link template, by not setting Diagram.linkTemplate\n\n  // create the model data that will be represented by Nodes and Links\n  myDiagram.model = new go.GraphLinksModel(\n    [\n      { key: 'Alpha', color: 'lightblue' },\n      { key: 'Beta', color: 'orange' },\n      { key: 'Gamma', color: 'lightgreen' },\n      { key: 'Delta', color: 'pink' }\n    ],\n    [\n      { from: 'Alpha', to: 'Beta' },\n      { from: 'Alpha', to: 'Gamma' },\n      { from: 'Beta', to: 'Beta' },\n      { from: 'Gamma', to: 'Delta' },\n      { from: 'Delta', to: 'Alpha' }\n    ]\n  );\n",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Developer need",
      "display": "Diagrams maintained as text",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Why choose mermaid",
      "display": "editable text descriptions",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need in introduction",
      "display": "diagrams maintained as text",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need",
      "display": "Interactive graph visualizations",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Why choose cytoscape",
      "display": "automatic graph layouts",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need in introduction",
      "display": "interactive graph visualizations",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Developer need",
      "display": "Graphviz rendering",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Why choose @viz-js/viz",
      "display": "DOT and graph object input",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Developer need in introduction",
      "display": "graphviz rendering",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need",
      "display": "Diagram editing tools",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Why choose gojs",
      "display": "built-in editing interactions",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Developer need in introduction",
      "display": "diagram editing tools",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Page introduction",
      "display": "JavaScript diagram libraries draw flowcharts, network graphs, and process diagrams in the browser.",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Library name, cytoscape",
      "display": "cytoscape",
      "asOf": "2026-11-20"
    },
    "F113": {
      "label": "Monthly downloads, cytoscape",
      "display": "100.3M",
      "asOf": "2026-11-20"
    },
    "F114": {
      "label": "License, cytoscape",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F115": {
      "label": "Package release, cytoscape",
      "display": "3.35.0",
      "asOf": "2026-11-20"
    },
    "F116": {
      "label": "Package release date, cytoscape",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F117": {
      "label": "Install, cytoscape",
      "display": "npm install cytoscape",
      "asOf": "2026-11-20"
    },
    "F118": {
      "label": "Quickstart, cytoscape",
      "display": "import cytoscape from 'cytoscape';\n\nconst cy = cytoscape({\n  container: document.getElementById('cy'),\n  elements: [\n    { data: { id: 'a' } },\n    { data: { id: 'b' } },\n    { data: { id: 'ab', source: 'a', target: 'b' } },\n  ],\n  layout: { name: 'grid', rows: 1 },\n});\n",
      "asOf": "2026-11-20"
    },
    "F119": {
      "label": "Repository stars, cytoscape",
      "display": "11.3K",
      "asOf": "2026-11-20"
    },
    "F120": {
      "label": "Node dragging, cytoscape",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F121": {
      "label": "SVG export, cytoscape",
      "display": "Undocumented",
      "asOf": "2026-11-20"
    },
    "F122": {
      "label": "Documented diagram role, cytoscape",
      "display": "Programmatic network graph model, selectors, algorithms, and interactive Canvas rendering",
      "asOf": "2026-11-20"
    },
    "F123": {
      "label": "SVG/rendering mode, cytoscape",
      "display": "Core captured exports include PNG/JPG; an official SDK-backed SVG extension pathway was not established after additional own-doc lookup.",
      "asOf": "2026-11-20"
    },
    "F124": {
      "label": "Registry package identifier, cytoscape",
      "display": "cytoscape",
      "asOf": "2026-11-20"
    },
    "F125": {
      "label": "Observed package downloads, cytoscape",
      "display": "100294800",
      "asOf": "2026-11-20"
    },
    "F126": {
      "label": "Project function, cytoscape",
      "display": "private focus(cy: Cy.Core) {\n    if (!this.focusSelector) {\n      return;\n    }\n\n    // only perform the focus one time\n    const focusSelector = this.focusSelector;\n    this.focusSelector = undefined;\n\n    let selected = cy.$(focusSelector);\n\n    if (!selected) {\n      addInfo(\n        'Could not focus on requested node. The node may be idle or hidden.',\n        true,\n        undefined,\n        `${focusSelector}`\n      );\n      return;\n    }\n\n    // If there is only one, select it\n    if (selected.length === 1) {\n      this.selectTargetAndUpdateSummary(selected[0]);\n    } else {\n      // If we have many elements, try to check if a compound in this query contains everything, if so, select it.\n      const compound = selected.filter('$node > node');\n      if (compound && compound.length === 1 && selected.subtract(compound).same(compound.children())) {\n        this.selectTargetAndUpdateSummary(compound[0]);\n        selected = compound;\n      }\n    }\n\n    // Start animation\n    new FocusAnimation(cy).start(selected);\n  }\n",
      "asOf": "2026-11-20"
    },
    "F127": {
      "label": "Project source file, cytoscape",
      "display": "src/components/CytoscapeGraph/CytoscapeGraph.tsx",
      "asOf": "2026-11-20"
    },
    "F128": {
      "label": "Project full_name, cytoscape",
      "display": "kiali/kiali-ui",
      "asOf": "2026-11-20"
    },
    "F129": {
      "label": "Project stargazers_count, cytoscape",
      "display": "208",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "Library name, mermaid",
      "display": "mermaid",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "Monthly downloads, mermaid",
      "display": "98.9M",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "License, mermaid",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Package release, mermaid",
      "display": "12.3.0",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Package release date, mermaid",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Install, mermaid",
      "display": "npm install mermaid",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Quickstart, mermaid",
      "display": "import mermaid from 'mermaid';\n\nmermaid.initialize({ startOnLoad: false });\nconst { svg } = await mermaid.render('example', 'graph LR; A-->B;');\ndocument.getElementById('diagram').innerHTML = svg;\n",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Repository stars, mermaid",
      "display": "91.1K",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Node dragging, mermaid",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "SVG export, mermaid",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Documented diagram role, mermaid",
      "display": "Text-authored diagram languages compiled to SVG",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "SVG/rendering mode, mermaid",
      "display": "Core render API returns SVG text; browser DOM/font environment required.",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Registry package identifier, mermaid",
      "display": "mermaid",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Observed package downloads, mermaid",
      "display": "98935227",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Project function, mermaid",
      "display": "export async function renderMermaid(lzEncoded: string, options: any) {\n  containerElement ??= document.getElementById('mermaid-rendering-container')!\n  const key = lzEncoded + JSON.stringify(options)\n  const _cache = cache.get(key)\n  if (_cache)\n    return _cache\n\n  const code = lz.decompressFromBase64(lzEncoded)\n\n  // custom renderer\n  for (const setup of mermaidRenderers) {\n    const renderer = await setup()\n    if (renderer) {\n      const svg = await renderer(code, options)\n      cache.set(key, svg)\n      return svg\n    }\n  }\n\n  // fallback: existing mermaid\n  mermaid.initialize({\n    startOnLoad: false,\n    ...clearUndefined(await setupMermaid() || {}),\n    ...clearUndefined(options),\n  })\n  const id = makeId()\n  const { svg } = await mermaid.render(id, code, containerElement)\n  cache.set(key, svg)\n  return svg\n}\n",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Project source file, mermaid",
      "display": "packages/client/modules/mermaid.ts",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Project full_name, mermaid",
      "display": "slidevjs/slidev",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Project stargazers_count, mermaid",
      "display": "49.5K",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Library name, @viz-js/viz",
      "display": "@viz-js/viz",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Monthly downloads, @viz-js/viz",
      "display": "1.9M",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "License, @viz-js/viz",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Package release, @viz-js/viz",
      "display": "3.31.0",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Package release date, @viz-js/viz",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Install, @viz-js/viz",
      "display": "npm install @viz-js/viz",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Quickstart, @viz-js/viz",
      "display": "import * as Viz from \"@viz-js/viz\";\n\nViz.instance().then(viz => {\n  const svg = viz.renderSVGElement(\"digraph { a -> b }\");\n\n  document.getElementById(\"graph\").appendChild(svg);\n});\n",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Repository stars, @viz-js/viz",
      "display": "4.4K",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Node dragging, @viz-js/viz",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "SVG export, @viz-js/viz",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Documented diagram role, @viz-js/viz",
      "display": "Graphviz DOT renderer compiled to WebAssembly; SVG/structured render APIs",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "SVG/rendering mode, @viz-js/viz",
      "display": "Native Graphviz WebAssembly SVG output as an SVG element/string.",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Registry package identifier, @viz-js/viz",
      "display": "@viz-js/viz",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Observed package downloads, @viz-js/viz",
      "display": "1858318",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Project function, @viz-js/viz",
      "display": "async function renderGraph() {\n  const dotContent = dotInput.value.trim();\n  \n  if (!dotContent) {\n    output.innerHTML = '';\n    return;\n  }\n\n  if (!viz) {\n    output.innerHTML = '<div class=\"error\">Viz.js is still loading, please wait...</div>';\n    return;\n  }\n\n  try {\n    output.innerHTML = '<div style=\"color: #666;\">Rendering...</div>';\n    const svg = await viz.renderSVGElement(dotContent);\n    output.innerHTML = '';\n    output.appendChild(svg);\n  } catch (error) {\n    output.innerHTML = `<div class=\"error\"><strong>Error:</strong> ${error.message}</div>`;\n  }\n}\n",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Project source file, @viz-js/viz",
      "display": "dot.html",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Project full_name, @viz-js/viz",
      "display": "simonw/tools",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Project stargazers_count, @viz-js/viz",
      "display": "1.9K",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Library name, bpmn-js",
      "display": "bpmn-js",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Monthly downloads, bpmn-js",
      "display": "1.8M",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "License, bpmn-js",
      "display": "bpmn.io license",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Package release, bpmn-js",
      "display": "18.33.0",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Package release date, bpmn-js",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Install, bpmn-js",
      "display": "npm install bpmn-js",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Quickstart, bpmn-js",
      "display": "import Modeler from 'bpmn-js/lib/Modeler';\nimport 'bpmn-js/dist/assets/diagram-js.css';\nimport 'bpmn-js/dist/assets/bpmn-font/css/bpmn.css';\n\nconst modeler = new Modeler({ container: '#canvas' });\nawait modeler.createDiagram();\n",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Official description, bpmn-js",
      "display": "Views and edits BPMN 2.0 process diagrams in the browser.",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Quickstart source file, bpmn-js",
      "display": "lib/Modeler.d.ts and documented modeler assets",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Repository stars, bpmn-js",
      "display": "9.7K",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Node dragging, bpmn-js",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "SVG export, bpmn-js",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Documented diagram role, bpmn-js",
      "display": "BPMN2.0 XML viewer/modeler and browser editing toolkit",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "SVG/rendering mode, bpmn-js",
      "display": "Viewer/modeler saveSVG returns SVG source; applicable watermark condition is retained separately.",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Registry package identifier, bpmn-js",
      "display": "bpmn-js",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Observed package downloads, bpmn-js",
      "display": "1818789",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Watermark condition, bpmn-js",
      "display": "Rendered bpmn.io watermark must remain visible and unmodified",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Project function, bpmn-js",
      "display": "async exportSVG() {\n    const modeler = this.getModeler();\n\n    try {\n      const { svg } = await modeler.saveSVG();\n\n      return svg;\n    } catch (err) {\n\n      return Promise.reject(err);\n    }\n  }",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Project source file, bpmn-js",
      "display": "client/src/app/tabs/bpmn/BpmnEditor.js",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Project full_name, bpmn-js",
      "display": "camunda/camunda-modeler",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Project stargazers_count, bpmn-js",
      "display": "1.7K",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Library name, @antv/g6",
      "display": "@antv/g6",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Monthly downloads, @antv/g6",
      "display": "1.2M",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "License, @antv/g6",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Package release, @antv/g6",
      "display": "5.1.1",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Package release date, @antv/g6",
      "display": "May 2026",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Install, @antv/g6",
      "display": "npm install @antv/g6",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Quickstart, @antv/g6",
      "display": "import { Graph } from '@antv/g6';\n\nconst graph = new Graph({\n  container: 'container',\n  data: { nodes: [{ id: 'node-1', style: { x: 100, y: 100 } }] },\n});\nawait graph.render();\n",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Official description, @antv/g6",
      "display": "Draws interactive graph visualizations in JavaScript.",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Quickstart source file, @antv/g6",
      "display": "lib/runtime/graph.d.ts and spec GraphOptions",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Repository stars, @antv/g6",
      "display": "12.4K",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Node dragging, @antv/g6",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "SVG export, @antv/g6",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Documented diagram role, @antv/g6",
      "display": "GraphData-driven graph visualization with selectable behaviors/layouts and Canvas rendering",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "SVG/rendering mode, @antv/g6",
      "display": "Published5.1.1 core image export options are PNG/JPEG/WebP/BMP data URLs. Application serialization through custom renderers is outside the native export cell.",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Registry package identifier, @antv/g6",
      "display": "@antv/g6",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Observed package downloads, @antv/g6",
      "display": "1221560",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Private versus public API, @antv/g6",
      "display": "Private Graph.context from an alternate3D example is not admitted; Graph construction/render/frontElement are public",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Library name, gojs",
      "display": "GoJS",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Monthly downloads, gojs",
      "display": "1.1M",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "License, gojs",
      "display": "Commercial",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Package release, gojs",
      "display": "4.0.5",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Package release date, gojs",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Install, gojs",
      "display": "npm install gojs",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Quickstart, gojs",
      "display": "import * as go from 'gojs';\n\nconst diagram = new go.Diagram('myDiagramDiv');\ndiagram.nodeTemplate = new go.Node('Auto').add(\n  new go.TextBlock().bind('text', 'key'),\n);\ndiagram.model = new go.GraphLinksModel(\n  [{ key: 'Alpha' }, { key: 'Beta' }],\n  [{ from: 'Alpha', to: 'Beta' }],\n);\n",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Repository stars, gojs",
      "display": "8.5K",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Node dragging, gojs",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "SVG export, gojs",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Documented diagram role, gojs",
      "display": "Template/model-based interactive diagram editor with commercial SDK terms",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "SVG/rendering mode, gojs",
      "display": "Native Diagram.makeSvg output; SVG DOM is distinct from its Canvas renderer and raster export APIs.",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Registry package identifier, gojs",
      "display": "gojs",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Observed package downloads, gojs",
      "display": "1144442",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Organizational-use terms, gojs",
      "display": "Own current README says organizational use requires a purchased license; individual non-commercial carveout introduced September2026",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Library name, @maxgraph/core",
      "display": "maxGraph",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Monthly downloads, @maxgraph/core",
      "display": "519.0K",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "License, @maxgraph/core",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Package release, @maxgraph/core",
      "display": "0.25.1",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Package release date, @maxgraph/core",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Install, @maxgraph/core",
      "display": "npm install @maxgraph/core",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Quickstart, @maxgraph/core",
      "display": "import { Graph } from '@maxgraph/core';\nimport '@maxgraph/core/css/common.css';\n\nconst graph = new Graph(document.getElementById('graph'));\ngraph.batchUpdate(() => {\n  graph.insertVertex({\n    parent: graph.getDefaultParent(),\n    value: 'Hello',\n    position: [20, 20],\n    size: [80, 30],\n  });\n});\n",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Official description, @maxgraph/core",
      "display": "Builds diagrams entirely on the client and renders them with SVG and HTML.",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Quickstart source file, @maxgraph/core",
      "display": "view/mixin/VertexMixin.type.d.ts and HelloWorld example",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Repository stars, @maxgraph/core",
      "display": "1.2K",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Node dragging, @maxgraph/core",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "SVG export, @maxgraph/core",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Documented diagram role, @maxgraph/core",
      "display": "Client-side diagram model, editable cells, groups, and SVG rendering/export primitives",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "SVG/rendering mode, @maxgraph/core",
      "display": "SDK SvgCanvas2D and ImageExport primitives generate SVG from graph state; this requires helper assembly rather than a single Graph.exportSVG call.",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Registry package identifier, @maxgraph/core",
      "display": "@maxgraph/core",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Observed package downloads, @maxgraph/core",
      "display": "519029",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Insertion overload, @maxgraph/core",
      "display": "Object-form insertVertex is recommended; positional form is a legacy mxGraph-migration overload",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Library name, @antv/x6",
      "display": "@antv/x6",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Monthly downloads, @antv/x6",
      "display": "368.9K",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "License, @antv/x6",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Package release, @antv/x6",
      "display": "3.1.8",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Package release date, @antv/x6",
      "display": "Aug 2026",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Install, @antv/x6",
      "display": "npm install @antv/x6",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Quickstart, @antv/x6",
      "display": "import { Graph } from '@antv/x6';\n\nconst graph = new Graph({\n  container: document.getElementById('graph'),\n  width: 600,\n  height: 400,\n});\ngraph.addNode({\n  shape: 'rect', x: 40, y: 40, width: 80, height: 40,\n  attrs: { label: { text: 'Hello' } },\n});\n",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Official description, @antv/x6",
      "display": "Builds diagram editors that render with SVG and HTML.",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Quickstart source file, @antv/x6",
      "display": "lib/graph/graph.d.ts and node metadata",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Repository stars, @antv/x6",
      "display": "6.8K",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Node dragging, @antv/x6",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "SVG export, @antv/x6",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Documented diagram role, @antv/x6",
      "display": "SVG/HTML graph editor with cell APIs and bundled optional plugins",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "SVG/rendering mode, @antv/x6",
      "display": "Bundled first-party Export GraphPlugin in3.1.8; explicit registration. Separate legacy x6-plugin-export2.1.6 is not assumed compatible or required.",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Registry package identifier, @antv/x6",
      "display": "@antv/x6",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Observed package downloads, @antv/x6",
      "display": "368946",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Export-plugin generation, @antv/x6",
      "display": "Current3.1.8 root exports bundled plugins, including Export; register with Graph.use",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Views and edits BPMN diagrams",
      "display": "Views and edits BPMN diagrams",
      "asOf": "2026-11-17"
    },
    "F254": {
      "label": "Import BPMN XML and edit the process in the browser.",
      "display": "Import BPMN XML and edit the process in the browser.",
      "asOf": "2026-11-17"
    },
    "F255": {
      "label": "The watermark must stay visible",
      "display": "The watermark must stay visible",
      "asOf": "2026-11-17"
    },
    "F256": {
      "label": "The license forbids removing or covering the bpmn.io watermark on rendered diagrams.",
      "display": "The license forbids removing or covering the bpmn.io watermark on rendered diagrams.",
      "asOf": "2026-11-17"
    },
    "F257": {
      "label": "Ships built-in graph layouts",
      "display": "Ships built-in graph layouts",
      "asOf": "2026-11-17"
    },
    "F258": {
      "label": "Arrange nodes with a built-in layout or a custom one.",
      "display": "Arrange nodes with a built-in layout or a custom one.",
      "asOf": "2026-11-17"
    },
    "F259": {
      "label": "Ships built-in interactions",
      "display": "Ships built-in interactions",
      "asOf": "2026-11-17"
    },
    "F260": {
      "label": "Turn on built-in interaction behaviors and listen to graph events.",
      "display": "Turn on built-in interaction behaviors and listen to graph events.",
      "asOf": "2026-11-17"
    },
    "F261": {
      "label": "Edits vertices and edges",
      "display": "Edits vertices and edges",
      "asOf": "2026-11-17"
    },
    "F262": {
      "label": "Resize, move, and rotate shapes, then arrange them with automatic layouts.",
      "display": "Resize, move, and rotate shapes, then arrange them with automatic layouts.",
      "asOf": "2026-11-17"
    },
    "F263": {
      "label": "Reads mxGraph XML",
      "display": "Reads mxGraph XML",
      "asOf": "2026-11-17"
    },
    "F264": {
      "label": "Load diagrams saved in the mxGraph XML format.",
      "display": "Load diagrams saved in the mxGraph XML format.",
      "asOf": "2026-11-17"
    },
    "F265": {
      "label": "Exports SVG and images",
      "display": "Exports SVG and images",
      "asOf": "2026-11-17"
    },
    "F266": {
      "label": "Export a graph as SVG, PNG, or JPEG through the Export plugin.",
      "display": "Export a graph as SVG, PNG, or JPEG through the Export plugin.",
      "asOf": "2026-11-17"
    },
    "F267": {
      "label": "Export needs a plugin",
      "display": "Export needs a plugin",
      "asOf": "2026-11-17"
    },
    "F268": {
      "label": "SVG and image export load through the separate Export plugin.",
      "display": "SVG and image export load through the separate Export plugin.",
      "asOf": "2026-11-17"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "JavaScript diagram libraries Mermaid Cytoscape Viz Graphviz GoJS layout interactions code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
