{"id":26042678,"url":"https://github.com/nstr/re-notifier","last_synced_at":"2025-10-23T19:37:05.876Z","repository":{"id":136310046,"uuid":"85943486","full_name":"nstr/re-notifier","owner":"nstr","description":"Redux notifier with using standard web HTML5 API for browser notification","archived":false,"fork":false,"pushed_at":"2017-04-03T13:49:14.000Z","size":16,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-20T15:40:55.620Z","etag":null,"topics":["browser-notifications","notifier","react-notifications","redex-notification","redux-notifier","web-notifications"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nstr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-03-23T11:45:12.000Z","updated_at":"2018-06-19T08:58:29.000Z","dependencies_parsed_at":"2023-08-20T12:18:50.467Z","dependency_job_id":null,"html_url":"https://github.com/nstr/re-notifier","commit_stats":null,"previous_names":["njnest/re-notifier"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstr%2Fre-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstr%2Fre-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstr%2Fre-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstr%2Fre-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nstr","download_url":"https://codeload.github.com/nstr/re-notifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242428470,"owners_count":20126619,"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":["browser-notifications","notifier","react-notifications","redex-notification","redux-notifier","web-notifications"],"created_at":"2025-03-07T16:44:13.466Z","updated_at":"2025-10-23T19:37:00.824Z","avatar_url":"https://github.com/nstr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# re-notifier\nRedux notifier with using standard web HTML5 API for browser notification\n\n## Installation\n\n```\nnpm i re-notifier --save\n```\n\n## Usage\n\nFirst step: Add re-notifier to your redux reducers. \n\n```js\nimport { combineReducers } from \"redux\";\n\nimport { renotifierReducer } from \"re-notifier\";\n\nconst reducers = combineReducers({\n  ...\n  renotifier: renotifierReducer\n  ...\n});\n\nexport default reducers;\n```\n\nNext step: You must get a permission. Ask user about access to his browser notification.\n\n```jsx\nimport { getPermission } from \"re-notifier\";\n\nclass SomeComponent extends React.Component{\n  ...\n  componentDidMount() {\n   this.props.dispatch(getPermission());\n  }\n  ...\n}\n```\n\nAfter all, you will get the opportunity to send browser notification using re-notifier actions in the way: \n\n```jsx\nimport { sendNotification } from \"re-notifier\";\n\nthis.props.dispatch(sendNotification({\n  title: \"This is a title\",\n  options: {\n    body: \"this is a description\"\n  },\n  onclick: function() { console.log(\"a user made click to the notification\") }\n}));\n\n```\nModule \"re-notifier\" serve all web HTML5 API standards.\n\nProperty | Type | Description\n:---|:---|:---\ntitle | `string` (required) | A title of the notication.\noptions | `Object` | Notification items such as `body`, `icon`, `tag` and etc.\nonclick | `function` | Function which was called after click.\ncloseOnclick | `bool` | Close the notification after click.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstr%2Fre-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnstr%2Fre-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstr%2Fre-notifier/lists"}