Skip to content
Ben edited this page Nov 1, 2026 · 29 revisions

HAP-NodeJS

HAP-NodeJS is an implementation of the HomeKit Accessory Server as specified in the HomeKit Accessory Protocol (HAP), which is defined by Apple as part of the HomeKit Framework. It is written in Typescript and compiled to Javascript to be run using Node.js.

HAP-NodeJS is intended to be used as a library to easily implement your own HomeKit Accessory. It does not provide any implementation for any popular devices out there.
If you are searching for a pluggable HomeKit bridge with over a thousand community driven plugins to bring HomeKit support to devices which do not support HomeKit out of the box, you may want to look at the homebridge project (which also uses HAP-NodeJS internally).

HAP-NodeJS is published on npm as @homebridge/hap-nodejs. HAP-NodeJS v2.3.0 needs Node.js v22.12.0 (or a newer v22 release), v24 or v26. The full API is documented at developers.homebridge.io.

If you are still here below are some resources to get you started with developing your first own HomeKit accessory.


Outdated pages

Installation

Homebridge Help

Homebridge UI Help

Versioning

Plugins

Raspberry Pi Image
Docker
Synology Package
HAP-NodeJS

Developers

Clone this wiki locally