'use client'; import { motion } from 'framer-motion'; import { Network, Search, Users } from 'lucide-react'; export default function PeerDiscoveryDiagram() { return (
Topic: sha256(TOPIC_SEED)
{[ { name: 'Peer 1', status: 'Online' }, { name: 'Peer 2', status: 'Online' }, { name: 'Peer 3', status: 'Online' }, { name: 'Peer 4', status: 'Online' }, ].map((peer, index) => (

{peer.name}

{peer.status}
))}

1. Join Topic

Peers announce themselves to the DHT using the P2NS topic

2. Discover Peers

Query the DHT to find other peers interested in the same topic

3. Connect

Establish direct connections using UDP hole-punching

Hyperswarm automatically handles peer churn and reconnection, ensuring the network remains connected even as peers join and leave.

); }