出典:Hacker News原文を見る ↗
原文の著作権は出典元に帰属します。当サイトでは収録、翻訳、体裁調整のみを行います。
解説と影響
Ntfy:一款开源的手机推送通知服务
Ntfy 的核心设计思路是「推送即 HTTP」。用户只需向 ntfy.sh 服务器发送一个 POST 请求,内容就会实时推送到订阅了相应主题的手机上。这种极简架构使其可以轻松集成到 shell 脚本、cron 任务、CI/CD 流水线或任何能发起 HTTP 请求的环境中。例如,curl -d "备份完成" ntfy.sh/mytopic 一条命令即可完成推送,无需 SDK 或复杂配置。
从工程角度看,Ntfy 提供了自托管选项,用户可以在自己的服务器上部署完整实例,数据不经过第三方。它支持消息优先级、标签、延迟投递、附件以及基于 WebSocket 的实时订阅。与商业推送服务相比,Ntfy 的优势在于零依赖、零成本、数据可控;劣势则是缺少 FCM 的系统级通道优化,在 Android 上需要常驻前台服务或依赖 UnifiedPush 协议来维持连接,可能对电池续航有一定影响。原文未提供具体的性能基准数据。
在同类开源推送方案中,Ntfy 与 Gotify 定位相似,但 Ntfy 的 HTTP-first 设计使其更易于脚本化集成,且官方提供免费的公共实例(ntfy.sh),降低了上手门槛。对于开发者而言,这类工具填补了「服务器事件到手机通知」之间的轻量级通道空白,尤其适合个人项目、家庭实验室和自托管爱好者群体。
参考資料
出典原文
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.
图片图片图片 图片 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 ntfy CLI JS Go PS Python curl \ -d "Backup successful 😀" \ ntfy.sh/mytopic
Receive notifications on your phone
Subscribe to a topic and receive notifications, with different priorities, attachments, action buttons, tags & emojis, and even for automation.
图片图片 图片
Subscribe to a topic, and instantly receive notifications
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
Subscribe to a topic and receive notifications, with different priorities, attachments, action buttons, tags & emojis, and even for automation.
Subscribe to a topic, and instantly receive notifications
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
图片图片 图片
Or get notified on your computer
You can use the web app to subscribe to topics as well. If you do, notifications will pop up as desktop notifications. Simply type in the topic name and click the Subscribe button. The browser will keep a connection open and listen for incoming notifications.
图片图片
Integrate with your favorite tools
Publishing messages is just a HTTP request, so pretty much everything under the sun can integrate with ntfy.
changedetection.io healthchecks.io
图片 图片 图片 图片 图片 图片 图片 图片 图片 图片 图片 图片 图片 图片 图片 图片 图片 图片 图片 图片 图片 图片 图片 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
5 / month
Get started with ntfy, while also supporting the open source project.
2,500 daily messages 3 reserved topics 🤩 3 phone calls 50 daily emails 25 MB per attachment Support open source Subscribe
图片 Pro
10 / month
This is the best value plan. Lots of messages, and large attachments.
20k daily messages 10 reserved topics 🤩 20 phone calls 250 daily emails 250 MB per attachment Email support Support open source Subscribe
图片 Business
20 / month
Insane amount of messages, lots of reserved topics, giant attachments.
50k daily messages 50 reserved topics 🤩 50 phone calls 500 daily emails 1 GB per attachment Email & chat support Support open source Subscribe Need a bigger plan, or a dedicated server ? Feel free to contact us.
If you don't need a paid plan, but would still like to support us, please donate via GitHub Sponsors or Liberapay ❤️ .
“Hands down the best notification service I've ever used, and I have used them all.”
– Joe Harrison
Thank you
A rare app that is solves a problem in the most straightforward way possible. Thank you very much developer.
Jonathan Paul Amazing!
Awesome work, app and platform are amazing!
Craig Miller FOSS is the future
Absolutely fantastic job, dude! ❤️ Keep it up, FOSS is the future! 🌟
Vivek Kushal Super simple to use
Amazing app that lets me have notifications for many of my server apps that I run, and also being super simple to use.
Alex Muscat An awesome tool
Just added push notifications to see when someone signs up using ntfy.sh - an awesome tool
Vincent Will Documentation is thorough.
The app is great, the documentation is thorough, and the responsiveness when asking for help is quick, helpful, and likewise thorough. Also super friendly.
Sean Kelly Perfect single-purpose app
Want to send yourself notifications from a server or script somewhere? ntfy is the best option I've seen, hands down.
SpencerAlger Easy to use API
Five stars for the efforts and making available for everyone. Nice documentation, self-hostable server, and easy to use API
Manoj P L Made my life much easier
Open-source vanilla python code + lovely ntfy.sh service has actually made my life much easier 😌
Egor Marin Fantastic for small projects
This is fantastic for small projects where it isn't worth writing an app for it. Thank you so much for putting this together and hosting it!
Kevin Hayen Awesome self hosted notification app
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.
Pat Must have for any developer & sysadmin
Awesome app! Must have for any developer/sysadmin/powerusers.
Rogelio Domínguez Hernández Very powerful and rich on features
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!
Marc My favorite open source software
I declare ntfy.sh my favorite piece of open source software of 2022
Antonio Zugaldia Thank you
A rare app that is solves a problem in the most straightforward way possible. Thank you very much developer.
Jonathan Paul Amazing!
Awesome work, app and platform are amazing!
Craig Miller FOSS is the future
Absolutely fantastic job, dude! ❤️ Keep it up, FOSS is the future! 🌟
Vivek Kushal Super simple to use
Amazing app that lets me have notifications for many of my server apps that I run, and also being super simple to use.
Alex Muscat An awesome tool
Just added push notifications to see when someone signs up using ntfy.sh - an awesome tool
Vincent Will Documentation is thorough.
The app is great, the documentation is thorough, and the responsiveness when asking for help is quick, helpful, and likewise thorough. Also super friendly.
Sean Kelly Perfect single-purpose app
Want to send yourself notifications from a server or script somewhere? ntfy is the best option I've seen, hands down.
SpencerAlger Easy to use API
Five stars for the efforts and making available for everyone. Nice documentation, self-hostable server, and easy to use API
Manoj P L Made my life much easier
Open-source vanilla python code + lovely ntfy.sh service has actually made my life much easier 😌
Egor Marin Fantastic for small projects
This is fantastic for small projects where it isn't worth writing an app for it. Thank you so much for putting this together and hosting it!
Kevin Hayen Awesome self hosted notification app
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.
Pat Must have for any developer & sysadmin
Awesome app! Must have for any developer/sysadmin/powerusers.
Rogelio Domínguez Hernández Very powerful and rich on features
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!
Marc My favorite open source software
I declare ntfy.sh my favorite piece of open source software of 2022
Antonio Zugaldia Fantastic for small projects
This is fantastic for small projects where it isn't worth writing an app for it. Thank you so much for putting this together and hosting it!
Kevin Hayen Awesome self hosted notification app
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.
Pat Must have for any developer & sysadmin
Awesome app! Must have for any developer/sysadmin/powerusers.
Rogelio Domínguez Hernández Very powerful and rich on features
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!
Marc My favorite open source software
I declare ntfy.sh my favorite piece of open source software of 2022
Antonio Zugaldia Easy to use API
Five stars for the efforts and making available for everyone. Nice documentation, self-hostable server, and easy to use API
Manoj P L Made my life much easier
Open-source vanilla python code + lovely ntfy.sh service has actually made my life much easier 😌
Egor Marin Fantastic for small projects
This is fantastic for small projects where it isn't worth writing an app for it. Thank you so much for putting this together and hosting it!
Kevin Hayen Awesome self hosted notification app
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.
Pat Must have for any developer & sysadmin
Awesome app! Must have for any developer/sysadmin/powerusers.
Rogelio Domínguez Hernández Very powerful and rich on features
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!
Marc My favorite open source software
I declare ntfy.sh my favorite piece of open source software of 2022
Antonio Zugaldia Easy to use API
Five stars for the efforts and making available for everyone. Nice documentation, self-hostable server, and easy to use API
Manoj P L Made my life much easier
Open-source vanilla python code + lovely ntfy.sh service has actually made my life much easier 😌
Egor Marin Documentation is thorough.
The app is great, the documentation is thorough, and the responsiveness when asking for help is quick, helpful, and likewise thorough. Also super friendly.
Sean Kelly Perfect single-purpose app
Want to send yourself notifications from a server or script somewhere? ntfy is the best option I've seen, hands down.
SpencerAlger Easy to use API
Five stars for the efforts and making available for everyone. Nice documentation, self-hostable server, and easy to use API
Manoj P L Made my life much easier
Open-source vanilla python code + lovely ntfy.sh service has actually made my life much easier 😌
Egor Marin Documentation is thorough.
The app is great, the documentation is thorough, and the responsiveness when asking for help is quick, helpful, and likewise thorough. Also super friendly.
Sean Kelly Perfect single-purpose app
Want to send yourself notifications from a server or script somewhere? ntfy is the best option I've seen, hands down.
SpencerAlger Easy to use API
Five stars for the efforts and making available for everyone. Nice documentation, self-hostable server, and easy to use API
Manoj P L Made my life much easier
Open-source vanilla python code + lovely ntfy.sh service has actually made my life much easier 😌
Egor Marin
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 …
图片 图片 图片 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!