xuanyi-fu / tor-ipfs-gateway

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IPFS Tor Downloader

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.

Prerequisites

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

Installing IPFS Tor Downloader

To install IPFS Tor Downloader, follow these steps:

  1. Clone this repository:
git clone https://github.com/xuanyi-fu/tor-ipfs-gateway.git
  1. Navigate to the project directory:
cd tor-ipfs-gateway
  1. Install the dependencies:
npm install

Using IPFS Tor Downloader

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.

About


Languages

Language:TypeScript 98.2%Language:JavaScript 1.8%