{"id":21897649,"url":"https://github.com/webmaxru/node-red-contrib-web-push","last_synced_at":"2025-03-22T05:17:58.097Z","repository":{"id":47470502,"uuid":"145347378","full_name":"webmaxru/node-red-contrib-web-push","owner":"webmaxru","description":"A Node-RED node for sending Web Push notifications using VAPID","archived":false,"fork":false,"pushed_at":"2021-08-30T14:42:16.000Z","size":813,"stargazers_count":6,"open_issues_count":2,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-27T22:34:37.751Z","etag":null,"topics":["node-red","push-notifications","pwa","vapid"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/node-red-contrib-web-push","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webmaxru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-20T00:24:24.000Z","updated_at":"2024-02-14T15:16:13.000Z","dependencies_parsed_at":"2022-08-29T20:41:19.721Z","dependency_job_id":null,"html_url":"https://github.com/webmaxru/node-red-contrib-web-push","commit_stats":{"total_commits":15,"total_committers":2,"mean_commits":7.5,"dds":"0.19999999999999996","last_synced_commit":"264638327faf0ae50a8d5db7f2b3672d597f753a"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmaxru%2Fnode-red-contrib-web-push","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmaxru%2Fnode-red-contrib-web-push/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmaxru%2Fnode-red-contrib-web-push/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmaxru%2Fnode-red-contrib-web-push/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webmaxru","download_url":"https://codeload.github.com/webmaxru/node-red-contrib-web-push/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244191572,"owners_count":20413321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["node-red","push-notifications","pwa","vapid"],"created_at":"2024-11-28T14:18:17.686Z","updated_at":"2025-03-22T05:17:58.074Z","avatar_url":"https://github.com/webmaxru.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"Node-RED Web Push Notification nodes\r\n====================================\r\n\r\n`node-red-contrib-web-push` is a [Node-RED](http://nodered.org/) package that allows your Progressive Web Applications to send Web Push notifications using the standard [Web Push Protocol](https://tools.ietf.org/html/draft-ietf-webpush-protocol), while sender authentication can be achieved by implementing [VAPID](https://tools.ietf.org/html/draft-thomson-webpush-vapid). It uses the [web-push](https://github.com/web-push-libs/web-push).\r\n\r\nThe ```web push``` node is used to send notifications to Chrome, Firefox, Opera, Edge and Samsung Internet browsers. For a list of supported versions of those browsers, check the [web-push](https://github.com/web-push-libs/web-push) page.\r\n\r\nChrome prior 52 and some other old browsers require a GCM Api Key to send notifications, so you will need to configure it in the node.\r\n\r\nYou can use the ```web-push-notification``` node to set the properties of a notification, or you can send the values in the ```msg.notification``` object.\r\n\r\nThe device tokens must be provided in the ```msg.subscriptions``` object and they must contain the ```endpoint```, as well as the ```p256dh``` and the ```auth``` keys.\r\n\r\nMore information available in the ```web``` node info tab.\r\n\r\nThe ```web``` nodes returns the result in the ```msg.payload``` key.\r\n\r\n## Sample flow\r\n\r\nYou can find an sample flow in ```demo-flow.json```. It contains a simple API to manage the subscriptions and store them in a Flow variable. You can use [PWAtter](https://github.com/webmaxru/pwatter) demo project as a client-side PWA.\r\n\r\n## Demo\r\n\r\n![Demo GIF](/demo.gif?raw=true \"Demo GIF\")\r\n\r\n## License\r\n\r\nCopyright 2018 \u003ca href=\"https://twitter.com/webmaxru/\"\u003eMaxim Salnikov\u003c/a\u003e\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\");\r\nyou may not use this file except in compliance with the License.\r\nYou may obtain a copy of the License at\r\n\r\n[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)\r\n\r\nUnless required by applicable law or agreed to in writing, software\r\ndistributed under the License is distributed on an \"AS IS\" BASIS,\r\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\nSee the License for the specific language governing permissions and\r\nlimitations under the License.\r\n\r\n### Credits\r\nThis node is based on \u003ca href=\"https://github.com/Xzya/node-red-contrib-push/\" target=\"_new\"\u003enode-red-contrib-push\u003c/a\u003e by \u003ca href=\"https://github.com/Xzya/\"\u003eMihail Cristian Dumitru\u003c/a\u003e.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebmaxru%2Fnode-red-contrib-web-push","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebmaxru%2Fnode-red-contrib-web-push","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebmaxru%2Fnode-red-contrib-web-push/lists"}