Mirror guide

Help

Use Pub Bunker as a private mirror for Dart packages, Flutter SDK artifacts, and Android Maven dependencies so controlled networks can build reliably.

Dart package cache

Point Dart and Flutter package resolution at Pub Bunker with PUB_HOSTED_URL. Packages are cached and served through Pub v2 compatible endpoints.

export PUB_HOSTED_URL="http://localhost:8080"
dart pub get

Flutter artifact cache

Set FLUTTER_STORAGE_BASE_URL so Flutter downloads engine binaries, release metadata, and tool artifacts through the local cache.

export FLUTTER_STORAGE_BASE_URL="http://localhost:8080"
flutter precache

Maven proxy

Route Android builds through Google Maven and Maven Central mirror paths to cache Gradle, Kotlin, AndroidX, jar, aar, and pom files.

maven { url "http://localhost:8080/maven2/google" }
maven { url "http://localhost:8080/maven2/central" }

Offline workflows

Use the bunker command wrapper after warming the cache to run common Flutter commands against the isolated mirror configuration.

bunker pub get
bunker build apk

Runner nodes

Start runner daemons from the CLI or interactive menu to mirror package archives onto additional storage nodes, then run bunker doctor to inspect runner status, package coverage, storage usage, and last heartbeat.

bunker runner --name runner-node-1 --server http://localhost:8080
bunker doctor

Support and Monitoring

Generate support diagnostic bundles using the CLI, and collect server performance statistics using the Prometheus-compatible /metrics endpoint.

bunker support-bundle --server http://localhost:8080 --token <token>
curl http://localhost:8080/metrics

What the website provides

Search and inspect mirrored Dart packages from the browser.

Read package README and CHANGELOG files extracted from cached archives.

Review diagnostics, storage growth, cache contents, request traffic, and recent errors from the admin dashboard.

Register runner nodes, copy ready-to-run commands, and monitor online status, cache coverage, storage use, and heartbeat freshness.

Switch between English and Russian portal content without changing repository API behavior.

Recommended workflow

  1. Start Pub Bunker in an online environment and point client tools at the local service.
  2. Run representative pub, Flutter, and Android builds once to populate package, Flutter, and Maven caches.
  3. Move to the controlled network and keep using the same mirror URLs for repeatable offline builds.