This is a command-line utility for downloading files from the IPFS Gateway through the Tor Network. It ensures your privacy by routing all traffic through the Tor Network.
Before you begin, ensure you have met the following requirements:
- You have installed the latest version of node.js and npm
- You have a macOS, Ubuntu machine.
- You have installed the Tor CLI. You can install it on macOS using Homebrew with the following command:
brew install tor
For Ubuntu:
sudo apt update
sudo apt install tor
To install IPFS Tor Downloader, follow these steps:
- Clone this repository:
git clone https://github.com/xuanyi-fu/tor-ipfs-gateway.git
- Navigate to the project directory:
cd tor-ipfs-gateway
- Install the dependencies:
npm install
Before using this utility, ensure that the Tor daemon is running. You can start it with the following command:
tor
To download a file, use the following command:
npx ts-node index.ts --cid <CID> --file <path-to-the-download-file>
Replace <CID>
with the CID of the file you want to download from the IPFS Gateway, and <path-to-the-download-file>
with the path where you want to save the downloaded file.