{"id":18259217,"url":"https://github.com/github30/own-push-notification","last_synced_at":"2026-05-09T02:31:38.964Z","repository":{"id":97629450,"uuid":"524457228","full_name":"GitHub30/own-push-notification","owner":"GitHub30","description":"Homebrew push notifications without libraries.","archived":false,"fork":false,"pushed_at":"2022-08-13T23:57:40.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-04T07:33:20.995Z","etag":null,"topics":["firebase","firebase-database","firebase-realtime-database","homebrew","notifications","push-notifications","ubuntu","windows-10"],"latest_commit_sha":null,"homepage":"","language":null,"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/GitHub30.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":"2022-08-13T16:55:15.000Z","updated_at":"2022-08-14T10:17:21.000Z","dependencies_parsed_at":"2023-03-13T16:09:58.232Z","dependency_job_id":null,"html_url":"https://github.com/GitHub30/own-push-notification","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GitHub30/own-push-notification","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitHub30%2Fown-push-notification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitHub30%2Fown-push-notification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitHub30%2Fown-push-notification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitHub30%2Fown-push-notification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GitHub30","download_url":"https://codeload.github.com/GitHub30/own-push-notification/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitHub30%2Fown-push-notification/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32804895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["firebase","firebase-database","firebase-realtime-database","homebrew","notifications","push-notifications","ubuntu","windows-10"],"created_at":"2024-11-05T10:37:04.547Z","updated_at":"2026-05-09T02:31:38.947Z","avatar_url":"https://github.com/GitHub30.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Homebrew push notifications without libraries.\n\n## Listen\n\n### Windows\n\n```powershell\n$HttpWebRequest = [System.Net.HttpWebRequest]::Create('https://rppico-default-rtdb.asia-southeast1.firebasedatabase.app/msg.json')\n$HttpWebRequest.Accept = 'text/event-stream'\n$ResponseStream = $HttpWebRequest.GetResponse().GetResponseStream()\n$StreamReader = [System.IO.StreamReader]::new($ResponseStream)\n\nwhile (($line = $StreamReader.ReadLine()) -ne $null)\n{    \n    if (-! $line.StartsWith('data: {')){ continue }\n    $ToastText01 = [Windows.UI.Notifications.ToastTemplateType, Windows.UI.Notifications, ContentType = WindowsRuntime]::ToastText01\n    $TemplateContent = [Windows.UI.Notifications.ToastNotificationManager,Windows.UI.Notifications, ContentType = WindowsRuntime]::GetTemplateContent($ToastText01)\n    $TemplateContent.SelectSingleNode('//text[@id=\"1\"]').InnerText = ($line.Substring(6) | ConvertFrom-Json).data\n    $AppId = '{1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}\\WindowsPowerShell\\v1.0\\powershell.exe'\n    [Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier($AppId).Show($TemplateContent)\n}\n\n$StreamReader.Close() \u003e $null\n$ResponseStream.Close() \u003e $null\n```\n\n### Mac\n\n```bash\ncurl https://rppico-default-rtdb.asia-southeast1.firebasedatabase.app/msg.json -H Accept:text/event-stream --no-buffer \\\n  | grep '^data: {' --line-buffered \\\n  | while read line; do osascript -e 'display notification \"'\"${line:26:-2}\"'\"'; done\n```\n\n### Linux\n\n```bash\nwget --header Accept:text/event-stream -qO- https://rppico-default-rtdb.asia-southeast1.firebasedatabase.app/msg.json \\\n  | grep '^data: {' --line-buffered \\\n  | while read line; do notify-send \"${line:26:-2}\"; done\n```\n\n## Publish\n\n### Windows\n\n```powershell\nInvoke-WebRequest -Method PUT -Body ([System.Text.Encoding]::UTF8.GetBytes(\"`\"🕊$(date -Format yyyy-MM-ddTHH:mm:ss.fff)`\"\")) https://rppico-default-rtdb.asia-southeast1.firebasedatabase.app/msg.json\n```\n\n### Mac\n\n```bash\ncurl -X PUT -d '\"🐥'$(date --iso-8601=ns)'\"' https://rppico-default-rtdb.asia-southeast1.firebasedatabase.app/msg.json\n```\n\n### Linux\n\n```bash\nwget --method PUT --body-data '\"🐧'$(date --iso-8601=ns)'\"' -qO- https://rppico-default-rtdb.asia-southeast1.firebasedatabase.app/msg.json\n```\n\n## Endpoint\n\nOpen your [Firebase console](https://console.firebase.google.com/) and copy it\n\n![Screenshot from 2022-08-14 02-15-45](https://user-images.githubusercontent.com/12811398/184504259-5bf12e7a-c2c4-438c-af09-52632830ff15.jpg)\n\n![image](https://user-images.githubusercontent.com/12811398/184505058-3a7e5885-31d6-48cf-a026-baf32b4735d2.png)\n\n# References\n\nhttps://firebase.google.com/docs/reference/rest/database#section-streaming\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub30%2Fown-push-notification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub30%2Fown-push-notification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub30%2Fown-push-notification/lists"}