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

v1.0.3

Published

Homebridge plugin for Neewer WiFi LED lights — direct UDP control, no app required

Readme

homebridge-neewer

A Homebridge plugin for controlling Neewer WiFi LED lights via Apple HomeKit.

This was entirely vibe coded, use at your own risk. Report bugs. Understand I may never touch this again.

Features

  • Auto-discovery — lights are found automatically, no IP configuration needed
  • Full HomeKit control — on/off, brightness, color (RGB), and color temperature (CCT)
  • Initial state sync — HomeKit reflects the actual power state of your lights on startup
  • Zero dependencies — pure Node.js, no Python, no Bluetooth, no external processes

Supported Devices

Tested with:

  • Neewer GL25C

Likely compatible with other Neewer WiFi lights that use the UDP protocol on port 5052 (GL1, GL25C, and similar models).

Requirements

  • Homebridge v1.0.0 or later
  • Node.js v14 or later
  • Neewer light(s) connected to your WiFi network via the Neewer app

Installation

Install via the Homebridge UI or manually:

npm install -g homebridge-neewer

Then restart Homebridge. Your lights will be discovered automatically.

Configuration

Auto-discovery (recommended)

Add the platform to your config.json with no lights array — the plugin will find them automatically:

{
  "platforms": [
    {
      "platform": "NeewerLights",
      "name": "Neewer Lights"
    }
  ]
}

Manual configuration (optional)

If you want to assign specific names or have lights with static IPs:

{
  "platforms": [
    {
      "platform": "NeewerLights",
      "name": "Neewer Lights",
      "lights": [
        { "name": "Studio Left", "ip": "192.168.0.139" },
        { "name": "Studio Right", "ip": "192.168.0.156" }
      ]
    }
  ]
}

Recommended: Set static IPs for your lights

Auto-discovered lights are identified by IP address. If your router assigns a new IP via DHCP after a reboot, the light will appear as a new accessory in HomeKit. To avoid this, assign a static/reserved IP to each light in your router's DHCP settings using the light's MAC address (logged on discovery).

How it works

Neewer WiFi lights communicate over UDP on port 5052. The plugin:

  1. Binds a UDP socket on port 5052
  2. Listens for light broadcast packets (80 01 ...) to discover lights on the network
  3. Sends a registration packet containing the controller's IP address
  4. Maintains the session with periodic heartbeats
  5. Sends control commands (power, brightness, RGB, CCT) as UDP packets

The protocol was reverse engineered via packet capture. Credit to braintapper/neewer-gl1 for the initial protocol documentation.

Packet structure

Registration:  80 02 10 00 00 [len] [controller_ip_ascii] 2e
Heartbeat:     80 04 84
Power on:      80 05 02 01 01 89
Power off:     80 05 02 01 00 88
RGBCW:         80 05 07 07 [brightness] [R] [G] [B] [C] [W] [checksum]
Status query:  80 06 01 01 88
Status reply:  80 07 02 01 [01=on/00=off] [checksum]

Checksum = sum of all bytes mod 256.

License

MIT