🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

http-dht-proxy

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-dht-proxy

Relay http request to dht peer

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

CI

Http DHT Proxy

Relay http request to dht peer

Installation

Install globally to use the http-dht-proxy command:

npm install -g http-dht-proxy

Usage

Run a http-dht-proxy:

http-dht-proxy 8080

Example

Start proxy server: node bin.js

HTTP-to-DHT proxy on 8080

Start sample server: node example/server.js

Local http server on 8081
DHT public key f7tnaio84i4r9n7escd7dp7ke3umumorm4yijfqupqwzkd3m533o

Send request:

  • with pathname: node example/client.js <dht-public-key>
  • with header: node example/client-header.js <dht-public-key>

Server will receive request

New request {
  host: 'localhost:8080',
  connection: 'keep-alive',
  'content-type': 'text/plain;charset=UTF-8',
  accept: '*/*',
  'accept-language': '*',
  'sec-fetch-mode': 'cors',
  'user-agent': 'node',
  'accept-encoding': 'gzip, deflate',
  'content-length': '35'
} {"message":"Request with pathname"}

New request {
  host: 'localhost:8080',
  connection: 'keep-alive',
  'dht-public-key': 'f7tnaio84i4r9n7escd7dp7ke3umumorm4yijfqupqwzkd3m533o',
  'content-type': 'text/plain;charset=UTF-8',
  accept: '*/*',
  'accept-language': '*',
  'sec-fetch-mode': 'cors',
  'user-agent': 'node',
  'accept-encoding': 'gzip, deflate',
  'content-length': '33'
} {"message":"Request with header"}

FAQs

Package last updated on 14 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts