swift-libp2p / P2P / NETWORKING

Put the peer at the center.

Let devices find one another and exchange with a purpose. Compose how an app connects.

Start with the peer, then choose the route.

P2P (peer-to-peer) distributed systems separate peer identity from the communication path. PeerID anchors discovery, transports such as QUIC or WebRTC, stream multiplexing and application protocols. This composition selects routes while retaining libp2p interoperability; it does not remove the possible need for NAT traversal, relays or other external infrastructure.

Read the source · README.md ↗
01

Behind the experience

This projectConsuming app / personExternal technology
Uses / depends onData / executionResult / response

Select a node to read its role.

This projectPeerID / Discovery

Own peer identity and discovery

  • PeerID / Discovery→Selected TransportUses / depends on
  • Selected Transport→TLS / CryptoUses / depends on
  • Selected Transport→Mux / ProtocolsData / execution
  • Mux / Protocols→Peer appData / execution
  • Peer app→PeerID / DiscoveryResult / response

Compose PeerID and discovery, a selected transport, delegated cryptography and stream multiplexing. Run the chosen peer protocols above them.

02

Build an app around relationships between peers.

Start with who exchanges what, and how. Developers can select discovery, transport and exchange protocols around each device’s role and the purpose of the application.

A field team shares findings and talks over terrain notes.

An AI-generated imagined use scenario, not an actual customer or product screen.

Explore more work →