# brutella/hc

hc is a lightweight framework to develop HomeKit accessories in Go.

Repository: https://github.com/brutella/hc
Canonical: https://ross.abutalabs.com/products/hc
Language: Go
License: Apache-2.0
License Family: permissive
Topics: homekit, go, hap
Last push: 2023-07-18T09:59:09+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4207, "days_push": 1142, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1738, forks 181 (observed 2026-08-28T04:05:30.014032+00:00)

## What it is
hc is a lightweight Go framework that implements Apple's HomeKit Accessory Protocol (HAP), letting developers build HomeKit accessories without handling the protocol details. It supports all HomeKit services and characteristics and announces itself via DNS-SD.

## Use cases
- build a HomeKit-compatible smart light in Go
- expose a custom sensor to Apple's Home app
- implement a HomeKit switch accessory
- bridge existing hardware like LiFX or KNX to HomeKit
- develop a HomeKit camera accessory

## When to choose
- you need a full Go implementation of the HomeKit Accessory Protocol
- you want to make custom hardware controllable from iOS Home app
- you're maintaining an existing project already built on hc

## When to avoid
- starting a new project - use the successor brutella/hap library instead
- you need actively maintained code with recent bug fixes
- you target platforms other than linux or macOS

## Facets
- artifact type: framework
- maturity: abandoned
- function: sdk, networking, security
- domain: iot, developer-tools
- platform: go
- tags: homekit, hap, smart-home, go-framework, deprecated, linux, macos

## Member repositories
- brutella/hc (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:30.014032+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:30:36.161793+00:00, confidence not recorded.
  - readme: https://github.com/brutella/hc (fetched 2026-08-28T04:05:30.014032+00:00, sha 34afb3b7b1c4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
