Decentralized Package Manager¶
ob installs dependencies directly from GitHub repositories — with no centralized registry required — using concurrent streaming downloads, a content-addressable global cache, and instant hardlinks.
Commands¶
Add a dependency¶
# Uses the repository name as the default alias
ob add owner/repo@v1.0.0
# Specify a custom alias
ob add my_alias=owner/repo@main
Sync dependencies¶
Materializes .ob/packages/ according to ob.toml and verifies every SHA-256 hash locked in ob.lock:
Remove a dependency¶
Removes the package from ob.toml, ob.lock, and .ob/packages/:
Inspect dependency tree¶
Clean the global cache¶
# Dry-run: preview how much disk space would be reclaimed
ob cache clean --dry-run
# Clean the cache
ob cache clean
Integrity & Performance¶
- Content-addressable global cache: stored in
~/.cache/ob/pkg/<owner>/<repo>/<sha256>/(or$OB_CACHE_DIR). - Hardlinks: packages materialized into
.ob/packages/<alias>/use filesystem hardlinks for near-instant installs and minimal disk usage (with automatic copy fallback across devices). - SHA-256 verification: every synced package is hashed and validated against
ob.lockto prevent silent tag or branch tampering. - Private repositories: export
GITHUB_TOKENin your environment.