This repository is designed to give some examples on how to use HAP-NodeJS as a library to create your own HomeKit enabled accessories.
This repository contains examples written in TypeScript as well as in JavaScript. They use HAP-NodeJS v2.3.0 or
later (the @homebridge/hap-nodejs package), which needs Node.js v22.12.0 or later, v24 or v26.
To start with one of the examples, ensure you have Node.js installed and then navigate into the folder for the respective example and follow the instructions defined in the README of the example.
For the full API, see the HAP-NodeJS documentation.
- Light Example: Accessory exposing a
Lightbulbservice withOnandBrightnesscharacteristics
- Light Example: Accessory exposing a
Lightbulbservice withOnandBrightnesscharacteristics