logoalt Hacker News

Show HN: Repogen – a static site generator for package repositories

32 pointsby tlarlast Tuesday at 4:36 PM7 commentsview on HN

Hi HN,

Package repositories don't need to be complicated. They're just static files: metadata indexes and the packages themselves. Yet somehow hosting your own feels like you need dedicated infrastructure and deep knowledge of obscure tooling.

repogen is an SSG for package repos. Point it at your .deb/.rpm/.apk files, it generates the static structure, you upload to S3 or any web host. Done. $0.02/month to host packages for your whole team.

It supports Debian, RPM, Alpine, Pacman, and Homebrew. Has incremental mode for updating repos without redownloading everything. Handles signing. Very alpha, but it works. Would love to get feedback!


Comments

Jabihjotoday at 11:28 AM

Really cool! Any chance this could support docker images? I'm thinking of this if it could be a sort of artifactory replacement.

tekacstoday at 12:34 AM

Very cool! I've definitely dreaded trying to make sense of the diverse infra every time we've needed to do this in the past. Several of these are quite simple, but every extra tooling combo in CI can be a real PITA.

eichinyesterday at 10:39 PM

How does the debian support compare to just using apt-ftparchive? (The swiss-army-knife aspect is interesting, but while I've needed different kinds of private repo building I've never really needed more than one at a time...)

maxlohtoday at 7:56 AM

Is there any demo for the project?

bketelsentoday at 12:38 AM

nice! I made github.com/frostyard/plow last week with a serverless take on this (just for debian repos though). Being served by gh-pages means no git-lfs support though. repogen might be a better option if any packages get too big.

show 1 reply