Skip to content

About

Collection of examples to get started using HAP-NodeJS as a library.

Resources

Contributing

Security policy

Stars

16 stars

Watchers

5 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

HAP-NodeJS Examples

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.

TypeScript

  • Light Example: Accessory exposing a Lightbulb service with On and Brightness characteristics

JavaScript

  • Light Example: Accessory exposing a Lightbulb service with On and Brightness characteristics

About

Collection of examples to get started using HAP-NodeJS as a library.

Resources

Contributing

Security policy

Stars

16 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages