Swiftpack.co -  Bouke/HAP as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Swift implementation of the Homekit Accessory Protocol
.package(url: "https://github.com/Bouke/HAP.git", from: "backup-master-13-27-07")

Homekit Accessory Protocol, implemented in Swift

The goal of this package is to provide a complete implementation of the Homekit Accessory Protocol, enabling you to build your DIY accessories, and connect your non-HAP devices.

Build Status Maintainability Rating


  • Persistent configuration across reboots.
  • Homekit pairing by scanning QR code (shipped in iOS 11).
  • Speakers and Remote Control accessories (shipped in iOS 12 / macOS Mojave).
  • Television accessories (shipped in iOS 12.2 / macOS 10.14.3).
  • Extensibility through custom services and characteristics.
  • Runs on Linux / Raspbian (Raspberry Pi).


Remember that this is not a commercial product, but the result of free labor.

  • If you need help using this library, open an issue here on GitHub. The more detail the better!
  • If you found a bug, open an issue here on GitHub. The more detail the better!
  • If you want to contribute, submit a pull request.



This library was written by Bouke Haarsma and contributors.


Stars: 315
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

1 year ago


  • HAP definitions from macOS Catalina.


  • Swift 5 required.
  • SwiftNIO upgraded to v2.
  • Logging through SwiftLog instead of Evergreen.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API