Self-hosted package edge

Cache npm, PyPI, and RubyGems with a faster, smarter edge.

pkgbin keeps your registries close to your CI and dev teams. It caches downloads, stores traffic insights, and helps you keep dependency supply chains steady even when public registries are not.

Cache hit rate 94%
Avg build speedup 2.6x
Supported ecosystems 3

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.