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

@ddgold/homebridge-litter-robot

v0.4.0

Published

Homebridge plugin for Litter Robot

Readme

homebridge-litter-robot

A Homebridge plugin for the Litter-Robot 4 by Whisker. Exposes your robot as a HomeKit accessory so you can trigger cleaning cycles, monitor the waste drawer, and control settings from the Home app or automations.

Requirements

  • Homebridge ≥ 2.0
  • Node.js ≥ 24
  • A Litter-Robot 4 connected to your Whisker account

Installation

Via Homebridge UI:

Go to Plugins → search @ddgold/homebridge-litter-robot → Install.

Via command line:

npm install -g @ddgold/homebridge-litter-robot

Configuration

Add the platform to your Homebridge config.json:

{
	"platforms": [
		{
			"platform": "LitterRobot",
			"name": "Litter Robot",
			"username": "[email protected]",
			"password": "yourpassword"
		}
	]
}

| Field | Required | Description | | ----------------- | -------- | ---------------------------------------------------------------------------------------------------------------- | | username | Yes | Your Whisker account email | | password | Yes | Your Whisker account password | | showMotionSensor| No | Expose the cleaning cycle as a Motion Sensor in HomeKit. Default: true | | showNightLight | No | "true" exposes the night light (On mode), "auto" exposes it (Auto mode), "false" hides it. Default: "true" | | showWasteDrawer | No | Expose the waste drawer as a Filter Maintenance accessory in HomeKit. Default: true | | pollRate | No | How often (in seconds) to sync device state. Minimum 60, default 300 (5 minutes) |

HomeKit Services

Each Litter-Robot 4 appears as a single accessory with the following services:

Controls

| Service | Type | Description | | ----------- | ----------------- | ------------------------------------------------------------------- | | Clean | Switch (primary) | Triggers an immediate cleaning cycle. Auto-resets to off once sent. | | Night Light | Lightbulb | Turns the night light on or off. Optional — controlled by showNightLight. |

Night Light is nested under the Clean button in the Home app detail view.

Sensors

| Service | Type | Description | | ------------ | ------------------ | --------------------------------------------------------------------------------- | | Waste Drawer | Filter Maintenance | Shows a change alert when the drawer is full; displays fill level as a percentage. Optional — controlled by showWasteDrawer. | | Cleaning | Motion Sensor | Active while a cleaning cycle is in progress. Optional — controlled by showMotionSensor. |

Development

Setup:

npm install

npm install builds the project and installs a pre-push git hook (via Husky) that runs lint, format check, and build before every push.

Create a .whiskerCredentials file in the project root with your email on line 1 and password on line 2:

[email protected]
yourpassword

Test script:

npm run console -- <command>

| Command | Description | | -------------------- | ----------------------------------- | | get | Fetch and print all devices as JSON | | subscribe <serial> | Stream live device updates | | clean <serial> | Trigger an immediate cleaning cycle | | help | Show available commands |

Publishing

  1. Bump the version in package.json following semver:

    • Patch (0.0.x) — bug fixes
    • Minor (0.x.0) — new features, backwards-compatible
    • Major (x.0.0) — breaking changes
  2. Publish to npm:

    npm publish

    Lint, format check, and build run automatically before publishing. Public access is set by default via publishConfig in package.json.

Acknowledgements

The Whisker API used by this plugin was reverse-engineered by Nathan Spencer, whose work on pylitterbot made this possible.

Disclaimer

This plugin uses the Whisker cloud API, which is not officially supported. It may break without notice if Whisker changes their backend.