#decentralized-identity #dns #dht #mainline #mainline-dht-dns

pkarr

Public-Key Addressable Resource Records (Pkarr); publish and resolve DNS records over Mainline DHT

55 releases (stable)

new 3.7.1 Apr 14, 2025
3.6.0 Mar 12, 2025
2.3.1 Jan 12, 2025
2.2.1 Dec 17, 2024
0.3.0 Oct 25, 2023

#686 in Network programming

Download history 1317/week @ 2024-12-24 2466/week @ 2024-12-31 2967/week @ 2025-01-07 3235/week @ 2025-01-14 2587/week @ 2025-01-21 2865/week @ 2025-01-28 3764/week @ 2025-02-04 4124/week @ 2025-02-11 3921/week @ 2025-02-18 4314/week @ 2025-02-25 3020/week @ 2025-03-04 4509/week @ 2025-03-11 3742/week @ 2025-03-18 4481/week @ 2025-03-25 4446/week @ 2025-04-01 2252/week @ 2025-04-08

15,637 downloads per month
Used in 98 crates (14 directly)

MIT license

200KB
4K SLoC

Pkarr

Rust implementation of Pkarr for publishing and resolving DNS packets over Mainline DHT.

Documentation

Features

Runtime Support

  • Asynchronous by Default: Built on async/await for optimal performance
  • Blocking API Available: Use Client::as_blocking() for synchronous operations
  • Runtime Agnostic: Compatible with non-Tokio runtimes via async_compat

WebAssembly

  • Browser Environment: Designed for JavaScript/Wasm integration
  • Relay Communication: Uses browser's Fetch API for relay calls
  • Limitations:
    • Not compatible with WASI
    • Cannot use WASI bindings for direct DHT access

Dependencies

~2–35MB
~529K SLoC