ntfy.sh:PUT/POSTによるスマートフォンやデスクトップへのプッシュ通知
ntfy.shは、アプリケーションやスクリプトからPUT/POSTリクエストを用いて、スマートフォンやデスクトップにプッシュ通知を送信できるサービスです。
トピックは購読または通知送信によって動的に作成され、初期状態ではトピック名がパスワードの役割を果たします。
Proプランではトピック名の予約も可能です。
Webアプリを利用することで、デスクトップ通知のサブスクリプションも容易に行えます。
オープンソースで提供されており、GitHub SponsorsやLiberapayを通じてサポートも可能です。
開発者向けのプッシュ通知サービス「ntfy.sh」が、API経由で簡単に通知を送信できる仕組みを提供していることが明らかになりました。このサービスは、アプリやスクリプトからメッセージを送信するだけで、スマートフォンやデスクトップに通知を届けることを可能にしています。サインアップなしで利用できる手軽さが特徴です。
APIによるシンプルな通知送信
ntfy.shは、PUTやPOSTといったHTTPメソッドを利用してメッセージを送信できます。特定のトピック(話題)を指定してメッセージを投稿する形式です。トピックは、購読または投稿を行うことでその場で作成されます。例えば、バックアップ完了などのイベント発生時に、簡単なcURLコマンド一つで通知を飛ばすことが可能です。これにより、開発者は複雑なインフラ構築なしに通知機能を実装できます。
サインアップ不要の利用とトピック管理
特に注目されるのは、サインアップをせずにntfyを利用できる点です。この場合、トピック名自体がパスワードのような役割を果たすため、推測されにくい名前を選ぶことが推奨されています。より高度な利用や、トピック名を事前に確保したい場合は、有料の「Pro」プランなどの購入が必要となります。また、ウェブアプリを通じてトピックを購読すれば、ブラウザ上でデスクトップ通知を受け取ることができます。
オープンソースと多様な利用形態
ntfyはオープンソースとして提供されており、Apache 2.0およびGPLv2ライセンスで利用可能です。そのため、ユーザーは有料プランを利用する代わりに、自前でサーバーを構築(セルフホスト)することも選択できます。無料利用から、メッセージ量や添付ファイルサイズに応じた有料プラン(月額5ドル〜)まで、利用者のニーズに合わせて柔軟に対応できる設計となっています。
まとめ
ntfy.shは、開発者が手軽にプッシュ通知機能を実装できる強力なツールです。オープンソースである点や、シンプルなAPI設計により、個人開発から企業利用まで幅広く活用されることが期待されています。
原文の冒頭を表示(英語・3段落のみ)
Send push notifications from your app or scriptPublishing 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/mytopicOr get notified on your computerYou 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.Open appGetting startedPricingTry ntfy for free without sign-up, or check out our paid plans. Or, since it's open source, you can always self-host it.MonthlyAnnuallySupporter$5/ monthGet started with ntfy, while also supporting the open source project.SubscribePro$10/ monthThis is the best value plan. Lots of messages, and large attachments.SubscribeBusiness$20/ monthInsane amount of messages, lots of reserved topics, giant attachments.SubscribeNeed 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 HarrisonStill 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 StoreJoin our open source communityntfy 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!
※ 著作権に配慮し、引用は冒頭3段落までです。続きは元記事をご覧ください。