{"id":26716576,"url":"https://github.com/67p/hubot-web-push-notifications","last_synced_at":"2025-07-03T19:07:06.366Z","repository":{"id":80864085,"uuid":"130576659","full_name":"67P/hubot-web-push-notifications","owner":"67P","description":null,"archived":false,"fork":false,"pushed_at":"2018-06-14T11:29:05.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-06-07T01:01:42.086Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/67P.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-22T14:44:14.000Z","updated_at":"2018-06-14T11:29:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"3bf48b54-7f7e-4ec9-b197-1d3cc7ff5595","html_url":"https://github.com/67P/hubot-web-push-notifications","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/67P/hubot-web-push-notifications","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/67P%2Fhubot-web-push-notifications","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/67P%2Fhubot-web-push-notifications/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/67P%2Fhubot-web-push-notifications/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/67P%2Fhubot-web-push-notifications/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/67P","download_url":"https://codeload.github.com/67P/hubot-web-push-notifications/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/67P%2Fhubot-web-push-notifications/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263385676,"owners_count":23458743,"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":[],"created_at":"2025-03-27T15:37:49.577Z","updated_at":"2025-07-03T19:07:06.357Z","avatar_url":"https://github.com/67P.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hubot Web Push Notifications\n\nThis Hubot script allows your users to subscribe to Web Push notifications from\na Web client/frontend, and then receive notifications, when someone mentions\ntheir name while they're away.\n\nIt is part of the [Kosmos](https://kosmos.org) project and has been created for\nusage with the [Hyperchannel](https://github.com/67P/hyperchannel/) Web client\nand other related programs.\n\n## Setup\n\n_Caveat: as Hubot's user management is somewhat broken at the moment, this is\ncurrently only implemented for the IRC adapter. Also, you need the following\ncommit for the adapter to expose channel attendance data:\nhttps://github.com/67P/hubot-irc/commit/af2d43c46364702e04129c7ec5cf25231f6d40a0_\n\n### 1. In your Hubot\n\nInstall the script package:\n\n    npm i --save hubot-web-push-notifications\n\nAdd it to `external-scripts.json`:\n\n```json\n[\n  \"hubot-redis-brain\",\n  \"hubot-web-push-notifications\"\n]\n```\n\n_Hint: You should persist the robot's brain using something like\n[hubot-redis-brain](https://github.com/hubotio/hubot-redis-brain)._\n\n### 2. In your Web client/front-end\n\nYou can check out a working demo client in the `demo/` directory, and copy all\nnecessary code from there. Start it from this repo's root using:\n\n    npm run demo-client\n\n## Configuration\n\nAs usual, config options are set via environment variables.\n\n| Key | Description |\n| --- | --- |\n| `GCM_API_KEY` | Google Cloud Messaging API key |\n| `VAPID_SUBJECT` | VAPID subject (mailto address or URL) |\n| `VAPID_PUBLIC_KEY` | URL-safe base64-encoded public key |\n| `VAPID_PRIVATE_KEY` | URL-safe base64-encoded private key |\n\nYou can generate the VAPID keys using:\n\n    npm run generate-vapid-keys\n\n## Questions, support, high fives\n\nJoin us in #kosmos-dev on Freenode IRC, or open an issue on GitHub.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F67p%2Fhubot-web-push-notifications","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F67p%2Fhubot-web-push-notifications","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F67p%2Fhubot-web-push-notifications/lists"}