{"id":15417586,"url":"https://github.com/yash-deore/react-ipfs-uploader","last_synced_at":"2025-10-11T08:31:00.641Z","repository":{"id":65845287,"uuid":"430370437","full_name":"yash-deore/react-ipfs-uploader","owner":"yash-deore","description":"React Components that enable you to upload file , files or folder to IPFS .","archived":false,"fork":false,"pushed_at":"2023-03-31T11:17:14.000Z","size":1600,"stargazers_count":26,"open_issues_count":0,"forks_count":15,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T14:32:23.405Z","etag":null,"topics":["create-react-library","ipfs-http-client","it-all","react-bootstrap","reactjs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-ipfs-uploader","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yash-deore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-21T13:12:09.000Z","updated_at":"2025-04-16T14:48:42.000Z","dependencies_parsed_at":"2025-01-28T18:43:02.713Z","dependency_job_id":null,"html_url":"https://github.com/yash-deore/react-ipfs-uploader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yash-deore/react-ipfs-uploader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yash-deore%2Freact-ipfs-uploader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yash-deore%2Freact-ipfs-uploader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yash-deore%2Freact-ipfs-uploader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yash-deore%2Freact-ipfs-uploader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yash-deore","download_url":"https://codeload.github.com/yash-deore/react-ipfs-uploader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yash-deore%2Freact-ipfs-uploader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006611,"owners_count":26084148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["create-react-library","ipfs-http-client","it-all","react-bootstrap","reactjs"],"created_at":"2024-10-01T17:16:20.356Z","updated_at":"2025-10-11T08:31:00.028Z","avatar_url":"https://github.com/yash-deore.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-ipfs-uploader\n\n## React Components that enable you to upload a file(Images,PDFs,Text,etc.) , multiple files or a folder to IPFS .\n\n[![NPM](https://img.shields.io/npm/v/react-ipfs-uploader.svg)](https://www.npmjs.com/package/react-ipfs-uploader)\n![downloads](https://img.shields.io/npm/dt/react-ipfs-uploader.svg)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n# Note\n\n\u003e This package uses Infura's public gateway to upload files to IPFS. Infura's public gateway is not available anymore since it has become a paid service and will require a projectId and API key to upload files. Due to this the compoenents are unable to upload files to IPFS. \u003cbr/\u003e\n\u003e\n\u003e -- Yash Deore (creator of react-ipfs-uploader)\n\n## Install\n\n### npm :\n\n```bash\nnpm install react-ipfs-uploader\n```\n\n### yarn :\n\n```bash\nyarn add react-ipfs-uploader\n```\n\n## Features\n\n## Single File Upload Components :\n\n1 . FileUpload : Uploads the selcted File and returns the URL after uploading the file . \u003cbr /\u003e\n2 . ImageUpload : Shows the user a preview of the selected Image and returns the URL after uploading . \u003cbr /\u003e\n3 . PdfUpload : Shows the user a preview of the selected PDF and returns the URL after uploading . \u003cbr /\u003e\n4 . TextUpload : Returns the URL of the Text after uploading . \u003cbr /\u003e\n\n## Multiple Files Upload Components :\n\n1 . MultipleFilesUpload : Uploads the selcted Files and returns the URL after uploading the files . \u003cbr /\u003e\n2 . FolderUpload : Uploads the selected Folder and returns the URL after uploading the folder . \u003cbr /\u003e\n\n## Usage\n\n1 . Declare an `useState` hook that can hold a string as its current state . \u003cbr/\u003e\n2 . Pass the `setFunction` to the component you are using ie. `setUrl={setFunction}` \u003cbr/\u003e\n3 . As you upload the file , files or folder the url will be returned .\n\n\u003e ### FileUpload : Uploads the selcted File and returns the URL after uploading the file .\n\n\u003e Example : https://codesandbox.io/s/fileupload-81g84\n\n```jsx\n// FileUpload Component : Uploads the selcted File and returns the URL after uploading the file .\nimport React, { useState } from 'react'\nimport { FileUpload } from 'react-ipfs-uploader'\n\nconst YourComponent = () =\u003e {\n    const [fileUrl, setFileUrl] = useState('')\n\n    return (\n        \u003cdiv\u003e\n            \u003cFileUpload setUrl={setFileUrl} /\u003e\n            FileUrl : \u003ca\n                href={fileUrl}\n                target='_blank'\n                rel='noopener noreferrer'\n            \u003e\n                {fileUrl}\n            \u003c/a\u003e\n        \u003c/div\u003e\n    )\n}\n\nexport default YourComponent\n```\n\n\u003e ### MultipleFilesUpload : Uploads Multiple Files and returns the URL after uploading the files .\n\n\u003e Example : https://codesandbox.io/s/multiplefilesupload-uf6yw\n\n```jsx\n// MultipleFilesUpload Component : Uploads Multiple files to IPFS and returns the URL\nimport React, { useState } from 'react'\nimport { MultipleFilesUpload } from 'react-ipfs-uploader'\n\nconst YourComponent = () =\u003e {\n    const [multipleFilesUrl, setMultipleFilesUrl] = useState('')\n\n    return (\n        \u003cdiv\u003e\n            \u003cMultipleFilesUpload setUrl={setMultipleFilesUrl} /\u003e\n            MultipleFilesUrl : \u003ca\n                href={multipleFilesUrl}\n                target='_blank'\n                rel='noopener noreferrer'\n            \u003e\n                {multipleFilesUrl}\n            \u003c/a\u003e\n        \u003c/div\u003e\n    )\n}\n\nexport default YourComponent\n```\n\n\u003e ### FolderUpload : Uploads Folder and returns the URL after uploading the folder .\n\n\u003e Example : https://codesandbox.io/s/folderupload-y6j2b\n\n```jsx\n// FolderUpload Component : Uploads a Folder to IPFS and returns the URL\nimport React, { useState } from 'react'\nimport { FolderUpload } from 'react-ipfs-uploader'\n\nconst YourComponent = () =\u003e {\n    const [folderUrl, setFolderUrl] = useState('')\n\n    return (\n        \u003cdiv\u003e\n            \u003cFolderUpload setUrl={setFolderUrl} /\u003e\n            FolderUrl : \u003ca\n                href={folderUrl}\n                target='_blank'\n                rel='noopener noreferrer'\n            \u003e\n                {folderUrl}\n            \u003c/a\u003e\n        \u003c/div\u003e\n    )\n}\n\nexport default YourComponent\n```\n\n\u003e ### ImageUpload : Shows the user a preview of the selected Image and returns the URL after uploading .\n\n\u003e Example : https://codesandbox.io/s/imageupload-65kpl\n\n```jsx\n// ImageUpload : Shows the user a preview of the selected Image and returns the URL after uploading .\nimport React, { useState } from 'react'\nimport { ImageUpload } from 'react-ipfs-uploader'\n\nconst YourComponent = () =\u003e {\n    const [imageUrl, setImageUrl] = useState('')\n\n    return (\n        \u003cdiv\u003e\n            \u003cImageUpload setUrl={setImageUrl} /\u003e\n            ImageUrl : \u003ca\n                href={imageUrl}\n                target='_blank'\n                rel='noopener noreferrer'\n            \u003e\n                {imageUrl}\n            \u003c/a\u003e\n        \u003c/div\u003e\n    )\n}\n\nexport default YourComponent\n```\n\n\u003e ### PdfUpload : Shows the user a preview of the selected PDF and returns the URL after uploading .\n\n\u003e Example : https://codesandbox.io/s/pdfupload-ce4ch\n\n```jsx\n// PdfUpload : Shows the user a preview of the selected PDF and returns the URL after uploading .\nimport React, { useState } from 'react'\nimport { PdfUpload } from 'react-ipfs-uploader'\n\nconst YourComponent = () =\u003e {\n    const [pdfUrl, setPdfUrl] = useState('')\n\n    return (\n        \u003cdiv\u003e\n            \u003cPdfUpload setUrl={setPdfUrl} /\u003e\n            Pdfurl : \u003ca href={pdfUrl} target='_blank' rel='noopener noreferrer'\u003e\n                {pdfUrl}\n            \u003c/a\u003e\n        \u003c/div\u003e\n    )\n}\n\nexport default YourComponent\n```\n\n\u003e ### TextUpload : Returns the URL of the Text after uploading\n\n\u003e Example : https://codesandbox.io/s/textupload-vpcst\n\n```jsx\n// TextUpload : Returns the URL of the Text after uploading\nimport React, { useState } from 'react'\nimport { Textupload } from 'react-ipfs-uploader'\n\nconst YourComponent = () =\u003e {\n    const [textUrl, setTextUrl] = useState('')\n\n    return (\n        \u003cdiv\u003e\n            \u003cTextUpload setUrl={setTextUrl} /\u003e\n            TextUrl : \u003ca\n                href={textUrl}\n                target='_blank'\n                rel='noopener noreferrer'\n            \u003e\n                {textUrl}\n            \u003c/a\u003e\n        \u003c/div\u003e\n    )\n}\n\nexport default YourComponent\n```\n\n## Links\n\nDeveloper Chat : https://discord.gg/bgY4TZecVu \u003cbr/\u003e\nCodeSandBox : https://codesandbox.io/u/yash-deore \u003cbr/\u003e\nNPM Package : https://www.npmjs.com/package/react-ipfs-uploader \u003cbr/\u003e\nGitHub Repository : https://github.com/yash-deore/react-ipfs-uploader \u003cbr/\u003e\n\n## License\n\nMIT © [yash-deore](https://github.com/yash-deore)\n\n\u003e ### Made with react , create-react-library , react-bootstrap , ipfs-http-client , it-all\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyash-deore%2Freact-ipfs-uploader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyash-deore%2Freact-ipfs-uploader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyash-deore%2Freact-ipfs-uploader/lists"}