{"id":15659372,"url":"https://github.com/dhaiwat10/react-ipfs-image","last_synced_at":"2025-05-05T19:28:15.244Z","repository":{"id":41524437,"uuid":"510052713","full_name":"Dhaiwat10/react-ipfs-image","owner":"Dhaiwat10","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-29T19:02:10.000Z","size":367,"stargazers_count":22,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-30T23:04:09.950Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-ipfs-image","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dhaiwat10.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-07-03T14:52:47.000Z","updated_at":"2024-12-17T10:04:57.000Z","dependencies_parsed_at":"2024-10-23T06:23:29.748Z","dependency_job_id":"a4816114-5425-4ab4-b6e7-1af89e4613da","html_url":"https://github.com/Dhaiwat10/react-ipfs-image","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dhaiwat10%2Freact-ipfs-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dhaiwat10%2Freact-ipfs-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dhaiwat10%2Freact-ipfs-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dhaiwat10%2Freact-ipfs-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dhaiwat10","download_url":"https://codeload.github.com/Dhaiwat10/react-ipfs-image/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252562332,"owners_count":21768275,"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","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":[],"created_at":"2024-10-03T13:16:29.882Z","updated_at":"2025-05-05T19:28:15.209Z","avatar_url":"https://github.com/Dhaiwat10.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-ipfs-image\n\nEasily render images from IPFS.\n\n## Installation\n\n```bash\nnpm install react-ipfs-image\n\nyarn add react-ipfs-image\n```\n\n## Getting started\n\n```tsx\nimport { IpfsImage } from 'react-ipfs-image';\n\nconst Page = () =\u003e {\n  return (\n    \u003c\u003e\n      {/* works with both of the following formats */}\n      \u003cIpfsImage hash='ipfs://Qme8SriYgGNoXQzG1qYYZKThv3QTBf7pMJwUpu3gqaqQRH'\u003e\n      \u003cIpfsImage hash='Qme8SriYgGNoXQzG1qYYZKThv3QTBf7pMJwUpu3gqaqQRH'\u003e\n\n      {/* you can pass in a gateway URL of your choice. the default gateway url is `https://ipfs.infura.io/ipfs` */}\n      \u003cIpfsImage hash='Qme8SriYgGNoXQzG1qYYZKThv3QTBf7pMJwUpu3gqaqQRH' gatewayUrl='https://gateway.pinata.cloud/ipfs'\u003e\n\n      {/* you can also pass in *any* props you can pass to a native HTML `img` tag */}\n      \u003cIpfsImage hash='Qme8SriYgGNoXQzG1qYYZKThv3QTBf7pMJwUpu3gqaqQRH' alt='my image' className='mt-2 rounded' onClick={() =\u003e {}} /\u003e\n    \u003c/\u003e\n  )\n}\n```\n\nThis package also has `\u003cIpfsVideo /\u003e`, `\u003cIpfsAudio /\u003e` and `\u003cIpfsMedia /\u003e` that work similarly to `\u003cIpfsImage /\u003e`.\n\nMade by [Dhaiwat](https://twitter.com/dhaiwat10)! :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhaiwat10%2Freact-ipfs-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhaiwat10%2Freact-ipfs-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhaiwat10%2Freact-ipfs-image/lists"}