Package plugin: apt
Almost as same as npm. But no need to proxy commands. sources.list can be modified to use beiran instead of origin repository.
beiran url for this probably should wrap origin repository url within itself
old sources.list entry
deb http://auto.mirror.devuan.org/merged/ jessie main contrib
new sources.list entry
deb http://beiran.local.api/apt/auto.mirror.devuan.org/merged/ jessie main contrib
or at the same time we can also support this directly using dns server; in this case, user just leaves the sources.list file as it is, but only uses http (not https), and we put an entry to dns for
auto.mirror.devuan.org thats pointing to beiran. And we have a setting for beiran apt plugin to act on that hostname.
We can use apt's cache directory for caching packages,
/var/cache/apt/...somewhere, and it should be configurable.