I like tools that fit in one sentence. ntfy is one: you send a plain HTTP request to a topic, and every phone or browser subscribed to that topic buzzes. You need no account, API key or SDK. The README’s own example is curl -d "Backup successful" ntfy.sh/mytopic, and that really is the whole trick.
What it is and who it is for
ntfy (say “notify”) is a small pub-sub notification service. A topic exists the moment you publish to it, so anything that can make an HTTP call can alert you: a backup script, a cron job, a container healthcheck. The code is Go, it is dual licensed under Apache 2.0 and GPLv2, and there are open-source Android and iOS apps plus a web app. If you already run a server at home, I think this is one of the easiest ways to get alerts without stitching together email or a chat bot.
The usual alternative is Pushover, which is closed and hosted only. As John describes in his comparison on DEV, Pushover works with known users and keys, while ntfy is built for scripts that do not care who is listening. That is why I’d pick ntfy for a homelab.
Try it
The quickest test needs no install: use the free hosted ntfy.sh, subscribe to a topic in the app, and run the curl line above. Topic names on the public server are effectively the password, so pick something nobody will guess.
To host it yourself, the install docs give this for Docker, with a persistent message cache:
docker run \
-v /var/cache/ntfy:/var/cache/ntfy \
-p 80:80 \
-it \
binwiederhier/ntfy \
serve \
--cache-file /var/cache/ntfy/cache.db
There is a Docker Compose example in the same docs, and the image is built for amd64, arm64 and the ARM v6 and v7 boards. The image ships without a server.yml, so if you want settings, create one yourself and map /etc/ntfy. Once it runs, add priority or a title with headers, for example curl -H "Priority: low" -d "Low priority message" your-server/phil_alerts.
The honest limits
Two things to know before you expose it. First, the default is open: set auth-default-access to deny-all and add users with ntfy user add before it faces the internet. Second, iPhone. Apple limits background work, so a self-hosted server only gets instant notifications on iOS if you set upstream-base-url to https://ntfy.sh. It then forwards only a poll request, not your message, and the app fetches the text from your server. Without it, the docs say delivery can take hours. I have an iPhone, so that detail would decide it for me: self-hosting is fine, but I would not pretend I had cut ties with ntfy.sh.
On money: ntfy Pro on the hosted service starts at $5 a month according to the README. That is the US price, and I did not find a Dutch one. If you have a server that is on anyway, hosting it yourself costs only the electricity and the upkeep.
