Why pkgbin
Ultra-local cache
Serve packages from your own infrastructure with nginx fronting a Go-powered cache.
Traffic intelligence
Record package access patterns and surface trends for audits, forecasts, and cleanup plans.
Registry-safe
Store upstream metadata and artifacts locally so builds remain stable during outages.
How it works
1. Proxy your registries
Point npm, pip, and gem at pkgbin. Requests stream through the cache, and metadata is mirrored locally.
2. Persist every access
Downloads are logged to Postgres with a built-in migration set for immediate analytics.
3. Serve from the edge
Cached packages are delivered by nginx for high throughput, protecting upstream registries.
4. Monitor and purge
See cache stats, refresh data, and purge stale artifacts from a single dashboard endpoint.
Deploy in minutes
Docker compose starter
Everything ships with a ready-to-run compose stack.
docker compose up --build
Environment ready
Configure upstreams, storage, and database in one place.
PKGBIN_DATA_DIR=/var/pkgbin
Live cache stats
Keep a pulse on dependency usage
Track top packages, hit rates, and registry health through the built-in stats endpoint. Export to your monitoring stack or keep it simple with the built-in dashboard.