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

v1.0.1

Published

Maintained Homebridge plugin for Sure Petcare cat flaps, pet doors, and optional pet occupancy sensors.

Readme

PetSure Homebridge

PetSure Homebridge is a maintained fork of the original homebridge-sure-petcare-platform project created by Wylan Swets.

The original plugin appears to have gone unmaintained after 2020. This fork keeps the project transparent and up to date for current Homebridge releases and modern Node.js runtimes, including Node.js 24.

What This Fork Changes

  • Replaces the deprecated sure_petcare and request dependency chain with a native fetch-based Sure Petcare client.
  • Fixes the startup race that could trigger TypeError: acc.pollStatus is not a function.
  • Improves accessory rehydration for cached Homebridge accessories.
  • Adds a Homebridge UI config schema.
  • Updates runtime support for modern Homebridge and Node.js versions.

Attribution

  • Original project: homebridge-sure-petcare-platform
  • Original author: Wylan Swets
  • Original repository: https://github.com/wylanswets/homebridge-sure-petcare-platform
  • This repository is an independently maintained fork and modernization by k4lls.

Runtime Support

  • Node.js 18+
  • Homebridge 1.6+

Supported Devices

  • Sure Petcare Cat Door Connect
  • Sure Petcare Pet Door Connect
  • Optional pet occupancy sensors based on Sure Petcare pet position data

Install

Install from npm:

npm install -g homebridge-petsure

If you want to test locally before publishing:

npm install -g /path/to/homebridge-petsure

Homebridge Config

{
  "platforms": [
    {
      "platform": "PetSure",
      "email": "[email protected]",
      "password": "your_password",
      "poll_interval": 30,
      "pet_occupancy": true,
      "occupancy_flipped": false,
      "lock_mode": 1
    }
  ]
}

Options

  • poll_interval: Defaults to 30. Minimum practical value is 5 seconds.
  • pet_occupancy: Creates an occupancy sensor for each pet when enabled.
  • occupancy_flipped: Inverts occupancy state if you prefer "outside" to appear as occupied.
  • lock_mode: 1 for in only, 2 for out only, 3 for fully locked.

Publish Checklist

  1. Log in to npm with npm login.
  2. Publish with npm publish.
  3. Add a GitHub release and a short changelog entry for each version.

Notes

This fork keeps the original MIT license and attribution so the maintenance history stays clear.

Changelog

1.0.1

  • Cleans the npm package contents so only the maintained fork files are published.
  • Adds displayName metadata for cleaner Homebridge UI discovery.