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-samsung-aircon

v0.7.3

Published

Personal-use Homebridge plugin reverse-engineered against one specific Samsung combo system (FAC_BORA_17K Stand + FAC_BORA_RAC_17K Room) over its local HTTP API — not a general-purpose Samsung HVAC driver

Readme

homebridge-samsung-aircon

⚠️ Personal-use plugin. This is reverse-engineered against one specific Samsung combo system (FAC_BORA_17K Stand + FAC_BORA_RAC_17K Room) in the author's own home, over the unit's local HTTP API. Other Samsung aircon models, other firmware revisions, or other regions may not match the wire shape the code assumes. There are no guarantees, no general-purpose driver claim, and no support channel — fork it, adapt it for your unit, or skip it. The reverse-engineering notes in docs/ are the only thing that travels well.

Homebridge plugin that exposes Samsung air conditioners (local HTTP API) to Apple Home (HomeKit).

Overview

A Homebridge dynamic platform plugin that wraps the Samsung aircon local HTTP API and surfaces it as HomeKit accessories. Targets one personal home-server deployment — single-controller (Apple Home) environment, single combo system, single firmware build.

Supported hardware

  • Stand (FAC_BORA_17K) — verified with live PUT probes and the full sweep documented in docs/lessons.md. Surfaces as two HomeKit accessories (see ADR-0008): a primary aircon accessory with Thermostat + Fanv2 + optional Blooming vent switches, plus a separate purifier accessory with AirPurifier + AirQualitySensor.
  • Room (FAC_BORA_RAC_17K prefix) — discovered and read-verified as the auxiliary indoor unit of the same combo system. Single Thermostat + Fanv2 accessory (no Sensors[], no purifier accessory, no Blooming on this hardware).
  • Anything else — untested. Don't expect it to work.

Requirements

  • Node.js 18.17 LTS or newer
  • Homebridge 1.8+ (or 2.0 beta)
  • Samsung aircon reachable on the local network via its HTTP API. Transport-layer setup (TLS / mTLS / cert-proxy) is environment-specific and out of scope here; the plugin speaks plain HTTP to whichever URL you configure.

Install

npm install
npm run build

Then add the plugin to your Homebridge config — the Homebridge UI consumes config.schema.json so the form is rendered automatically. The only required field is baseUrl (the Samsung HTTP API base); per-aircon overrides are optional metadata keyed by manufacturer serial number (see ADR-0003 / ADR-0004).

Development

npm run watch       # homebridge -D with auto-rebuild
npm run build       # tsc → dist/
npm run typecheck   # tsc --noEmit
npm test            # vitest
npm run fmt         # biome check --write
npm run fmt:check   # biome check (verify only)

Git hooks are wired via husky (activated on npm install):

  • pre-commitfmt:check + typecheck
  • pre-merge-commitbuild + test
  • pre-push — full chain (fmt:check + typecheck + build + test)

Documentation

  • CONTEXT.md — domain vocabulary, state synchronisation, discovery model
  • docs/adr/0001..0007 — architectural decisions (composite accessory, ModeComposition, serial-number identity, discovery-first, optimistic writes, option presets, Room uuid fallback)
  • docs/samsung-aircon-api.md — Samsung HTTP API endpoints, PUT semantics, danger tokens
  • docs/samples/device-status.json — verbatim Stand-aircon response sample
  • docs/lessons.md — option-write reverse-engineering lessons (cycle triggers, lock tokens)

License

MIT — see LICENSE.