Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
As u/Which-Adeptness6908 already pointed out, the repository specification is small, and that's all you need to implement a server: https://github.com/dart-lang/pub/blob/master/doc/repository-spec-v2.md
There are multiple servers/mirrors already shared on pub.dev, without any particular order or selection, I've found these with a simple search (NOTE: I'm not really familiar with the particular details of these, not endorsing, just pointing out examples): https://pub.dev/packages/unpub https://pub.dev/packages/repo_pub_server https://pub.dev/packages/pub_mirror
These are fields that are specific to your upload mechanism. pub.dev uses an upload that puts the archive files directly into a google cloud bucket, and there are fields that needs to be prepared for that. The actual code for the live data is here: https://github.com/dart-lang/pub-dev/blob/master/app/lib/package/upload_signer_service.dart#L84-L92