{"id":21109913,"url":"https://github.com/pubky/pkarr","last_synced_at":"2026-05-27T13:02:47.511Z","repository":{"id":151108544,"uuid":"616265546","full_name":"pubky/pkarr","owner":"pubky","description":"Public Key Addressable Resource Records (sovereign TLDs)","archived":false,"fork":false,"pushed_at":"2026-05-22T10:59:46.000Z","size":1509,"stargazers_count":409,"open_issues_count":16,"forks_count":41,"subscribers_count":11,"default_branch":"main","last_synced_at":"2026-05-22T16:06:03.817Z","etag":null,"topics":["distributed-hash-table","dns","public-key","url"],"latest_commit_sha":null,"homepage":"https://pkdns.net","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pubky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-03-20T03:13:32.000Z","updated_at":"2026-05-21T02:30:53.000Z","dependencies_parsed_at":"2026-01-30T16:03:55.358Z","dependency_job_id":null,"html_url":"https://github.com/pubky/pkarr","commit_stats":null,"previous_names":["pubky/pkarr"],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/pubky/pkarr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubky%2Fpkarr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubky%2Fpkarr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubky%2Fpkarr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubky%2Fpkarr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pubky","download_url":"https://codeload.github.com/pubky/pkarr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubky%2Fpkarr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33566873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["distributed-hash-table","dns","public-key","url"],"created_at":"2024-11-20T00:57:18.371Z","updated_at":"2026-05-27T13:02:47.488Z","avatar_url":"https://github.com/pubky.png","language":"Rust","funding_links":[],"categories":["Uncategorized","Rust"],"sub_categories":["Uncategorized"],"readme":"# PKARR\n\n\u003e Own your identity. No registrars. No platforms. Just your keys.\n\n[![Crates.io](https://img.shields.io/crates/v/pkarr)](https://crates.io/crates/pkarr) [![Documentation](https://docs.rs/pkarr/badge.svg)](https://docs.rs/pkarr) [![License](https://img.shields.io/badge/license-MIT-purple)](./LICENSE)\n\nPKARR turns Ed25519 public keys into domain names that you truly own. Publish DNS records to the Bittorrent peer-to-peer network with 10+ million nodes. No registrar can seize your domain. No platform can deplatform your identity.\n\nWhere we are going, this https://o4dksfbqk85ogzdb5osziw6befigbuxmuxkuxq8434q89uj56uyy resolves everywhere!\n\n## Quick Start\n\n```bash\ncargo add pkarr\n```\n\n```rust\nuse pkarr::{Client, Keypair, SignedPacket};\n\n#[tokio::main]\nasync fn main() -\u003e anyhow::Result\u003c()\u003e {\n    // Generate your identity\n    let keypair = Keypair::random();\n    println!(\"Your public key: {}\", keypair.public_key());\n\n    // Create and sign DNS records\n    let packet = SignedPacket::builder()\n        .txt(\"_hello\".try_into()?, \"world\".try_into()?, 3600)\n        .sign(\u0026keypair)?;\n\n    // Publish to the network\n    let client = Client::builder().build()?;\n    client.publish(\u0026packet, None).await?;\n\n    println!(\"Published! Resolve at: https://pkdns.net/?id={}\", keypair.public_key());\n    Ok(())\n}\n```\n\n## Documentation\n\n| Guide | Description |\n|-------|-------------|\n| **[Introduction](./docs/introduction.md)** | Philosophy, concepts, and why PKARR exists |\n| **[Quickstart](./docs/quickstart.md)** | Get started in 5 minutes |\n| **[Integration Guide](./docs/integration.md)** | Embedding Pkarr in your application |\n| **[Feature Reference](./docs/features.md)** | Cargo feature flags and configurations |\n| **[API Reference](https://docs.rs/pkarr/latest/pkarr/)** | Full Rust API documentation |\n| **[Examples](./pkarr/examples/README.md)** | Code samples |\n| **[Specifications](./design/README.md)** | Protocol design documents |\n\n## Demo\n\nTry the [web app](https://pkdns.net) to resolve records in your browser.\n\n## How It Works\n\n1. **Generate a keypair** — Your public key becomes your domain name\n2. **Sign DNS records** — Standard A, AAAA, TXT, CNAME records, self-signed\n3. **Publish to the DHT** — Records stored on the [Mainline DHT](https://en.wikipedia.org/wiki/Mainline_DHT) (10M+ nodes)\n4. **Resolve anywhere** — Anyone can query and verify your records\n\n```mermaid\nsequenceDiagram\n    participant Client\n    participant Relay\n    participant DHT\n\n    Client-\u003e\u003eRelay: Publish signed packet\n    Relay-\u003e\u003eDHT: Store (BEP44)\n\n    Client-\u003e\u003eRelay: Resolve public key\n    Relay-\u003e\u003eDHT: Query\n    DHT-\u003e\u003eRelay: Signed packet\n    Relay-\u003e\u003eClient: Verified response\n```\n\n### The Network\n\nPKARR uses the [Mainline DHT](https://en.wikipedia.org/wiki/Mainline_DHT), the same peer-to-peer network that powers BitTorrent. Records are stored using [BEP44](https://www.bittorrent.org/beps/bep_0044.html) (mutable items). With 15 years of proven reliability and 10+ million active nodes, there's no need to bootstrap a new network.\n\n### Key Points\n\n- **Records are ephemeral** — The DHT drops records after hours; republish periodically\n- **1000-byte limit** — PKARR is for discovery, not storage\n- **Caching everywhere** — Clients and relays cache aggressively for performance\n- **Relays for browsers** — Web apps use HTTP relays since browsers cannot open UDP sockets\n\nPKARR is the I/O library that reads and writes DNS records to the DHT.\n\n## FAQ\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eWhy not blockchain domains (ENS, Handshake)?\u003c/strong\u003e\u003c/summary\u003e\n\nBlockchain domains introduce artificial scarcity, transaction fees, and chain dependencies. PKARR uses public keys directly—infinite supply, zero fees, no chain lock-in.\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eWhy not GNU Name System?\u003c/strong\u003e\u003c/summary\u003e\n\nGNS is sophisticated but requires the full GNU net stack. PKARR takes a minimalist approach: leverage existing infrastructure (Mainline DHT) and leave advanced features to application layers. Both use Ed25519, so migration paths exist.\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eWhy Mainline DHT specifically?\u003c/strong\u003e\u003c/summary\u003e\n\nIt already exists. 15 years of reliability, 10+ million nodes, implementations in most languages. No need to bootstrap a new network or convince people to join.\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eWhat about human-readable names?\u003c/strong\u003e\u003c/summary\u003e\n\nPublic keys are not memorable by design—memorable names require registries, and registries introduce centralization. Build petname systems, phonebooks, or DNS bridges on top of PKARR if you need human-friendly names.\n\u003c/details\u003e\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpubky%2Fpkarr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpubky%2Fpkarr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpubky%2Fpkarr/lists"}