ipfs-downloader is an example showing how to download files from IPFS directly from the browser without using gateways. It creates an IPFS node once the download button is first clicked.
npm install
npm run build- Add the generated
bundle.jsandstyles.cssto your page; - For each IPFS file, add:
<a class="ipfs-downloader" data-path="/ipfs/CID/filename" download="filename.ext">Download label</a>See the public/index.html example (requires HTTPS) or try it live.
- Allow downloading directories (zipped);
- Don't store file in RAM (should allow downloading larger files).
- Customization;
- Show details (size, rate, status, ...).
- Use running node, if present.