Observed since 20 Oct, 23:24 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
React components and hooks to work with IPFS. This library uses Flair's APIs to upload and pin the file to IPFS, but the file will not be stored on the backend.
react-ipfsReact components and hooks to work with IPFS. This library uses Flair's APIs to upload and pin the file to IPFS, but the file will not be stored on the backend.
Install the package:
npm install @0xflair/react-ipfs
Install peer dependencies:
npm install axios
# if visual components needed:
npm install tailwindcss @headlessui/react @heroicons/react @tailwindcss/aspect-ratio
Configure tailwind.config.js (Tailwind v3) to scan SDK for classes (if visual components needed):
module.exports = {
purge: [
"./public/**/*.html",
"./src/**/*.{js,jsx,ts,tsx,vue}",
// This line tells Tailwind to look into SDK files
"./node_modules/@0xflair/**/*.{js,jsx,ts,tsx,vue}",
],
content: ["./src/**/*.{js,jsx,ts,tsx}"],
plugins: [
// These plugins are used in this package
require("@tailwindcss/forms"),
require("@tailwindcss/aspect-ratio"),
],
};
import { useIpfsFileUploader } from "@0xflair/react-ipfs";
function App() {
const [userFile, serUserFile] = useState<File>();
const [{
data: ipfsUrl,
error: ipfsError,
loading: ipfsLoading
}, ipfsUpload] = useIpfsFileUploader({
autoUpload: true,
fromFile: userFile,
});
return (
<ul>
<li>Choose file: <input type="file" value={userFile} onChange={setUserFile} /></li>
<li>IPFS Loading: {ipfsLoading ? 'Yes...' : 'Idle'}</li>
<li>IPFS Error: {ipfsError?.message || ipfsError?.toString()}</li>
</ul>
);
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.123.2Registry latest | 27 Nov 2022 | 6 | |
| 0.123.1 | 12 Nov 2022 | 6 | |
| 0.123.0 | 8 Nov 2022 | 6 | |
| 0.122.2 | 28 Oct 2022 | 6 | |
| 0.122.1 | 28 Oct 2022 | 6 | |
| 0.122.0 | 28 Oct 2022 | 6 | |
| 0.121.2 | 27 Oct 2022 | 6 | |
| 0.121.1 | 24 Oct 2022 | 6 | |
| 0.121.0 | 20 Oct 2022 | 6 | |
| 0.120.11 | 20 Oct 2022 | 6 | |
| 0.120.10 | 19 Oct 2022 | 6 | |
| 0.120.9 | 10 Oct 2022 | 6 | |
| 0.120.8 | 10 Oct 2022 | 6 | |
| 0.120.7 | 10 Oct 2022 | 6 | |
| 0.120.6 | 3 Oct 2022 | 6 | |
| 0.120.5 | 3 Oct 2022 | 6 | |
| 0.120.4 | 3 Oct 2022 | 6 | |
| 0.120.3 | 3 Oct 2022 | 6 | |
| 0.120.2 | 3 Oct 2022 | 6 | |
| 0.120.1 | 30 Sept 2022 | 6 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 23:24 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:e4e023d9216195a87068e3316894a48c25f6b1221c91b0941765f5c52b454b03