{
  "id": "task_libraries:canvas/react",
  "path": "/exapedia/react-canvas-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "React canvas libraries",
  "answer": [
    {
      "t": "text",
      "text": "React canvas libraries draw graphics on an HTML canvas element through React components. A renderer keeps a scene graph of shapes or objects and redraws the canvas when their props change. These libraries let drawing tools, signature pads, and design editors render interactive graphics in the browser."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "React canvas libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#react-three-fiber",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F117"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F118"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F124"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F121"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F119"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-konva",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F134"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#shopify-react-native-skia",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F151"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-signature-canvas",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F167"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#excalidraw-excalidraw",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F185"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tldraw",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F200"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-zdog",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F216"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pixi-react",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F231"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#react-three-fiber",
          "label": [
            {
              "t": "text",
              "text": "@react-three/fiber"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F118"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "GPU scene renderer",
            "SVG scene renderer"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#react-three-fiber",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F117"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F125"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F126"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-konva",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F134"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#shopify-react-native-skia",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F151"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-signature-canvas",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F167"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#excalidraw-excalidraw",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F185"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tldraw",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F200"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-zdog",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F216"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pixi-react",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F231"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "react-three-fiber",
          "name": [
            {
              "t": "fact",
              "fact": "F117"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pmndrs/react-three-fiber"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@react-three/fiber"
            },
            {
              "label": "Docs",
              "href": "https://docs.pmnd.rs/react-three-fiber"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F10"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F118"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F124"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F120"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F119"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.pmnd.rs/react-three-fiber",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F117"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F11"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F12"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/pmndrs/drei",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F132"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "export function useCubeCamera({ resolution = 256, near = 0.1, far = 1000, envMap, fog }: CubeCameraOptions = {}) {\n  const gl = useThree(({ gl }) => gl)\n  const scene = useThree(({ scene }) => scene)\n\n  const fbo = useMemo(() => {\n    const fbo = new WebGLCubeRenderTarget(resolution)\n    fbo.texture.type = HalfFloatType\n    return fbo\n  }, [resolution])\n\n  useEffect(() => {\n    return () => {\n      fbo.dispose()\n    }\n  }, [fbo])\n\n  const camera = useMemo(() => new THREE.CubeCamera(near, far, fbo), [near, far, fbo])\n\n  let originalFog\n  let originalBackground\n  const update = React.useCallback(() => {\n    originalFog = scene.fog\n    originalBackground = scene.background\n    scene.background = envMap || originalBackground\n    scene.fog = fog || originalFog\n    camera.update(gl, scene)\n    scene.fog = originalFog\n    scene.background = originalBackground\n  }, [gl, scene, camera])\n\n  return {\n    fbo,\n    camera,\n    update,\n  }\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/pmndrs/drei/blob/bf6f4addf47467d3885de272d94ca5127f6ef68f/src/core/CubeCamera.tsx#L20-L55",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F131"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Public%20React%20projects%20using%20%40react-three/fiber%20for%20canvas%20drawing%2C%20scene%20interaction%2C%20signature%20capture%20and%20image%20export&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": "F117"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import React from 'react'\nimport { Canvas } from '@react-three/fiber'\n\nconst App = () => (\n  <Canvas>\n    <pointLight position={[10, 10, 10]} />\n    <mesh>\n      <sphereGeometry />\n      <meshStandardMaterial color=\"hotpink\" />\n    </mesh>\n  </Canvas>\n)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://r3f.docs.pmnd.rs/api/canvas",
                  "label": [
                    {
                      "t": "text",
                      "text": "readme.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F122"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-konva",
          "name": [
            {
              "t": "fact",
              "fact": "F134"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/konvajs/react-konva"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-konva"
            },
            {
              "label": "Docs",
              "href": "https://konvajs.org/docs/react/index.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F34"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://konvajs.org/docs/react/index.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F134"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F35"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F36"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F37"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/mrgoonie/winshot",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F149"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "(e: Konva.KonvaEventObject<MouseEvent>) => {\n    // Handle pan move\n    if (isPanning) {\n      handlePanMove(e);\n      return;\n    }\n\n    if (!isDrawing || !drawStart || !tempAnnotation) return;\n\n    const stage = e.target.getStage();\n    if (!stage) return;\n\n    const pos = stage.getPointerPosition();\n    if (!pos) return;\n\n    // Convert to unscaled coordinates (accounting for stage position including pan offset and centering)\n    const stageX = stage.x();\n    const stageY = stage.y();\n    const x = (pos.x - stageX) / scale;\n    const y = (pos.y - stageY) / scale;\n\n    const width = x - drawStart.x;\n    const height = y - drawStart.y;\n\n    if (tempAnnotation.type === 'arrow' || tempAnnotation.type === 'line') {\n      setTempAnnotation({\n        ...tempAnnotation,\n        points: [0, 0, width, height],\n        width: width,\n        height: height,\n      });\n    } else {\n      // For rectangle and ellipse, handle negative dimensions\n      const newX = width < 0 ? x : drawStart.x;\n      const newY = height < 0 ? y : drawStart.y;\n      setTempAnnotation({\n        ...tempAnnotation,\n        x: newX,\n        y: newY,\n        width: Math.abs(width),\n        height: Math.abs(height),\n      });\n    }\n  }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/mrgoonie/winshot/blob/a36760ed1a2bda2074fa1b73b3ca24b837061512/frontend/src/components/editor-canvas.tsx#L537-L580",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F148"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Public%20React%20projects%20using%20react-konva%20for%20canvas%20drawing%2C%20scene%20interaction%2C%20signature%20capture%20and%20image%20export&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": "F134"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import {useState} from 'react';\nimport {Stage, Layer, Rect} from 'react-konva';\n\nexport default function App() {\n  const [color, setColor] = useState('#00a8e8');\n  return (\n    <Stage width={600} height={400}>\n      <Layer>\n        <Rect\n          x={50} y={50} width={120} height={80}\n          fill={color} draggable\n          onClick={() => setColor(color === '#00a8e8' ? '#ff7a00' : '#00a8e8')}\n        />\n      </Layer>\n    </Stage>\n  );\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/konvajs/react-konva/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F139"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "shopify-react-native-skia",
          "name": [
            {
              "t": "fact",
              "fact": "F151"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/wcandillon/react-native-skia"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@shopify/react-native-skia"
            },
            {
              "label": "Docs",
              "href": "https://wcandillon.github.io/react-native-skia/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F158"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://wcandillon.github.io/react-native-skia/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F151"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { WithSkiaWeb } from \"@shopify/react-native-skia/lib/module/web\";\nimport { version } from \"canvaskit-wasm/package.json\";\n\nexport default function App() {\n  return (\n    <WithSkiaWeb\n      opts={{ locateFile: (file) => `https://cdn.jsdelivr.net/npm/canvaskit-wasm@${version}/bin/full/${file}` }}\n      getComponent={() => import(\"./MySkiaComponent\")}\n    />\n  );\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/Shopify/react-native-skia/blob/55607125aeedf89f443436c96c516eb70217f09e/apps/docs/docs/getting-started/web.mdx",
                  "label": [
                    {
                      "t": "text",
                      "text": "web.mdx"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40shopify/react-native-skia%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F151"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F156"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-signature-canvas",
          "name": [
            {
              "t": "fact",
              "fact": "F167"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/agilgur5/react-signature-canvas"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-signature-canvas"
            },
            {
              "label": "Docs",
              "href": "https://agilgur5.github.io/react-signature-canvas/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F57"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://agilgur5.github.io/react-signature-canvas/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F167"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F58"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F59"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F60"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F61"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F62"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/documenso/documenso",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F183"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "export default function SignatureDialog(props: any) {\n  const [currentTab, setCurrentTab] = useState(tabs[0]);\n  const [typedSignature, setTypedSignature] = useState(\"\");\n  const [signatureEmpty, setSignatureEmpty] = useState(true);\n  // This is a workaround to prevent the canvas from being rendered when the dialog is closed\n  // we also need the debounce to avoid rendering while transitions are occuring.\n  const showCanvas = useDebouncedValue<boolean>(props.open, 1);\n  let signCanvasRef: any | undefined;\n\n  useEffect(() => {\n    setTypedSignature(localStorage.getItem(\"typedSignature\") || \"\");\n  }, []);\n\n  return (\n    <>\n      <Transition.Root show={props.open} as={Fragment}>\n        <Dialog\n          as=\"div\"\n          className=\"relative z-10\"\n          onClose={() => {\n            props.setOpen(false);\n            setCurrent(tabs[0]);\n          }}>\n          <Transition.Child\n            as={Fragment}\n            enter=\"ease-out duration-300\"\n            enterFrom=\"opacity-0\"\n            enterTo=\"opacity-100\"\n            leave=\"ease-in duration-200\"\n            leaveFrom=\"opacity-100\"\n            leaveTo=\"opacity-0\">\n            <div className=\"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity\" />\n          </Transition.Child>\n\n          <div className=\"fixed inset-0 z-10 overflow-y-auto\">\n            <div className=\"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0\">\n              <Transition.Child\n                as={Fragment}\n                enter=\"ease-out duration-300\"\n                enterFrom=\"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95\"\n                enterTo=\"opacity-100 translate-y-0 sm:scale-100\"\n                leave=\"ease-in duration-200\"\n                leaveFrom=\"opacity-100 translate-y-0 sm:scale-100\"\n                leaveTo=\"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95\">\n                <Dialog.Panel className=\"relative min-h-[350px] transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-sm sm:p-6\">\n                  <div className=\"\">\n                    <div className=\"mb-3 border-b border-gray-200\">\n                      <nav className=\"-mb-px flex space-x-8\" aria-label=\"Tabs\">\n                        {tabs.map((tab) => (\n                          <a\n                            key={tab.name}\n                            onClick={() => {\n                              setCurrent(tab);\n                            }}\n                            className={classNames(\n                              tab.current\n                                ? \"border-neon text-neon\"\n                                : \"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700\",\n                              \"group inline-flex cursor-pointer items-center border-b-2 py-4 px-1 text-sm font-medium\"\n                            )}\n                            aria-current={tab.current ? \"page\" : undefined}>\n                            <tab.icon\n                              className={classNames(\n                                tab.current\n                                  ? \"text-neon\"\n                                  : \"text-gray-400 group-hover:text-gray-500\",\n                                \"-ml-0.5 mr-2 h-5 w-5\"\n                              )}\n                              aria-hidden=\"true\"\n                            />\n                            <span>{tab.name}</span>\n                          </a>\n                        ))}\n                      </nav>\n                    </div>\n                    {isCurrentTab(\"Type\") ? (\n                      <div>\n                        <div className=\"my-8 mb-3 border-b border-gray-300\">\n                          <input\n                            value={typedSignature}\n                            onChange={(e) => {\n                              setTypedSignature(e.target.value);\n                            }}\n                            className={classNames(\n                              typedSignature ? \"font-qwigley text-4xl\" : \"\",\n                              \"focus:border-neon focus:ring-neon mt-14 block h-10 w-full text-center align-bottom text-2xl leading-none\"\n                            )}\n                            placeholder=\"Kindly type your name\"\n                          />\n                        </div>\n                        <div className=\"float-right\">\n                          <Button\n                            color=\"secondary\"\n                            onClick={() => {\n                              props.onClose();\n                              props.setOpen(false);\n                              setCurrent(tabs[0]);\n                            }}>\n                            Cancel\n                          </Button>\n                          <Button\n                            className=\"ml-3\"\n                            disabled={!typedSignature}\n                            onClick={() => {\n                              localStorage.setItem(\"typedSignature\", typedSignature);\n                              props.onClose({\n                                type: \"type\",\n                                typedSignature: typedSignature,\n                              });\n                            }}>\n                            Sign\n                          </Button>\n                        </div>\n                      </div>\n                    ) : (\n                      \"\"\n                    )}\n                    {isCurrentTab(\"Draw\") ? (\n                      <div className=\"\" key={props.open ? \"closed\" : \"open\"}>\n                        {showCanvas && (\n                          <SignatureCanvas\n                            ref={(ref) => {\n                              signCanvasRef = ref;\n                            }}\n                            canvasProps={{\n                              className: \"sigCanvas border-b b-2 border-slate w-full h-full mb-3\",\n                            }}\n                            clearOnResize={true}\n                            onEnd={() => {\n                              setSignatureEmpty(signCanvasRef?.isEmpty());\n                            }}\n                          />\n                        )}\n                        <IconButton\n                          className=\"float-left block\"\n                          icon={TrashIcon}\n                          onClick={() => {\n                            signCanvasRef?.clear();\n                            setSignatureEmpty(signCanvasRef?.isEmpty());\n                          }}></IconButton>\n                        <div className=\"float-right mt-10\">\n                          <Button\n                            color=\"secondary\"\n                            onClick={() => {\n                              props.onClose();\n                              props.setOpen(false);\n                              setCurrent(tabs[0]);\n                            }}>\n                            Cancel\n                          </Button>\n                          <Button\n                            className=\"ml-3\"\n                            onClick={() => {\n                              props.onClose({\n                                type: \"draw\",\n                                signatureImage: signCanvasRef.toDataURL(\"image/png\"),\n                              });\n                            }}\n                            disabled={signatureEmpty}>\n                            Sign\n                          </Button>\n                        </div>\n                      </div>\n                    ) : (\n                      \"\"\n                    )}\n                  </div>\n                </Dialog.Panel>\n              </Transition.Child>\n            </div>\n          </div>\n        </Dialog>\n      </Transition.Root>\n    </>\n  );\n\n  function isCurrentTab(tabName: string): boolean {\n    return currentTab.name === tabName;\n  }\n\n  function setCurrent(t: any) {\n    tabs.forEach((tab) => {\n      tab.current = tab.name === t.name;\n    });\n    setCurrentTab(t);\n  }\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/documenso/documenso/blob/d2301a923b77b2fde53d160a060f2f1e8f968bf6/apps/web/components/editor/signature-dialog.tsx#L15-L201",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F182"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Public%20React%20projects%20using%20react-signature-canvas%20for%20canvas%20drawing%2C%20scene%20interaction%2C%20signature%20capture%20and%20image%20export&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": "F167"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import React from 'react'\nimport { createRoot } from 'react-dom/client'\nimport SignatureCanvas from 'react-signature-canvas'\n\ncreateRoot(\n  document.getElementById('my-react-container')\n).render(\n  <SignatureCanvas penColor='green'\n    canvasProps={{width: 500, height: 200, className: 'sigCanvas'}} />,\n)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/agilgur5/react-signature-canvas/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.js"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F172"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "excalidraw-excalidraw",
          "name": [
            {
              "t": "fact",
              "fact": "F185"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/excalidraw/excalidraw"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@excalidraw/excalidraw"
            },
            {
              "label": "Docs",
              "href": "https://excalidraw.com"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F192"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://excalidraw.com",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F185"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { Excalidraw } from \"@excalidraw/excalidraw\";\nimport \"@excalidraw/excalidraw/index.css\";\n\nexport default function App() {\n  return (\n    <div style={{ height: \"100vh\" }}>\n      <Excalidraw />\n    </div>\n  );\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/excalidraw/excalidraw/blob/master/packages/excalidraw/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40excalidraw/excalidraw%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F185"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F190"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "tldraw",
          "name": [
            {
              "t": "fact",
              "fact": "F200"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/tldraw/tldraw"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/tldraw"
            },
            {
              "label": "Docs",
              "href": "https://tldraw.dev"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F207"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://tldraw.dev",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F200"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { Tldraw } from 'tldraw'\nimport 'tldraw/tldraw.css'\n\nexport default function App() {\n\treturn (\n\t\t<div style={{ position: 'fixed', inset: 0 }}>\n\t\t\t<Tldraw />\n\t\t</div>\n\t)\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://tldraw.dev/quick-start",
                  "label": [
                    {
                      "t": "text",
                      "text": "quick-start.mdx"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=tldraw%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F200"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F205"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-zdog",
          "name": [
            {
              "t": "fact",
              "fact": "F216"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pmndrs/react-zdog"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-zdog"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F223"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/pmndrs/react-zdog",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F216"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { Illustration, Shape } from \"react-zdog\";\n\nexport default function App() {\n  return (\n    <Illustration zoom={8}>\n      <Shape stroke={20} color=\"lightblue\" rotate={{ x: Math.PI }} />\n    </Illustration>\n  );\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/pmndrs/react-zdog/blob/master/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "readme.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=react-zdog%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F216"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F221"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pixi-react",
          "name": [
            {
              "t": "fact",
              "fact": "F231"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pixijs/pixi-react"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@pixi/react"
            },
            {
              "label": "Docs",
              "href": "https://react.pixijs.io/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F238"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://react.pixijs.io/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F231"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import {Application, extend} from '@pixi/react'\nimport {Graphics} from 'pixi.js'\nimport {useCallback} from 'react'\nextend({Graphics})\n\nconst MyComponent = () => {\n  const draw = useCallback(graphics => {\n    graphics.clear()\n    graphics.setFillStyle({color: 'red'})\n    graphics.rect(0, 0, 100, 100)\n    graphics.fill()\n  }, [])\n  return <Application><pixiGraphics draw={draw} /></Application>\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/pixijs/pixi-react/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40pixi/react%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F231"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F236"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which React canvas library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#react-konva",
          "label": [
            {
              "t": "text",
              "text": "React Konva"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits two-dimensional canvas scenes built from shapes, images, and groups. "
        },
        {
          "t": "link",
          "href": "#react-three-fiber",
          "label": [
            {
              "t": "text",
              "text": "@react-three/fiber"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits Three.js scenes. "
        },
        {
          "t": "link",
          "href": "#react-signature-canvas",
          "label": [
            {
              "t": "text",
              "text": "react-signature-canvas"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits signature capture."
        }
      ]
    },
    {
      "q": "What is tldraw?",
      "a": [
        {
          "t": "link",
          "href": "#tldraw",
          "label": [
            {
              "t": "text",
              "text": "tldraw"
            }
          ]
        },
        {
          "t": "text",
          "text": " provides a small drawing editor."
        }
      ]
    },
    {
      "q": "What is React Konva?",
      "a": [
        {
          "t": "link",
          "href": "#react-konva",
          "label": [
            {
              "t": "text",
              "text": "React Konva"
            }
          ]
        },
        {
          "t": "text",
          "text": " provides declarative React components for a two-dimensional canvas scene graph. A node ref exports the rendered drawing as a PNG image."
        }
      ]
    },
    {
      "q": "How do I capture a signature in React?",
      "a": [
        {
          "t": "link",
          "href": "#react-signature-canvas",
          "label": [
            {
              "t": "text",
              "text": "react-signature-canvas"
            }
          ]
        },
        {
          "t": "text",
          "text": " wraps signature_pad in a React canvas component. Its toData and fromData methods save and restore signature strokes."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, @react-three/fiber",
      "display": "React Three Fiber",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, @react-three/fiber",
      "display": "35.1M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, @react-three/fiber",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, @react-three/fiber",
      "display": "9.8.2",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, @react-three/fiber",
      "display": "v9.8.2",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, @react-three/fiber",
      "display": "33.8K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Pointer events, @react-three/fiber",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Imperative API refs, @react-three/fiber",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Install, @react-three/fiber",
      "display": "npm install three @types/three @react-three/fiber",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "What it does, @react-three/fiber",
      "display": "Renders Three.js scenes through React components.",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "strengths lead, @react-three/fiber",
      "display": "Builds interactive 3D scenes",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "strengths, @react-three/fiber",
      "display": "Compose reusable scene components and animate them in the render loop.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, @react-three/fiber",
      "display": "Exposes renderer and scene state",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, @react-three/fiber",
      "display": "Read the active renderer, scene, and camera through useThree.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "limitations lead, @react-three/fiber",
      "display": "Hooks require Canvas context",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "limitations, @react-three/fiber",
      "display": "Call useFrame and useThree inside the Canvas component tree.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "Quickstart, @react-three/fiber",
      "display": "import { createRoot } from 'react-dom/client'\nimport React, { useRef, useState } from 'react'\nimport { Canvas, useFrame } from '@react-three/fiber'\n\nfunction Box(props) {\n  // This reference gives us direct access to the THREE.Mesh object\n  const ref = useRef()\n  // Hold state for hovered and clicked events\n  const [hovered, hover] = useState(false)\n  const [clicked, click] = useState(false)\n  // Subscribe this component to the render-loop, rotate the mesh every frame\n  useFrame((state, delta) => (ref.current.rotation.x += delta))\n  // Return the view, these are regular Threejs elements expressed in JSX\n  return (\n    <mesh\n      {...props}\n      ref={ref}\n      scale={clicked ? 1.5 : 1}\n      onClick={(event) => click(!clicked)}\n      onPointerOver={(event) => hover(true)}\n      onPointerOut={(event) => hover(false)}>\n      <boxGeometry args={[1, 1, 1]} />\n      <meshStandardMaterial color={hovered ? 'hotpink' : 'orange'} />\n    </mesh>\n  )\n}\n\ncreateRoot(document.getElementById('root')).render(\n  <Canvas>\n    <ambientLight intensity={Math.PI / 2} />\n    <spotLight position={[10, 10, 10]} angle={0.15} penumbra={1} decay={0} intensity={Math.PI} />\n    <pointLight position={[-10, -10, -10]} decay={0} intensity={Math.PI} />\n    <Box position={[-1.2, 0, 0]} />\n    <Box position={[1.2, 0, 0]} />\n  </Canvas>,\n)\n",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "Project function, @react-three/fiber",
      "display": "export function useCubeCamera({ resolution = 256, near = 0.1, far = 1000, envMap, fog }: CubeCameraOptions = {}) {\n  const gl = useThree(({ gl }) => gl)\n  const scene = useThree(({ scene }) => scene)\n\n  const fbo = useMemo(() => {\n    const fbo = new WebGLCubeRenderTarget(resolution)\n    fbo.texture.type = HalfFloatType\n    return fbo\n  }, [resolution])\n\n  useEffect(() => {\n    return () => {\n      fbo.dispose()\n    }\n  }, [fbo])\n\n  const camera = useMemo(() => new THREE.CubeCamera(near, far, fbo), [near, far, fbo])\n\n  let originalFog\n  let originalBackground\n  const update = React.useCallback(() => {\n    originalFog = scene.fog\n    originalBackground = scene.background\n    scene.background = envMap || originalBackground\n    scene.fog = fog || originalFog\n    camera.update(gl, scene)\n    scene.fog = originalFog\n    scene.background = originalBackground\n  }, [gl, scene, camera])\n\n  return {\n    fbo,\n    camera,\n    update,\n  }\n}\n",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "Project function reference, @react-three/fiber",
      "display": "CubeCamera.tsx · useCubeCamera()",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Project repository, @react-three/fiber",
      "display": "pmndrs/drei",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project stars, pmndrs/drei",
      "display": "10.2K",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project push date, pmndrs/drei",
      "display": "Oct 2026",
      "asOf": "2026-10-21"
    },
    "F23": {
      "label": "Library name, react-konva",
      "display": "React Konva",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Monthly downloads, react-konva",
      "display": "10.6M",
      "asOf": "2026-11-15"
    },
    "F25": {
      "label": "License, react-konva",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Package release, react-konva",
      "display": "19.3.2",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Undated package release, react-konva",
      "display": "v19.3.2",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Repository stars, react-konva",
      "display": "6.4K",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Pointer events, react-konva",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Imperative API refs, react-konva",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Touch input, react-konva",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Output formats, react-konva",
      "display": "PNG",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Install, react-konva",
      "display": "npm install react-konva konva",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "What it does, react-konva",
      "display": "Provides declarative React components for a two-dimensional canvas scene graph.",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "strengths lead, react-konva",
      "display": "Builds interactive scene graphs",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "strengths, react-konva",
      "display": "Compose shapes, images, and groups as React components.",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "strengths lead, react-konva",
      "display": "Exports composed canvas images",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths, react-konva",
      "display": "Use a node ref to export the rendered drawing as PNG.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "limitations lead, react-konva",
      "display": "Manual changes can outlive renders",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "limitations, react-konva",
      "display": "Enable its strict mode when supplied props must be restored on every update.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "Quickstart, react-konva",
      "display": "import {useState} from 'react';\nimport {Stage, Layer, Rect} from 'react-konva';\n\nexport default function App() {\n  const [color, setColor] = useState('#00a8e8');\n  return (\n    <Stage width={600} height={400}>\n      <Layer>\n        <Rect\n          x={50} y={50} width={120} height={80}\n          fill={color} draggable\n          onClick={() => setColor(color === '#00a8e8' ? '#ff7a00' : '#00a8e8')}\n        />\n      </Layer>\n    </Stage>\n  );\n}\n",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "Project function, react-konva",
      "display": "const handleMouseDown = useCallback((e: Konva.KonvaEventObject<MouseEvent>) => {\n    // Handle pan start first\n    if (e.evt.button === 1 || (spacePressed && e.evt.button === 0)) {\n      handlePanStart(e);\n      return;\n    }\n\n    // Skip annotation handling when crop tool is active - CropOverlay handles its own events\n    if (activeTool === 'crop') {\n      return;\n    }\n\n    if (activeTool === 'select') {\n      // Don't deselect if clicking on Transformer handles (resize/rotate anchors)\n      if (isTransformerNode(e.target)) {\n        return;\n      }\n      // Check if we clicked directly on an annotation shape\n      // Annotations have their own onClick handlers that will fire and select them\n      // So we only need to deselect when clicking on non-annotation elements\n      const className = e.target.getClassName();\n\n      // These are annotation shape types that have their own onClick handlers\n      const annotationShapeTypes = ['Arrow', 'Line', 'Rect', 'Ellipse', 'Text', 'Circle'];\n\n      // Check if clicking on an annotation element (Circle is for endpoint handles)\n      const isAnnotationShape = annotationShapeTypes.includes(className);\n\n      // If clicking on a shape, let its onClick handler deal with selection\n      // The shape's onClick will fire after this and select itself\n      if (isAnnotationShape) {\n        // Check if it's a background Rect (not an annotation)\n        // Background Rect is direct child of Layer, annotation Rects are inside Groups\n        const parent = e.target.parent;\n        const isBackgroundRect = className === 'Rect' && parent?.getClassName() === 'Layer';\n        const isBackgroundImage = className === 'Image';\n\n        if (isBackgroundRect || isBackgroundImage) {\n          // Clicked on background - deselect\n          onAnnotationSelect(null);\n        }\n        // Otherwise it's an annotation shape - let its onClick handle it\n        return;\n      }\n\n      // Clicked on Stage, Layer, Group (background), or other non-shape element - deselect\n      onAnnotationSelect(null);\n      return;\n    }\n\n    const stage = e.target.getStage();\n    if (!stage) return;\n\n    const pos = stage.getPointerPosition();\n    if (!pos) return;\n\n    // Convert to unscaled coordinates (accounting for stage position including pan offset and centering)\n    const stageX = stage.x();\n    const stageY = stage.y();\n    const x = (pos.x - stageX) / scale;\n    const y = (pos.y - stageY) / scale;\n\n    // For text tool, create text immediately on click with empty text to trigger edit mode\n    if (activeTool === 'text') {\n      const textAnnotation: Annotation = {\n        id: generateId(),\n        type: 'text',\n        x,\n        y,\n        width: 200,\n        height: 60,\n        stroke: strokeColor || '#ef4444', // Text always needs a color\n        strokeWidth,\n        text: '', // Empty text triggers immediate edit mode\n        fontSize,\n        fontFamily: 'Arial',\n        fontStyle,\n        textAlign: 'left',\n      };\n      onAnnotationAdd(textAnnotation);\n      onAnnotationSelect(textAnnotation.id);\n      return;\n    }\n\n    // For number tool, create number annotation on click\n    if (activeTool === 'number') {\n      const numberAnnotation: Annotation = {\n        id: generateId(),\n        type: 'number',\n        x,\n        y,\n        width: 36, // Default circle diameter\n        height: 36,\n        stroke: strokeColor || '#ef4444', // Number always needs a color\n        strokeWidth,\n        number: nextNumber,\n      };\n      onAnnotationAdd(numberAnnotation);\n      onAnnotationSelect(numberAnnotation.id);\n      return;\n    }\n\n    setIsDrawing(true);\n    setDrawStart({ x, y });\n\n    // At this point, activeTool is one of: 'rectangle', 'ellipse', 'arrow', 'line'\n    const annotationType = activeTool as AnnotationType;\n\n    const newAnnotation: Annotation = {\n      id: generateId(),\n      type: annotationType,\n      x,\n      y,\n      width: 0,\n      height: 0,\n      // Apply stroke color (null/undefined = no stroke for shapes, default to red for lines/arrows)\n      stroke: strokeColor || ((annotationType === 'rectangle' || annotationType === 'ellipse') ? undefined : '#ef4444'),\n      strokeWidth,\n      // Apply fill color for rectangle and ellipse shapes\n      fill: (annotationType === 'rectangle' || annotationType === 'ellipse') && fillColor ? fillColor : undefined,\n      // Apply corner radius for rectangles\n      cornerRadius: annotationType === 'rectangle' ? shapeCornerRadius : undefined,\n      points: annotationType === 'arrow' || annotationType === 'line' ? [0, 0, 0, 0] : undefined,\n    };\n    setTempAnnotation(newAnnotation);\n  }, [activeTool, scale, strokeColor, fillColor, strokeWidth, shapeCornerRadius, fontSize, fontStyle, nextNumber, generateId, onAnnotationSelect, onAnnotationAdd, isTransformerNode, spacePressed, handlePanStart]);\n",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "Project function reference, react-konva",
      "display": "editor-canvas.tsx · handleMouseDown()",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "Project repository, react-konva",
      "display": "mrgoonie/winshot",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Project stars, mrgoonie/winshot",
      "display": "589",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Project push date, mrgoonie/winshot",
      "display": "Mar 2026",
      "asOf": "2026-03-04"
    },
    "F47": {
      "label": "Library name, react-signature-canvas",
      "display": "React Signature Canvas",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Monthly downloads, react-signature-canvas",
      "display": "6.2M",
      "asOf": "2026-11-15"
    },
    "F49": {
      "label": "License, react-signature-canvas",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Package release, react-signature-canvas",
      "display": "1.1.0-alpha.2",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Undated package release, react-signature-canvas",
      "display": "v1.1.0-alpha.2",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Repository stars, react-signature-canvas",
      "display": "653",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Pointer events, react-signature-canvas",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Imperative API refs, react-signature-canvas",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Output formats, react-signature-canvas",
      "display": "PNG",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Install, react-signature-canvas",
      "display": "npm install react-signature-canvas",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "What it does, react-signature-canvas",
      "display": "Wraps signature_pad with a React canvas component.",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "strengths lead, react-signature-canvas",
      "display": "Captures and restores signature strokes",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "strengths, react-signature-canvas",
      "display": "Read point groups with toData and restore them with fromData.",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "strengths lead, react-signature-canvas",
      "display": "Exports trimmed signature images",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "strengths, react-signature-canvas",
      "display": "Trim surrounding whitespace before obtaining a signature image.",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "limitations lead, react-signature-canvas",
      "display": "Resize clears signatures by default",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "limitations, react-signature-canvas",
      "display": "Set clearOnResize=false when resizing should preserve the current signature.",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "Quickstart, react-signature-canvas",
      "display": "import React, { useState, useRef } from 'react'\nimport { createRoot } from 'react-dom/client'\n\nimport SignatureCanvas from '../../src/index.tsx'\n\nimport * as styles from './styles.module.css'\n\nfunction App () {\n  const sigCanvas = useRef(null)\n  const [trimmedDataURL, setTrimmedDataURL] = useState(null)\n\n  function clear () {\n    sigCanvas.current.clear()\n  }\n\n  function trim () {\n    setTrimmedDataURL(sigCanvas.current.getTrimmedCanvas().toDataURL('image/png'))\n  }\n\n  return (\n    <div className={styles.container}>\n      <div className={styles.sigContainer}>\n        <SignatureCanvas canvasProps={{ className: styles.sigCanvas }} ref={sigCanvas} />\n      </div>\n      <div>\n        <button className={styles.buttons} onClick={clear}>Clear</button>\n        <button className={styles.buttons} onClick={trim}>Trim</button>\n      </div>\n      {trimmedDataURL\n        ? <img className={styles.sigImage} alt='signature' src={trimmedDataURL} />\n        : null}\n    </div>\n  )\n}\n\ncreateRoot(document.getElementById('container')).render(<App />)\n",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "Project function, react-signature-canvas",
      "display": "export default function SignatureDialog(props: any) {\n  const [currentTab, setCurrentTab] = useState(tabs[0]);\n  const [typedSignature, setTypedSignature] = useState(\"\");\n  const [signatureEmpty, setSignatureEmpty] = useState(true);\n  // This is a workaround to prevent the canvas from being rendered when the dialog is closed\n  // we also need the debounce to avoid rendering while transitions are occuring.\n  const showCanvas = useDebouncedValue<boolean>(props.open, 1);\n  let signCanvasRef: any | undefined;\n\n  useEffect(() => {\n    setTypedSignature(localStorage.getItem(\"typedSignature\") || \"\");\n  }, []);\n\n  return (\n    <>\n      <Transition.Root show={props.open} as={Fragment}>\n        <Dialog\n          as=\"div\"\n          className=\"relative z-10\"\n          onClose={() => {\n            props.setOpen(false);\n            setCurrent(tabs[0]);\n          }}>\n          <Transition.Child\n            as={Fragment}\n            enter=\"ease-out duration-300\"\n            enterFrom=\"opacity-0\"\n            enterTo=\"opacity-100\"\n            leave=\"ease-in duration-200\"\n            leaveFrom=\"opacity-100\"\n            leaveTo=\"opacity-0\">\n            <div className=\"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity\" />\n          </Transition.Child>\n\n          <div className=\"fixed inset-0 z-10 overflow-y-auto\">\n            <div className=\"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0\">\n              <Transition.Child\n                as={Fragment}\n                enter=\"ease-out duration-300\"\n                enterFrom=\"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95\"\n                enterTo=\"opacity-100 translate-y-0 sm:scale-100\"\n                leave=\"ease-in duration-200\"\n                leaveFrom=\"opacity-100 translate-y-0 sm:scale-100\"\n                leaveTo=\"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95\">\n                <Dialog.Panel className=\"relative min-h-[350px] transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-sm sm:p-6\">\n                  <div className=\"\">\n                    <div className=\"mb-3 border-b border-gray-200\">\n                      <nav className=\"-mb-px flex space-x-8\" aria-label=\"Tabs\">\n                        {tabs.map((tab) => (\n                          <a\n                            key={tab.name}\n                            onClick={() => {\n                              setCurrent(tab);\n                            }}\n                            className={classNames(\n                              tab.current\n                                ? \"border-neon text-neon\"\n                                : \"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700\",\n                              \"group inline-flex cursor-pointer items-center border-b-2 py-4 px-1 text-sm font-medium\"\n                            )}\n                            aria-current={tab.current ? \"page\" : undefined}>\n                            <tab.icon\n                              className={classNames(\n                                tab.current\n                                  ? \"text-neon\"\n                                  : \"text-gray-400 group-hover:text-gray-500\",\n                                \"-ml-0.5 mr-2 h-5 w-5\"\n                              )}\n                              aria-hidden=\"true\"\n                            />\n                            <span>{tab.name}</span>\n                          </a>\n                        ))}\n                      </nav>\n                    </div>\n                    {isCurrentTab(\"Type\") ? (\n                      <div>\n                        <div className=\"my-8 mb-3 border-b border-gray-300\">\n                          <input\n                            value={typedSignature}\n                            onChange={(e) => {\n                              setTypedSignature(e.target.value);\n                            }}\n                            className={classNames(\n                              typedSignature ? \"font-qwigley text-4xl\" : \"\",\n                              \"focus:border-neon focus:ring-neon mt-14 block h-10 w-full text-center align-bottom text-2xl leading-none\"\n                            )}\n                            placeholder=\"Kindly type your name\"\n                          />\n                        </div>\n                        <div className=\"float-right\">\n                          <Button\n                            color=\"secondary\"\n                            onClick={() => {\n                              props.onClose();\n                              props.setOpen(false);\n                              setCurrent(tabs[0]);\n                            }}>\n                            Cancel\n                          </Button>\n                          <Button\n                            className=\"ml-3\"\n                            disabled={!typedSignature}\n                            onClick={() => {\n                              localStorage.setItem(\"typedSignature\", typedSignature);\n                              props.onClose({\n                                type: \"type\",\n                                typedSignature: typedSignature,\n                              });\n                            }}>\n                            Sign\n                          </Button>\n                        </div>\n                      </div>\n                    ) : (\n                      \"\"\n                    )}\n                    {isCurrentTab(\"Draw\") ? (\n                      <div className=\"\" key={props.open ? \"closed\" : \"open\"}>\n                        {showCanvas && (\n                          <SignatureCanvas\n                            ref={(ref) => {\n                              signCanvasRef = ref;\n                            }}\n                            canvasProps={{\n                              className: \"sigCanvas border-b b-2 border-slate w-full h-full mb-3\",\n                            }}\n                            clearOnResize={true}\n                            onEnd={() => {\n                              setSignatureEmpty(signCanvasRef?.isEmpty());\n                            }}\n                          />\n                        )}\n                        <IconButton\n                          className=\"float-left block\"\n                          icon={TrashIcon}\n                          onClick={() => {\n                            signCanvasRef?.clear();\n                            setSignatureEmpty(signCanvasRef?.isEmpty());\n                          }}></IconButton>\n                        <div className=\"float-right mt-10\">\n                          <Button\n                            color=\"secondary\"\n                            onClick={() => {\n                              props.onClose();\n                              props.setOpen(false);\n                              setCurrent(tabs[0]);\n                            }}>\n                            Cancel\n                          </Button>\n                          <Button\n                            className=\"ml-3\"\n                            onClick={() => {\n                              props.onClose({\n                                type: \"draw\",\n                                signatureImage: signCanvasRef.toDataURL(\"image/png\"),\n                              });\n                            }}\n                            disabled={signatureEmpty}>\n                            Sign\n                          </Button>\n                        </div>\n                      </div>\n                    ) : (\n                      \"\"\n                    )}\n                  </div>\n                </Dialog.Panel>\n              </Transition.Child>\n            </div>\n          </div>\n        </Dialog>\n      </Transition.Root>\n    </>\n  );\n\n  function isCurrentTab(tabName: string): boolean {\n    return currentTab.name === tabName;\n  }\n\n  function setCurrent(t: any) {\n    tabs.forEach((tab) => {\n      tab.current = tab.name === t.name;\n    });\n    setCurrentTab(t);\n  }\n}\n",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "Project function reference, react-signature-canvas",
      "display": "signature-dialog.tsx · SignatureDialog()",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "Project repository, react-signature-canvas",
      "display": "documenso/documenso",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "Project stars, documenso/documenso",
      "display": "15.8K",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "Project push date, documenso/documenso",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F70": {
      "label": "Library name, react-sketch-canvas",
      "display": "React Sketch Canvas",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Monthly downloads, react-sketch-canvas",
      "display": "269.3K",
      "asOf": "2026-11-15"
    },
    "F72": {
      "label": "License, react-sketch-canvas",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Package release, react-sketch-canvas",
      "display": "8.0.0",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Undated package release, react-sketch-canvas",
      "display": "v8.0.0",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Repository stars, react-sketch-canvas",
      "display": "567",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Pointer events, react-sketch-canvas",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Imperative API refs, react-sketch-canvas",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Touch input, react-sketch-canvas",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Output formats, react-sketch-canvas",
      "display": "SVG PNG",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Install, react-sketch-canvas",
      "display": "npm install react-sketch-canvas",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "What it does, react-sketch-canvas",
      "display": "Provides an SVG-based freehand vector drawing surface for React.",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "strengths lead, react-sketch-canvas",
      "display": "Includes drawing history controls",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "strengths, react-sketch-canvas",
      "display": "Undo or redo the last drawing action through the component ref.",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "strengths lead, react-sketch-canvas",
      "display": "Exports editable vector drawings",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "strengths, react-sketch-canvas",
      "display": "Export the sketch as inline SVG or a raster image.",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "limitations lead, react-sketch-canvas",
      "display": "Background images need explicit export",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "limitations, react-sketch-canvas",
      "display": "Enable exportWithBackgroundImage to retain the background image in exported output.",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "Quickstart, react-sketch-canvas",
      "display": "import * as React from \"react\";\nimport { ReactSketchCanvas } from \"react-sketch-canvas\";\n\nconst styles = {\n  border: \"0.0625rem solid #9c9c9c\",\n  borderRadius: \"0.25rem\",\n};\n\nconst Canvas = class extends React.Component {\n  constructor(props) {\n    super(props);\n\n    this.canvas = React.createRef();\n  }\n\n  render() {\n    return (\n      <div>\n        <ReactSketchCanvas ref={this.canvas} strokeWidth={5} strokeColor=\"black\" />\n        <button\n          onClick={() => {\n            this.canvas.current\n              .exportImage(\"png\")\n              .then((data) => {\n                console.log(data);\n              })\n              .catch((e) => {\n                console.log(e);\n              });\n          }}\n        >\n          Get Image\n        </button>\n      </div>\n    );\n  }\n};\n",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "Developer need",
      "display": "Interactive two-dimensional editors",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "Why choose react-konva",
      "display": "a declarative shape and group scene graph",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "Developer need in introduction",
      "display": "interactive two-dimensional editors",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "Developer need",
      "display": "Interactive three-dimensional scenes",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "Why choose @react-three/fiber",
      "display": "React components backed by Three.js rendering",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "Developer need in introduction",
      "display": "interactive three-dimensional scenes",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Developer need",
      "display": "Freehand drawings with history",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Why choose react-sketch-canvas",
      "display": "built-in undo and redo controls",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Developer need in introduction",
      "display": "freehand drawings with history",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Developer need",
      "display": "Signature stroke capture",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Why choose react-signature-canvas",
      "display": "signature point groups that can be restored",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Developer need in introduction",
      "display": "signature stroke capture",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Page introduction",
      "display": "React canvas libraries let application developers draw and manipulate graphics.",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "FAQ: Which React canvas library should I choose?",
      "display": "React Konva provides a two-dimensional scene graph.",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "FAQ: Which React canvas library should I choose?",
      "display": "React Three Fiber renders Three.js scenes with React.",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "FAQ: Which React canvas library should I choose?",
      "display": "React Sketch Canvas uses SVG for freehand vector drawing.",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "FAQ: Which React canvas library should I choose?",
      "display": "React Signature Canvas wraps signature_pad.",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "FAQ: Does React Sketch Canvas render through an HTML canvas?",
      "display": "React Sketch Canvas describes itself as an SVG-based freehand vector drawing component.",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "FAQ: Which library includes undo and redo controls?",
      "display": "React Sketch Canvas provides native undo and redo methods.",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "FAQ: Why does a manually dragged Konva object keep its position?",
      "display": "React Konva updates only changed props by default; manual changes remain until their corresponding prop changes.",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "FAQ: Why does a manually dragged Konva object keep its position?",
      "display": "Its strict mode restores supplied props on each update.",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "FAQ: Why does useThree fail outside Canvas?",
      "display": "Fiber hooks rely on Canvas context and must run inside that tree.",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "FAQ: Why is the sketch background missing from an export?",
      "display": "React Sketch Canvas exportWithBackgroundImage controls whether the background image is retained.",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "FAQ: Why does a signature disappear after a window resize?",
      "display": "React Signature Canvas defaults clearOnResize to true.",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "FAQ: Can a signature be stored as editable strokes?",
      "display": "React Signature Canvas exposes point groups through toData and restores them through fromData.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: Can the drawing be exported as PNG or SVG?",
      "display": "React Konva node refs can export PNG images.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Can the drawing be exported as PNG or SVG?",
      "display": "React Sketch Canvas supports an inline SVG export and raster export API.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Can the drawing be exported as PNG or SVG?",
      "display": "The own signature demo exports a trimmed PNG data URL.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "Library name, @react-three/fiber",
      "display": "@react-three/fiber",
      "asOf": "2026-11-20"
    },
    "F118": {
      "label": "Monthly downloads, @react-three/fiber",
      "display": "35.7M",
      "asOf": "2026-11-20"
    },
    "F119": {
      "label": "License, @react-three/fiber",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F120": {
      "label": "Package release, @react-three/fiber",
      "display": "9.8.2",
      "asOf": "2026-11-20"
    },
    "F121": {
      "label": "Package release date, @react-three/fiber",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F122": {
      "label": "Install, @react-three/fiber",
      "display": "npm install three @react-three/fiber",
      "asOf": "2026-11-20"
    },
    "F123": {
      "label": "Quickstart, @react-three/fiber",
      "display": "import React from 'react'\nimport { Canvas } from '@react-three/fiber'\n\nconst App = () => (\n  <Canvas>\n    <pointLight position={[10, 10, 10]} />\n    <mesh>\n      <sphereGeometry />\n      <meshStandardMaterial color=\"hotpink\" />\n    </mesh>\n  </Canvas>\n)\n",
      "asOf": "2026-11-20"
    },
    "F124": {
      "label": "Repository stars, @react-three/fiber",
      "display": "33.8K",
      "asOf": "2026-11-20"
    },
    "F125": {
      "label": "GPU scene renderer, @react-three/fiber",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F126": {
      "label": "SVG scene renderer, @react-three/fiber",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F127": {
      "label": "Task and native abstraction, @react-three/fiber",
      "display": "React renderer for Three.js 3D scenes and render-loop integrations.",
      "asOf": "2026-11-20"
    },
    "F128": {
      "label": "Actual current API argument and return review, @react-three/fiber",
      "display": "{\"status\": \"verified\", \"arguments\": \"Drei integration calls useThree under a Fiber Canvas; the two selectors extract the actual WebGLRenderer and Scene. THREE cube target and camera are separate required Three.js peer APIs. This workflow requires a WebGLRenderer, not an arbitrary WebGPU/custom renderer. near/far/resolution configure the cube camera/target; optional envMap and fog are swapped only for the capture and restored.\", \"return_shape\": \"RootState contains WebGLRenderer and Scene; native camera.update(gl,scene) writes the cube render target, which is returned as fbo alongside camera and update. React useMemo/useEffect are not counted as Fiber calls.\", \"peer_calls\": \"Three.js peer creates WebGLCubeRenderTarget(resolution), sets texture.type before first use, constructs CubeCamera(near,far,fbo), updates with WebGLRenderer and Scene, and disposes fbo during effect cleanup. The hook returns {fbo,camera,update}; it does not return a bare texture. Scene.background and Scene.fog are restored after each update.\"}",
      "asOf": "2026-11-20"
    },
    "F129": {
      "label": "Rendering architecture boundaries, @react-three/fiber",
      "display": "{\"GPU scene renderer\": \"Yes\", \"SVG scene renderer\": \"No\"}",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "Project function, @react-three/fiber",
      "display": "export function useCubeCamera({ resolution = 256, near = 0.1, far = 1000, envMap, fog }: CubeCameraOptions = {}) {\n  const gl = useThree(({ gl }) => gl)\n  const scene = useThree(({ scene }) => scene)\n\n  const fbo = useMemo(() => {\n    const fbo = new WebGLCubeRenderTarget(resolution)\n    fbo.texture.type = HalfFloatType\n    return fbo\n  }, [resolution])\n\n  useEffect(() => {\n    return () => {\n      fbo.dispose()\n    }\n  }, [fbo])\n\n  const camera = useMemo(() => new THREE.CubeCamera(near, far, fbo), [near, far, fbo])\n\n  let originalFog\n  let originalBackground\n  const update = React.useCallback(() => {\n    originalFog = scene.fog\n    originalBackground = scene.background\n    scene.background = envMap || originalBackground\n    scene.fog = fog || originalFog\n    camera.update(gl, scene)\n    scene.fog = originalFog\n    scene.background = originalBackground\n  }, [gl, scene, camera])\n\n  return {\n    fbo,\n    camera,\n    update,\n  }\n}\n",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "Project source file, @react-three/fiber",
      "display": "src/core/CubeCamera.tsx",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Project full_name, @react-three/fiber",
      "display": "pmndrs/drei",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Project stargazers_count, @react-three/fiber",
      "display": "10.2K",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Library name, react-konva",
      "display": "React Konva",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Monthly downloads, react-konva",
      "display": "10.9M",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "License, react-konva",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Package release, react-konva",
      "display": "19.3.2",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Package release date, react-konva",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Install, react-konva",
      "display": "npm install react-konva konva",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Quickstart, react-konva",
      "display": "import {useState} from 'react';\nimport {Stage, Layer, Rect} from 'react-konva';\n\nexport default function App() {\n  const [color, setColor] = useState('#00a8e8');\n  return (\n    <Stage width={600} height={400}>\n      <Layer>\n        <Rect\n          x={50} y={50} width={120} height={80}\n          fill={color} draggable\n          onClick={() => setColor(color === '#00a8e8' ? '#ff7a00' : '#00a8e8')}\n        />\n      </Layer>\n    </Stage>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Repository stars, react-konva",
      "display": "6.4K",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "GPU scene renderer, react-konva",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "SVG scene renderer, react-konva",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Task and native abstraction, react-konva",
      "display": "Declarative 2D scene graph for custom editors and annotation tools.",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Actual current API argument and return review, react-konva",
      "display": "{\"status\": \"verified\", \"arguments\": \"Original handler obtains a Konva Stage through the documented React Konva event target and null-checks both Stage and pointer. x()/y() are no-argument numeric getters. It transforms coordinates using the enclosing Stage position and scale, then updates local annotation state. Parent component supplies the same scale to Stage scaleX/scaleY; zoom must remain nonzero. Native APIs belong to Konva peer, not React hooks.\", \"return_shape\": \"getStage returns a Stage or null; getPointerPosition returns position or null; guarded x/y numeric coordinates feed local annotation vectors. Pan helper is caller code, not an extra SDK call.\"}",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Rendering architecture boundaries, react-konva",
      "display": "{\"GPU scene renderer\": \"No\", \"SVG scene renderer\": \"No\"}",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Project function, react-konva",
      "display": "(e: Konva.KonvaEventObject<MouseEvent>) => {\n    // Handle pan move\n    if (isPanning) {\n      handlePanMove(e);\n      return;\n    }\n\n    if (!isDrawing || !drawStart || !tempAnnotation) return;\n\n    const stage = e.target.getStage();\n    if (!stage) return;\n\n    const pos = stage.getPointerPosition();\n    if (!pos) return;\n\n    // Convert to unscaled coordinates (accounting for stage position including pan offset and centering)\n    const stageX = stage.x();\n    const stageY = stage.y();\n    const x = (pos.x - stageX) / scale;\n    const y = (pos.y - stageY) / scale;\n\n    const width = x - drawStart.x;\n    const height = y - drawStart.y;\n\n    if (tempAnnotation.type === 'arrow' || tempAnnotation.type === 'line') {\n      setTempAnnotation({\n        ...tempAnnotation,\n        points: [0, 0, width, height],\n        width: width,\n        height: height,\n      });\n    } else {\n      // For rectangle and ellipse, handle negative dimensions\n      const newX = width < 0 ? x : drawStart.x;\n      const newY = height < 0 ? y : drawStart.y;\n      setTempAnnotation({\n        ...tempAnnotation,\n        x: newX,\n        y: newY,\n        width: Math.abs(width),\n        height: Math.abs(height),\n      });\n    }\n  }\n",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Project source file, react-konva",
      "display": "frontend/src/components/editor-canvas.tsx",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Project full_name, react-konva",
      "display": "mrgoonie/winshot",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Project stargazers_count, react-konva",
      "display": "589",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Library name, @shopify/react-native-skia",
      "display": "React Native Skia",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Monthly downloads, @shopify/react-native-skia",
      "display": "8.9M",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "License, @shopify/react-native-skia",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Package release, @shopify/react-native-skia",
      "display": "2.14.0",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Package release date, @shopify/react-native-skia",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Install, @shopify/react-native-skia",
      "display": "npm install @shopify/react-native-skia",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Quickstart, @shopify/react-native-skia",
      "display": "import { WithSkiaWeb } from \"@shopify/react-native-skia/lib/module/web\";\nimport { version } from \"canvaskit-wasm/package.json\";\n\nexport default function App() {\n  return (\n    <WithSkiaWeb\n      opts={{ locateFile: (file) => `https://cdn.jsdelivr.net/npm/canvaskit-wasm@${version}/bin/full/${file}` }}\n      getComponent={() => import(\"./MySkiaComponent\")}\n    />\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Official description, @shopify/react-native-skia",
      "display": "Renders React Native graphics with Skia.",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Quickstart source file, @shopify/react-native-skia",
      "display": "apps/docs/docs/getting-started/web.mdx",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Repository stars, @shopify/react-native-skia",
      "display": "8.8K",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "GPU scene renderer, @shopify/react-native-skia",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "SVG scene renderer, @shopify/react-native-skia",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Task and native abstraction, @shopify/react-native-skia",
      "display": "Universal Skia graphics API with browser CanvasKit/WASM path.",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Actual current API argument and return review, @shopify/react-native-skia",
      "display": "{\"status\": \"verified\", \"arguments\": \"Whole tagged2.14 graph path helper imports @shopify/react-native-skia, not the renamed v3 namespace seen on default branch. width,height,steps are numeric; intended host supplies positive width/steps. make→moveTo/quadTo/lineTo→build signatures accept the exact numeric coordinates used. No native-only sensor or gesture API.\", \"return_shape\": \"Make returns a path builder; chainable drawing calls mutate it; build returns SkPath used for rendering. The random bounded y-values are original application logic, not fabricated performance evidence.\"}",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Rendering architecture boundaries, @shopify/react-native-skia",
      "display": "{\"GPU scene renderer\": \"Yes\", \"SVG scene renderer\": \"No\"}",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Web initialization, @shopify/react-native-skia",
      "display": "CanvasKit0.41.0 WASM must load before importing Skia component modules; WithSkiaWeb lazily imports after initialization. Native-platform package downloads are included in the universal counter.",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Library name, react-signature-canvas",
      "display": "react-signature-canvas",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Monthly downloads, react-signature-canvas",
      "display": "6.4M",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "License, react-signature-canvas",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Package release, react-signature-canvas",
      "display": "1.1.0-alpha.2",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Package release date, react-signature-canvas",
      "display": "Mar 2025",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Install, react-signature-canvas",
      "display": "npm i -S react-signature-canvas",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Quickstart, react-signature-canvas",
      "display": "import React from 'react'\nimport { createRoot } from 'react-dom/client'\nimport SignatureCanvas from 'react-signature-canvas'\n\ncreateRoot(\n  document.getElementById('my-react-container')\n).render(\n  <SignatureCanvas penColor='green'\n    canvasProps={{width: 500, height: 200, className: 'sigCanvas'}} />,\n)\n",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Repository stars, react-signature-canvas",
      "display": "653",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "GPU scene renderer, react-signature-canvas",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "SVG scene renderer, react-signature-canvas",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Task and native abstraction, react-signature-canvas",
      "display": "Signature input and signature-pad ref methods, rather than a general editor.",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Actual current API argument and return review, react-signature-canvas",
      "display": "{\"status\": \"verified\", \"arguments\": \"Full SignatureDialog component binds signCanvasRef via SignatureCanvas ref, clears the canvas on reset/tab changes, and exports PNG to the caller-provided onSign callback. clear takes no arguments; toDataURL accepts image/png. Its local setCurrent function is defined later in the same complete component; it is not an undefined setter. Other UI/context components are application dependencies, not extra native calls.\", \"return_shape\": \"toDataURL yields a base64 image data URL consumed as signatureImage; clear returns void. isEmpty/onEnd state and canvas props remain original app behavior. No signature-pad v5 behavior is falsely ascribed to the wrapper’s2.3.2 dependency.\"}",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Rendering architecture boundaries, react-signature-canvas",
      "display": "{\"GPU scene renderer\": \"No\", \"SVG scene renderer\": \"No\"}",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Release channel, react-signature-canvas",
      "display": "npm latest currently points to1.1.0-alpha.2; the release date is2025-03-29.",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Project function, react-signature-canvas",
      "display": "export default function SignatureDialog(props: any) {\n  const [currentTab, setCurrentTab] = useState(tabs[0]);\n  const [typedSignature, setTypedSignature] = useState(\"\");\n  const [signatureEmpty, setSignatureEmpty] = useState(true);\n  // This is a workaround to prevent the canvas from being rendered when the dialog is closed\n  // we also need the debounce to avoid rendering while transitions are occuring.\n  const showCanvas = useDebouncedValue<boolean>(props.open, 1);\n  let signCanvasRef: any | undefined;\n\n  useEffect(() => {\n    setTypedSignature(localStorage.getItem(\"typedSignature\") || \"\");\n  }, []);\n\n  return (\n    <>\n      <Transition.Root show={props.open} as={Fragment}>\n        <Dialog\n          as=\"div\"\n          className=\"relative z-10\"\n          onClose={() => {\n            props.setOpen(false);\n            setCurrent(tabs[0]);\n          }}>\n          <Transition.Child\n            as={Fragment}\n            enter=\"ease-out duration-300\"\n            enterFrom=\"opacity-0\"\n            enterTo=\"opacity-100\"\n            leave=\"ease-in duration-200\"\n            leaveFrom=\"opacity-100\"\n            leaveTo=\"opacity-0\">\n            <div className=\"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity\" />\n          </Transition.Child>\n\n          <div className=\"fixed inset-0 z-10 overflow-y-auto\">\n            <div className=\"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0\">\n              <Transition.Child\n                as={Fragment}\n                enter=\"ease-out duration-300\"\n                enterFrom=\"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95\"\n                enterTo=\"opacity-100 translate-y-0 sm:scale-100\"\n                leave=\"ease-in duration-200\"\n                leaveFrom=\"opacity-100 translate-y-0 sm:scale-100\"\n                leaveTo=\"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95\">\n                <Dialog.Panel className=\"relative min-h-[350px] transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-sm sm:p-6\">\n                  <div className=\"\">\n                    <div className=\"mb-3 border-b border-gray-200\">\n                      <nav className=\"-mb-px flex space-x-8\" aria-label=\"Tabs\">\n                        {tabs.map((tab) => (\n                          <a\n                            key={tab.name}\n                            onClick={() => {\n                              setCurrent(tab);\n                            }}\n                            className={classNames(\n                              tab.current\n                                ? \"border-neon text-neon\"\n                                : \"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700\",\n                              \"group inline-flex cursor-pointer items-center border-b-2 py-4 px-1 text-sm font-medium\"\n                            )}\n                            aria-current={tab.current ? \"page\" : undefined}>\n                            <tab.icon\n                              className={classNames(\n                                tab.current\n                                  ? \"text-neon\"\n                                  : \"text-gray-400 group-hover:text-gray-500\",\n                                \"-ml-0.5 mr-2 h-5 w-5\"\n                              )}\n                              aria-hidden=\"true\"\n                            />\n                            <span>{tab.name}</span>\n                          </a>\n                        ))}\n                      </nav>\n                    </div>\n                    {isCurrentTab(\"Type\") ? (\n                      <div>\n                        <div className=\"my-8 mb-3 border-b border-gray-300\">\n                          <input\n                            value={typedSignature}\n                            onChange={(e) => {\n                              setTypedSignature(e.target.value);\n                            }}\n                            className={classNames(\n                              typedSignature ? \"font-qwigley text-4xl\" : \"\",\n                              \"focus:border-neon focus:ring-neon mt-14 block h-10 w-full text-center align-bottom text-2xl leading-none\"\n                            )}\n                            placeholder=\"Kindly type your name\"\n                          />\n                        </div>\n                        <div className=\"float-right\">\n                          <Button\n                            color=\"secondary\"\n                            onClick={() => {\n                              props.onClose();\n                              props.setOpen(false);\n                              setCurrent(tabs[0]);\n                            }}>\n                            Cancel\n                          </Button>\n                          <Button\n                            className=\"ml-3\"\n                            disabled={!typedSignature}\n                            onClick={() => {\n                              localStorage.setItem(\"typedSignature\", typedSignature);\n                              props.onClose({\n                                type: \"type\",\n                                typedSignature: typedSignature,\n                              });\n                            }}>\n                            Sign\n                          </Button>\n                        </div>\n                      </div>\n                    ) : (\n                      \"\"\n                    )}\n                    {isCurrentTab(\"Draw\") ? (\n                      <div className=\"\" key={props.open ? \"closed\" : \"open\"}>\n                        {showCanvas && (\n                          <SignatureCanvas\n                            ref={(ref) => {\n                              signCanvasRef = ref;\n                            }}\n                            canvasProps={{\n                              className: \"sigCanvas border-b b-2 border-slate w-full h-full mb-3\",\n                            }}\n                            clearOnResize={true}\n                            onEnd={() => {\n                              setSignatureEmpty(signCanvasRef?.isEmpty());\n                            }}\n                          />\n                        )}\n                        <IconButton\n                          className=\"float-left block\"\n                          icon={TrashIcon}\n                          onClick={() => {\n                            signCanvasRef?.clear();\n                            setSignatureEmpty(signCanvasRef?.isEmpty());\n                          }}></IconButton>\n                        <div className=\"float-right mt-10\">\n                          <Button\n                            color=\"secondary\"\n                            onClick={() => {\n                              props.onClose();\n                              props.setOpen(false);\n                              setCurrent(tabs[0]);\n                            }}>\n                            Cancel\n                          </Button>\n                          <Button\n                            className=\"ml-3\"\n                            onClick={() => {\n                              props.onClose({\n                                type: \"draw\",\n                                signatureImage: signCanvasRef.toDataURL(\"image/png\"),\n                              });\n                            }}\n                            disabled={signatureEmpty}>\n                            Sign\n                          </Button>\n                        </div>\n                      </div>\n                    ) : (\n                      \"\"\n                    )}\n                  </div>\n                </Dialog.Panel>\n              </Transition.Child>\n            </div>\n          </div>\n        </Dialog>\n      </Transition.Root>\n    </>\n  );\n\n  function isCurrentTab(tabName: string): boolean {\n    return currentTab.name === tabName;\n  }\n\n  function setCurrent(t: any) {\n    tabs.forEach((tab) => {\n      tab.current = tab.name === t.name;\n    });\n    setCurrentTab(t);\n  }\n}\n",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Project source file, react-signature-canvas",
      "display": "apps/web/components/editor/signature-dialog.tsx",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Project full_name, react-signature-canvas",
      "display": "documenso/documenso",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Project stargazers_count, react-signature-canvas",
      "display": "15.8K",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Library name, @excalidraw/excalidraw",
      "display": "Excalidraw",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Monthly downloads, @excalidraw/excalidraw",
      "display": "5.2M",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "License, @excalidraw/excalidraw",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Package release, @excalidraw/excalidraw",
      "display": "0.18.1",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Package release date, @excalidraw/excalidraw",
      "display": "Apr 2026",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Install, @excalidraw/excalidraw",
      "display": "npm install react react-dom @excalidraw/excalidraw",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Quickstart, @excalidraw/excalidraw",
      "display": "import { Excalidraw } from \"@excalidraw/excalidraw\";\nimport \"@excalidraw/excalidraw/index.css\";\n\nexport default function App() {\n  return (\n    <div style={{ height: \"100vh\" }}>\n      <Excalidraw />\n    </div>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Official description, @excalidraw/excalidraw",
      "display": "Provides Excalidraw as a React component.",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Quickstart source file, @excalidraw/excalidraw",
      "display": "packages/excalidraw/README.md",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Repository stars, @excalidraw/excalidraw",
      "display": "135.9K",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "GPU scene renderer, @excalidraw/excalidraw",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "SVG scene renderer, @excalidraw/excalidraw",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Task and native abstraction, @excalidraw/excalidraw",
      "display": "Embeddable drawing editor with included UI.",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Actual current API argument and return review, @excalidraw/excalidraw",
      "display": "{\"status\": \"verified\", \"arguments\": \"Bounded whole unloadHandler from the authored Excalidraw application flushes local saves and obtains current nondeleted elements before asking its local file store whether a browser exit would lose pending files. Method takes no arguments. The enclosing useEffect installs and cleans the native beforeunload handler. LocalData and preventUnload are original app integrations, not SDK exports.\", \"return_shape\": \"getSceneElements returns scene element collection consumed intact by the local shouldPreventUnload predicate. This is an unsaved-exit workflow rather than duplicate embedding quickstart.\"}",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Rendering architecture boundaries, @excalidraw/excalidraw",
      "display": "{\"GPU scene renderer\": \"No\", \"SVG scene renderer\": \"No\"}",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Library name, tldraw",
      "display": "tldraw",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Monthly downloads, tldraw",
      "display": "2.8M",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "License, tldraw",
      "display": "tldraw license (production license required)",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Package release, tldraw",
      "display": "5.6.1",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Package release date, tldraw",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Install, tldraw",
      "display": "npm install tldraw",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Quickstart, tldraw",
      "display": "import { Tldraw } from 'tldraw'\nimport 'tldraw/tldraw.css'\n\nexport default function App() {\n\treturn (\n\t\t<div style={{ position: 'fixed', inset: 0 }}>\n\t\t\t<Tldraw />\n\t\t</div>\n\t)\n}\n",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Official description, tldraw",
      "display": "Provides a small drawing editor.",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Quickstart source file, tldraw",
      "display": "quick-start.mdx",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Repository stars, tldraw",
      "display": "51.5K",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "GPU scene renderer, tldraw",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "SVG scene renderer, tldraw",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Task and native abstraction, tldraw",
      "display": "Complete drawing canvas with tools, local persistence, and separate sync integration.",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Actual current API argument and return review, tldraw",
      "display": "{\"status\": \"verified\", \"arguments\": \"Whole original example application helper takes a live Editor and query string, handles empty search, loops current page shapes, asks the matching ShapeUtil for text, guards optional text, and case-insensitively sorts actual matches. Shapes are passed intact to getShapeUtil/getText, not just IDs.\", \"return_shape\": \"Current-page result is TLShape[]; getShapeUtil returns the matching utility; getText returns optional text, guarded with optional chaining before lowercasing. MIT grant scoped at apps/examples overrides the proprietary SDK root for this authored example application.\"}",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Rendering architecture boundaries, tldraw",
      "display": "{\"GPU scene renderer\": \"No\", \"SVG scene renderer\": \"Yes\"}",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "SDK and example license distinction, tldraw",
      "display": "{\"SDK\": \"tldraw license; no production deployment without separate permission/key\", \"selected authored example\": \"apps/examples/LICENSE.md MIT\"}",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Library name, react-zdog",
      "display": "react-zdog",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Monthly downloads, react-zdog",
      "display": "1.6M",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "License, react-zdog",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Package release, react-zdog",
      "display": "1.2.2",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Package release date, react-zdog",
      "display": "Aug 2023",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Install, react-zdog",
      "display": "npm install zdog react-zdog",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Quickstart, react-zdog",
      "display": "import { Illustration, Shape } from \"react-zdog\";\n\nexport default function App() {\n  return (\n    <Illustration zoom={8}>\n      <Shape stroke={20} color=\"lightblue\" rotate={{ x: Math.PI }} />\n    </Illustration>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Official description, react-zdog",
      "display": "Renders zdog scenes through a React Fiber renderer.",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Quickstart source file, react-zdog",
      "display": "readme.md",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Repository stars, react-zdog",
      "display": "454",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "GPU scene renderer, react-zdog",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "SVG scene renderer, react-zdog",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Task and native abstraction, react-zdog",
      "display": "Pseudo-3D Zdog scenes rendered through SVG or Canvas.",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Actual current API argument and return review, react-zdog",
      "display": "{\"status\": \"verified\", \"arguments\": \"Whole DragControl application component sits within Illustration frameloop=demand. It gets native state and invalidator, waits for state.illu, and assigns the underlying Zdog Illustration onDragMove to invalidate. React useEffect is not a native call. This is an authored demo application, not the renderer implementation despite Test.jsx being another demo filename.\", \"return_shape\": \"useZdog supplies state.illu; useInvalidate returns a no-argument updateRenderGraph callback. Exact public exports and current source hooks verified. React18 is the published package’s declared host family; no claim of verified React19 support.\"}",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Rendering architecture boundaries, react-zdog",
      "display": "{\"GPU scene renderer\": \"No\", \"SVG scene renderer\": \"Yes\"}",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Library name, @pixi/react",
      "display": "@pixi/react",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Monthly downloads, @pixi/react",
      "display": "570.9K",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "License, @pixi/react",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Package release, @pixi/react",
      "display": "8.0.5",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Package release date, @pixi/react",
      "display": "Dec 2025",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Install, @pixi/react",
      "display": "npm install pixi.js@^8.2.6 @pixi/react",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Quickstart, @pixi/react",
      "display": "import {Application, extend} from '@pixi/react'\nimport {Graphics} from 'pixi.js'\nimport {useCallback} from 'react'\nextend({Graphics})\n\nconst MyComponent = () => {\n  const draw = useCallback(graphics => {\n    graphics.clear()\n    graphics.setFillStyle({color: 'red'})\n    graphics.rect(0, 0, 100, 100)\n    graphics.fill()\n  }, [])\n  return <Application><pixiGraphics draw={draw} /></Application>\n}\n",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Official description, @pixi/react",
      "display": "Writes PixiJS applications in a declarative React style.",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Quickstart source file, @pixi/react",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Repository stars, @pixi/react",
      "display": "2.9K",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "GPU scene renderer, @pixi/react",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "SVG scene renderer, @pixi/react",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Task and native abstraction, @pixi/react",
      "display": "Declarative React binding to the PixiJS2D rendering engine.",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Actual current API argument and return review, @pixi/react",
      "display": "{\"status\": \"verified\", \"arguments\": \"Original BunnySprite component is hosted by the same-commit App that calls extend({Container,Graphics,Sprite}) and renders Application. It asynchronously loads a PNG through the required PixiJS8 peer, initializes texture to Texture.EMPTY, and supplies Sprite texture,anchor,x,y,scale,eventMode and pointer handlers. Pixi peer loader is explicitly distinguished from wrapper API. Unused useTick import is not counted.\", \"return_shape\": \"Assets.load(PNGurl) resolves a texture accepted by Sprite texture. Native registered pixiSprite creates the peer Sprite; pointer handlers mutate React state, not claimed native methods.\"}",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Rendering architecture boundaries, @pixi/react",
      "display": "{\"GPU scene renderer\": \"Yes\", \"SVG scene renderer\": \"No\"}",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best React canvas libraries React Konva React Three Fiber React Sketch Canvas react-signature-canvas code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
