finds.dev

insidegui/MultipeerKit

MultipeerConnectivity + Codable = ❤️

View on GitHub

★ 1,132SwiftBSD-2-Clauseupdated Jun 2026

// the take

A thin Codable wrapper around Apple's MultipeerConnectivity framework, letting iOS/macOS/tvOS apps broadcast and receive typed Swift structs over Wi-Fi/Bluetooth peer-to-peer without touching MCSession directly. Useful for anyone building local multiplayer, device-to-device sync, or demos that need peer discovery without a server.

Codable support means you define a struct and call broadcast/receive — no manual NSCoding or binary packing. The public API is just MultipeerTransceiver plus a couple of methods, so there's almost nothing to learn. It ships a MockMultipeerConnection internally, suggesting the networking layer is actually testable rather than tightly coupled to real radios. Works across iOS, macOS and tvOS from one Swift package.

Still on a 0.x version after years of existence, so the API isn't contractually stable. Single maintainer (insidegui) with no visible contributor base — if he moves on, this stops getting updates. The README doesn't address message size limits, chunking for large payloads, or what happens on disconnect/reconnect mid-transfer, all of which matter once you go past a toy demo. iOS 14's local network privacy prompt requires exact Info.plist configuration (NSBonjourServices string must match serviceType precisely) and the library gives no runtime warning if you get it wrong — it just silently fails to connect.

We read the README, the directory tree and a key source file in October 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
1,132
Forks
79
Language
Swift
License
BSD-2-Clause
Last commit
29 Jun 2026

// nearby

If MultipeerKit isn't quite it.

All repos →