{"id":15043227,"url":"https://github.com/electricbubble/go-toast","last_synced_at":"2025-08-02T16:09:01.477Z","repository":{"id":57635922,"uuid":"427075210","full_name":"electricbubble/go-toast","owner":"electricbubble","description":"cross-platform library for sending desktop notifications","archived":false,"fork":false,"pushed_at":"2022-12-22T02:03:29.000Z","size":15,"stargazers_count":26,"open_issues_count":2,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T09:04:09.332Z","etag":null,"topics":["golang-module","macos","notification","toast","toast-notifications","windows-10"],"latest_commit_sha":null,"homepage":"","language":"Go","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/electricbubble.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}},"created_at":"2021-11-11T16:49:14.000Z","updated_at":"2025-02-24T03:01:20.000Z","dependencies_parsed_at":"2023-01-30T05:16:21.533Z","dependency_job_id":null,"html_url":"https://github.com/electricbubble/go-toast","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electricbubble%2Fgo-toast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electricbubble%2Fgo-toast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electricbubble%2Fgo-toast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electricbubble%2Fgo-toast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/electricbubble","download_url":"https://codeload.github.com/electricbubble/go-toast/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248960915,"owners_count":21189990,"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":["golang-module","macos","notification","toast","toast-notifications","windows-10"],"created_at":"2024-09-24T20:48:43.763Z","updated_at":"2025-04-14T20:50:40.302Z","avatar_url":"https://github.com/electricbubble.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Golang-Toast\n\n[![license](https://img.shields.io/github/license/electricbubble/go-toast)](https://github.com/electricbubble/go-toast/blob/master/LICENSE)\n\ncross-platform library for sending desktop notifications\n\n## Installation\n\n```shell script\ngo get github.com/electricbubble/go-toast\n```\n\n## Example\n\n- Common invocation\n  ```go\n  package main\n  \n  import (\n      \"github.com/electricbubble/go-toast\"\n  )\n  \n  func main() {\n      // _ = toast.Push(\"test message\")\n      _ = toast.Push(\"test message\", toast.WithTitle(\"app title\"))\n  }\n  \n  ```\n\n- `macOS`\n    ```go\n    package main\n    \n    import (\n        \"github.com/electricbubble/go-toast\"\n    )\n    \n    func main() {\n        // _ = toast.Push(\"test message\")\n        // _ = toast.Push(\"test message\", toast.WithTitle(\"app title\"))\n        _ = toast.Push(\"test message\",\n            toast.WithTitle(\"app title\"),\n            toast.WithSubtitle(\"app sub title\"),\n            toast.WithAudio(toast.Ping),\n            // toast.WithObjectiveC(true),\n        )\n    }\n    \n    ```\n\n- `Windows`\n  ```go\n  package main\n  \n  import (\n      \"github.com/electricbubble/go-toast\"\n  )\n  \n  func main() {\n      // _ = toast.Push(\"test message\")\n      // _ = toast.Push(\"test message\", toast.WithTitle(\"app title\"))\n      _ = toast.Push(\"test message\",\n          toast.WithTitle(\"app title\"),\n          toast.WithAppID(\"app id\"),\n          toast.WithAudio(toast.Default),\n          toast.WithLongDuration(),\n          toast.WithIcon(\"/path/icon.png\"),\n      )\n      // bs, err := os.ReadFile(\"/path/icon.png\")\n      // if err != nil {\n      // \tlog.Fatalln(err)\n      // }\n      // toast.WithIconRaw(bs)\n  }\n  \n  ```\n\n- `js \u0026\u0026 wasm`\n  ```go\n  package main\n  \n  import (\n      \"fmt\"\n      \"github.com/electricbubble/go-toast\"\n  )\n  \n  func main() {\n      // _ = toast.Push(\"test message\")\n      // _ = toast.Push(\"test message\", toast.WithTitle(\"app title\"))\n      _ = toast.Push(\"test_message\",\n          toast.WithTitle(\"GO-WASM-APP\"),\n          toast.WithOnClick(func(event interface{}) {\n              fmt.Println(\"click\")\n          }),\n          toast.WithOnClose(func() {\n              fmt.Println(\"close\")\n          }),\n          toast.WithOnShow(func() {\n              fmt.Println(\"show\")\n          }),\n      )\n  }\n    \n  ```\n\n## Thanks\n\nThank you [JetBrains](https://www.jetbrains.com/?from=gwda) for providing free open source licenses\n\n---\n\nRepository|Description\n---|---\n|[go-toast/toast](https://github.com/go-toast/toast)|A go package for Windows 10 toast notifications|\n|[fyne-io/fyne](https://github.com/fyne-io/fyne)|Cross platform GUI in Go inspired by Material Design|\n|[gen2brain/beeep](https://github.com/gen2brain/beeep)|Go cross-platform library for sending desktop notifications, alerts and beeps|\n|[julienXX/terminal-notifier](https://github.com/julienXX/terminal-notifier)|Send User Notifications on macOS from the command-line.|\n|[variadico/noti](https://github.com/variadico/noti)|Monitor a process and trigger a notification.|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectricbubble%2Fgo-toast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felectricbubble%2Fgo-toast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectricbubble%2Fgo-toast/lists"}