{
  "id": "task_libraries:file-upload/react",
  "path": "/exapedia/react-file-upload-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "React file upload libraries",
  "answer": [
    {
      "t": "text",
      "text": "React file upload libraries let users pick or drop files and send them to a server or storage service. A selection library hands the chosen files to the application rather than uploading them itself. These libraries let apps accept documents, images, and media from users."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "React file upload 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-dropzone",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F131"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#rc-component-upload",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F147"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#uppy-react",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F165"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mantine-dropzone",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F177"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#use-file-picker",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F195"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-filepond",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F213"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#uploadthing-react",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F231"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-drag-drop-files",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F247"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ]
            ]
          ],
          "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-dropzone",
          "label": [
            {
              "t": "text",
              "text": "react-dropzone"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F132"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "HTTP uploads",
            "File size limits",
            "Image thumbnails"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#react-dropzone",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F131"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#rc-component-upload",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F147"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#uppy-react",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F165"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mantine-dropzone",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F177"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#use-file-picker",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F195"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-filepond",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F213"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#uploadthing-react",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F231"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-drag-drop-files",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F247"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F257"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F258"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "react-dropzone",
          "name": [
            {
              "t": "fact",
              "fact": "F131"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/react-dropzone/react-dropzone"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-dropzone"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/react-dropzone/react-dropzone/contents/src/index.tsx"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/react-dropzone/react-dropzone/contents/src/index.tsx",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F131"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/supabase/supabase",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F145"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "const Dropzone = ({\n  className,\n  children,\n  getRootProps,\n  getInputProps,\n  ...restProps\n}: PropsWithChildren<DropzoneProps>) => {\n  const isSuccess = restProps.isSuccess\n  const isActive = restProps.isDragActive\n  const isInvalid =\n    (restProps.isDragActive && restProps.isDragReject) ||\n    (restProps.errors.length > 0 && !restProps.isSuccess) ||\n    restProps.files.some((file) => file.errors.length !== 0)\n\n  return (\n    <DropzoneContext.Provider value={{ ...restProps }}>\n      <div\n        {...getRootProps({\n          className: cn(\n            'border-2 border-gray-300 rounded-lg p-6 text-center bg-card transition-colors duration-300 text-foreground',\n            className,\n            isSuccess ? 'border-solid' : 'border-dashed',\n            isActive && 'border-primary bg-primary/10',\n            isInvalid && 'border-destructive bg-destructive/10'\n          ),\n        })}\n      >\n        <input {...getInputProps()} />\n        {children}\n      </div>\n    </DropzoneContext.Provider>\n  )\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/supabase/supabase/blob/a66aa7417a73bad89d4c3340d6590d7ca9f01833/apps/ui-library/registry/default/blocks/dropzone/components/dropzone.tsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20projects%20using%20react-dropzone%20for%20file%20uploads%2C%20custom%20dropzones%2C%20progress%2C%20presigned%20uploads%2C%20typed%20file%20routes%20and%20transfer%20cancellation&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": "F131"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import React from \"react\";\nimport { createRoot } from \"react-dom/client\";\nimport { useDropzone } from \"react-dropzone\";\nfunction Picker() { const { getRootProps, getInputProps } = useDropzone({ onDrop: (files) => console.log(files) }); return <div {...getRootProps()}><input {...getInputProps()} />Drop or choose files</div>; }\nconst host = document.createElement(\"div\"); document.body.append(host);\ncreateRoot(host).render(<Picker />);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/react-dropzone/react-dropzone/contents/src/index.tsx",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F136"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "rc-component-upload",
          "name": [
            {
              "t": "fact",
              "fact": "F147"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/react-component/upload"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@rc-component/upload"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/react-component/upload/readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F154"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/react-component/upload/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F147"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/ant-design/ant-design",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F163"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "const handleRemove = (file: UploadFile) => {\n  let currentFile: UploadFile;\n  Promise.resolve(isFunction(onRemove) ? onRemove(file) : onRemove).then((ret) => {\n    // Prevent removing file\n    if (ret === false) {\n      return;\n    }\n\n    const currentFileList = getMergedFileList();\n    const removedFileList = removeFileItem(file, currentFileList);\n\n    if (removedFileList) {\n      currentFile = { ...file, status: 'removed' };\n      currentFileList.forEach((item) => {\n        const matchKey = currentFile.uid !== undefined ? 'uid' : 'name';\n        if (item[matchKey] === currentFile[matchKey] && !Object.isFrozen(item)) {\n          item.status = 'removed';\n        }\n      });\n      uploadRef.current?.abort(currentFile as RcFile);\n\n      onInternalChange(currentFile, removedFileList);\n    }\n  });\n};\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/ant-design/ant-design/blob/ee8db7734e6a4d2387a55324e7e35eecb5535e72/components/upload/Upload.tsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F162"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40rc-component/upload%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F147"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import React from \"react\";\nimport { createRoot } from \"react-dom/client\";\nimport Upload from \"@rc-component/upload\";\nconst host = document.createElement(\"div\"); document.body.append(host);\ncreateRoot(host).render(<Upload action=\"/upload\" onSuccess={(body) => console.log(body)}><button type=\"button\">Choose and upload</button></Upload>);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/react-component/upload/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F152"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "uppy-react",
          "name": [
            {
              "t": "fact",
              "fact": "F165"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/transloadit/uppy"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@uppy/react"
            },
            {
              "label": "Docs",
              "href": "https://uppy.io/docs/react/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F38"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://uppy.io/docs/react/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F165"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F46"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import React from \"react\";\nimport { createRoot } from \"react-dom/client\";\nimport Uppy from \"@uppy/core\";\nimport Dashboard from \"@uppy/react/dashboard\";\nimport \"@uppy/core/css/style.min.css\";\nimport \"@uppy/dashboard/css/style.min.css\";\nconst uppy = new Uppy();\nconst host = document.createElement(\"div\"); document.body.append(host);\ncreateRoot(host).render(<Dashboard uppy={uppy} hideUploadButton />);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://uppy.io/docs/react/",
                  "label": [
                    {
                      "t": "text",
                      "text": "uppy-transloadit.mdx"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20projects%20using%20%40uppy/react%20for%20file%20uploads%2C%20custom%20dropzones%2C%20progress%2C%20presigned%20uploads%2C%20typed%20file%20routes%20and%20transfer%20cancellation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F165"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F170"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "mantine-dropzone",
          "name": [
            {
              "t": "fact",
              "fact": "F177"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mantinedev/mantine"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@mantine/dropzone"
            },
            {
              "label": "Docs",
              "href": "https://mantine.dev/x/dropzone/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F184"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://mantine.dev/x/dropzone/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F177"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/civitai/civitai",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F193"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export function ImageDropzone({\n  disabled: initialDisabled,\n  max = 10,\n  hasError,\n  onDrop,\n  count,\n  label,\n  description,\n  accept = IMAGE_MIME_TYPE,\n  maxSize = constants.mediaUpload.maxImageFileSize,\n  onExceedMax,\n  allowExternalImageDrop,\n  onDropCapture,\n  children,\n  iconSize = 50,\n  ...props\n}: Props) {\n  const theme = useMantineTheme();\n  const colorScheme = useComputedColorScheme('dark');\n  const [error, setError] = useState('');\n\n  const canAddFiles = max - count > 0;\n  const disabled = !canAddFiles || initialDisabled;\n  // Replaces image/* and video/* with .jpg, .png, .mp4, etc.\n  // zips do not show up correctly without these extra 2 \"zip\" files, but we don't want to show them\n  const fileExtensions = accept\n    .filter((t) => t !== MIME_TYPES.xZipCompressed && t !== MIME_TYPES.xZipMultipart)\n    .map((type) => type.replace(/.*\\//, '.'));\n  const allowsVideo = VIDEO_MIME_TYPE.some((a) => accept.includes(a));\n\n  const handleDrop = (files: File[]) => {\n    const hasLargeImageFiles = files.some(\n      (file) => IMAGE_MIME_TYPE.includes(file.type as IMAGE_MIME_TYPE) && file.size > maxSize\n    );\n    if (hasLargeImageFiles) return setError(`Images should not exceed ${formatBytes(maxSize)}`);\n\n    setError('');\n\n    if (!!onExceedMax && files.length > max - count) {\n      onExceedMax();\n    }\n\n    onDrop?.(files.slice(0, max - count));\n  };\n\n  const handleDropCapture = async (e: DragEvent) => {\n    const url = e.dataTransfer.getData('text/uri-list');\n    if (!url.length || (!allowExternalImageDrop && !isOrchestratorUrl(url))) return;\n    onDropCapture ? onDropCapture(url) : handleDropCaptureUrl(url);\n  };\n\n  async function handleDropCaptureUrl(url: string) {\n    const blob = await fetchBlob(url);\n    if (!blob) return;\n    const file = new File([blob], url.substring(url.lastIndexOf('/')), { type: blob.type });\n    handleDrop([file]);\n  }\n\n  return (\n    <>\n      <Dropzone\n        {...props}\n        accept={accept}\n        className={clsx('flex size-full items-center justify-center', classes.dropzone, {\n          [classes.error]: hasError || !!error,\n          'mb-1': hasError || !!error,\n        })}\n        disabled={!canAddFiles || disabled}\n        onDrop={handleDrop}\n        onDropCapture={handleDropCapture}\n        useFsAccessApi={!isAndroidDevice()}\n      >\n        <div className=\"pointer-events-none flex min-h-28 flex-col items-center justify-center gap-2\">\n          <Dropzone.Accept>\n            <IconUpload\n              size={iconSize}\n              stroke={1.5}\n              color={theme.colors[theme.primaryColor][colorScheme === 'dark' ? 4 : 6]}\n            />\n          </Dropzone.Accept>\n          <Dropzone.Reject>\n            <IconX\n              size={iconSize}\n              stroke={1.5}\n              color={theme.colors.red[colorScheme === 'dark' ? 4 : 6]}\n            />\n          </Dropzone.Reject>\n          <Dropzone.Idle>\n            <IconPhoto size={iconSize} stroke={1.5} />\n          </Dropzone.Idle>\n\n          {children ?? (\n            <div className=\"flex flex-col items-center gap-1\">\n              <Text size=\"xl\" inline align=\"center\">\n                {label ?? 'Drag images here or click to select files'}\n              </Text>\n              {description}\n              {(!max || max > 1) && (\n                <Text size=\"sm\" c=\"dimmed\" mt={7} inline>\n                  {max ? `Attach up to ${max} files` : 'Attach as many files as you like'}\n                </Text>\n              )}\n              {fileExtensions.length > 0 && (\n                <Text size=\"sm\" c=\"dimmed\" inline>\n                  {`Accepted file types: ${fileExtensions.join(', ')}`}\n                </Text>\n              )}\n              <Text size=\"sm\" c=\"dimmed\" inline>\n                {`Images cannot exceed ${formatBytes(maxSize)} `}\n              </Text>\n              {allowsVideo && (\n                <Text size=\"sm\" c=\"dimmed\" inline>\n                  {`Videos cannot exceed ${formatBytes(\n                    constants.mediaUpload.maxVideoFileSize\n                  )}, 4K resolution, or ${\n                    constants.mediaUpload.maxVideoDurationSeconds\n                  } seconds in duration`}\n                </Text>\n              )}\n            </div>\n          )}\n        </div>\n      </Dropzone>\n      {error && <Input.Error className=\"mt-1\">{error}</Input.Error>}\n    </>\n  );\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/civitai/civitai/blob/f0c32bad7370f2524d4a33176da49289ab221efc/src/components/Image/ImageDropzone/ImageDropzone.tsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F192"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40mantine/dropzone%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F177"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import React from \"react\";\nimport { createRoot } from \"react-dom/client\";\nimport { MantineProvider } from \"@mantine/core\";\nimport { Dropzone } from \"@mantine/dropzone\";\nimport \"@mantine/core/styles.css\";\nimport \"@mantine/dropzone/styles.css\";\nconst host = document.createElement(\"div\"); document.body.append(host);\ncreateRoot(host).render(<MantineProvider><Dropzone maxSize={5 * 1024 * 1024} onDrop={(files) => console.log(files)}>Drop or choose files</Dropzone></MantineProvider>);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://mantine.dev/x/dropzone/",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F182"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "use-file-picker",
          "name": [
            {
              "t": "fact",
              "fact": "F195"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Jaaneek/useFilePicker"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/use-file-picker"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/Jaaneek/useFilePicker/readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F202"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/Jaaneek/useFilePicker/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F195"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/udecode/plate-playground-template",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F211"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export function ImportToolbarButton(props: DropdownMenuProps) {\n  const editor = useEditorRef();\n  const [open, setOpen] = React.useState(false);\n\n  const getFileNodes = (text: string, type: ImportType) => {\n    if (type === 'html') {\n      const editorNode = getEditorDOMFromHtmlString(text);\n      const nodes = editor.api.html.deserialize({\n        element: editorNode,\n      });\n\n      return nodes;\n    }\n\n    if (type === 'markdown') {\n      return editor.getApi(MarkdownPlugin).markdown.deserialize(text);\n    }\n\n    return [];\n  };\n\n  const { openFilePicker: openMdFilePicker } = useFilePicker({\n    accept: ['.md', '.mdx'],\n    multiple: false,\n    onFilesSelected: async ({ plainFiles }) => {\n      const text = await plainFiles[0].text();\n\n      const nodes = getFileNodes(text, 'markdown');\n\n      editor.tf.insertNodes(nodes);\n    },\n  });\n\n  const { openFilePicker: openHtmlFilePicker } = useFilePicker({\n    accept: ['text/html'],\n    multiple: false,\n    onFilesSelected: async ({ plainFiles }) => {\n      const text = await plainFiles[0].text();\n\n      const nodes = getFileNodes(text, 'html');\n\n      editor.tf.insertNodes(nodes);\n    },\n  });\n\n  const { openFilePicker: openDocxFilePicker } = useFilePicker({\n    accept: ['.docx'],\n    multiple: false,\n    onFilesSelected: async ({ plainFiles }) => {\n      const arrayBuffer = await plainFiles[0].arrayBuffer();\n      const result = await importDocx(editor, arrayBuffer);\n\n      editor.tf.insertNodes(result.nodes as typeof editor.children);\n    },\n  });\n\n  return (\n    <DropdownMenu modal={false} onOpenChange={setOpen} open={open} {...props}>\n      <DropdownMenuTrigger asChild>\n        <ToolbarButton isDropdown pressed={open} tooltip=\"Import\">\n          <ArrowUpToLineIcon className=\"size-4\" />\n        </ToolbarButton>\n      </DropdownMenuTrigger>\n\n      <DropdownMenuContent align=\"start\">\n        <DropdownMenuGroup>\n          <DropdownMenuItem\n            onSelect={() => {\n              openHtmlFilePicker();\n            }}\n          >\n            Import from HTML\n          </DropdownMenuItem>\n\n          <DropdownMenuItem\n            onSelect={() => {\n              openMdFilePicker();\n            }}\n          >\n            Import from Markdown\n          </DropdownMenuItem>\n\n          <DropdownMenuItem\n            onSelect={() => {\n              openDocxFilePicker();\n            }}\n          >\n            Import from Word\n          </DropdownMenuItem>\n        </DropdownMenuGroup>\n      </DropdownMenuContent>\n    </DropdownMenu>\n  );\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/udecode/plate-playground-template/blob/8d7c29a1d13e77c43e0d75ebfcd217311dc1456c/src/components/ui/import-toolbar-button.tsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F210"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=use-file-picker%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F195"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import React from \"react\";\nimport { createRoot } from \"react-dom/client\";\nimport { useFilePicker } from \"use-file-picker\";\nfunction Picker() { const { openFilePicker } = useFilePicker({ accept: \".txt\", multiple: false, onFilesSelected: ({ plainFiles }) => console.log(plainFiles) }); return <button onClick={() => openFilePicker()}>Choose a text file</button>; }\nconst host = document.createElement(\"div\"); document.body.append(host);\ncreateRoot(host).render(<Picker />);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/Jaaneek/useFilePicker/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F200"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-filepond",
          "name": [
            {
              "t": "fact",
              "fact": "F213"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pqina/react-filepond"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-filepond"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/pqina/react-filepond/readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F220"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/pqina/react-filepond/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F213"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/semperai/amica",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F229"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export default function Share() {\n  const { t } = useTranslation();\n  const { viewer } = useContext(ViewerContext);\n\n  const [description, setDescription] = useState('');\n  const [name, setName] = useState('');\n  const [systemPrompt, setSystemPrompt] = useState('');\n  const [visionSystemPrompt, setVisionSystemPrompt] = useState('');\n  const [bgUrl, setBgUrl] = useState('');\n  const [youtubeVideoId, setYoutubeVideoId] = useState('');\n  const [vrmUrl, setVrmUrl] = useState('');\n  const [vrmHash, setVrmHash] = useState('');\n  const [vrmSaveType, setVrmSaveType] = useState('');\n  const [animationUrl, setAnimationUrl] = useState('');\n  const [voiceUrl, setVoiceUrl] = useState('');\n\n  const [bgFiles, setBgFiles] = useState([]);\n  const [vrmFiles, setVrmFiles] = useState([]);\n  const [animationFiles, setAnimationFiles] = useState([]);\n  const [voiceFiles, setVoiceFiles] = useState([]);\n\n  const [vrmLoaded, setVrmLoaded] = useState(false);\n  const [vrmLoadedFromIndexedDb, setVrmLoadedFromIndexedDb] = useState(false);\n  const [vrmLoadingFromIndexedDb, setVrmLoadingFromIndexedDb] = useState(false);\n  const [showUploadLocalVrmMessage, setShowUploadLocalVrmMessage] = useState(false);\n\n\n  const [sqid, setSqid] = useState('');\n\n  const vrmUploadFilePond = useRef<FilePond | null>(null);\n\n  const delay = (ms: number) => new Promise(res => setTimeout(res, ms));\n\n  async function uploadVrmFromIndexedDb() {\n    const blob = await vrmDataProvider.getItemAsBlob(vrmHash);\n    if (vrmUploadFilePond.current && blob) {\n      vrmUploadFilePond.current.addFile(blob).then(() => { setVrmLoadingFromIndexedDb(true); });\n    } else {\n      console.log(\"FilePond not loaded, retry in 0.5 sec\");\n      delay(500).then(uploadVrmFromIndexedDb);\n    }\n  }\n\n  useEffect(() => {\n    setName(config('name'));\n    setSystemPrompt(config('system_prompt'));\n    setVisionSystemPrompt(config('vision_system_prompt'));\n    if (!config('bg_url').startsWith('data')) {\n      setBgUrl(config('bg_url'));\n    }\n    setYoutubeVideoId(config('youtube_videoid'));\n    setVrmUrl(config('vrm_url'));\n    setVrmHash(config('vrm_hash'));\n    setVrmSaveType(config('vrm_save_type'));\n    setAnimationUrl(config('animation_url'));\n    setVoiceUrl(config('voice_url'));\n  }, []);\n\n  useEffect(() => {\n    if (vrmLoadedFromIndexedDb) {\n      vrmDataProvider.addItemUrl(vrmHash, vrmUrl);\n      updateConfig('vrm_url', vrmUrl);\n      updateConfig('vrm_save_type', 'web');\n      setVrmSaveType('web');\n    }\n  }, [vrmLoadedFromIndexedDb]);\n\n  useEffect(() => {\n    setShowUploadLocalVrmMessage(vrmSaveType == 'local' && !vrmLoadedFromIndexedDb && !vrmLoadingFromIndexedDb);\n  }, [vrmSaveType, vrmLoadedFromIndexedDb, vrmLoadingFromIndexedDb]);\n\n  const [isRegistering, setIsRegistering] = useState(false);\n  function registerCharacter() {\n    setIsRegistering(true);\n\n    async function register() {\n      const res = await fetch(`${process.env.NEXT_PUBLIC_AMICA_API_URL}/api/add_character`, {\n        method: 'POST',\n        headers: {\n          'Content-Type': 'application/json',\n        },\n        body: JSON.stringify({\n          description,\n          name,\n          system_prompt: systemPrompt,\n          vision_system_prompt: visionSystemPrompt,\n          bg_url: bgUrl,\n          youtube_videoid: youtubeVideoId,\n          vrm_url: vrmUrl,\n          animation_url: animationUrl,\n          voice_url: voiceUrl,\n        }),\n      });\n\n      const data = await res.json();\n      console.log('response', data);\n\n      setSqid(data.sqid);\n\n      setIsRegistering(false);\n    }\n\n    register();\n  }\n\n  const router = useRouter();\n\n  const handleCloseIcon = () => {\n    router.push('/');\n  };\n\n  useEffect(() => {\n    document.body.style.backgroundImage = `url(/liquid-metaballs.jpg)`;\n    document.body.style.backgroundSize = `cover`;\n    document.body.style.backgroundRepeat = `no-repeat`;\n    document.body.style.backgroundPosition = `bottom right`;\n  }, []);\n\n  return (\n    \n    <div className=\"p-10 md:p-20\">\n      <style jsx global>\n        {`\n        body {\n          background-image: url('/liquid-metaballs.jpg');\n          background-size: cover;\n          background-repeat: no-repeat;\n          background-position: bottom right;\n        }\n      `}\n      </style>\n      <div className=\"fixed top-0 left-0 w-full max-h-full text-black text-xs text-left z-20\">\n        <div className=\"p-2 bg-white\">\n            <IconButton\n              iconName=\"24/Close\"\n              isProcessing={false}\n              className=\"bg-secondary hover:bg-secondary-hover active:bg-secondary-active\"\n              onClick={handleCloseIcon}/>\n        </div>\n      </div>\n      <div className=\"col-span-3 max-w-md rounded-xl mt-4\">\n        <h1 className=\"text-lg\">{t(\"Character Creator\")}</h1>\n      </div>\n\n      <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\n        <div>\n          <div className=\"sm:col-span-3 max-w-md rounded-xl mt-4\">\n            <label className=\"block text-sm font-medium leading-6 text-gray-900\">\n              {t(\"Description\")}\n            </label>\n            <div className=\"mt-2\">\n              <textarea\n                rows={4}\n                className=\"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6\"\n                value={description}\n                readOnly={!!sqid}\n                placeholder={t(\"Provide a description of the character\")}\n                onChange={(e) => {\n                  setDescription(e.target.value);\n                }}\n              />\n            </div>\n          </div>\n\n          <div className=\"sm:col-span-3 max-w-md rounded-xl mt-4\">\n            <label className=\"block text-sm font-medium leading-6 text-gray-900\">\n              {t(\"Name\")}\n            </label>\n            <div className=\"mt-2\">\n              <input\n                type=\"text\"\n                className=\"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6\"\n                value={name}\n                readOnly={!!sqid}\n                onChange={(e) => {\n                  setName(e.target.value);\n                }}\n              />\n            </div>\n          </div>\n\n          <div className=\"sm:col-span-3 max-w-md rounded-xl mt-4\">\n            <label className=\"block text-sm font-medium leading-6 text-gray-900\">\n              {t(\"System Prompt\")}\n            </label>\n            <div className=\"mt-2\">\n              <textarea\n                rows={4}\n                className=\"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6\"\n                value={systemPrompt}\n                readOnly={!!sqid}\n                onChange={(e) => {\n                  setSystemPrompt(e.target.value);\n                }}\n              />\n            </div>\n          </div>\n\n          <div className=\"sm:col-span-3 max-w-md rounded-xl mt-4\">\n            <label className=\"block text-sm font-medium leading-6 text-gray-900\">\n              {t(\"Vision System Prompt\")}\n            </label>\n            <div className=\"mt-2\">\n              <textarea\n                rows={4}\n                className=\"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6\"\n                value={visionSystemPrompt}\n                readOnly={!!sqid}\n                onChange={(e) => {\n                  setVisionSystemPrompt(e.target.value);\n                }}\n              />\n            </div>\n          </div>\n\n          <div className=\"sm:col-span-3 max-w-md rounded-xl mt-4\">\n            <label className=\"block text-sm font-medium leading-6 text-gray-900\">\n              {t(\"Background URL\")}\n            </label>\n            <div className=\"mt-2\">\n              <input\n                type=\"text\"\n                className=\"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6\"\n                value={bgUrl}\n                readOnly={!!sqid}\n                onChange={(e) => {\n                  setBgUrl(e.target.value);\n                }}\n              />\n              <FilePond\n                files={bgFiles}\n                // this is done to remove type error\n                // filepond is not typed properly\n                onupdatefiles={(files: any) => {\n                  setBgFiles(files);\n                }}\n                server={`${process.env.NEXT_PUBLIC_AMICA_API_URL}/api/upload?type=bgimg`}\n                name=\"file\"\n                labelIdle='.png & .jpg files only<br />click or drag & drop'\n                acceptedFileTypes={['image/png', 'image/jpeg']}\n                onremovefile={(err, file) => {\n                  if (err) {\n                    console.error(err);\n                    return;\n                  }\n\n                  setBgUrl('');\n                }}\n                onprocessfile={(err, file) => {\n                  if (err) {\n                    console.error(err);\n                    return;\n                  }\n\n                  async function handleFile(file: File) {\n                    const hashValue = await hashFile(file);\n                    setBgUrl(`${process.env.NEXT_PUBLIC_AMICA_STORAGE_URL}/${hashValue}`);\n                  }\n\n                  handleFile(file.file as File);\n                }}\n                disabled={!!sqid}\n              />\n            </div>\n          </div>\n\n          <div className=\"sm:col-span-3 max-w-md rounded-xl mt-4\">\n            <label className=\"block text-sm font-medium leading-6 text-gray-900\">\n              {t(\"YouTube Video ID\")}\n            </label>\n            <div className=\"mt-2\">\n              <p className=\"text-xs text-slate-500\">{t(\"Example\")}: https://www.youtube.com/watch?v=<span className=\"text-red-500\">dQw4w9WgXcQ</span></p>\n              <input\n                type=\"text\"\n                className=\"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6\"\n                value={youtubeVideoId}\n                readOnly={!!sqid}\n                onChange={(e) => {\n                  setYoutubeVideoId(e.target.value);\n                }}\n              />\n              {youtubeVideoId && (\n                <img width=\"100%\" src={`https://img.youtube.com/vi/${youtubeVideoId}/0.jpg`} />\n              )}\n            </div>\n          </div>\n\n          {showUploadLocalVrmMessage && (\n            <div className=\"sm:col-span-3 max-w-md rounded-xl mt-4\">\n              <label className=\"block text-sm font-medium leading-6 text-gray-900\">\n                {t(\"Upload VRM\")}\n              </label>\n              <div className=\"mt-2 text-sm leading-6 text-gray-900\">\n                <p>{t(\"VRM upload message\")}</p>\n                <p>{t(\"VRM local share message\")}</p>\n                <div className=\"sm:col-span-3 max-w-md rounded-xl mt-2\">\n                  <button\n                    onClick={uploadVrmFromIndexedDb}\n                    className=\"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-fuchsia-500 hover:bg-fuchsia-600 focus:outline-none disabled:opacity-50 disabled:hover:bg-fuchsia-500 disabled:cursor-not-allowed\"\n                  >\n                    {t(\"Upload Vrm\")}\n                  </button>\n                </div>\n              </div>\n            </div>\n          )}\n\n          <div className={\"sm:col-span-3 max-w-md rounded-xl mt-4\" + (!showUploadLocalVrmMessage ? \"\" : \" hidden\")}>\n            <label className=\"block text-sm font-medium leading-6 text-gray-900\">\n              {t(\"VRM Url\")}\n            </label>\n            <div className=\"mt-2\">\n              <p className=\"text-xs text-slate-500\"></p>\n              <input\n                type=\"text\"\n                className=\"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6\"\n                value={vrmUrl}\n                readOnly={!!sqid}\n                onChange={(e) => {\n                  setVrmUrl(e.target.value);\n                  updateVrmAvatar(viewer, e.target.value);\n                  setVrmLoaded(false);\n                }}\n              />\n              <FilePond\n                ref={vrmUploadFilePond}\n                files={vrmFiles}\n                // this is done to remove type error\n                // filepond is not typed properly\n                onupdatefiles={(files: any) => {\n                  setVrmFiles(files);\n                }}\n                server={`${process.env.NEXT_PUBLIC_AMICA_API_URL}/api/upload?type=vrm`}\n                name=\"file\"\n                labelIdle='.vrm files only<br />click or drag & drop'\n                acceptedFileTypes={['model/gltf-binary']}\n                fileValidateTypeDetectType={vrmDetector}\n                onaddfilestart={(file) => {\n                  setVrmUrl('');\n                  setVrmLoaded(false);\n                }}\n                onremovefile={(err, file) => {\n                  if (err) {\n                    console.error(err);\n                    return;\n                  }\n\n                  setVrmUrl('');\n                  setVrmLoaded(false);\n                }}\n                onprocessfile={(err, file) => {\n                  if (err) {\n                    console.error(err);\n                    return;\n                  }\n\n                  async function handleFile(file: File) {\n                    const hashValue = await hashFile(file);\n                    const url = `${process.env.NEXT_PUBLIC_AMICA_STORAGE_URL}/${hashValue}`;\n                    setVrmUrl(url);\n                    updateVrmAvatar(viewer, url);\n                    if (vrmSaveType == 'local') {\n                      setVrmLoadingFromIndexedDb(false);\n                      setVrmLoadedFromIndexedDb(true);\n                    }\n                    setVrmLoaded(false);\n                  }\n\n                  handleFile(file.file as File);\n                }}\n                disabled={!!sqid}\n              />\n\n              <div className=\"sm:col-span-3 max-w-md rounded-xl mt-4 bg-gray-100\">\n                {vrmUrl && (\n                  <VrmDemo\n                    vrmUrl={vrmUrl}\n                    onLoaded={() => {\n                      setVrmLoaded(true);\n                      (async () => {\n                        try {\n                          const animation = await loadVRMAnimation(\"/animations/idle_loop.vrma\");\n                          if (!animation) {\n                            console.error('loading animation failed');\n                            return;\n                          }\n                          viewer.model!.loadAnimation(animation!);\n                          requestAnimationFrame(() => {\n                            viewer.resetCamera()\n                          });\n                        } catch (e) {\n                          console.error('loading animation failed', e);\n                        }\n                      })();\n                      console.log('vrm demo loaded');\n                    }}\n                  />\n                )}\n              </div>\n            </div>\n          </div>\n\n          {/*\n          <div className=\"sm:col-span-3 max-w-md rounded-xl mt-4\">\n            <label className=\"block text-sm font-medium leading-6 text-gray-900\">\n              Animation Url\n            </label>\n            <div className=\"mt-2\">\n              <input\n                type=\"text\"\n                className=\"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6\"\n                value={animationUrl}\n                readOnly={!! sqid}\n                onChange={(e) => {\n                  setAnimationUrl(e.target.value);\n                }}\n              />\n              <FilePond\n                files={animationFiles}\n                // this is done to remove type error\n                // filepond is not typed properly\n                onupdatefiles={(files: any) => {\n                  setAnimationFiles(files);\n                }}\n                // TODO read this url from env\n                server={`${process.env.NEXT_PUBLIC_AMICA_API_URL}/api/upload?type=anim`}\n                name=\"file\"\n                labelIdle='.vrm files only<br />click or drag & drop'\n                acceptedFileTypes={['model/gltf-binary']}\n                fileValidateTypeDetectType={vrmDetector}\n                onremovefile={(err, file) => {\n                  if (err) {\n                    console.error(err);\n                    return;\n                  }\n\n                  setAnimationUrl('');\n                }}\n                onprocessfile={(err, file) => {\n                  if (err) {\n                    console.error(err);\n                    return;\n                  }\n\n                  async function handleFile(file: File) {\n                    const hashValue = await hashFile(file);\n                    setAnimationUrl(`${process.env.NEXT_PUBLIC_AMICA_STORAGE_URL}/${hashValue}`);\n                  }\n\n                  handleFile(file.file as File);\n                }}\n                disabled={!! sqid}\n              />\n            </div>\n          </div>\n          */}\n\n          <div className=\"sm:col-span-3 max-w-md rounded-xl mt-4\">\n            <label className=\"block text-sm font-medium leading-6 text-gray-900\">\n              Voice Url\n            </label>\n            <div className=\"mt-2\">\n              <input\n                type=\"text\"\n                className=\"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6\"\n                value={voiceUrl}\n                readOnly={!!sqid}\n                onChange={(e) => {\n                  setVoiceUrl(e.target.value);\n                }}\n              />\n              <FilePond\n                files={voiceFiles}\n                // this is done to remove type error\n                // filepond is not typed properly\n                onupdatefiles={(files: any) => {\n                  setVoiceFiles(files);\n                }}\n                server={`${process.env.NEXT_PUBLIC_AMICA_API_URL}/api/upload?type=voice`}\n                name=\"file\"\n                labelIdle='.wav & .mp3 files only<br />click or drag & drop'\n                acceptedFileTypes={['audio/wav', 'audio/mpeg']}\n                onremovefile={(err, file) => {\n                  if (err) {\n                    console.error(err);\n                    return;\n                  }\n\n                  setVoiceUrl('');\n                }}\n                onprocessfile={(err, file) => {\n                  if (err) {\n                    console.error(err);\n                    return;\n                  }\n\n                  async function handleFile(file: File) {\n                    const hashValue = await hashFile(file);\n                    setVoiceUrl(`${process.env.NEXT_PUBLIC_AMICA_STORAGE_URL}/${hashValue}`);\n                  }\n\n                  handleFile(file.file as File);\n                }}\n                disabled={!!sqid}\n              />\n            </div>\n          </div>\n\n          {!sqid && (\n            <div className=\"sm:col-span-3 max-w-md rounded-xl mt-8\">\n              <button\n                onClick={registerCharacter}\n                className=\"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-fuchsia-500 hover:bg-fuchsia-600 focus:outline-none disabled:opacity-50 disabled:hover:bg-fuchsia-500 disabled:cursor-not-allowed\"\n                disabled={!vrmLoaded || showUploadLocalVrmMessage || vrmLoadingFromIndexedDb || isRegistering}\n              >\n                {t(\"Save Character\")}\n              </button>\n            </div>\n          )}\n\n          {sqid && (\n            <div className=\"sm:col-span-3 max-w-md rounded-xl mt-8\">\n              <p className=\"text-sm\">{t(\"Share this code (click to copy):\")}</p>\n              <input\n                type=\"text\"\n                className=\"inline-flex items-center px-2 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-fuchsia-600 bg-fuchsia-100 hover:bg-fuchsia-200 focus:outline-transparent focus:border-transparent border-transparent disabled:opacity-50 disabled:hover:bg-fuchsia-50 disabled:cursor-not-allowed hover:cursor-copy\"\n                defaultValue={sqid}\n                readOnly\n                onClick={(e) => {\n                  // @ts-ignore\n                  navigator.clipboard.writeText(e.target.value);\n                }}\n              />\n              <p className=\"mt-6 text-sm\">\n                {t(\"Or, you can share this direct link:\")}\n                {' '}\n                <Link\n                  href={`https://amica.arbius.ai/import/${sqid}`}\n                  target={isTauri() ? \"_blank\" : ''}\n                  className=\"text-cyan-600 hover:text-cyan-700\"\n                >\n                  https://amica.arbius.ai/import/{sqid}\n                </Link>\n              </p>\n\n              <Link href=\"/\">\n                <button\n                  className=\"mt-6 inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-emerald-500 hover:bg-emerald-600 focus:outline-none disabled:opacity-50 disabled:hover:bg-emerald-500 disabled:cursor-not-allowed\"\n                >\n                  {t(\"Return Home\")}\n                </button>\n              </Link>\n            </div>\n          )}\n        </div>\n        <div>\n          {/* empty column */}\n        </div>\n      </div>\n    </div>\n  );\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/semperai/amica/blob/b337a9a44f969f6e87636c1b6fd706298df912cb/src/pages/share.tsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F228"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=react-filepond%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F213"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import React from \"react\";\nimport { createRoot } from \"react-dom/client\";\nimport { FilePond } from \"react-filepond\";\nimport \"filepond/dist/filepond.min.css\";\nconst host = document.createElement(\"div\"); document.body.append(host);\ncreateRoot(host).render(<FilePond server=\"/upload\" />);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/pqina/react-filepond/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F218"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "uploadthing-react",
          "name": [
            {
              "t": "fact",
              "fact": "F231"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pingdotgg/uploadthing"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@uploadthing/react"
            },
            {
              "label": "Docs",
              "href": "https://docs.uploadthing.com/getting-started/appdir"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F64"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.uploadthing.com/getting-started/appdir",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F231"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/sadmann7/file-uploader",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F245"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "async function onUpload(files: File[]) {\n    setIsUploading(true);\n    try {\n      const res = await uploadFiles(endpoint, {\n        ...props,\n        files,\n        onUploadProgress: ({ file, progress }) => {\n          setProgresses((prev) => {\n            return {\n              ...prev,\n              [file.name]: progress,\n            };\n          });\n        },\n      });\n\n      setUploadedFiles((prev) => (prev ? [...prev, ...res] : res));\n    } catch (error) {\n      if (error instanceof UploadThingError) {\n        const errorMessage =\n          error.data && \"error\" in error.data\n            ? error.data.error\n            : \"Upload failed\";\n        toast.error(errorMessage);\n        return;\n      }\n\n      toast.error(\n        error instanceof Error ? error.message : \"An unknown error occurred\",\n      );\n    } finally {\n      setProgresses({});\n      setIsUploading(false);\n    }\n  }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/sadmann7/file-uploader/blob/665aded7abf9416cb548757a4b27e8cda200106b/src/hooks/use-upload-file.ts",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20projects%20using%20%40uploadthing/react%20for%20file%20uploads%2C%20custom%20dropzones%2C%20progress%2C%20presigned%20uploads%2C%20typed%20file%20routes%20and%20transfer%20cancellation&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": "F231"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "\"use client\";\nimport { generateReactHelpers } from \"@uploadthing/react\";\nconst { useUploadThing } = generateReactHelpers();\nexport default function App() {\n  const { startUpload, isUploading } = useUploadThing(\"imageUploader\");\n  return <input type=\"file\" accept=\"image/*\" disabled={isUploading} onChange={(event) => { const files = Array.from(event.target.files ?? []); if (files.length) startUpload(files).catch(console.error); }} />;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.uploadthing.com/getting-started/appdir",
                  "label": [
                    {
                      "t": "text",
                      "text": "page.tsx"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F236"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-drag-drop-files",
          "name": [
            {
              "t": "fact",
              "fact": "F247"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/KarimMokhtar/react-drag-drop-files"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-drag-drop-files"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/KarimMokhtar/react-drag-drop-files/readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F254"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/KarimMokhtar/react-drag-drop-files/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F247"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import React from \"react\";\nimport { createRoot } from \"react-dom/client\";\nimport { FileUploader } from \"react-drag-drop-files\";\nconst host = document.createElement(\"div\"); document.body.append(host);\ncreateRoot(host).render(<FileUploader name=\"image\" types={[\"JPG\", \"PNG\"]} handleChange={(files) => console.log(files)} />);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/KarimMokhtar/react-drag-drop-files/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=react-drag-drop-files%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F247"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F252"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which React file upload library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#react-dropzone",
          "label": [
            {
              "t": "text",
              "text": "react-dropzone"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits drag-and-drop file selection with a separate upload transport. "
        },
        {
          "t": "link",
          "href": "#uppy-react",
          "label": [
            {
              "t": "text",
              "text": "@uppy/react"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits full upload interfaces with resumable transfers through a tus server. "
        },
        {
          "t": "link",
          "href": "#uploadthing-react",
          "label": [
            {
              "t": "text",
              "text": "@uploadthing/react"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits uploads to UploadThing through typed server routes."
        }
      ]
    },
    {
      "q": "What is UploadThing?",
      "a": [
        {
          "t": "link",
          "href": "#uploadthing-react",
          "label": [
            {
              "t": "text",
              "text": "@uploadthing/react"
            }
          ]
        },
        {
          "t": "text",
          "text": " provides React upload components and typed upload hooks for UploadThing. Its file routes are configured on the server."
        }
      ]
    },
    {
      "q": "Does react-dropzone upload files?",
      "a": [
        {
          "t": "text",
          "text": "No. "
        },
        {
          "t": "link",
          "href": "#react-dropzone",
          "label": [
            {
              "t": "text",
              "text": "react-dropzone"
            }
          ]
        },
        {
          "t": "text",
          "text": " handles file selection. The application supplies its own upload transport."
        }
      ]
    },
    {
      "q": "What is Uppy for React?",
      "a": [
        {
          "t": "link",
          "href": "#uppy-react",
          "label": [
            {
              "t": "text",
              "text": "@uppy/react"
            }
          ]
        },
        {
          "t": "text",
          "text": " provides React components and hooks for Uppy upload interfaces. Its Tus plugin adds resumable uploads."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, react-dropzone",
      "display": "react-dropzone",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, react-dropzone",
      "display": "73.6M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, react-dropzone",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, react-dropzone",
      "display": "20.2.0",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, react-dropzone",
      "display": "v20.2.0",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, react-dropzone",
      "display": "11.0K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Accepts dropped files, react-dropzone",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Uploads files, react-dropzone",
      "display": "Unsupported",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Reports upload progress, react-dropzone",
      "display": "Unsupported",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Cancels uploads, react-dropzone",
      "display": "Unsupported",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, react-dropzone",
      "display": "npm install react-dropzone",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, react-dropzone",
      "display": "Provides React hooks for file selection through drag-and-drop.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, react-dropzone",
      "display": "Customizes file-selection UI",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, react-dropzone",
      "display": "Use property getters to connect a custom drop area and input.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, react-dropzone",
      "display": "Accepts pasted files",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, react-dropzone",
      "display": "Pasted files follow the same validation and callbacks as dropped files.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, react-dropzone",
      "display": "Needs a separate uploader",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, react-dropzone",
      "display": "Connect a separate upload transport after selecting files.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, react-dropzone",
      "display": "Dropped files omit absolute paths",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, react-dropzone",
      "display": "Returned files omit path and fullPath properties.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, react-dropzone",
      "display": "import React, {useCallback} from \"react\";\nimport {useDropzone} from \"react-dropzone\";\n\nfunction MyDropzone() {\n  const onDrop = useCallback(acceptedFiles => {\n    acceptedFiles.forEach(file => {\n      const reader = new FileReader();\n\n      reader.onabort = () => console.log(\"file reading was aborted\");\n      reader.onerror = () => console.log(\"file reading has failed\");\n      reader.onload = () => {\n        // Do whatever you want with the file contents\n        const binaryStr = reader.result;\n        console.log(binaryStr);\n      };\n      reader.readAsArrayBuffer(file);\n    });\n  }, []);\n  const {getRootProps, getInputProps} = useDropzone({onDrop});\n\n  return (\n    <div {...getRootProps()}>\n      <input {...getInputProps()} />\n      <p>Drag 'n' drop some files here, or click to select files</p>\n    </div>\n  );\n}\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, react-dropzone",
      "display": "const Dropzone = ({\n  className,\n  children,\n  getRootProps,\n  getInputProps,\n  ...restProps\n}: PropsWithChildren<DropzoneProps>) => {\n  const isSuccess = restProps.isSuccess\n  const isActive = restProps.isDragActive\n  const isInvalid =\n    (restProps.isDragActive && restProps.isDragReject) ||\n    (restProps.errors.length > 0 && !restProps.isSuccess) ||\n    restProps.files.some((file) => file.errors.length !== 0)\n\n  return (\n    <DropzoneContext.Provider value={{ ...restProps }}>\n      <div\n        {...getRootProps({\n          className: cn(\n            'border-2 border-gray-300 rounded-lg p-6 text-center bg-card transition-colors duration-300 text-foreground',\n            className,\n            isSuccess ? 'border-solid' : 'border-dashed',\n            isActive && 'border-primary bg-primary/10',\n            isInvalid && 'border-destructive bg-destructive/10'\n          ),\n        })}\n      >\n        <input {...getInputProps()} />\n        {children}\n      </div>\n    </DropzoneContext.Provider>\n  )\n}\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, react-dropzone",
      "display": "dropzone.tsx · Dropzone()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, react-dropzone",
      "display": "supabase/supabase",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, supabase/supabase",
      "display": "115.1K",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, supabase/supabase",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F27": {
      "label": "Library name, @uppy/react",
      "display": "Uppy React",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, @uppy/react",
      "display": "4.0M",
      "asOf": "2026-11-15"
    },
    "F29": {
      "label": "License, @uppy/react",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, @uppy/react",
      "display": "6.1.1",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Undated package release, @uppy/react",
      "display": "v6.1.1",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Repository stars, @uppy/react",
      "display": "31.1K",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Accepts dropped files, @uppy/react",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Uploads files, @uppy/react",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Reports upload progress, @uppy/react",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Cancels uploads, @uppy/react",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Install, @uppy/react",
      "display": "npm install @uppy/react @uppy/core @uppy/dashboard @uppy/transloadit react react-dom",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "What it does, @uppy/react",
      "display": "Provides React components and hooks for Uppy upload interfaces.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths lead, @uppy/react",
      "display": "Supports custom upload interfaces",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths, @uppy/react",
      "display": "Choose headless components or hooks when the Dashboard layout is too restrictive.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths lead, @uppy/react",
      "display": "Adds resumable upload transport",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths, @uppy/react",
      "display": "Use the Tus plugin with a compatible tus server.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations lead, @uppy/react",
      "display": "Unmounting can stop uploads",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations, @uppy/react",
      "display": "Keep Uppy alive when transfers must continue between page changes.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations lead, @uppy/react",
      "display": "Headless components need context",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "limitations, @uppy/react",
      "display": "Wrap the components in UppyContextProvider.",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Quickstart, @uppy/react",
      "display": "import Uppy from '@uppy/core';\nimport Dashboard from '@uppy/react/dashboard';\nimport Transloadit from '@uppy/transloadit';\nimport { useState, type ReactNode } from 'react';\n\nimport '@uppy/core/css/style.min.css';\nimport '@uppy/dashboard/css/style.min.css';\n\nimport { fetchAssemblyOptions } from './fetch-assembly-options';\n\nfunction createUppy() {\n\treturn new Uppy().use(Transloadit, {\n\t\tassemblyOptions: fetchAssemblyOptions,\n\t});\n}\n\nexport function Uploader(): ReactNode {\n\tconst [uppy] = useState(createUppy);\n\n\treturn <Dashboard uppy={uppy} />;\n}\n",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project function, @uppy/react",
      "display": "export function FileUploader({\n  onUploadSuccess,\n}: {\n  onUploadSuccess: (result: UploadResult) => void;\n}) {\n  const uppy = React.useMemo(() => {\n    const uppy = new Uppy({\n      autoProceed: true,\n      restrictions: {\n        maxNumberOfFiles: 3,\n      },\n    }).use(AwsS3, {\n      id: \"AwsS3\",\n      getUploadParameters: (file: UppyFile) => getUploadParameters(file),\n    });\n    return uppy;\n  }, []);\n  uppy.on(\"complete\", (result) => {\n    onUploadSuccess(result);\n  });\n  return <Dashboard uppy={uppy} showLinkToFileUploadResult={true} />;\n}\n",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project function reference, @uppy/react",
      "display": "FileUploader.tsx · FileUploader()",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project repository, @uppy/react",
      "display": "datopian/r2-bucket-uploader",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project stars, datopian/r2-bucket-uploader",
      "display": "137",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project push date, datopian/r2-bucket-uploader",
      "display": "Apr 2025",
      "asOf": "2025-04-19"
    },
    "F53": {
      "label": "Library name, @uploadthing/react",
      "display": "UploadThing React",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Monthly downloads, @uploadthing/react",
      "display": "679.3K",
      "asOf": "2026-11-15"
    },
    "F55": {
      "label": "License, @uploadthing/react",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Package release, @uploadthing/react",
      "display": "7.3.3",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Undated package release, @uploadthing/react",
      "display": "v7.3.3",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Repository stars, @uploadthing/react",
      "display": "5.4K",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Accepts dropped files, @uploadthing/react",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Uploads files, @uploadthing/react",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Reports upload progress, @uploadthing/react",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Cancels uploads, @uploadthing/react",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "Install, @uploadthing/react",
      "display": "npm install uploadthing @uploadthing/react",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "What it does, @uploadthing/react",
      "display": "Provides React upload components and typed upload hooks for UploadThing.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths lead, @uploadthing/react",
      "display": "Connects uploads to typed routes",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths, @uploadthing/react",
      "display": "Generate components and helpers from the server file-router type.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths lead, @uploadthing/react",
      "display": "Reports upload progress",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "strengths, @uploadthing/react",
      "display": "Use onUploadProgress to update the application during transfers.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations lead, @uploadthing/react",
      "display": "Needs server file routes",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations, @uploadthing/react",
      "display": "Configure route permissions and completion handling on the server.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Quickstart, @uploadthing/react",
      "display": "\"use client\";\n\nimport {\n  UploadButton,\n  UploadDropzone,\n  useUploadThing,\n} from \"~/utils/uploadthing\";\n\nexport default function Home() {\n  const { startUpload } = useUploadThing(\"videoAndImage\", {\n    /**\n     * @see https://docs.uploadthing.com/api-reference/react#useuploadthing\n     */\n    onBeforeUploadBegin: (files) => {\n      console.log(\"Uploading\", files.length, \"files\");\n      return files;\n    },\n    onUploadBegin: (name) => {\n      console.log(\"Beginning upload of\", name);\n    },\n    onClientUploadComplete: (res) => {\n      console.log(\"Upload Completed.\", res.length, \"files uploaded\");\n    },\n    onUploadProgress(p) {\n      console.log(\"onUploadProgress\", p);\n    },\n  });\n\n  return (\n    <main>\n      <UploadButton\n        /**\n         * @see https://docs.uploadthing.com/api-reference/react#uploadbutton\n         */\n        endpoint={(routeRegistry) => routeRegistry.videoAndImage}\n        onClientUploadComplete={(res) => {\n          console.log(`onClientUploadComplete`, res);\n          alert(\"Upload Completed\");\n        }}\n        onUploadBegin={() => {\n          console.log(\"upload begin\");\n        }}\n        config={{ appendOnPaste: true, mode: \"manual\" }}\n      />\n      <UploadDropzone\n        /**\n         * @see https://docs.uploadthing.com/api-reference/react#uploaddropzone\n         */\n        endpoint={(routeRegistry) => routeRegistry.videoAndImage}\n        onUploadAborted={() => {\n          alert(\"Upload Aborted\");\n        }}\n        onClientUploadComplete={(res) => {\n          console.log(`onClientUploadComplete`, res);\n          alert(\"Upload Completed\");\n        }}\n        onUploadBegin={() => {\n          console.log(\"upload begin\");\n        }}\n      />\n      <input\n        type=\"file\"\n        multiple\n        onChange={async (e) => {\n          const files = Array.from(e.target.files ?? []);\n\n          // Do something with files\n\n          // Then start the upload\n          await startUpload(files);\n        }}\n      />\n    </main>\n  );\n}\n",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Project function, @uploadthing/react",
      "display": "async function onUpload(files: File[]) {\n    setIsUploading(true);\n    try {\n      const res = await uploadFiles(endpoint, {\n        ...props,\n        files,\n        onUploadProgress: ({ file, progress }) => {\n          setProgresses((prev) => {\n            return {\n              ...prev,\n              [file.name]: progress,\n            };\n          });\n        },\n      });\n\n      setUploadedFiles((prev) => (prev ? [...prev, ...res] : res));\n    } catch (error) {\n      if (error instanceof UploadThingError) {\n        const errorMessage =\n          error.data && \"error\" in error.data\n            ? error.data.error\n            : \"Upload failed\";\n        toast.error(errorMessage);\n        return;\n      }\n\n      toast.error(\n        error instanceof Error ? error.message : \"An unknown error occurred\",\n      );\n    } finally {\n      setProgresses({});\n      setIsUploading(false);\n    }\n  }\n",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project function reference, @uploadthing/react",
      "display": "use-upload-file.ts · onUpload()",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project repository, @uploadthing/react",
      "display": "sadmann7/file-uploader",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project stars, sadmann7/file-uploader",
      "display": "1.4K",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project push date, sadmann7/file-uploader",
      "display": "Dec 2025",
      "asOf": "2025-12-14"
    },
    "F77": {
      "label": "Library name, react-dropzone-uploader",
      "display": "React Dropzone Uploader",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Monthly downloads, react-dropzone-uploader",
      "display": "145.7K",
      "asOf": "2026-11-15"
    },
    "F79": {
      "label": "License, react-dropzone-uploader",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Package release, react-dropzone-uploader",
      "display": "2.11.0",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Undated package release, react-dropzone-uploader",
      "display": "v2.11.0",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Repository stars, react-dropzone-uploader",
      "display": "451",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Accepts dropped files, react-dropzone-uploader",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Uploads files, react-dropzone-uploader",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Reports upload progress, react-dropzone-uploader",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Cancels uploads, react-dropzone-uploader",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Install, react-dropzone-uploader",
      "display": "npm install react-dropzone-uploader",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "What it does, react-dropzone-uploader",
      "display": "Combines a customizable file dropzone with HTTP upload management.",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "strengths lead, react-dropzone-uploader",
      "display": "Handles progress and cancellation",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths, react-dropzone-uploader",
      "display": "Track file status and cancel or restart transfers.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths lead, react-dropzone-uploader",
      "display": "Customizes upload requests",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths, react-dropzone-uploader",
      "display": "Set the destination, request headers, and body for each file.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "limitations lead, react-dropzone-uploader",
      "display": "Uploads before form submission",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations, react-dropzone-uploader",
      "display": "Disable autoUpload when transfers must wait for an explicit action.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations lead, react-dropzone-uploader",
      "display": "Tracked file objects are mutable",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "limitations, react-dropzone-uploader",
      "display": "Return metadata updates through callbacks instead of changing tracked objects.",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Quickstart, react-dropzone-uploader",
      "display": "import 'react-dropzone-uploader/dist/styles.css'\nimport Dropzone from 'react-dropzone-uploader'\n\nconst MyUploader = () => {\n  // specify upload params and url for your files\n  const getUploadParams = ({ meta }) => { return { url: 'https://httpbin.org/post' } }\n  \n  // called every time a file's `status` changes\n  const handleChangeStatus = ({ meta, file }, status) => { console.log(status, meta, file) }\n  \n  // receives array of files that are done uploading when submit button is clicked\n  const handleSubmit = (files) => { console.log(files.map(f => f.meta)) }\n\n  return (\n    <Dropzone\n      getUploadParams={getUploadParams}\n      onChangeStatus={handleChangeStatus}\n      onSubmit={handleSubmit}\n      accept=\"image/*,audio/*,video/*\"\n    />\n  )\n}\n",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Developer need",
      "display": "Custom file-selection UI",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Why choose react-dropzone",
      "display": "connecting your own drop area and upload transport",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Developer need in introduction",
      "display": "custom file-selection UI",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need",
      "display": "Custom transport and interface",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Why choose @uppy/react",
      "display": "choosing headless controls and protocol plugins",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Developer need in introduction",
      "display": "custom transport and interface",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need",
      "display": "Typed server file routes",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Why choose @uploadthing/react",
      "display": "connecting React components to a server file-router type",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need in introduction",
      "display": "typed server file routes",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Developer need",
      "display": "Per-file upload lifecycle",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Why choose react-dropzone-uploader",
      "display": "tracking progress and canceling or restarting transfers",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need in introduction",
      "display": "per-file upload lifecycle",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Page introduction",
      "display": "React file upload libraries let web developers build file-selection and upload interfaces.",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "FAQ: Which React file upload library should I choose?",
      "display": "react-dropzone provides file selection and leaves HTTP uploads to your application.",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "FAQ: Which React file upload library should I choose?",
      "display": "Uppy offers prebuilt, headless, and hook-based interfaces.",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "FAQ: Which React file upload library should I choose?",
      "display": "UploadThing links uploaded files to server FileRoutes.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: Which React file upload library should I choose?",
      "display": "React Dropzone Uploader handles per-file status, progress, and cancellation.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Does react-dropzone upload files automatically?",
      "display": "It does not provide HTTP requests; connect a separate upload transport.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Can react-dropzone accept pasted screenshots?",
      "display": "Pasted files follow the same acceptance checks and drop callbacks as dropped files.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Why are absolute file paths missing from react-dropzone results?",
      "display": "Returned file objects omit path and fullPath properties.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Can Uppy resume uploads after a connection breaks?",
      "display": "The Tus plugin supplies resumable upload transport.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Can Uppy resume uploads after a connection breaks?",
      "display": "It requires a compatible client and server integration.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: How do I keep Uppy uploads alive between pages?",
      "display": "The component-scoped setup loses its state and stops uploads when it unmounts.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Should Uppy signing secrets be sent to React?",
      "display": "Generate signing parameters on the server rather than exposing signing secrets in the browser.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Does UploadThing require backend setup?",
      "display": "Each FileRoute specifies server permissions and a completion callback.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Can UploadThing report and cancel uploads?",
      "display": "Its React API accepts an upload-progress callback.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Can UploadThing report and cancel uploads?",
      "display": "An AbortSignal can abort an upload.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Does the React Dropzone Uploader submit button start transfers?",
      "display": "Automatic upload is enabled by default; set autoUpload to false to delay transfer.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Does the React Dropzone Uploader submit button start transfers?",
      "display": "onSubmit receives files that have already reached a successful upload status.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Can tracked React Dropzone Uploader file objects be changed directly?",
      "display": "Direct mutation can cause unexpected behavior; return metadata updates through supported callbacks.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Is removing a selected file the same as canceling a transfer?",
      "display": "react-dropzone manages selection without an HTTP transport.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: Is removing a selected file the same as canceling a transfer?",
      "display": "Uppy cancelAll cancels uploads and resets upload progress.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: Is removing a selected file the same as canceling a transfer?",
      "display": "RDU exposes per-file cancel and restart methods.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "Library name, react-dropzone",
      "display": "react-dropzone",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Monthly downloads, react-dropzone",
      "display": "75.9M",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "License, react-dropzone",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Package release, react-dropzone",
      "display": "20.2.1",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Package release date, react-dropzone",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Install, react-dropzone",
      "display": "npm install react-dropzone@20.2.1 react@19.2.0 react-dom@19.2.0",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Quickstart, react-dropzone",
      "display": "import React from \"react\";\nimport { createRoot } from \"react-dom/client\";\nimport { useDropzone } from \"react-dropzone\";\nfunction Picker() { const { getRootProps, getInputProps } = useDropzone({ onDrop: (files) => console.log(files) }); return <div {...getRootProps()}><input {...getInputProps()} />Drop or choose files</div>; }\nconst host = document.createElement(\"div\"); document.body.append(host);\ncreateRoot(host).render(<Picker />);\n",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Repository stars, react-dropzone",
      "display": "11.0K",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "HTTP uploads, react-dropzone",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "File size limits, react-dropzone",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Image thumbnails, react-dropzone",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Workflow and integration role, react-dropzone",
      "display": "Headless browser file-selection/drop event bindings and validation, with caller-owned rendering and upload transport. The package-wide counter includes old releases and dependent components such as Mantine; it is not measured adoption of the newly published20.2.1 API.",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Project function, react-dropzone",
      "display": "const Dropzone = ({\n  className,\n  children,\n  getRootProps,\n  getInputProps,\n  ...restProps\n}: PropsWithChildren<DropzoneProps>) => {\n  const isSuccess = restProps.isSuccess\n  const isActive = restProps.isDragActive\n  const isInvalid =\n    (restProps.isDragActive && restProps.isDragReject) ||\n    (restProps.errors.length > 0 && !restProps.isSuccess) ||\n    restProps.files.some((file) => file.errors.length !== 0)\n\n  return (\n    <DropzoneContext.Provider value={{ ...restProps }}>\n      <div\n        {...getRootProps({\n          className: cn(\n            'border-2 border-gray-300 rounded-lg p-6 text-center bg-card transition-colors duration-300 text-foreground',\n            className,\n            isSuccess ? 'border-solid' : 'border-dashed',\n            isActive && 'border-primary bg-primary/10',\n            isInvalid && 'border-destructive bg-destructive/10'\n          ),\n        })}\n      >\n        <input {...getInputProps()} />\n        {children}\n      </div>\n    </DropzoneContext.Provider>\n  )\n}\n",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Project source file, react-dropzone",
      "display": "apps/ui-library/registry/default/blocks/dropzone/components/dropzone.tsx",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Project full_name, react-dropzone",
      "display": "supabase/supabase",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Project stargazers_count, react-dropzone",
      "display": "115.1K",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Library name, @rc-component/upload",
      "display": "@rc-component/upload",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Monthly downloads, @rc-component/upload",
      "display": "7.3M",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "License, @rc-component/upload",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Package release, @rc-component/upload",
      "display": "1.2.0",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Package release date, @rc-component/upload",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Install, @rc-component/upload",
      "display": "npm install @rc-component/upload@1.2.0 react@19.2.0 react-dom@19.2.0",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Quickstart, @rc-component/upload",
      "display": "import React from \"react\";\nimport { createRoot } from \"react-dom/client\";\nimport Upload from \"@rc-component/upload\";\nconst host = document.createElement(\"div\"); document.body.append(host);\ncreateRoot(host).render(<Upload action=\"/upload\" onSuccess={(body) => console.log(body)}><button type=\"button\">Choose and upload</button></Upload>);\n",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Official description, @rc-component/upload",
      "display": "Provides an upload UI component for React.",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Quickstart source file, @rc-component/upload",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Repository stars, @rc-component/upload",
      "display": "804",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "HTTP uploads, @rc-component/upload",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "File size limits, @rc-component/upload",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Image thumbnails, @rc-component/upload",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Workflow and integration role, @rc-component/upload",
      "display": "Current upstream React upload primitive for Ajax/custom requests, async pre-upload processing, progress callbacks, and abort. Ant Design is a separate consumer wrapper. Earlier rc-upload4.x publication is the same upstream SDK family, not an additional independently ranked tool or a pooled counter.",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Project function, @rc-component/upload",
      "display": "const handleRemove = (file: UploadFile) => {\n  let currentFile: UploadFile;\n  Promise.resolve(isFunction(onRemove) ? onRemove(file) : onRemove).then((ret) => {\n    // Prevent removing file\n    if (ret === false) {\n      return;\n    }\n\n    const currentFileList = getMergedFileList();\n    const removedFileList = removeFileItem(file, currentFileList);\n\n    if (removedFileList) {\n      currentFile = { ...file, status: 'removed' };\n      currentFileList.forEach((item) => {\n        const matchKey = currentFile.uid !== undefined ? 'uid' : 'name';\n        if (item[matchKey] === currentFile[matchKey] && !Object.isFrozen(item)) {\n          item.status = 'removed';\n        }\n      });\n      uploadRef.current?.abort(currentFile as RcFile);\n\n      onInternalChange(currentFile, removedFileList);\n    }\n  });\n};\n",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Project source file, @rc-component/upload",
      "display": "components/upload/Upload.tsx",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Project full_name, @rc-component/upload",
      "display": "ant-design/ant-design",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Project stargazers_count, @rc-component/upload",
      "display": "100.3K",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Library name, @uppy/react",
      "display": "@uppy/react",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Monthly downloads, @uppy/react",
      "display": "4.2M",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "License, @uppy/react",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Package release, @uppy/react",
      "display": "6.1.1",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Package release date, @uppy/react",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Install, @uppy/react",
      "display": "npm install @uppy/react@6.1.1 @uppy/core@^6.3.1 @uppy/dashboard@^6.0.3 react@19.2.0 react-dom@19.2.0",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Quickstart, @uppy/react",
      "display": "import React from \"react\";\nimport { createRoot } from \"react-dom/client\";\nimport Uppy from \"@uppy/core\";\nimport Dashboard from \"@uppy/react/dashboard\";\nimport \"@uppy/core/css/style.min.css\";\nimport \"@uppy/dashboard/css/style.min.css\";\nconst uppy = new Uppy();\nconst host = document.createElement(\"div\"); document.body.append(host);\ncreateRoot(host).render(<Dashboard uppy={uppy} hideUploadButton />);\n",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Repository stars, @uppy/react",
      "display": "31.1K",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "HTTP uploads, @uppy/react",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "File size limits, @uppy/react",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Image thumbnails, @uppy/react",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Workflow and integration role, @uppy/react",
      "display": "React interfaces for Uppy Core, including pre-composed Dashboard subpath and headless components/hooks. A transport such as Tus is an additional plugin; the basic UI itself is not an upload server. Declared Core/Dashboard peer versions must match current React6 bindings.",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Library name, @mantine/dropzone",
      "display": "Mantine Dropzone",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Monthly downloads, @mantine/dropzone",
      "display": "3.3M",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "License, @mantine/dropzone",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Package release, @mantine/dropzone",
      "display": "9.8.1",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Package release date, @mantine/dropzone",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Install, @mantine/dropzone",
      "display": "npm install @mantine/dropzone@9.8.1 @mantine/core@9.8.1 @mantine/hooks@9.8.1 react@19.2.0 react-dom@19.2.0",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Quickstart, @mantine/dropzone",
      "display": "import React from \"react\";\nimport { createRoot } from \"react-dom/client\";\nimport { MantineProvider } from \"@mantine/core\";\nimport { Dropzone } from \"@mantine/dropzone\";\nimport \"@mantine/core/styles.css\";\nimport \"@mantine/dropzone/styles.css\";\nconst host = document.createElement(\"div\"); document.body.append(host);\ncreateRoot(host).render(<MantineProvider><Dropzone maxSize={5 * 1024 * 1024} onDrop={(files) => console.log(files)}>Drop or choose files</Dropzone></MantineProvider>);\n",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Official description, @mantine/dropzone",
      "display": "Provides a dropzone component built with Mantine theme and components.",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Quickstart source file, @mantine/dropzone",
      "display": "Dropzone API reference",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Repository stars, @mantine/dropzone",
      "display": "32.0K",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "HTTP uploads, @mantine/dropzone",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "File size limits, @mantine/dropzone",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Image thumbnails, @mantine/dropzone",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Workflow and integration role, @mantine/dropzone",
      "display": "Mantine-themed selection/drop component with accept/reject/idle states and size limits, built on react-dropzone. It requires matching Mantine9.8.1 Core/Hooks and React19.2 peers/styles; the application supplies upload handling. Dependency counts overlap react-dropzone.",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Project function, @mantine/dropzone",
      "display": "export function ImageDropzone({\n  disabled: initialDisabled,\n  max = 10,\n  hasError,\n  onDrop,\n  count,\n  label,\n  description,\n  accept = IMAGE_MIME_TYPE,\n  maxSize = constants.mediaUpload.maxImageFileSize,\n  onExceedMax,\n  allowExternalImageDrop,\n  onDropCapture,\n  children,\n  iconSize = 50,\n  ...props\n}: Props) {\n  const theme = useMantineTheme();\n  const colorScheme = useComputedColorScheme('dark');\n  const [error, setError] = useState('');\n\n  const canAddFiles = max - count > 0;\n  const disabled = !canAddFiles || initialDisabled;\n  // Replaces image/* and video/* with .jpg, .png, .mp4, etc.\n  // zips do not show up correctly without these extra 2 \"zip\" files, but we don't want to show them\n  const fileExtensions = accept\n    .filter((t) => t !== MIME_TYPES.xZipCompressed && t !== MIME_TYPES.xZipMultipart)\n    .map((type) => type.replace(/.*\\//, '.'));\n  const allowsVideo = VIDEO_MIME_TYPE.some((a) => accept.includes(a));\n\n  const handleDrop = (files: File[]) => {\n    const hasLargeImageFiles = files.some(\n      (file) => IMAGE_MIME_TYPE.includes(file.type as IMAGE_MIME_TYPE) && file.size > maxSize\n    );\n    if (hasLargeImageFiles) return setError(`Images should not exceed ${formatBytes(maxSize)}`);\n\n    setError('');\n\n    if (!!onExceedMax && files.length > max - count) {\n      onExceedMax();\n    }\n\n    onDrop?.(files.slice(0, max - count));\n  };\n\n  const handleDropCapture = async (e: DragEvent) => {\n    const url = e.dataTransfer.getData('text/uri-list');\n    if (!url.length || (!allowExternalImageDrop && !isOrchestratorUrl(url))) return;\n    onDropCapture ? onDropCapture(url) : handleDropCaptureUrl(url);\n  };\n\n  async function handleDropCaptureUrl(url: string) {\n    const blob = await fetchBlob(url);\n    if (!blob) return;\n    const file = new File([blob], url.substring(url.lastIndexOf('/')), { type: blob.type });\n    handleDrop([file]);\n  }\n\n  return (\n    <>\n      <Dropzone\n        {...props}\n        accept={accept}\n        className={clsx('flex size-full items-center justify-center', classes.dropzone, {\n          [classes.error]: hasError || !!error,\n          'mb-1': hasError || !!error,\n        })}\n        disabled={!canAddFiles || disabled}\n        onDrop={handleDrop}\n        onDropCapture={handleDropCapture}\n        useFsAccessApi={!isAndroidDevice()}\n      >\n        <div className=\"pointer-events-none flex min-h-28 flex-col items-center justify-center gap-2\">\n          <Dropzone.Accept>\n            <IconUpload\n              size={iconSize}\n              stroke={1.5}\n              color={theme.colors[theme.primaryColor][colorScheme === 'dark' ? 4 : 6]}\n            />\n          </Dropzone.Accept>\n          <Dropzone.Reject>\n            <IconX\n              size={iconSize}\n              stroke={1.5}\n              color={theme.colors.red[colorScheme === 'dark' ? 4 : 6]}\n            />\n          </Dropzone.Reject>\n          <Dropzone.Idle>\n            <IconPhoto size={iconSize} stroke={1.5} />\n          </Dropzone.Idle>\n\n          {children ?? (\n            <div className=\"flex flex-col items-center gap-1\">\n              <Text size=\"xl\" inline align=\"center\">\n                {label ?? 'Drag images here or click to select files'}\n              </Text>\n              {description}\n              {(!max || max > 1) && (\n                <Text size=\"sm\" c=\"dimmed\" mt={7} inline>\n                  {max ? `Attach up to ${max} files` : 'Attach as many files as you like'}\n                </Text>\n              )}\n              {fileExtensions.length > 0 && (\n                <Text size=\"sm\" c=\"dimmed\" inline>\n                  {`Accepted file types: ${fileExtensions.join(', ')}`}\n                </Text>\n              )}\n              <Text size=\"sm\" c=\"dimmed\" inline>\n                {`Images cannot exceed ${formatBytes(maxSize)} `}\n              </Text>\n              {allowsVideo && (\n                <Text size=\"sm\" c=\"dimmed\" inline>\n                  {`Videos cannot exceed ${formatBytes(\n                    constants.mediaUpload.maxVideoFileSize\n                  )}, 4K resolution, or ${\n                    constants.mediaUpload.maxVideoDurationSeconds\n                  } seconds in duration`}\n                </Text>\n              )}\n            </div>\n          )}\n        </div>\n      </Dropzone>\n      {error && <Input.Error className=\"mt-1\">{error}</Input.Error>}\n    </>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Project source file, @mantine/dropzone",
      "display": "src/components/Image/ImageDropzone/ImageDropzone.tsx",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Project full_name, @mantine/dropzone",
      "display": "civitai/civitai",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Project stargazers_count, @mantine/dropzone",
      "display": "7.3K",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Library name, use-file-picker",
      "display": "use-file-picker",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Monthly downloads, use-file-picker",
      "display": "1.1M",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "License, use-file-picker",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Package release, use-file-picker",
      "display": "2.1.4",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Package release date, use-file-picker",
      "display": "May 2025",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Install, use-file-picker",
      "display": "npm install use-file-picker@2.1.4 react@19.2.0 react-dom@19.2.0",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Quickstart, use-file-picker",
      "display": "import React from \"react\";\nimport { createRoot } from \"react-dom/client\";\nimport { useFilePicker } from \"use-file-picker\";\nfunction Picker() { const { openFilePicker } = useFilePicker({ accept: \".txt\", multiple: false, onFilesSelected: ({ plainFiles }) => console.log(plainFiles) }); return <button onClick={() => openFilePicker()}>Choose a text file</button>; }\nconst host = document.createElement(\"div\"); document.body.append(host);\ncreateRoot(host).render(<Picker />);\n",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Official description, use-file-picker",
      "display": "Opens the browser file selector from a React hook.",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Quickstart source file, use-file-picker",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Repository stars, use-file-picker",
      "display": "303",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "HTTP uploads, use-file-picker",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "File size limits, use-file-picker",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Image thumbnails, use-file-picker",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Workflow and integration role, use-file-picker",
      "display": "Headless file-dialog and optional FileReader hook with selected File objects, content, callbacks, and bundled validators. It supplies selection/read state rather than an HTTP transfer client or built-in thumbnail widget.",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Project function, use-file-picker",
      "display": "export function ImportToolbarButton(props: DropdownMenuProps) {\n  const editor = useEditorRef();\n  const [open, setOpen] = React.useState(false);\n\n  const getFileNodes = (text: string, type: ImportType) => {\n    if (type === 'html') {\n      const editorNode = getEditorDOMFromHtmlString(text);\n      const nodes = editor.api.html.deserialize({\n        element: editorNode,\n      });\n\n      return nodes;\n    }\n\n    if (type === 'markdown') {\n      return editor.getApi(MarkdownPlugin).markdown.deserialize(text);\n    }\n\n    return [];\n  };\n\n  const { openFilePicker: openMdFilePicker } = useFilePicker({\n    accept: ['.md', '.mdx'],\n    multiple: false,\n    onFilesSelected: async ({ plainFiles }) => {\n      const text = await plainFiles[0].text();\n\n      const nodes = getFileNodes(text, 'markdown');\n\n      editor.tf.insertNodes(nodes);\n    },\n  });\n\n  const { openFilePicker: openHtmlFilePicker } = useFilePicker({\n    accept: ['text/html'],\n    multiple: false,\n    onFilesSelected: async ({ plainFiles }) => {\n      const text = await plainFiles[0].text();\n\n      const nodes = getFileNodes(text, 'html');\n\n      editor.tf.insertNodes(nodes);\n    },\n  });\n\n  const { openFilePicker: openDocxFilePicker } = useFilePicker({\n    accept: ['.docx'],\n    multiple: false,\n    onFilesSelected: async ({ plainFiles }) => {\n      const arrayBuffer = await plainFiles[0].arrayBuffer();\n      const result = await importDocx(editor, arrayBuffer);\n\n      editor.tf.insertNodes(result.nodes as typeof editor.children);\n    },\n  });\n\n  return (\n    <DropdownMenu modal={false} onOpenChange={setOpen} open={open} {...props}>\n      <DropdownMenuTrigger asChild>\n        <ToolbarButton isDropdown pressed={open} tooltip=\"Import\">\n          <ArrowUpToLineIcon className=\"size-4\" />\n        </ToolbarButton>\n      </DropdownMenuTrigger>\n\n      <DropdownMenuContent align=\"start\">\n        <DropdownMenuGroup>\n          <DropdownMenuItem\n            onSelect={() => {\n              openHtmlFilePicker();\n            }}\n          >\n            Import from HTML\n          </DropdownMenuItem>\n\n          <DropdownMenuItem\n            onSelect={() => {\n              openMdFilePicker();\n            }}\n          >\n            Import from Markdown\n          </DropdownMenuItem>\n\n          <DropdownMenuItem\n            onSelect={() => {\n              openDocxFilePicker();\n            }}\n          >\n            Import from Word\n          </DropdownMenuItem>\n        </DropdownMenuGroup>\n      </DropdownMenuContent>\n    </DropdownMenu>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Project source file, use-file-picker",
      "display": "src/components/ui/import-toolbar-button.tsx",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Project full_name, use-file-picker",
      "display": "udecode/plate-playground-template",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Project stargazers_count, use-file-picker",
      "display": "243",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Library name, react-filepond",
      "display": "React FilePond",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Monthly downloads, react-filepond",
      "display": "878.9K",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "License, react-filepond",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Package release, react-filepond",
      "display": "7.1.3",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Package release date, react-filepond",
      "display": "Dec 2024",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Install, react-filepond",
      "display": "npm install react-filepond@7.1.3 filepond@4 react@19.2.0 react-dom@19.2.0",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Quickstart, react-filepond",
      "display": "import React from \"react\";\nimport { createRoot } from \"react-dom/client\";\nimport { FilePond } from \"react-filepond\";\nimport \"filepond/dist/filepond.min.css\";\nconst host = document.createElement(\"div\"); document.body.append(host);\ncreateRoot(host).render(<FilePond server=\"/upload\" />);\n",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Official description, react-filepond",
      "display": "Adapts FilePond as a React component.",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Quickstart source file, react-filepond",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Repository stars, react-filepond",
      "display": "2.0K",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "HTTP uploads, react-filepond",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "File size limits, react-filepond",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Image thumbnails, react-filepond",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Workflow and integration role, react-filepond",
      "display": "React adapter around required FilePond core3.7..<5, exposing its upload/options contract and forwarding instance methods. Extra FilePond plugins supply size validation and image-content previews; backend processing follows the FilePond protocol.",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Project function, react-filepond",
      "display": "export default function Share() {\n  const { t } = useTranslation();\n  const { viewer } = useContext(ViewerContext);\n\n  const [description, setDescription] = useState('');\n  const [name, setName] = useState('');\n  const [systemPrompt, setSystemPrompt] = useState('');\n  const [visionSystemPrompt, setVisionSystemPrompt] = useState('');\n  const [bgUrl, setBgUrl] = useState('');\n  const [youtubeVideoId, setYoutubeVideoId] = useState('');\n  const [vrmUrl, setVrmUrl] = useState('');\n  const [vrmHash, setVrmHash] = useState('');\n  const [vrmSaveType, setVrmSaveType] = useState('');\n  const [animationUrl, setAnimationUrl] = useState('');\n  const [voiceUrl, setVoiceUrl] = useState('');\n\n  const [bgFiles, setBgFiles] = useState([]);\n  const [vrmFiles, setVrmFiles] = useState([]);\n  const [animationFiles, setAnimationFiles] = useState([]);\n  const [voiceFiles, setVoiceFiles] = useState([]);\n\n  const [vrmLoaded, setVrmLoaded] = useState(false);\n  const [vrmLoadedFromIndexedDb, setVrmLoadedFromIndexedDb] = useState(false);\n  const [vrmLoadingFromIndexedDb, setVrmLoadingFromIndexedDb] = useState(false);\n  const [showUploadLocalVrmMessage, setShowUploadLocalVrmMessage] = useState(false);\n\n\n  const [sqid, setSqid] = useState('');\n\n  const vrmUploadFilePond = useRef<FilePond | null>(null);\n\n  const delay = (ms: number) => new Promise(res => setTimeout(res, ms));\n\n  async function uploadVrmFromIndexedDb() {\n    const blob = await vrmDataProvider.getItemAsBlob(vrmHash);\n    if (vrmUploadFilePond.current && blob) {\n      vrmUploadFilePond.current.addFile(blob).then(() => { setVrmLoadingFromIndexedDb(true); });\n    } else {\n      console.log(\"FilePond not loaded, retry in 0.5 sec\");\n      delay(500).then(uploadVrmFromIndexedDb);\n    }\n  }\n\n  useEffect(() => {\n    setName(config('name'));\n    setSystemPrompt(config('system_prompt'));\n    setVisionSystemPrompt(config('vision_system_prompt'));\n    if (!config('bg_url').startsWith('data')) {\n      setBgUrl(config('bg_url'));\n    }\n    setYoutubeVideoId(config('youtube_videoid'));\n    setVrmUrl(config('vrm_url'));\n    setVrmHash(config('vrm_hash'));\n    setVrmSaveType(config('vrm_save_type'));\n    setAnimationUrl(config('animation_url'));\n    setVoiceUrl(config('voice_url'));\n  }, []);\n\n  useEffect(() => {\n    if (vrmLoadedFromIndexedDb) {\n      vrmDataProvider.addItemUrl(vrmHash, vrmUrl);\n      updateConfig('vrm_url', vrmUrl);\n      updateConfig('vrm_save_type', 'web');\n      setVrmSaveType('web');\n    }\n  }, [vrmLoadedFromIndexedDb]);\n\n  useEffect(() => {\n    setShowUploadLocalVrmMessage(vrmSaveType == 'local' && !vrmLoadedFromIndexedDb && !vrmLoadingFromIndexedDb);\n  }, [vrmSaveType, vrmLoadedFromIndexedDb, vrmLoadingFromIndexedDb]);\n\n  const [isRegistering, setIsRegistering] = useState(false);\n  function registerCharacter() {\n    setIsRegistering(true);\n\n    async function register() {\n      const res = await fetch(`${process.env.NEXT_PUBLIC_AMICA_API_URL}/api/add_character`, {\n        method: 'POST',\n        headers: {\n          'Content-Type': 'application/json',\n        },\n        body: JSON.stringify({\n          description,\n          name,\n          system_prompt: systemPrompt,\n          vision_system_prompt: visionSystemPrompt,\n          bg_url: bgUrl,\n          youtube_videoid: youtubeVideoId,\n          vrm_url: vrmUrl,\n          animation_url: animationUrl,\n          voice_url: voiceUrl,\n        }),\n      });\n\n      const data = await res.json();\n      console.log('response', data);\n\n      setSqid(data.sqid);\n\n      setIsRegistering(false);\n    }\n\n    register();\n  }\n\n  const router = useRouter();\n\n  const handleCloseIcon = () => {\n    router.push('/');\n  };\n\n  useEffect(() => {\n    document.body.style.backgroundImage = `url(/liquid-metaballs.jpg)`;\n    document.body.style.backgroundSize = `cover`;\n    document.body.style.backgroundRepeat = `no-repeat`;\n    document.body.style.backgroundPosition = `bottom right`;\n  }, []);\n\n  return (\n    \n    <div className=\"p-10 md:p-20\">\n      <style jsx global>\n        {`\n        body {\n          background-image: url('/liquid-metaballs.jpg');\n          background-size: cover;\n          background-repeat: no-repeat;\n          background-position: bottom right;\n        }\n      `}\n      </style>\n      <div className=\"fixed top-0 left-0 w-full max-h-full text-black text-xs text-left z-20\">\n        <div className=\"p-2 bg-white\">\n            <IconButton\n              iconName=\"24/Close\"\n              isProcessing={false}\n              className=\"bg-secondary hover:bg-secondary-hover active:bg-secondary-active\"\n              onClick={handleCloseIcon}/>\n        </div>\n      </div>\n      <div className=\"col-span-3 max-w-md rounded-xl mt-4\">\n        <h1 className=\"text-lg\">{t(\"Character Creator\")}</h1>\n      </div>\n\n      <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\n        <div>\n          <div className=\"sm:col-span-3 max-w-md rounded-xl mt-4\">\n            <label className=\"block text-sm font-medium leading-6 text-gray-900\">\n              {t(\"Description\")}\n            </label>\n            <div className=\"mt-2\">\n              <textarea\n                rows={4}\n                className=\"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6\"\n                value={description}\n                readOnly={!!sqid}\n                placeholder={t(\"Provide a description of the character\")}\n                onChange={(e) => {\n                  setDescription(e.target.value);\n                }}\n              />\n            </div>\n          </div>\n\n          <div className=\"sm:col-span-3 max-w-md rounded-xl mt-4\">\n            <label className=\"block text-sm font-medium leading-6 text-gray-900\">\n              {t(\"Name\")}\n            </label>\n            <div className=\"mt-2\">\n              <input\n                type=\"text\"\n                className=\"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6\"\n                value={name}\n                readOnly={!!sqid}\n                onChange={(e) => {\n                  setName(e.target.value);\n                }}\n              />\n            </div>\n          </div>\n\n          <div className=\"sm:col-span-3 max-w-md rounded-xl mt-4\">\n            <label className=\"block text-sm font-medium leading-6 text-gray-900\">\n              {t(\"System Prompt\")}\n            </label>\n            <div className=\"mt-2\">\n              <textarea\n                rows={4}\n                className=\"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6\"\n                value={systemPrompt}\n                readOnly={!!sqid}\n                onChange={(e) => {\n                  setSystemPrompt(e.target.value);\n                }}\n              />\n            </div>\n          </div>\n\n          <div className=\"sm:col-span-3 max-w-md rounded-xl mt-4\">\n            <label className=\"block text-sm font-medium leading-6 text-gray-900\">\n              {t(\"Vision System Prompt\")}\n            </label>\n            <div className=\"mt-2\">\n              <textarea\n                rows={4}\n                className=\"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6\"\n                value={visionSystemPrompt}\n                readOnly={!!sqid}\n                onChange={(e) => {\n                  setVisionSystemPrompt(e.target.value);\n                }}\n              />\n            </div>\n          </div>\n\n          <div className=\"sm:col-span-3 max-w-md rounded-xl mt-4\">\n            <label className=\"block text-sm font-medium leading-6 text-gray-900\">\n              {t(\"Background URL\")}\n            </label>\n            <div className=\"mt-2\">\n              <input\n                type=\"text\"\n                className=\"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6\"\n                value={bgUrl}\n                readOnly={!!sqid}\n                onChange={(e) => {\n                  setBgUrl(e.target.value);\n                }}\n              />\n              <FilePond\n                files={bgFiles}\n                // this is done to remove type error\n                // filepond is not typed properly\n                onupdatefiles={(files: any) => {\n                  setBgFiles(files);\n                }}\n                server={`${process.env.NEXT_PUBLIC_AMICA_API_URL}/api/upload?type=bgimg`}\n                name=\"file\"\n                labelIdle='.png & .jpg files only<br />click or drag & drop'\n                acceptedFileTypes={['image/png', 'image/jpeg']}\n                onremovefile={(err, file) => {\n                  if (err) {\n                    console.error(err);\n                    return;\n                  }\n\n                  setBgUrl('');\n                }}\n                onprocessfile={(err, file) => {\n                  if (err) {\n                    console.error(err);\n                    return;\n                  }\n\n                  async function handleFile(file: File) {\n                    const hashValue = await hashFile(file);\n                    setBgUrl(`${process.env.NEXT_PUBLIC_AMICA_STORAGE_URL}/${hashValue}`);\n                  }\n\n                  handleFile(file.file as File);\n                }}\n                disabled={!!sqid}\n              />\n            </div>\n          </div>\n\n          <div className=\"sm:col-span-3 max-w-md rounded-xl mt-4\">\n            <label className=\"block text-sm font-medium leading-6 text-gray-900\">\n              {t(\"YouTube Video ID\")}\n            </label>\n            <div className=\"mt-2\">\n              <p className=\"text-xs text-slate-500\">{t(\"Example\")}: https://www.youtube.com/watch?v=<span className=\"text-red-500\">dQw4w9WgXcQ</span></p>\n              <input\n                type=\"text\"\n                className=\"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6\"\n                value={youtubeVideoId}\n                readOnly={!!sqid}\n                onChange={(e) => {\n                  setYoutubeVideoId(e.target.value);\n                }}\n              />\n              {youtubeVideoId && (\n                <img width=\"100%\" src={`https://img.youtube.com/vi/${youtubeVideoId}/0.jpg`} />\n              )}\n            </div>\n          </div>\n\n          {showUploadLocalVrmMessage && (\n            <div className=\"sm:col-span-3 max-w-md rounded-xl mt-4\">\n              <label className=\"block text-sm font-medium leading-6 text-gray-900\">\n                {t(\"Upload VRM\")}\n              </label>\n              <div className=\"mt-2 text-sm leading-6 text-gray-900\">\n                <p>{t(\"VRM upload message\")}</p>\n                <p>{t(\"VRM local share message\")}</p>\n                <div className=\"sm:col-span-3 max-w-md rounded-xl mt-2\">\n                  <button\n                    onClick={uploadVrmFromIndexedDb}\n                    className=\"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-fuchsia-500 hover:bg-fuchsia-600 focus:outline-none disabled:opacity-50 disabled:hover:bg-fuchsia-500 disabled:cursor-not-allowed\"\n                  >\n                    {t(\"Upload Vrm\")}\n                  </button>\n                </div>\n              </div>\n            </div>\n          )}\n\n          <div className={\"sm:col-span-3 max-w-md rounded-xl mt-4\" + (!showUploadLocalVrmMessage ? \"\" : \" hidden\")}>\n            <label className=\"block text-sm font-medium leading-6 text-gray-900\">\n              {t(\"VRM Url\")}\n            </label>\n            <div className=\"mt-2\">\n              <p className=\"text-xs text-slate-500\"></p>\n              <input\n                type=\"text\"\n                className=\"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6\"\n                value={vrmUrl}\n                readOnly={!!sqid}\n                onChange={(e) => {\n                  setVrmUrl(e.target.value);\n                  updateVrmAvatar(viewer, e.target.value);\n                  setVrmLoaded(false);\n                }}\n              />\n              <FilePond\n                ref={vrmUploadFilePond}\n                files={vrmFiles}\n                // this is done to remove type error\n                // filepond is not typed properly\n                onupdatefiles={(files: any) => {\n                  setVrmFiles(files);\n                }}\n                server={`${process.env.NEXT_PUBLIC_AMICA_API_URL}/api/upload?type=vrm`}\n                name=\"file\"\n                labelIdle='.vrm files only<br />click or drag & drop'\n                acceptedFileTypes={['model/gltf-binary']}\n                fileValidateTypeDetectType={vrmDetector}\n                onaddfilestart={(file) => {\n                  setVrmUrl('');\n                  setVrmLoaded(false);\n                }}\n                onremovefile={(err, file) => {\n                  if (err) {\n                    console.error(err);\n                    return;\n                  }\n\n                  setVrmUrl('');\n                  setVrmLoaded(false);\n                }}\n                onprocessfile={(err, file) => {\n                  if (err) {\n                    console.error(err);\n                    return;\n                  }\n\n                  async function handleFile(file: File) {\n                    const hashValue = await hashFile(file);\n                    const url = `${process.env.NEXT_PUBLIC_AMICA_STORAGE_URL}/${hashValue}`;\n                    setVrmUrl(url);\n                    updateVrmAvatar(viewer, url);\n                    if (vrmSaveType == 'local') {\n                      setVrmLoadingFromIndexedDb(false);\n                      setVrmLoadedFromIndexedDb(true);\n                    }\n                    setVrmLoaded(false);\n                  }\n\n                  handleFile(file.file as File);\n                }}\n                disabled={!!sqid}\n              />\n\n              <div className=\"sm:col-span-3 max-w-md rounded-xl mt-4 bg-gray-100\">\n                {vrmUrl && (\n                  <VrmDemo\n                    vrmUrl={vrmUrl}\n                    onLoaded={() => {\n                      setVrmLoaded(true);\n                      (async () => {\n                        try {\n                          const animation = await loadVRMAnimation(\"/animations/idle_loop.vrma\");\n                          if (!animation) {\n                            console.error('loading animation failed');\n                            return;\n                          }\n                          viewer.model!.loadAnimation(animation!);\n                          requestAnimationFrame(() => {\n                            viewer.resetCamera()\n                          });\n                        } catch (e) {\n                          console.error('loading animation failed', e);\n                        }\n                      })();\n                      console.log('vrm demo loaded');\n                    }}\n                  />\n                )}\n              </div>\n            </div>\n          </div>\n\n          {/*\n          <div className=\"sm:col-span-3 max-w-md rounded-xl mt-4\">\n            <label className=\"block text-sm font-medium leading-6 text-gray-900\">\n              Animation Url\n            </label>\n            <div className=\"mt-2\">\n              <input\n                type=\"text\"\n                className=\"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6\"\n                value={animationUrl}\n                readOnly={!! sqid}\n                onChange={(e) => {\n                  setAnimationUrl(e.target.value);\n                }}\n              />\n              <FilePond\n                files={animationFiles}\n                // this is done to remove type error\n                // filepond is not typed properly\n                onupdatefiles={(files: any) => {\n                  setAnimationFiles(files);\n                }}\n                // TODO read this url from env\n                server={`${process.env.NEXT_PUBLIC_AMICA_API_URL}/api/upload?type=anim`}\n                name=\"file\"\n                labelIdle='.vrm files only<br />click or drag & drop'\n                acceptedFileTypes={['model/gltf-binary']}\n                fileValidateTypeDetectType={vrmDetector}\n                onremovefile={(err, file) => {\n                  if (err) {\n                    console.error(err);\n                    return;\n                  }\n\n                  setAnimationUrl('');\n                }}\n                onprocessfile={(err, file) => {\n                  if (err) {\n                    console.error(err);\n                    return;\n                  }\n\n                  async function handleFile(file: File) {\n                    const hashValue = await hashFile(file);\n                    setAnimationUrl(`${process.env.NEXT_PUBLIC_AMICA_STORAGE_URL}/${hashValue}`);\n                  }\n\n                  handleFile(file.file as File);\n                }}\n                disabled={!! sqid}\n              />\n            </div>\n          </div>\n          */}\n\n          <div className=\"sm:col-span-3 max-w-md rounded-xl mt-4\">\n            <label className=\"block text-sm font-medium leading-6 text-gray-900\">\n              Voice Url\n            </label>\n            <div className=\"mt-2\">\n              <input\n                type=\"text\"\n                className=\"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6\"\n                value={voiceUrl}\n                readOnly={!!sqid}\n                onChange={(e) => {\n                  setVoiceUrl(e.target.value);\n                }}\n              />\n              <FilePond\n                files={voiceFiles}\n                // this is done to remove type error\n                // filepond is not typed properly\n                onupdatefiles={(files: any) => {\n                  setVoiceFiles(files);\n                }}\n                server={`${process.env.NEXT_PUBLIC_AMICA_API_URL}/api/upload?type=voice`}\n                name=\"file\"\n                labelIdle='.wav & .mp3 files only<br />click or drag & drop'\n                acceptedFileTypes={['audio/wav', 'audio/mpeg']}\n                onremovefile={(err, file) => {\n                  if (err) {\n                    console.error(err);\n                    return;\n                  }\n\n                  setVoiceUrl('');\n                }}\n                onprocessfile={(err, file) => {\n                  if (err) {\n                    console.error(err);\n                    return;\n                  }\n\n                  async function handleFile(file: File) {\n                    const hashValue = await hashFile(file);\n                    setVoiceUrl(`${process.env.NEXT_PUBLIC_AMICA_STORAGE_URL}/${hashValue}`);\n                  }\n\n                  handleFile(file.file as File);\n                }}\n                disabled={!!sqid}\n              />\n            </div>\n          </div>\n\n          {!sqid && (\n            <div className=\"sm:col-span-3 max-w-md rounded-xl mt-8\">\n              <button\n                onClick={registerCharacter}\n                className=\"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-fuchsia-500 hover:bg-fuchsia-600 focus:outline-none disabled:opacity-50 disabled:hover:bg-fuchsia-500 disabled:cursor-not-allowed\"\n                disabled={!vrmLoaded || showUploadLocalVrmMessage || vrmLoadingFromIndexedDb || isRegistering}\n              >\n                {t(\"Save Character\")}\n              </button>\n            </div>\n          )}\n\n          {sqid && (\n            <div className=\"sm:col-span-3 max-w-md rounded-xl mt-8\">\n              <p className=\"text-sm\">{t(\"Share this code (click to copy):\")}</p>\n              <input\n                type=\"text\"\n                className=\"inline-flex items-center px-2 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-fuchsia-600 bg-fuchsia-100 hover:bg-fuchsia-200 focus:outline-transparent focus:border-transparent border-transparent disabled:opacity-50 disabled:hover:bg-fuchsia-50 disabled:cursor-not-allowed hover:cursor-copy\"\n                defaultValue={sqid}\n                readOnly\n                onClick={(e) => {\n                  // @ts-ignore\n                  navigator.clipboard.writeText(e.target.value);\n                }}\n              />\n              <p className=\"mt-6 text-sm\">\n                {t(\"Or, you can share this direct link:\")}\n                {' '}\n                <Link\n                  href={`https://amica.arbius.ai/import/${sqid}`}\n                  target={isTauri() ? \"_blank\" : ''}\n                  className=\"text-cyan-600 hover:text-cyan-700\"\n                >\n                  https://amica.arbius.ai/import/{sqid}\n                </Link>\n              </p>\n\n              <Link href=\"/\">\n                <button\n                  className=\"mt-6 inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-emerald-500 hover:bg-emerald-600 focus:outline-none disabled:opacity-50 disabled:hover:bg-emerald-500 disabled:cursor-not-allowed\"\n                >\n                  {t(\"Return Home\")}\n                </button>\n              </Link>\n            </div>\n          )}\n        </div>\n        <div>\n          {/* empty column */}\n        </div>\n      </div>\n    </div>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Project source file, react-filepond",
      "display": "src/pages/share.tsx",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Project full_name, react-filepond",
      "display": "semperai/amica",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Project stargazers_count, react-filepond",
      "display": "1.6K",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Library name, @uploadthing/react",
      "display": "@uploadthing/react",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Monthly downloads, @uploadthing/react",
      "display": "688.4K",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "License, @uploadthing/react",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Package release, @uploadthing/react",
      "display": "7.3.3",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Package release date, @uploadthing/react",
      "display": "Aug 2025",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Install, @uploadthing/react",
      "display": "npm install @uploadthing/react@7.3.3 uploadthing@^7.2.0 next@16 react@19.2.0 react-dom@19.2.0",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Quickstart, @uploadthing/react",
      "display": "\"use client\";\nimport { generateReactHelpers } from \"@uploadthing/react\";\nconst { useUploadThing } = generateReactHelpers();\nexport default function App() {\n  const { startUpload, isUploading } = useUploadThing(\"imageUploader\");\n  return <input type=\"file\" accept=\"image/*\" disabled={isUploading} onChange={(event) => { const files = Array.from(event.target.files ?? []); if (files.length) startUpload(files).catch(console.error); }} />;\n}\n",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Repository stars, @uploadthing/react",
      "display": "5.4K",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "HTTP uploads, @uploadthing/react",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "File size limits, @uploadthing/react",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Image thumbnails, @uploadthing/react",
      "display": "Undocumented",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Workflow and integration role, @uploadthing/react",
      "display": "React components and typed helpers for an UploadThing file router, including uploadFiles and useUploadThing. It relies on compatible uploadthing7 server/client peers, configured route, and service token; route limits are server-backed rather than a generic file-input attribute.",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Project function, @uploadthing/react",
      "display": "async function onUpload(files: File[]) {\n    setIsUploading(true);\n    try {\n      const res = await uploadFiles(endpoint, {\n        ...props,\n        files,\n        onUploadProgress: ({ file, progress }) => {\n          setProgresses((prev) => {\n            return {\n              ...prev,\n              [file.name]: progress,\n            };\n          });\n        },\n      });\n\n      setUploadedFiles((prev) => (prev ? [...prev, ...res] : res));\n    } catch (error) {\n      if (error instanceof UploadThingError) {\n        const errorMessage =\n          error.data && \"error\" in error.data\n            ? error.data.error\n            : \"Upload failed\";\n        toast.error(errorMessage);\n        return;\n      }\n\n      toast.error(\n        error instanceof Error ? error.message : \"An unknown error occurred\",\n      );\n    } finally {\n      setProgresses({});\n      setIsUploading(false);\n    }\n  }\n",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Project source file, @uploadthing/react",
      "display": "src/hooks/use-upload-file.ts",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Project full_name, @uploadthing/react",
      "display": "sadmann7/file-uploader",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Project stargazers_count, @uploadthing/react",
      "display": "1.4K",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Library name, react-drag-drop-files",
      "display": "react-drag-drop-files",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Monthly downloads, react-drag-drop-files",
      "display": "557.8K",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "License, react-drag-drop-files",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Package release, react-drag-drop-files",
      "display": "3.1.0",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Package release date, react-drag-drop-files",
      "display": "Jul 2025",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Install, react-drag-drop-files",
      "display": "npm install react-drag-drop-files@3.1.0 react@19.2.0 react-dom@19.2.0",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Quickstart, react-drag-drop-files",
      "display": "import React from \"react\";\nimport { createRoot } from \"react-dom/client\";\nimport { FileUploader } from \"react-drag-drop-files\";\nconst host = document.createElement(\"div\"); document.body.append(host);\ncreateRoot(host).render(<FileUploader name=\"image\" types={[\"JPG\", \"PNG\"]} handleChange={(files) => console.log(files)} />);\n",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Official description, react-drag-drop-files",
      "display": "Provides drag-and-drop uploads for files and images in React, styled with styled-components.",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Quickstart source file, react-drag-drop-files",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Repository stars, react-drag-drop-files",
      "display": "270",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "HTTP uploads, react-drag-drop-files",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "File size limits, react-drag-drop-files",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Image thumbnails, react-drag-drop-files",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Workflow and integration role, react-drag-drop-files",
      "display": "Browser chooser/drop surface with selection callbacks, extension/type checks, and MB size limits. Its label FileUploader does not mean it supplies an HTTP upload backend or transfer engine; custom children can provide application UI.",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best React file upload libraries react-dropzone Uppy React UploadThing React Dropzone Uploader examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
