Can We Unify GitHub, Docker Hub, JFrog, and Hugging Face?

· Medium ·

8 min read Original article ↗

Hideaki Takahashi

Introducing o5s: One universal repository for any kind of data, built in Rust with h5i framework.

Think about how we store software today.

  • Source code goes to GitHub.
  • Build artifacts go to JFrog Artifactory
  • Container images go to Docker Hub
  • Python packages go to PyPI.
  • JavaScript packages go to npm.
  • AI models go to Hugging Face.

Each comes with its own infrastructure, APIs, authentication, permissions, versioning, and release workflows.

At the end of the day, they are all just sequences of 0s and 1s. While different formats have distinct workflows, those differences don’t justify maintaining separate repository infrastructures. That’s why we’re building o5s, the universal repository for any kind of data.

One Repository with Three Basic Operations.

Let’s forget Git repositories, container registries, package indexes, and model hubs for a moment. What does a repository actually need to do?

I think the answer can be surprisingly simple:

  1. put: Store data and get its content hash.
  2. get: Retrieve data by its hash.
  3. replace: Atomically update a name to point to different data.

That’s it. In o5s, objects are immutable and identified by their BLAKE3 content hashes. Names are mutable references to those objects, updated using compare-and-swap (CAS) to prevent conflicting writes.

o5s -C /data/repo init

H=$(o5s -C /data/repo put model.safetensors)
o5s -C /data/repo replace models/acme/main $H --expect absent
o5s -C /data/repo get $H > model.safetensors

The same operations work regardless of data type (source code, container image, Python package, an AI model’s weights, or anything else).

  • If we need the immutable release, we can just apply an immutable namespace rule.
  • If we need concurrent updates, we can just use version-checked replacements.
  • If we need to promote an artifact from development to production, we can just move a reference under a release policy.

Different data shouldn’t require fundamentally different repository semantics.

How Does It Actually Work?

Our architecture uses one universal core with domain-specific frontends.

Git      Hugging Face    Docker/OCI    pip/npm/Maven
| | | |
v v v v
+--------------------------------------------------+
| Protocol Fronts |
| |
| Git HF/Xet OCI Package APIs |
| |
| Protocols, ID mapping, encoding profiles |
+------------------------+-------------------------+
|
v
+--------------------------------------------------+
| o5s Core |
| |
| Immutable Objects Names & CAS |
| Content Hashing Namespace Policies |
| Provenance Authorization |
| GC & Retention Signing & Promotion |
+------------------------+-------------------------+
|
v
+--------------------------------------------------+
| Storage Engine |
| |
| FastCDC / Xet Chunking |
| zstd / Byte Grouping / Delta Encoding |
| Content-addressed Packs & Indexes |
+------------------------+-------------------------+
|
+--------+--------+
| |
v v
Local Disk S3-compatible
Storage

Chunking: Why Store a 10 GB Model as One Object?

Suppose you’re uploading a 10 GB AI model. Storing it as a single blob is simple. But what happens when you fine-tune the model and only part of the data changes? Re-uploading and storing the entire 10 GB can be wasteful.

This is where content-defined chunking comes in. Instead of splitting data into fixed-size blocks, o5s identifies chunk boundaries based on the content itself.

model.safetensors
|
v
Content-Defined Chunker
|
+-------+-------+
| | |
v v v
Chunk A Chunk B Chunk C
| | |
v v v
Hash A Hash B Hash C
\ | /
\ | /
Manifest Tree

If part of a file changes, unchanged chunks can be reused rather than stored again.

Specifically, o5s supports two chunking approaches:

  • FastCDC: The default, a fast content-defined chunking algorithm for arbitrary binary data.
  • Hugging Face Xet-compatible chunking: Uses 8 KiB minimum, 64 KiB target, and 128 KiB maximum chunk sizes.

While the strategy can be selected by namespace, the object’s identity is independent of how it’s chunked. The object ID is always the BLAKE3 hash of its complete original content. This allows us to optimize the storage representation without changing the object’s identity.

Encoding Strategies

Git has spent decades optimizing how related versions of source code are stored. Hugging Face’s Xet tackles deduplication for large files. Compression algorithms like zstd exploit repeated byte patterns.

These techniques were developed or adopted for different workloads, but the underlying ideas are much more general. Why should a good compression technique be restricted to the system that popularized it? Thus, we’re building a shared storage engine that can combine several complementary techniques.

The first trick we can use is similarity-aware compression. Instead of compressing every object independently, o5s can group similar objects into shared compressed frames. The storage engine can use content-similarity features to guide grouping, rather than relying only on filenames or paths.

Second, We also use byte grouping for floating-point data like AI weights, since corresponding bytes in floating-points across adjacent values often have similar distributions. Consider 16-bit values:

Original byte order:

A0 A1 | B0 B1 | C0 C1 | D0 D1
After byte grouping:
A0 B0 C0 D0 | A1 B1 C1 D1

Grouping corresponding byte positions into separate planes before applying zstd can improve compression. The transformation is lossless and can be applied to BF16, FP16, FP32, and similar data.

Third method is XOR delta encoding. Suppose you have two versions of the same model. Instead of independently storing both, o5s can represent a new version using a base object and an XOR patch.

Base Model
|
v
+-------------+
| XOR Delta | <--- New Model
+-------------+
|
v
Delta Object

Reconstruction:
Base + Delta
|
v
New Model

These techniques are composable: o5s can chunk an object, apply byte grouping or XOR delta encoding, and pack similar chunks into shared zstd frames.

But Can a Universal Repository Actually Be Competitive?

It’s easy to propose a universal storage architecture. The harder question is whether it can compete with systems that have spent years optimizing individual workloads.

So we benchmarked o5s across several protocols using real, unmodified clients (You can find the detailed experiments, methodology, and limitations in our benchmark documentation and compression experiments.).

Against Specialized Repositories

The following measurements compare o5s with specialized systems on a four-vCPU AMD EPYC machine with 15 GB RAM and NVMe storage.

Press enter or click to view image in full size

Ratios are o5s divided by the comparison system. Lower is better. The metrics use different domain-specific workloads and should not be compared across rows.

Some results are encouraging. On the tested Git workloads, push and clone times are competitive with Git daemon. OCI pushes were faster than Distribution, and the package workloads showed substantial storage savings.

While o5s already does not beats every specialized system at everything, the experiment still shows that one shared repository architecture is already competitive across several very different workloads.

Does the Same Compression Algorithm Generalize?

We also tested our similarity-aware compression algorithm separately from the full server.

First, we compared it against git gc --aggressive, using four real source repositories. The experimental compressor produced smaller representations on all four: approximately 15.8% less storage on a geometric-mean basis. More interestingly, removing Git-specific path hints changed the results by no more than about 0.4% per repository. In other words, the algorithm wasn’t relying on knowing which files belonged to Git. Then we tested the same similarity-aware approach on other data.

Press enter or click to view image in full size

These are separate compression experiments with different baselines, not interchangeable performance comparisons.

What About the Core Storage Engine?

Finally, we tested the storage engine independently of its protocol adapters. In a benchmark containing ten million distinct 64-byte objects, o5s achieved:

  • 201,000 object insertions per second
  • 3.8 μs median warm random-read latency
  • 13.2 μs p99 warm random-read latency
  • 3.60 seconds to open the repository cold

These are local core measurements, not end-to-end HTTP performance.

There are still performance costs to address. Verified reads require hashing, durable writes are affected by storage throughput, and the index consumes meaningful memory and disk space at scale.

But taken together, the results suggest that sharing storage infrastructure doesn’t inherently mean giving up competitive performance.

Adapters for Existing Infrastructures.

We’re not asking developers to abandon Git, Docker, pip, npm, or Hugging Face, and o5s provides compatible interfaces for Git, OCI, Hugging Face (including LFS and Xet), PyPI, npm, and Maven.

Existing clients can communicate with the o5s server using their familiar protocols.

# Git
git clone https://your-server/git/team/project.git

# Container images
docker push your-server/team/app:1.0
# Hugging Face
HF_ENDPOINT=https://your-server hf upload team/model ./model
# Python packages
twine upload \
--repository-url https://your-server/pypi/team/ dist/*

A Few Obvious Questions

  • “Why should I use o5s?” → Less infrastructure to manage and no need to change the tools you already use.
  • “Isn’t this just S3 with adapters?” → S3 stores data. o5s manages how data is versioned, referenced, and released.
  • “Merge in Git is necessary” → Merge is just a special case of replace.
  • “Git packs source code better” → Then use it for every domain.
  • “Hugging Face’s Xet makes large weights fast” → Then use it for every domain.
  • “Registries need their own rules” → They’re just per-namespace rules (mutable, immutable, head-release).
  • “One store means one bug breaks everything” → Every decision is formally verified in Lean 4.
  • “How do I migrate everything?” → Start with one registry and keep your existing tools.

We’re Just Getting Started

o5s is still early, and there’s plenty left to improve. But our goal is simple: one universal repository for any kind of data, without forcing developers to change their existing tools.

Check it out on GitHub. We’d love your feedback!