← mirrors.mamad.dev

pub.dev Mirror

Dart/Flutter packages from pub.dev

API Key
For scripts and CI:

        
      

Set PUB_HOSTED_URL environment variable

export PUB_HOSTED_URL=https://mirrors.mamad.dev/pub/YOUR_KEY

Add to shell profile (.zshrc or .bashrc)

echo 'export PUB_HOSTED_URL=https://mirrors.mamad.dev/pub/YOUR_KEY' >> ~/.zshrc

Use with dart/flutter commands

flutter pub get
dart pub get

Verify configuration

echo $PUB_HOSTED_URL

Download a package directly

curl -LO https://mirrors.mamad.dev/pub/YOUR_KEY/packages/http/versions/1.1.0.tar.gz

How it works

Proxies pub.dev. All package metadata and .tar.gz archives are cached for 7 days. Works with both Dart and Flutter package managers.

home
built with Rust · mamad.dev