Skip to content
forked from K0IN/Notify

A small Cloudflare worker / self hosted solution to send web push notifications with webhooks

License

Notifications You must be signed in to change notification settings

hkochniss/Notify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notify

Language grade: JavaScript

A Simple way to send (offline) push messages (via a webhook) to every device that supports web push. Hosted inside a cloudflare worker or selfhost (using miniflare). You can even receive notifications if the app is closed or your offline(and back online again). It comes with a offline installable pwa for all time access to your latest notifications.

example of the app using on android using on windows

Install

see installation documentation

How to send a notification

curl -X POST -H "Content-Type: application/json" -d '{"title":"Hello", "message":"World"}' https://yourendpoint/api/notify

optional with a icon:

curl -X POST -H "Content-Type: application/json" -d '{"title":"Hello", "message":"World", "icon": "https://via.placeholder.com/150"}' https://yourendpoint/api/notify

optional with some tags:

curl -X POST -H "Content-Type: application/json" -d '{"message": "test", "title": "1231234", "tag": ["test", "server"]}' https://yourendpoint/api/notify

if you have a server password defined you will also need to set the Authorization header to: bearer <server_password>

for more info see the documentation

Credits

most of the webpush code is a port of simple-push-demo by gauntface

About

A small Cloudflare worker / self hosted solution to send web push notifications with webhooks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 77.9%
  • JavaScript 17.7%
  • CSS 3.0%
  • HTML 1.4%