{"id":34250067,"url":"https://github.com/wegel/zub","last_synced_at":"2026-04-24T17:03:07.584Z","repository":{"id":327427373,"uuid":"1109256742","full_name":"wegel/zub","owner":"wegel","description":"A git-like content-addressed store for filesystem trees","archived":false,"fork":false,"pushed_at":"2025-12-18T18:23:54.000Z","size":333,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-19T18:54:34.680Z","etag":null,"topics":["content-addressable-storage","content-addressed-storage","git","ostree"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/wegel.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}},"created_at":"2025-12-03T14:54:47.000Z","updated_at":"2025-12-04T20:22:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/wegel/zub","commit_stats":null,"previous_names":["wegel/zub"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/wegel/zub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wegel%2Fzub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wegel%2Fzub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wegel%2Fzub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wegel%2Fzub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wegel","download_url":"https://codeload.github.com/wegel/zub/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wegel%2Fzub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32232628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"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":["content-addressable-storage","content-addressed-storage","git","ostree"],"created_at":"2025-12-16T09:10:27.516Z","updated_at":"2026-04-24T17:03:07.578Z","avatar_url":"https://github.com/wegel.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zub\n\n[![Crates.io](https://img.shields.io/crates/v/zub-store.svg)](https://crates.io/crates/zub-store)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n\nA git-like content-addressed store for filesystem trees.\n\n## what it is\n\nzub stores directory trees as content-addressed objects (blobs, trees, commits) with full metadata preservation: ownership, permissions, xattrs, sparse files, and hardlinks.\n\nSimilar to [ostree's bare repo mode](https://ostreedev.github.io/ostree/repo/), blobs are stored uncompressed with metadata applied directly to the files, enabling hardlink-based checkout for zero-copy extraction.\n\n## why\n\n- simpler than ostree\n- supports user namespace remapping (rootless containers)\n- union merging for layer composition\n- efficient deduplication via content-addressing\n\n## install\n\n```sh\ncargo install zub-store\n```\n\n## build\n\n```sh\n# static binary via container (no dependencies needed)\nmake build\n\n# or locally\ncargo build --release\n```\n\n## usage\n\n```sh\n# init a repo\nzub init /path/to/repo\n\n# repo is auto-detected from ZUB_REPO env or .zub symlink/dir\nln -s /path/to/repo .zub\n# or\nzub init .zub\n\n# commit a directory tree\nzub commit /some/dir my-ref -m \"initial\"\n\n# checkout (hardlinks by default)\nzub checkout my-ref /target/dir\n\n# view history\nzub log my-ref\n\n# diff two refs\nzub diff ref-a ref-b\n\n# merge multiple refs (last-wins on conflict)\nzub union ref-a ref-b ref-c merged-ref --on-conflict last\n\n# sync between repos (local or SSH)\nzub push /other/repo my-ref\nzub pull user@host:/remote/repo some-ref  # auto-deploys zub if needed\n```\n\n## commands\n\n| command | description |\n|---------|-------------|\n| `init` | create a new repository |\n| `commit` | snapshot a directory into a ref |\n| `checkout` | extract a ref to a directory |\n| `log` | show commit history |\n| `diff` | compare two refs |\n| `ls-tree` | list tree contents |\n| `union` | merge multiple refs |\n| `push` / `pull` | sync refs between repositories (local or SSH) |\n| `gc` | garbage collect unreachable objects |\n| `fsck` | verify repository integrity |\n| `remap` | translate blob ownership across namespaces |\n| `stats` / `du` | repository statistics and disk usage |\n\nRun `zub --help` for full command list.\n\n## repository layout\n\n```\nrepo/\n├── config.toml\n├── objects/\n│   ├── blobs/      # file content (uncompressed, with metadata)\n│   ├── trees/      # directory structure (cbor + zstd)\n│   └── commits/    # commit metadata (cbor + zstd)\n└── refs/\n    ├── heads/\n    └── tags/\n```\n\n## license\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwegel%2Fzub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwegel%2Fzub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwegel%2Fzub/lists"}