{"id":16788740,"url":"https://github.com/markmead/alpinejs-desktop-notifications","last_synced_at":"2025-07-17T21:35:39.573Z","repository":{"id":197796891,"uuid":"699352625","full_name":"markmead/alpinejs-desktop-notifications","owner":"markmead","description":"Create desktop notifications with Alpine JS 📣","archived":false,"fork":false,"pushed_at":"2025-03-06T19:53:52.000Z","size":20,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T20:12:35.710Z","etag":null,"topics":["alpine-js","alpinejs","alpinejs-notification","alpinejs-plugin","desktop-notification","javascript-desktop-notifications","javascript-notification"],"latest_commit_sha":null,"homepage":"https://js.hyperui.dev/examples/alert-desktop-notifications","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/markmead.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-02T13:18:48.000Z","updated_at":"2025-03-06T19:53:55.000Z","dependencies_parsed_at":"2025-02-18T05:31:31.879Z","dependency_job_id":"a00d027d-6ef4-4010-9089-37df058c0c6b","html_url":"https://github.com/markmead/alpinejs-desktop-notifications","commit_stats":null,"previous_names":["markmead/alpinejs-desktop-notifications"],"tags_count":0,"template":false,"template_full_name":"markmead/alpinejs-plugin-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmead%2Falpinejs-desktop-notifications","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmead%2Falpinejs-desktop-notifications/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmead%2Falpinejs-desktop-notifications/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmead%2Falpinejs-desktop-notifications/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markmead","download_url":"https://codeload.github.com/markmead/alpinejs-desktop-notifications/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248313660,"owners_count":21082895,"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":["alpine-js","alpinejs","alpinejs-notification","alpinejs-plugin","desktop-notification","javascript-desktop-notifications","javascript-notification"],"created_at":"2024-10-13T08:24:34.172Z","updated_at":"2025-04-10T23:25:14.912Z","avatar_url":"https://github.com/markmead.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alpine JS Desktop Notifications Plugin\n\n![](https://img.shields.io/bundlephobia/min/alpinejs-desktop-notify)\n![](https://img.shields.io/npm/v/alpinejs-desktop-notify)\n![](https://img.shields.io/npm/dt/alpinejs-desktop-notify)\n![](https://img.shields.io/github/license/markmead/alpinejs-desktop-notifications)\n\nThis plugin extends Alpine JS to enable desktop notifications in your web\napplications. With a simple API, you can create native browser notifications to\nenhance user experience and engagement.\n\n## Features\n\n- Easy integration with Alpine JS\n- Customizable notification content\n- Permission checking\n\n## Use Cases\n\n- Alert users of important events even when they're in another tab\n- Notify users when background tasks complete\n- Create reminder systems for web applications\n- Enhance chat applications with new message notifications\n\nThe plugin provides a straightforward way to leverage the Web Notifications API\nwithin the Alpine JS framework, making it easy to implement desktop\nnotifications without complex JavaScript.\n\n## Install\n\n### With a CDN\n\n```html\n\u003cscript\n  defer\n  src=\"https://unpkg.com/alpinejs-desktop-notify@latest/dist/notifications.min.js\"\n\u003e\u003c/script\u003e\n\n\u003cscript defer src=\"https://unpkg.com/alpinejs@latest/dist/cdn.min.js\"\u003e\u003c/script\u003e\n```\n\n### With a Package Manager\n\n```shell\nyarn add -D alpinejs-desktop-notify\n\nnpm install -D alpinejs-desktop-notify\n```\n\n```js\nimport Alpine from 'alpinejs'\nimport notifications from 'alpinejs-desktop-notify'\n\nAlpine.plugin(notifications)\n\nAlpine.start()\n```\n\n## Example\n\n### Static Notification\n\n```html\n\u003cbutton\n  x-data\n  @click=\"$notify({ title: 'New message', body: 'Hello there 👋' })\"\n\u003e\n  Notify\n\u003c/button\u003e\n```\n\n### Dynamic Notification\n\n```html\n\u003cdiv x-data=\"{ title: '', body: '' }\"\u003e\n  \u003cinput type=\"text\" x-model=\"title\" /\u003e\n\n  \u003ctextarea x-model=\"body\"\u003e\u003c/textarea\u003e\n\n  \u003cbutton @click=\"$notify({ title, body })\"\u003e Notify \u003c/button\u003e\n\u003c/div\u003e\n```\n\n_You can also pass `icon` in the object._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkmead%2Falpinejs-desktop-notifications","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkmead%2Falpinejs-desktop-notifications","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkmead%2Falpinejs-desktop-notifications/lists"}