← 返回日报
精读 预计 7 分钟

Ntfy – open-source Push to Mobile

摘要

ntfy 是一个基于 HTTP 的发布/订阅通知服务,可通过脚本或 REST API 从任意电脑向手机或桌面发送通知,完全免费开源。支持通过 PUT/POST 发布消息,主题在订阅或发布时自动创建;未注册使用时主题名相当于密码,购买 ntfy Pro 可保留主题名。通知支持优先级(对应不同声音与震动模式)、操作按钮、图标、标签和表情符号,还可发送图片、视频等附件。可集成 cron 任务、GitHub Actions、网站变更检测等各类工具。提供免费试用、付费订阅(Supporter、Pro、Business 三档)以及自托管选项,采用 Apache 2.0 与 GPLv2 双许可证,开发在 GitHub 上公开进行。

荐读理由

照它的 HTTP 发布订阅接口,你给脚本或 CI 加个推送通知只需一条 PUT 请求,免去自建推送服务的维护成本

原文

Push notifications made easy

ntfy (pronounced notify) is a simple HTTP-based pub-sub notification service. It allows you to send notifications to your phone or desktop via scripts from any computer, and/or using a REST API. It's infinitely flexible, and 100% free software.

Get it on Google PlayGet it on F-DroidDownload on the App Store

Notifications since 2022

GitHub stars

28,578+

Google Play

App Store

Send push notifications from your app or script

Publishing messages can be done via PUT or POST. Topics are created on the fly by subscribing or publishing to them. If you use ntfy without sign-up, the topic is essentially a password, so pick something that's not easily guessable. If you purchase ntfy Pro, you can reserve topic names instead.

curl \
  -d "Backup successful 😀" \
  ntfy.sh/mytopic

Receive notifications on your phone

Alert yourself about unauthorized logins, when your show was downloaded, or when your home automation sensors detect movement in the yard. ntfy hooks into anything and everything.

Priorities, action buttons, icons, tags & emojis, ...

You can define a notification priority, which maps to different sounds & vibration patterns. Action buttons allows you to react to notifications directly, and tags and emojis let you classify & personalize notifications.

Send files to your phone or your computer

With ntfy attachments, you can send images, videos, and other files to your phone instantly - be it pictures from your surveillance camera, videos, or other documents

Receive notifications on your phone

Alert yourself about unauthorized logins, when your show was downloaded, or when your home automation sensors detect movement in the yard. ntfy hooks into anything and everything.

You can define a notification priority, which maps to different sounds & vibration patterns. Action buttons allows you to react to notifications directly, and tags and emojis let you classify & personalize notifications.

With ntfy attachments, you can send images, videos, and other files to your phone instantly - be it pictures from your surveillance camera, videos, or other documents

Or get notified on your computer

Open appGetting started

Integrate with your favorite tools

Publishing messages is just a HTTP request, so pretty much everything under the sun can integrate with ntfy.

changedetection.iohealthchecks.io

changedetection.io

healthchecks.io

Github Actions

Rundeck

Ansible

Node-RED

Radarr

Sonarr

Uptime Kuma

Automatisch.io

prise

Gatus

Home Assistant

Watchtower

FlexGet

Element

Tusky

Robusta

scrt.link

Cloudron

Netdata

Deployer

HelixTools

Whether it's receiving alerts from cronjobs, or when a GitHub Actions pipeline finishes, or when a new episode of your TV show is available, or when any website has a change ❤️, ntfy will let you know.

Pricing

Try ntfy for free without sign-up, or check out our paid plans. Or, since it's open source, you can always self-host it.

Monthly

Annually

Monthly

Annually

Supporter

$6$5/ month

Get started with ntfy, while also supporting the open source project.

Subscribe

Pro

$12$10/ month

This is the best value plan. Lots of messages, and large attachments.

Subscribe

Business

$25$20/ month

Insane amount of messages, lots of reserved topics, giant attachments.

Subscribe

Need a bigger plan, or a dedicated server? Feel free to contact us.

“Hands down the best notification service I've ever used, and I have used them all.”

– Joe Harrison

A rare app that is solves a problem in the most straightforward way possible. Thank you very much developer.

Amazing!

Awesome work, app and platform are amazing!

Absolutely fantastic job, dude! ❤️ Keep it up, FOSS is the future! 🌟

Amazing app that lets me have notifications for many of my server apps that I run, and also being super simple to use.

Just added push notifications to see when someone signs up using ntfy.sh - an awesome tool

The app is great, the documentation is thorough, and the responsiveness when asking for help is quick, helpful, and likewise thorough. Also super friendly.

Want to send yourself notifications from a server or script somewhere? ntfy is the best option I've seen, hands down.

Five stars for the efforts and making available for everyone. Nice documentation, self-hostable server, and easy to use API

Open-source vanilla python code + lovely ntfy.sh service has actually made my life much easier 😌

't worth writing an app for it. Thank you so much for putting this together and hosting it!

This is an awesome self hosted notification app with a ton of features with tons more planned! You don't have to use it self hosted either - there is a public server available.

& sysadmin

Awesome app! Must have for any developer/sysadmin/powerusers.

Rogelio Domínguez Hernández

Wow, I just discovered this great open source project which allows to send push notifications to iOS/Androids/Desktop. The server component can be self hosted and the API seems to be very powerful and rich on features!

I declare ntfy.sh my favorite piece of open source software of 2022

A rare app that is solves a problem in the most straightforward way possible. Thank you very much developer.

Amazing!

Awesome work, app and platform are amazing!

Absolutely fantastic job, dude! ❤️ Keep it up, FOSS is the future! 🌟

Amazing app that lets me have notifications for many of my server apps that I run, and also being super simple to use.

Just added push notifications to see when someone signs up using ntfy.sh - an awesome tool

The app is great, the documentation is thorough, and the responsiveness when asking for help is quick, helpful, and likewise thorough. Also super friendly.

Want to send yourself notifications from a server or script somewhere? ntfy is the best option I've seen, hands down.

Five stars for the efforts and making available for everyone. Nice documentation, self-hostable server, and easy to use API

Open-source vanilla python code + lovely ntfy.sh service has actually made my life much easier 😌

't worth writing an app for it. Thank you so much for putting this together and hosting it!

This is an awesome self hosted notification app with a ton of features with tons more planned! You don't have to use it self hosted either - there is a public server available.

& sysadmin

Awesome app! Must have for any developer/sysadmin/powerusers.

Rogelio Domínguez Hernández

Wow, I just discovered this great open source project which allows to send push notifications to iOS/Androids/Desktop. The server component can be self hosted and the API seems to be very powerful and rich on features!

I declare ntfy.sh my favorite piece of open source software of 2022

't worth writing an app for it. Thank you so much for putting this together and hosting it!

This is an awesome self hosted notification app with a ton of features with tons more planned! You don't have to use it self hosted either - there is a public server available.

& sysadmin

Awesome app! Must have for any developer/sysadmin/powerusers.

Rogelio Domínguez Hernández

Wow, I just discovered this great open source project which allows to send push notifications to iOS/Androids/Desktop. The server component can be self hosted and the API seems to be very powerful and rich on features!

I declare ntfy.sh my favorite piece of open source software of 2022

Five stars for the efforts and making available for everyone. Nice documentation, self-hostable server, and easy to use API

Open-source vanilla python code + lovely ntfy.sh service has actually made my life much easier 😌

't worth writing an app for it. Thank you so much for putting this together and hosting it!

This is an awesome self hosted notification app with a ton of features with tons more planned! You don't have to use it self hosted either - there is a public server available.

& sysadmin

Awesome app! Must have for any developer/sysadmin/powerusers.

Rogelio Domínguez Hernández

Wow, I just discovered this great open source project which allows to send push notifications to iOS/Androids/Desktop. The server component can be self hosted and the API seems to be very powerful and rich on features!

I declare ntfy.sh my favorite piece of open source software of 2022

Five stars for the efforts and making available for everyone. Nice documentation, self-hostable server, and easy to use API

Open-source vanilla python code + lovely ntfy.sh service has actually made my life much easier 😌

The app is great, the documentation is thorough, and the responsiveness when asking for help is quick, helpful, and likewise thorough. Also super friendly.

Want to send yourself notifications from a server or script somewhere? ntfy is the best option I've seen, hands down.

Five stars for the efforts and making available for everyone. Nice documentation, self-hostable server, and easy to use API

Open-source vanilla python code + lovely ntfy.sh service has actually made my life much easier 😌

The app is great, the documentation is thorough, and the responsiveness when asking for help is quick, helpful, and likewise thorough. Also super friendly.

Want to send yourself notifications from a server or script somewhere? ntfy is the best option I've seen, hands down.

Five stars for the efforts and making available for everyone. Nice documentation, self-hostable server, and easy to use API

Open-source vanilla python code + lovely ntfy.sh service has actually made my life much easier 😌

Still not convinced?

Check out the countless blog posts and newspaper articles about ntfy, or read the all the reviews on Google Play, and the Apple Store

ntfy is proudly sponsored by …

Warp

changedetection.io

And by many open source lovers across the globe via GitHub Sponsors or Liberapay ❤️.

Want to become a sponsor? Feel free to contact us, and we'll chat.

Join our open source community

ntfy is open source, and dual-licensed under the Apache 2.0 and GPLv2 license. Development happens out in the open, on GitHub and in our chats on Discord/Matrix. We love free software, and we're doing this because it's fun. Please join us, and let us know how you are using ntfy!

Github

Discord

Matrix

Hacker News · 105 赞 · 50 评 讨论 → 阅读原文 →

这条对你有帮助吗?