{"id":20302163,"url":"https://github.com/tantalic/anybar","last_synced_at":"2026-06-22T19:31:25.093Z","repository":{"id":57592326,"uuid":"86961176","full_name":"tantalic/anybar","owner":"tantalic","description":"A go package for interacting with AnyBar, a macOS menu bar status indicator application.","archived":false,"fork":false,"pushed_at":"2017-04-02T20:18:56.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-21T12:41:34.103Z","etag":null,"topics":["anybar","go","golang","macos","menubar"],"latest_commit_sha":null,"homepage":null,"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/tantalic.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":"2017-04-02T03:51:20.000Z","updated_at":"2018-05-10T03:43:01.000Z","dependencies_parsed_at":"2022-09-13T09:12:32.207Z","dependency_job_id":null,"html_url":"https://github.com/tantalic/anybar","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tantalic/anybar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tantalic%2Fanybar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tantalic%2Fanybar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tantalic%2Fanybar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tantalic%2Fanybar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tantalic","download_url":"https://codeload.github.com/tantalic/anybar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tantalic%2Fanybar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34663523,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"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":["anybar","go","golang","macos","menubar"],"created_at":"2024-11-14T16:29:27.803Z","updated_at":"2026-06-22T19:31:25.074Z","avatar_url":"https://github.com/tantalic.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `tantalic.com/anybar`\n\n[![codebeat badge](https://codebeat.co/badges/5b7db7c2-5275-438a-adde-bb5248385955)](https://codebeat.co/projects/github-com-tantalic-anybar-master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/tantalic/anybar)](https://goreportcard.com/report/github.com/tantalic/anybar)\n[![GoDoc](https://godoc.org/tantalic.com/anybar?status.svg)](https://godoc.org/tantalic.com/anybar)\n\nA [go][golang] package for interacting with [AnyBar][anybar], a macOS menu bar status indicator application.\n\nThe package makes it simple to set the AnyBar icon style:\n\n```go\npackage main\n\nimport (\n    \"tantalic.com/anybar\"\n)\n\nfunc main() {\n    client := anybar.Client{}\n    client.Set(anybar.Green)\n}\n```\n\n\n## Installation\n```shell\ngo get -u tantalic.com/anybar\n```\n\n\n## API\n- [type anybar.Client](#anybarclient)\n    + [`Set(s Style)`](#sets-anybarstyle)\n    + [`Start()`](#start)\n    + [`Quit()`](#quit)\n- [type anybar.Style](#anybarstyle)\n\n\n### `anybar.Client`\n\nA client is used to send commands to an instance of the AnyBar app.\n\n``` go\ntype Client struct {\n    Port     int\n    Hostname string\n}\n```\n\n`Client.Port` is the UDP port used to control the AnyBar application. Default value: `1738`.\n`Client.Hostname` is the host where the AnyBar app is running. Default value `localhost`.\n\n\n#### `Set(s anybar.Style)`\n\n``` go\nfunc (c *Client) Set(s anybar.Style) error\n```\n\nSets the style of the AnyBar menu bar icon.\n\n\n#### `Start()`\n\n``` go\nfunc (c *Client) Start() error\n```\n\nOpens the AnyBar app. If an instance of AnyBar is already running on `Client.Port` that instance will be quit first. This function only works on macOS and requires AnyBar.app to be installed.\n\n\n#### `Quit()`\n``` go\nfunc (c *Client) Quit() error\n```\n\nSend the command to exit the AnyBar app.\n\n\n### `anybar.Style`\n\nA style represents one of the available appearances that can be set to the AnyBar icon in the menu bar. You should not create your own instances but instead use on of following constants:\n\n- `anybar.White`\n- `anybar.Red`\n- `anybar.Orange`\n- `anybar.Yellow`\n- `anybar.Green`\n- `anybar.Cyan`\n- `anybar.Blue`\n- `anybar.Purple`\n- `anybar.Black`\n- `anybar.Question`\n- `anybar.Exclamation`\n\n\n\n[golang]: http://golang.org\n[anybar]: https://github.com/tonsky/AnyBar\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftantalic%2Fanybar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftantalic%2Fanybar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftantalic%2Fanybar/lists"}