{"id":18500696,"url":"https://github.com/navidys/tvxwidgets","last_synced_at":"2025-05-16T05:06:13.553Z","repository":{"id":41493143,"uuid":"439771753","full_name":"navidys/tvxwidgets","owner":"navidys","description":"tvxwidgets provides extra widgets for tview","archived":false,"fork":false,"pushed_at":"2025-04-26T02:09:19.000Z","size":1233,"stargazers_count":163,"open_issues_count":0,"forks_count":14,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-26T03:31:19.596Z","etag":null,"topics":["golang","terminal-interface","user-interface"],"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/navidys.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-19T04:06:47.000Z","updated_at":"2025-04-26T02:09:16.000Z","dependencies_parsed_at":"2024-04-29T11:30:16.363Z","dependency_job_id":"c1042444-5a73-4110-b548-d70c3ed9ec7e","html_url":"https://github.com/navidys/tvxwidgets","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navidys%2Ftvxwidgets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navidys%2Ftvxwidgets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navidys%2Ftvxwidgets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navidys%2Ftvxwidgets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/navidys","download_url":"https://codeload.github.com/navidys/tvxwidgets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254471061,"owners_count":22076585,"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","terminal-interface","user-interface"],"created_at":"2024-11-06T13:50:28.416Z","updated_at":"2025-05-16T05:06:13.534Z","avatar_url":"https://github.com/navidys.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tvxwidgets\n\n\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/navidys/tvxwidgets)](https://pkg.go.dev/github.com/navidys/tvxwidgets)\n![Go](https://github.com/navidys/tvxwidgets/workflows/Go/badge.svg)\n[![codecov](https://codecov.io/gh/navidys/tvxwidgets/branch/main/graph/badge.svg)](https://codecov.io/gh/navidys/tvxwidgets)\n[![Go Report](https://img.shields.io/badge/go%20report-A%2B-brightgreen.svg)](https://goreportcard.com/report/github.com/navidys/tvxwidgets)\n\ntvxwidgets provides extra widgets for [tview](https://github.com/rivo/tview).\n\n![Screenshot](demo.gif)\n\n## Widgets\n\n* [bar chart](./demos/barchart/)\n* [activity mode gauge](./demos/gauge_am/)\n* [percentage mode gauge](./demos/gauge_pm/)\n* [utilisation mode gauge](./demos/gauge_um/)\n* [message dialog (info and error)](./demos/dialog/)\n* [spinner](./demos/spinner/)\n* [plot (linechart, scatter)](./demos/plot/)\n* [sparkline](./demos/sparkline/)\n\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"time\"\n\n\t\"github.com/gdamore/tcell/v2\"\n\t\"github.com/navidys/tvxwidgets\"\n\t\"github.com/rivo/tview\"\n)\n\nfunc main() {\n\tapp := tview.NewApplication()\n\tgauge := tvxwidgets.NewActivityModeGauge()\n\tgauge.SetTitle(\"activity mode gauge\")\n\tgauge.SetPgBgColor(tcell.ColorOrange)\n\tgauge.SetRect(10, 4, 50, 3)\n\tgauge.SetBorder(true)\n\n\tupdate := func() {\n\t\ttick := time.NewTicker(500 * time.Millisecond)\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase \u003c-tick.C:\n\t\t\t\tgauge.Pulse()\n\t\t\t\tapp.Draw()\n\t\t\t}\n\t\t}\n\t}\n\tgo update()\n\n\tif err := app.SetRoot(gauge, false).EnableMouse(true).Run(); err != nil {\n\t\tpanic(err)\n\t}\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavidys%2Ftvxwidgets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnavidys%2Ftvxwidgets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavidys%2Ftvxwidgets/lists"}