You must log in or register to comment.
Can’t you just use github API? everything is hosted on github.
You can basically list all the package under the flathub org, git clone, and build them.
… that can be said from apt repositories. But… they’re made in a way you can mirror the entire thing offline.