▲ | bArray 3 days ago | |
Does anybody know what they are using in the browser to perform DHT? In theory this could be used to share torrent links by a different reference (ideally you could also add an anchor too). Somebody else could have a page that takes keywords and points you to pages hosted on the site. | ||
▲ | crumpled 3 days ago | parent | next [-] | |
The page is making a WebSocket connection to the server and getting the peer info through the WebSocket connection. I think the magic happens on the server. This is a sample of the client-side code I found handling that: https://infohash.lol/_next/static/chunks/pages/p/%5Bpage%5D-... | ||
▲ | tdjsnelling 3 days ago | parent | prev [-] | |
https://www.npmjs.com/package/bittorrent-dht is used on the server. DHT crawlers/indexers already exist to perform that function; they crawl and store infohashes (+ metadata when they receive it) and allow users to search that metadata to return relevant infohashes |