npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

homebridge-unifi-protect-api

v1.0.5

Published

Homebridge plugin for UniFi Protect using the official Integration API. API key only — no username or password.

Readme

Homebridge UniFi Protect

npm GitHub release npm License

Use this plugin to show UniFi Protect cameras in Apple Home. The plugin uses the official Ubiquiti Integration API.

Features

  • Live video and snapshots
  • HomeKit Secure Video with pre-motion recording
  • Motion, smart detection, smoke, carbon monoxide, and doorbell sensors
  • Control of the camera status LED
  • Live view and snapshots for the package camera
  • Optional camera audio and two-way talkback
  • Protect floodlights as a dimmable light with a motion sensor
  • Chime volume control as a HomeKit light

Requirements

  • Homebridge 2
  • Node.js 22.12 or later, 24, or 26
  • UniFi Protect with the Integration API enabled
  • ffmpeg

Live API checks passed with UniFi Protect 7.3.74. The redacted test fixtures come from Protect 7.2.105. The generated schemas use the official 7.4.102 OpenAPI contract. For more than one camera, use hardware video encoding. For Intel GPUs on Linux, refer to Docker GPU setup.

Compatibility

The November 2026 compatibility audit covers Homebridge 2.5, Node 26, the Protect 7.4.102 API contract, deprecated APIs and TypeScript 7. It updates the October 2026 audit. The plugin keeps TypeScript 6 because ESLint uses the TypeScript 6 compiler API. Homebridge runs the compiled JavaScript.

Installation

  1. In the Homebridge UI, search for Homebridge UniFi Protect.
  2. Install the plugin.
  3. In UniFi Site Manager, go to Integrations and create an API key.
  4. In the plugin settings, enter the console address and the API key.
  5. Select Test Connection.
  6. Save the settings.
  7. Restart Homebridge (or the child bridge of the plugin).

Configuration

Use Defaults for shared settings. Use Devices for the options of one camera. The device list shows after a successful connection test.

The plugin keeps the console certificate after the first connection. If the certificate changes, the plugin does not connect until you trust the new certificate.

HomeKit Secure Video

HKSV is disabled by default. Enable it for each camera, or enable it in the shared default. A camera setting overrides the shared default. HKSV requires a supported iCloud+ plan and an Apple home hub (HomePod or Apple TV). To record from more than one camera, use hardware video encoding.

Troubleshooting

  • Connection or certificate error: Make sure that the console address and the API key are correct. Trust a changed certificate only if you know why it changed.
  • Camera does not respond: Make sure that ffmpeg is installed. Then restart Homebridge (or the child bridge of the plugin).
  • High CPU usage: Enable hardware video encoding, or decrease the number of live views at the same time.
  • HKSV clips are missing: Make sure that HKSV is enabled for the camera. Make sure that your Apple home hub is configured and that your iCloud+ plan supports HKSV.
  • The device list is empty: Select Test Connection first.

Known limitations

At this time, the official Integration API does not supply recording-mode control, privacy zones, or event thumbnails.

Support

Report a problem or request a feature.

License

Apache 2.0