8 ms·
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
by bArray 1y 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.
- tdjsnelling 1y agohttps://www.npmjs.com/package/bittorrent-dht 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
- crumpled 1y agoThe 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-b53445673a06cebd.js https://infohash.lol/_next/static/chunks/pages/p/%5Bpage%5D-...