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-philips-airctrl

v0.1.0

Published

HomeKit support for Philips air purifiers over encrypted CoAP, with no Python dependency.

Readme

Homebridge Philips Air Purifier

HomeKit support for Philips air purifiers over their local, encrypted CoAP API.

No Python. No cloud. No third-party CoAP library. The protocol — CoAP framing, the AES-128-CBC encryption, the device key registry — is implemented in TypeScript inside this plugin, so installing it is a plain npm install with no system dependencies and no install scripts.

Why another Philips plugin

Existing Homebridge plugins for these purifiers bundle the Python aioairctrl library and shell out to it, which means a Python runtime, install scripts, and a setup that breaks whenever the host Python changes. This plugin is a direct port of philips-airctrl to TypeScript, with the device model registry from ha-philips-airpurifier.

Requirements

  • Homebridge 2.0 or newer
  • Node.js 22.12+ or 24+
  • A Philips purifier on your local network that speaks the CoAP API (port 5683)

Setup

Install the plugin, then open its settings in the Homebridge UI. The panel scans your network automatically and lists any purifiers it finds — click Add. There is no JSON to edit.

If a device is not found (some networks block the subnet sweep), type its IP into Device IP and click Add.

What you get in HomeKit

| Service | Notes | | --- | --- | | Air Purifier | On/off, fan speed, and Auto/Manual | | Air Quality Sensor | Derived from PM2.5 | | Temperature Sensor | If the model reports it | | Humidity Sensor | If the model reports it | | Filter Maintenance | Pre-filter and NanoProtect life, with change indication | | Lightbulb | Display light, on models with a writable light control | | Switch | Sleep mode, Auto+ AI, and Beep — each opt-in |

Optional services appear only if your model supports them and the device actually reports the corresponding keys.

Configuration

Everything is set from the UI. Each device has:

  • IP Address — required
  • Name — defaults to the name the device reports
  • Display light, Sleep switch, Auto+ AI switch, Beep switch — opt-ins

The CoAP port defaults to 5683 and is only settable via the JSON config editor, since it never differs on stock firmware.

Notes on device behaviour

A few things this plugin handles that are easy to get wrong, all confirmed against real hardware:

  • D03105 is a read-only status mirror. Writes are acknowledged and silently discarded. The writable display-light control is D03135.
  • Beep is a boolean stored as 0 / 100, not 0 / 1.
  • Speed 5 is Turbo — it is not a separate mode.

The device API uses non-confirmable CoAP messages, which have no retransmission, so a dropped packet is normal. The plugin retries with backoff rather than treating a single lost datagram as a missing device.

Licence

MIT © Ruaan Deysel