The simple file storage service for IPFS & Filecoin.
Usage
Store your files with web3.storage and retrieve them via their unique Content ID. Our tools make it simple to hash your content locally, so you can verify the service only ever stores the exact bytes you asked us to. Pick the method of using with web3.storage that works for you!
Website
Create an account via https://web3.storage and upload right from the website using our uploader. Under the hood it uses the web3.storage client that we publish to npm to chunk and hash your files to calculate the root IPFS CID in your browser before sending them to https://api.web3.storage.
Create an api token for your account and you can use any of the following alternatives to upload your data.
JS Client
Use npm to install the web3.storage module into your JS project, create an instance of the client with your api token, and use the .put method to upload your files in node.js or the browser.
Our command line tool w3 is a wrapper around the JS Client to make adding files from your terminal as simple as w3 put ~/gifs.
Install @web3-storage/w3 globally and save your api token then add your files to web3! It calculates the root CID for your files locally before sending them to web3.storage.
shell
$ w3 token? Paste your API token for api.web3.storage › <your api token here>⁂ API token saved
$ w3 put ~/Pictures/ayy-lamo.jpg⁂ Stored 1 file⁂ https://dweb.link/ipfs/bafybeid6gpbsqkpfrsx6b6ywrt24je4xqe4eo4y2wldisl6sk7byny5uky
Use it anywhere you can get a shell. Get creative! For example, we use this for perfomance testing the upload speed in CI!
请发表评论