{"id":19846508,"url":"https://github.com/hekmon/liveprogress","last_synced_at":"2026-01-24T14:15:14.730Z","repository":{"id":233336935,"uuid":"786968371","full_name":"hekmon/liveprogress","owner":"hekmon","description":"liveprogress is a golang library allowing to print and update progress bars on a terminal","archived":false,"fork":false,"pushed_at":"2024-10-08T20:33:05.000Z","size":1621,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-06T19:38:27.085Z","etag":null,"topics":["go","golang","library","live","progress","progressbar","terminal","ui","uiprogress","update"],"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/hekmon.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":"2024-04-15T16:33:01.000Z","updated_at":"2025-04-02T16:33:08.000Z","dependencies_parsed_at":"2024-05-10T10:45:24.629Z","dependency_job_id":"a6ba70a8-980f-44a6-9a99-9ce2fb329144","html_url":"https://github.com/hekmon/liveprogress","commit_stats":null,"previous_names":["hekmon/liveprogress"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/hekmon/liveprogress","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hekmon%2Fliveprogress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hekmon%2Fliveprogress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hekmon%2Fliveprogress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hekmon%2Fliveprogress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hekmon","download_url":"https://codeload.github.com/hekmon/liveprogress/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hekmon%2Fliveprogress/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28729413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["go","golang","library","live","progress","progressbar","terminal","ui","uiprogress","update"],"created_at":"2024-11-12T13:11:41.362Z","updated_at":"2026-01-24T14:15:14.719Z","avatar_url":"https://github.com/hekmon.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# liveprogress\n\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/hekmon/liveprogress/v2)](https://pkg.go.dev/github.com/hekmon/liveprogress/v2)\n\nliveprogress is a golang library allowing to print and update progress bars on a terminal. It is heavily inspired by [uiprogress](https://github.com/gosuri/uiprogress) but redone on top of the forked [liveterm](https://github.com/hekmon/liveterm) library in order to take advantage of its enhancements.\n\nIn addition of the features of [liveterm](https://github.com/hekmon/liveterm), it also add (or changes):\n\n* Automatic bar length if its `width` is 0\n* Bars characters are runes (Unicode support thru `liveterm`)\n* Remove unecessary mutexes\n  * usage of atomic operations for bar progress\n  * decorators can be added only when instanciating the bar\n* Custom (dynamic) lines that can be anything (not necessarly a progress bar)\n* Main line concept: a bar or a custom line that will always be printed last (usefull for global progress when others lines above it indicate specific progress)\n* Ability to style the bar and decorators using [termenv](https://github.com/muesli/termenv) styles\n\n## Examples\n\n### Simple\n\nCode available [here](examples/simple/main.go).\n\n```go\nif err := liveprogress.Start(); err != nil {\n    panic(err)\n}\nbar := liveprogress.AddBar(\n    liveprogress.WithPrependPercent(liveprogress.BaseStyle()),\n    liveprogress.WithAppendDecorator(func(bar *liveprogress.Bar) string {\n        return \" Remaining:\"\n    }),\n    liveprogress.WithAppendTimeRemaining(liveprogress.BaseStyle()),\n)\n// By default a bar total is set to 100\nfor i := 0; i \u003c liveprogress.DefaultTotal; i++ {\n    // Wait a random time\n    time.Sleep(time.Duration(rand.Intn(300)) * time.Millisecond)\n    // Increment the bar\n    bar.CurrentIncrement()\n}\nif err := liveprogress.Stop(true); err != nil {\n    panic(err)\n}\nfmt.Println(\"By setting the Stop() bool parameter to true, the progress bar is cleared at stop.\")\n```\n\n![Simple example output animation](https://media.githubusercontent.com/media/hekmon/liveprogress/main/examples/simple/example.gif)\n\n### Advanced\n\nSee full source code [here](examples/advanced/main.go).\n\n![Advanced example output animation](https://media.githubusercontent.com/media/hekmon/liveprogress/main/examples/advanced/example.gif)\n\n## Installation\n\n```bash\ngo get -v github.com/hekmon/liveprogress/v2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhekmon%2Fliveprogress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhekmon%2Fliveprogress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhekmon%2Fliveprogress/lists"}