ipfs-downloader is a simple script which allows one to download files from the IPFS directly from the browser without using gateways. It creates an IPFS node when the download button is first clicked.
npm install
npm run bundle
- Add the generated
bundle.js
script and thestyles.css
stylesheet to your page; - For each IPFS file, add:
<a class="ipfs-downloader" data-cid="/ipfs/CID" download="filename.ext">Download label</a>
See the public/index.html example or try it live (from IPFS).
- High priority:
- Allow downloading directories (zipped);
- Don't store file in RAM (should allow downloading larger files).
- Medium priority:
- Customization;
- Show details (size, rate, status, ...).
- Low priority:
- Use running node, if present.