Deutsch
All projects
04 · Open source · Download once, carry out often

Cache & Carry

Your network's package warehouse: download once, carry out as often as you like.

Cache & Carry is a small server for homelabs and small networks: packages come from the Internet once, every further machine gets them from the LAN. It keeps the packages the machines on the network download. The second machine that needs the same update gets it from the LAN instead of the Internet: one binary, one storage directory, one dashboard.

That saves data volume and time. From the cache, data arrives as fast as your own network and disk allow. On a 10 Gbit network the Internet line is no longer the bottleneck. Machines are pointed at the cache explicitly, with one line in the package source. Repository signatures pass through untouched, apt and pacman verify them as before.

Early stage (v0.1). The animation shows the principle with example figures: how fast it really gets depends on network, disk and machines.

What makes it

  1. 01

    One download for all

    When ten machines ask for the same file at once, Cache & Carry downloads it once and streams it to all of them while the download runs.

  2. 02

    Same content, one copy

    Files are stored by their SHA-256. The same content is kept only once, no matter how many repositories it comes from.

  3. 03

    APT and Pacman

    Tested with real apt and pacman, that is Debian, Ubuntu, Arch Linux and CachyOS. Further formats such as container images, npm or PyPI are planned and not built yet.

  4. 04

    Dashboard with live traffic

    Shows every request as a hit or a miss, the data saved and the storage used. Interrupted downloads resume, and if a mirror fails the next one takes over.

A closer look

Dashboard with savings, hit ratio and storage
Two clients sharing one download
Live traffic: every request as a hit or a miss
Storage: space used and stored files
Cache modules for APT and Pacman
Machines on the network using the cache
Next project NuOrb