{"id":51131505,"url":"https://github.com/francescobianco/zub.zig","last_synced_at":"2026-06-25T13:01:10.465Z","repository":{"id":351743665,"uuid":"1207321609","full_name":"francescobianco/zub.zig","owner":"francescobianco","description":"Zig-native installer for Zig binaries published in the ZUB registry.","archived":false,"fork":false,"pushed_at":"2026-04-16T10:35:22.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-16T16:29:05.921Z","etag":null,"topics":["linux","macos","package-index","package-manager","ubuntu","version-manager","windows","zig","zig-cli","zig-package","ziglang"],"latest_commit_sha":null,"homepage":"https://yafb.net/zub.zig","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/francescobianco.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"francescobianco"}},"created_at":"2026-04-10T20:14:56.000Z","updated_at":"2026-04-16T10:35:25.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/francescobianco/zub.zig","commit_stats":null,"previous_names":["francescobianco/zub.zig"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/francescobianco/zub.zig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francescobianco%2Fzub.zig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francescobianco%2Fzub.zig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francescobianco%2Fzub.zig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francescobianco%2Fzub.zig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/francescobianco","download_url":"https://codeload.github.com/francescobianco/zub.zig/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francescobianco%2Fzub.zig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34775934,"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-25T02:00:05.521Z","response_time":101,"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":["linux","macos","package-index","package-manager","ubuntu","version-manager","windows","zig","zig-cli","zig-package","ziglang"],"created_at":"2026-06-25T13:01:05.522Z","updated_at":"2026-06-25T13:01:10.432Z","avatar_url":"https://github.com/francescobianco.png","language":"Zig","funding_links":["https://github.com/sponsors/francescobianco"],"categories":[],"sub_categories":[],"readme":"# zub\n\n`zub` is a Zig-native installer for Zig binaries published in the ZUB registry.\n\nIts job is simple:\n\n- install `zvm` by default\n- detect the Zig version required by a package\n- provision that Zig version automatically\n- build the package\n- place the resulting executable in `$HOME/.local/bin`\n\nThe registry source is:\n\n`https://zub.javanile.org/packages.json`\n\n## Install\n\nThe intended bootstrap flow is:\n\n```bash\ncurl -fsSL https://yafb.net/zub.zig/install.sh | bash\n```\n\nThe published installer is stored at `docs/install.sh` in this repository.\n\nThe installer:\n\n- installs `zvm` if it is missing\n- installs a bootstrap Zig version\n- builds `zub`\n- installs `zub` into `$HOME/.local/bin`\n\n## Usage\n\nInstall a package from the registry:\n\n```bash\nzub install pbm\n```\n\nSearch packages in the registry:\n\n```bash\nzub search http\n```\n\nWhat `zub` does under the hood:\n\n1. downloads the package index from `https://zub.javanile.org/packages.json`\n2. resolves the package repository from the registry entry\n3. clones or updates the source in the local cache\n4. reads `build.zig.zon` to detect `minimum_zig_version` when available\n5. uses `zvm` to install that Zig version\n6. runs `zig build`\n7. copies the produced executable into `$HOME/.local/bin`\n\n## Paths\n\n- binary install dir: `$HOME/.local/bin`\n- source cache: `$HOME/.cache/zub/src`\n- temp build cache: `$HOME/.cache/zub/tmp`\n\n## Notes\n\n- `zub` currently assumes registry package URLs follow the GitHub pattern `/packages/\u003cowner\u003e/\u003crepo\u003e/`.\n- if a package does not expose `minimum_zig_version`, `zub` falls back to `master`\n- build output resolution prefers `zig-out/bin/\u003cpackage-name\u003e` and otherwise picks a single executable found in `zig-out/bin`\n\n## Development\n\nBuild locally:\n\n```bash\nzig build\n```\n\nRun:\n\n```bash\n./zig-out/bin/zub\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancescobianco%2Fzub.zig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrancescobianco%2Fzub.zig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancescobianco%2Fzub.zig/lists"}