{"id":17942490,"url":"https://github.com/github/arianotify-polyfill","last_synced_at":"2025-03-24T14:32:42.920Z","repository":{"id":258517765,"uuid":"825818564","full_name":"github/ariaNotify-polyfill","owner":"github","description":"Polyfill for the ARIA Notification API","archived":false,"fork":false,"pushed_at":"2024-10-17T17:25:50.000Z","size":78,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-10-19T11:24:48.068Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.github.com/ariaNotify-polyfill/","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/github.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-08T14:59:20.000Z","updated_at":"2024-10-17T17:25:55.000Z","dependencies_parsed_at":"2024-10-19T11:35:34.021Z","dependency_job_id":null,"html_url":"https://github.com/github/ariaNotify-polyfill","commit_stats":null,"previous_names":["github/arianotify-polyfill"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2FariaNotify-polyfill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2FariaNotify-polyfill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2FariaNotify-polyfill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2FariaNotify-polyfill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github","download_url":"https://codeload.github.com/github/ariaNotify-polyfill/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245289776,"owners_count":20591131,"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":"2024-10-29T03:05:44.068Z","updated_at":"2025-03-24T14:32:42.644Z","avatar_url":"https://github.com/github.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ariaNotify-polyfill\n\nPolyfill for the [ARIA Notification API](https://github.com/WICG/accessible-notifications/blob/main/README.md)\n\nThe goal of this library is to polyfill `ariaNotify` so that it can be used seamlessly across browsers that support the native functionality, and those that don't. This adds the `Element.prototype.ariaNotify` function if it does not exist, emulating the native functionality.\n\nThis is used in production on github.com.\n\n## Background \n\nIn browsers where `ariaNotify` is supported it will emit a notification event. In browsers where it isn't supported this library will create a \"fake\" element that is an aria-live region, insert it into the DOM, and modify the text content of the element to place the given message in, achieving a similar effect to the native functionality.\n\n## Requirements\n\nThis is only meant to be used in a browser context. It should not be used on the server. To install this you will likely need `npm`.\n\n```sh\n$ npm i @github/ariaNotify-polyfill\n```\n\nIn your JavaScript you can introduce the polyfill using a \"bare\" import:\n\n```js\nimport \"@github/ariaNotify-polyfill\"\n```\n\nThen continue to use `ariaNotify` as if it were supported everywhere. A small contrived example:\n\n```js\nbutton.ariaNotify(\"Saved\")\n```\n\n## License \n\nThis project is licensed under the terms of the MIT open source license. Please refer to [MIT](./LICENSE) for the full terms.\n\n## Maintainers \n\nThe @github/accessibility and @github/primer teams maintain this library.\n\n## Support\n\nThis library is provided \"as is\". Please feel free to file issues; however, we offer no time frame for correspondence or resolution of any issues.\n\n## Acknowledgement\n\nSpecial thanks to Microsoft and the ARIA Working Group for making `ariaNotify` a possibility.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Farianotify-polyfill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub%2Farianotify-polyfill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Farianotify-polyfill/lists"}