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

v1.0.1

Published

Homebridge plugin to send notifications through ntfy.sh from HomeKit

Readme

Homebridge Ntfy

npm npm

This plugin allows you to send notifications through ntfy.sh (https://ntfy.sh) directly from HomeKit. It works by creating a momentary switch, that when turned on, sends a message via ntfy.sh. Once the message has been sent, the switch automatically returns to its off state.

This is especially useful if you want to send a notification to your device when a particular event occurs. Simply create a HomeKit automation that is triggered by the desired event or condition, and set the action to turn on the switch.

Prerequisites

  • Homebridge installed
  • The ntfy app installed on your device

Installation

Option 1: Homebridge UI

Go to the 'Plugins' page, search for homebridge-ntfy, and click 'Install'.

Option 2: Manually

Run the following command to install the plugin globally:

$ sudo npm install homebridge-ntfy -g

Configuration

Option 1: Homebridge UI

The easiest way to configure the plugin is to use the config UI in Homebridge. It will be displayed automatically after you've installed the plugin. If not, it can be found under the 'More Menu' for the 'Homebridge Ntfy' plugin.

Option 2: Manually

An alternative is to edit the Homebridge JSON config file manually by adding the following config to the platforms array:

{
  "platform": "NtfyPlatform",
  "messages": [
    {
      "name": "Send warning message",
      "topic": "my-private-topic-9yfxy",
      "message": "Warning message text"
    }
  ]
}

Config Properties

| Property | Type | Required | Description | | --------------------- | --------- | -------- | ------------------------------------------------------------------------- | | platform | string | Yes | Platform identifier. Do not change this line | | messages | array | Yes | List of messages/switch accessories to setup in HomeKit. | | └ name | string | Yes | Name of the switch shown in the Home app. | | └ useJson | boolean | No | Set to true to use ntfy JSON format. See parameter json. Default: false. | | └ topic | string | Yes/No | Required if useJson is set to false. | | └ title | string | No | Title of the notification sent to the device. | | └ message | string | No | Message text of the notification sent to the device. | | └ priority | string | No | Priority of the message. Default: default. [More info] | | └ tags | string | No | Tag message with emoji or text tag. A comma-separated list of tag names. [More info] | | └ json | string | Yes/No | Required if useJson is set to true. For advanced users ONLY. The value must be a valid JSON string (escaped) and adhere to ntfy's JSON message format. [More info] | | └ cooldownTime | number | No | Minimum time before this message can be sent again. Default: no cooldown. |

Example config

In the example below, two switch accessories have been configured. The first one has high priority and the second one has a emoji (tag) and cooldown set.

{
  "platform": "NtfyPlatform",
  "messages": [
    {
      "name": "Send warning message",
      "topic": "my-private-topic-9yfxy",
      "title": "Warning title",
      "message": "High priority warning message",
      "priority": "high"
    },
    {
      "name": "Send alert message",
      "topic": "my-private-topic-9yfxy",
      "title": "Alert title",
      "message": "Alert with emoji that can be triggered once every 10 seconds at most",
      "tags": "warning",
      "cooldownTime": 10000
    }
  ]
}

JSON message config

When 'Use JSON format' is enabled, you have the ability to set a custom config (JSON) for your messages. Using this format will unlock more advanced features that cannot be configured using the standard Homebridge plugin config UI. The value must be a valid JSON string and adhere to ntfy's JSON message format. (Read more).

Note: Use the plugin config UI when setting the JSON message config. If you're editing the Homebridge config, the JSON message config (stored in json) must be escaped first.

Example JSON message config

In the example below, a message has been configured to have two action buttons. Pressing the first one opens a webpage, and pressing the second one calls a server endpoint with a pre-configured payload.

{
  "topic": "my-private-topic-9yfxy",
  "title": "Adjust A/C",
  "message": "You left the house. Turn down the A/C?",
  "actions": [
    {
      "action": "view",
      "label": "Open portal",
      "url": "https://home.nest.com/",
      "clear": true
    },
    {
      "action": "http",
      "label": "Turn down",
      "url": "https://api.nest.com/",
      "body": "{\"temperature\": 65}"
    }
  ]
}

Future Plans

  • Custom server - Support for configuring a custom server URL, allowing use of a SaaS or self-hosted server instead of the default ntfy.sh server.
  • Authentication - Configure auth credentials (username/password or access token) to be used with servers that have access control enabled.