{"id":14990722,"url":"https://github.com/brookjeynes/progress","last_synced_at":"2025-04-12T02:43:44.621Z","repository":{"id":252249986,"uuid":"839881032","full_name":"BrookJeynes/progress","owner":"BrookJeynes","description":"A simple thread safe progress bar and spinner library","archived":false,"fork":false,"pushed_at":"2025-03-25T21:33:32.000Z","size":39,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T22:22:11.275Z","etag":null,"topics":["cli","zig","zig-package"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/BrookJeynes.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-08-08T14:08:38.000Z","updated_at":"2025-03-25T21:27:58.000Z","dependencies_parsed_at":"2024-12-06T05:25:22.587Z","dependency_job_id":"a2cbde26-bc91-4898-b93f-6356914597f3","html_url":"https://github.com/BrookJeynes/progress","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"be0bea6140acbd2296b9a8e89fe8f2ed281d9158"},"previous_names":["brookjeynes/progress"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrookJeynes%2Fprogress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrookJeynes%2Fprogress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrookJeynes%2Fprogress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrookJeynes%2Fprogress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BrookJeynes","download_url":"https://codeload.github.com/BrookJeynes/progress/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248507866,"owners_count":21115688,"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":["cli","zig","zig-package"],"created_at":"2024-09-24T14:20:39.603Z","updated_at":"2025-04-12T02:43:44.615Z","avatar_url":"https://github.com/BrookJeynes.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# progress\n\n![Demo of library](https://github.com/user-attachments/assets/227297c4-15a5-4c68-a8bc-49d7e1505a79)\n\nA simple thread safe progress bar and spinner library.\n\n- [Installation](#installation)\n- [Example](#example)\n- [Contributing](#contributing)\n\n## Installation\n1. Fetch the package.  \n    `zig fetch --save git+https://github.com/BrookJeynes/progress`\n2. Add to your `build.zig`.\n    ```zig\n    const progress = b.dependency(\"progress\", .{}).module(\"progress\");\n    exe.root_module.addImport(\"progress\", progress);\n    ```\n\n## Example\n```zig\nconst std = @import(\"std\");\nconst ProgressBar = @import(\"progress\").Bar;\nconst ProgressSpinner = @import(\"progress\").Spinner;\n\npub fn bar() !void {\n    const stdout = std.io.getStdOut().writer();\n    var pb = ProgressBar.init(10, stdout.any(), .{});\n\n    while (!pb.isFinished()) {\n        pb.add(1);\n        try pb.render();\n\n        std.time.sleep(std.time.ns_per_ms * 150);\n    }\n}\n\npub fn spinner() !void {\n    const stdout = std.io.getStdOut().writer();\n    var ps = ProgressSpinner.init(stdout.any(), .{\n        .symbols = ProgressSpinner.PredefinedSymbols.default,\n    });\n\n    var iterations: usize = 0;\n    while (!ps.isFinished()) {\n        iterations += 1;\n        try ps.render();\n\n        if (iterations == 20) try ps.finish();\n\n        std.time.sleep(std.time.ns_per_ms * 150);\n    }\n}\n```\n\nYou can find more examples in the `examples/` folder.  \nFor more information, see the source code or documentation (`zig build docs`).\n\n## Contributing\nContributions, issues, and feature requests are always welcome! This project is \nusing the latest stable release of Zig (0.14.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrookjeynes%2Fprogress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrookjeynes%2Fprogress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrookjeynes%2Fprogress/lists"}