{"id":43978303,"url":"https://github.com/bharath-srinivas/termloader","last_synced_at":"2026-02-07T08:34:41.228Z","repository":{"id":57516131,"uuid":"126211378","full_name":"bharath-srinivas/termloader","owner":"bharath-srinivas","description":"A simple Go library for implementing terminal loading screen","archived":false,"fork":false,"pushed_at":"2023-10-09T04:17:42.000Z","size":6666,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-15T09:58:37.311Z","etag":null,"topics":["go","golang","loading-animations","loading-screen","loadingscreen","terminal","terminal-based"],"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/bharath-srinivas.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":"2018-03-21T16:49:17.000Z","updated_at":"2023-07-25T13:46:17.000Z","dependencies_parsed_at":"2024-06-20T03:17:48.403Z","dependency_job_id":"e4fe26f9-be10-4398-a7b6-250f16038d98","html_url":"https://github.com/bharath-srinivas/termloader","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/bharath-srinivas/termloader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bharath-srinivas%2Ftermloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bharath-srinivas%2Ftermloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bharath-srinivas%2Ftermloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bharath-srinivas%2Ftermloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bharath-srinivas","download_url":"https://codeload.github.com/bharath-srinivas/termloader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bharath-srinivas%2Ftermloader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29190284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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","loading-animations","loading-screen","loadingscreen","terminal","terminal-based"],"created_at":"2026-02-07T08:34:41.163Z","updated_at":"2026-02-07T08:34:41.212Z","avatar_url":"https://github.com/bharath-srinivas.png","language":"Go","readme":"# Termloader\n[![Build Status](https://circleci.com/gh/bharath-srinivas/termloader/tree/master.svg?style=shield)](https://circleci.com/gh/bharath-srinivas/termloader/?branch=master)\n[![GoDoc](https://godoc.org/github.com/bharath-srinivas/termloader?status.svg)](https://godoc.org/github.com/bharath-srinivas/termloader)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n\nTermloader is a simple library to add a loading screen to your terminal applications. Termloader will render the \nloader at the center of your terminal screen. Currently termloader is supported only on *nix operating systems.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/termloader.gif\"/\u003e\n  \u003cimg src=\"assets/termloader1.gif\"/\u003e\n\u003c/p\u003e\n\n## Installation\n```bash\ngo get github.com/bharath-srinivas/termloader\n``` \n\n## Example Usage\n```go\npackage main\n\nimport (\n\t\"time\"\n\n\t\"github.com/bharath-srinivas/termloader\"\n)\n\nfunc main() {\n\tloader := termloader.New(termloader.CharsetConfigs[\"default\"]) // construct a new loader with config\n\n\tloader.Start() // start the loader\n\ttime.Sleep(5 * time.Second) // sleep for sometime to simulate a task\n\tloader.Stop() // stop the loader\n}\n```\n\n## Loader color\n```go\nloader.Color = termloader.Green // provide a color for the loader (white if not provided)\n```\n\n## Provide a loading text\n```go\nloader.Text = \"Loading\" // provide a text to show above the loader\n```\n\n## Loading text color\n```go\nloadingText := termloader.ColorString(\"Now Loading\", termloader.Green) // color the string\nloader.Text = loadingText // provide the colored string as loading text\n```\n\n## Custom delay\n```go\nloader.Delay = 100 * time.Millisecond // delay in milliseconds\n```\n\n## Loading image\nTermloader supports only `jpeg` and `png` formats as of now. Support for more formats might be added later.\n```go\nloader.Image.SetPath(\"/path/to/image\") // provide the path of the loading image\nloader.Image.SetWidth(55) // set custom width for the image\nloader.Image.SetHeight(15) // set custom height for the image\nloader.Image.Sharpen(6.5) // sharpens the image\n```\n\n## Provide your own character set for loader\n```go\ncharsetConfig := termloader.CharsetConfig{Charset: []string{\"|\", \"/\", \"-\", \"\\\\\"}, Delay: 100 * time.Millisecond}\nloader := termloader.New(charsetConfig)\n```\n\n## Todo\n- [x] Loader\n- [x] Optional loading text support\n- [x] Optional image/icon support\n- [x] Add a gif\n\n## License\nMIT","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbharath-srinivas%2Ftermloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbharath-srinivas%2Ftermloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbharath-srinivas%2Ftermloader/lists"}