Skip to content

Downloads IPFS files using a browser node

License

Notifications You must be signed in to change notification settings

LHLaurini/ipfs-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ipfs-downloader

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.

Building

npm install
npm run bundle

Usage

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

To-do

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