ntfy.sh - simple HTTP-based pub-sub

ntfy (pronounce: notify) is a simple HTTP-based pub-sub notification service and tool. It allows you to send desktop notifications via scripts from any computer, entirely without signup or cost. It's also open source if you want to run your own.

Subscribe to a topic

Topics are created on the fly by subscribing to them. You can create and subscribe to a topic either in this web UI, or in your own app by subscribing to an EventSource, a JSON feed, or raw feed.

Because there is no sign-up, the topic is essentially a password, so pick something that's not easily guessable.

Subscribe via web

If you subscribe to a topic via this web UI in the field below, messages published to any subscribed topic will show up as desktop notification.

Subscribed topics:

Subscribe via your app, or via the CLI

curl -s ntfy.sh/mytopic/raw # one message per line (\n are replaced with a space)
curl -s ntfy.sh/mytopic/json # one JSON message per line
curl -s ntfy.sh/mytopic/sse # server-sent events (SSE) stream

Publishing messages

Publishing messages can be done via PUT or POST using. Here's an example using curl:

curl -d "long process is done" ntfy.sh/mytopic

Messages published to a non-existing topic or a topic without subscribers will not be delivered later. There is (currently) no buffering of any kind. If you're not listening, the message won't be delivered.