Skip to main content

Module fs

Module fs 

Source
Expand description

Filesystem origin backend.

Reads blobs from a sharded local directory at {base}/{hex[0..2]}/{hex}. Useful for local dev, pre-seeded caches, and operators who prefer to hand-curate the origin surface without standing up an HTTP server.

The sharded layout mirrors git’s object store — it keeps directory cardinality manageable as the content set grows, and a pre-seed script is a trivial cp loop.

Structs§

FilesystemOrigin
Origin backed by a local filesystem directory. Blobs live at {base}/{hex[0..2]}/{hex}; the engine is responsible for BLAKE3 verification after the bytes come back (same contract as every other Origin impl).