Skip to content

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:

ob sync

Remove a dependency

Removes the package from ob.toml, ob.lock, and .ob/packages/:

ob remove my_alias

Inspect dependency tree

ob 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.lock to prevent silent tag or branch tampering.
  • Private repositories: export GITHUB_TOKEN in your environment.