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-gecko

v1.0.15

Published

Homebridge plugin for Gecko Alliance spa/hot tub equipment (in.touch 3 / in.touch 3+ gateways)

Readme

homebridge-gecko

License Build

A Homebridge plugin for Gecko Alliance spa and hot tub equipment with in.touch 3 / in.touch 3+ gateways. Exposes temperature control, lights, pumps (with speed where supported), and watercare modes to Apple HomeKit.

Features

  • Thermostat — set and read the spa target temperature
  • Lights — one HomeKit Lightbulb per lighting zone
  • Pumps — auto-detected from spa configuration: single-speed pumps appear as Switch, multi-speed pumps as Fanv2 with discrete speed steps
  • Watercare modes — Away, Standard, Energy Savings, Super Energy Savings, Weekender, each as a Switch
  • 106°F (41°C) support — via the maxTempOverrideC config option

Installation

Until published to npm, install from a local tarball:

# On your Homebridge host
sudo hb-service add /path/to/homebridge-gecko-X.Y.Z.tgz
sudo hb-service restart
sudo hb-service logs | grep -i gecko

To build the tarball yourself:

git clone https://github.com/rtheil/hb-gecko-integration.git
cd hb-gecko-integration
npm install
npm run build
npm pack
# produces homebridge-gecko-X.Y.Z.tgz

Configuration

Configure via the Homebridge Config UI X plugin settings panel, or add to the platforms array in config.json:

{
  "platform": "GeckoSpa",
  "name": "Gecko Spa",
  "email": "[email protected]",
  "password": "your-gecko-password",
  "maxTempOverrideC": 41
}

Options

| Option | Type | Default | Description | |---|---|---|---| | email | string | (required) | Gecko account email | | password | string | (required) | Gecko account password | | refreshToken | string | (optional) | Use a pre-obtained refresh token instead of email/password (advanced — used if Auth0 emulated login fails) | | maxTempOverrideC | number | from spa config | Override max target temperature (°C). Set 41 for 106°F | | minTempOverrideC | number | from spa config | Override min target temperature (°C) | | pollInterval | number | 300 | Token keep-alive interval in seconds (state is pushed via MQTT, so this only refreshes the API token) | | pumps | array | auto-detect | Override pump speed detection per flow zone (see below) |

Pump speed auto-detection

Pump-speed handling is auto-detected from spa-configuration.zones.flow.X.speed:

  • min=100, max=100, step=0 → 1 speed → HomeKit Switch
  • min=50, max=100, step=50 → 2 speeds → HomeKit Fanv2 with 3 positions (off / 50% / 100%)
  • min=33, max=100, step=33 → 3 speeds → HomeKit Fanv2 with 4 positions

To override:

"pumps": [
  { "zoneId": "1", "speeds": 2 },
  { "zoneId": "2", "speeds": 1 }
]

Authentication

The plugin emulates the Gecko iOS app's Auth0 PKCE login flow (identifier → password → token exchange). If that breaks because Auth0 changes its login UI, supply a refreshToken obtained via the community debug tool instead.

How it works

  • REST API — authenticates with Auth0, fetches account/vessel info, fetches spa configuration, retrieves the AWS IoT broker URL with a custom-authorizer token.
  • MQTT over WSS — connects to AWS IoT, subscribes to the device's named shadow (name/state), publishes desired-state updates as commands.
  • Per-function bridged accessories — each thermostat zone, light zone, flow zone, and watercare mode is its own HomeKit accessory for clean naming and per-tile control.
  • Proactive token refresh — the broker URL's auth token expires after ~1 hour; the plugin proactively refreshes at the 50-minute mark to avoid mid-session reconnects.
  • Rewrite guard — the spa firmware occasionally overwrites state.desired with its own preferred values shortly after a publish. A 5-second per-zone guard ignores those rewrites so the user's setpoint sticks while still allowing external changes through.

Known quirks

  • CF (Check Filter) auto-cycles: when the spa starts the pump for a maintenance cycle, the shadow desired reflects the activation, but the corresponding auto-stop may only update reported — so HomeKit can lag on the deactivation. Toggle the tile to resync.
  • External Gecko app changes during a HomeKit command: if you change the spa via the Gecko mobile app within ~5 seconds of using HomeKit, the change may flicker briefly before settling (a side-effect of the rewrite guard).

Credits

Built on the protocol and behavior documented by these prior projects:

License

Apache-2.0