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

v0.1.4

Published

Homebridge plugin for Popur self-cleaning cat litter boxes (e.g. the X5) via the Popur cloud.

Readme

homebridge-popur

A Homebridge plugin that brings Popur self-cleaning cat litter boxes into Apple HomeKit. Developed and tested against the Popur X5, but every device on your Popur account is discovered automatically, so other models should work too.

⚠️ Unofficial & cloud-dependent. Popur boxes have no local API. This plugin talks to Popur's cloud (cloud.popur.com.cn) using the same protocol the official app uses, reverse-engineered from the Home Assistant Popur integration. It is not affiliated with or endorsed by Popur and may stop working if they change their cloud API.

What you get in HomeKit

HomeKit has no "litter box" accessory type, so each device is exposed as several separate tiles:

| HomeKit tile | Service | What it does | |-----------------------|---------|--------------| | Clean | Switch (momentary) | Flip on to start a cleaning cycle; it auto-resets to off. | | Night Mode | Switch | Toggles manual / do-not-disturb mode. | | Waste Bin | Leak Sensor | "Leak Detected" (bold red alert) when the waste drawer is full — use it to trigger Home app notifications. | | Cycles Today | Light Sensor | Today's cycle count surfaced as a lux reading (e.g. 3 cycles → "3 lux"), read-only. |

Each tile also reflects the box going offline (the sensors show an unreachable/fault state).

HomeKit has no "litter box" or "bin full" accessory type, so these are pragmatic mappings. The Waste Bin uses a Leak Sensor (rather than the semantically-nicer Filter Maintenance) because Apple's Home app does not render standalone Filter Maintenance tiles — a leak sensor gives the most visible "needs attention" alert.

Install

npm install -g homebridge-popur

Or via the Homebridge UI: search for Popur.

Configuration

Add via the Homebridge UI, or in config.json:

{
  "platforms": [
    {
      "platform": "Popur",
      "name": "Popur",
      "email": "[email protected]",
      "password": "your-popur-app-password",
      "pollInterval": 60
    }
  ]
}

| Field | Required | Default | Notes | |---------------|----------|---------|-------| | email | yes | — | Your Popur app account email. | | password | yes | — | Your Popur app password. | | pollInterval| no | 60 | Seconds between cloud status refreshes (min 15). |

🔒 Your Popur password is stored in the Homebridge config. It is only ever sent to Popur's cloud (MD5-hashed in transit, as the app does).

Development

npm install
npm run build      # compile TypeScript -> dist/

# Verify the cloud API works against your account before running Homebridge:
[email protected] POPUR_PASSWORD='...' npm run smoke
# add `clean` or `night-on` / `night-off` to actually send a command:
POPUR_EMAIL=... POPUR_PASSWORD='...' npm run smoke -- clean

Then run Homebridge in dev mode pointing at a local config:

npm run watch
homebridge -D -U ./.homebridge

Protocol notes

  • Auth: POST /uapi/auth with {param: email, password: md5(password), type: "2"} → token.
  • Status: GET /uapi/deviceinfo/info/{deviceId}rubbish (==2 = bin full), worknum, lastworknum, manualmode, isonline.
  • Commands: MQTT-over-WebSocket at wss://cloud.popur.com.cn:443/mqtt?token=...
    • Clean → devcrpc/action/{deviceId} (method: action)
    • Manual mode → devcrpc/attr/{deviceId} (method: set_properties, property id 3)

License

MIT