Skip to content

LHLaurini/ipfs-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ipfs-downloader

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.

Building

npm install
npm run build

Usage

  1. Add the generated bundle.js and styles.css to your page;
  2. 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.

To-do

  • 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.

About

Downloads IPFS files using a browser node

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages