Overview
PkgRelay acts as a transparent proxy and cache for common package registries. Point your build tools at the relay endpoint and artifacts are automatically mirrored on first request.
Quick Start
- Obtain an
X-Relay-Tokenfrom the dashboard. - Configure your package manager to use
https://pkgrelay.net/<registry>. - Run your build as usual — artifacts are cached automatically.
Example: npm
npm config set registry https://pkgrelay.net/npm/
Example: Docker
docker pull pkgrelay.net/docker/library/alpine:latest
Caching Behavior
Artifacts are cached for 30 days by default. Immutable versions (those with content hashes) are cached indefinitely. Cache can be invalidated per-tenant via the API.