Skip to content

Eternals Registry

Stable

Eternals Registry is one Go service for Docker images, npm packages, and Python packages. It offers hosted, caching proxy, and group feeds with one user, token, ACL, and audit model. It replaces the earlier separate NPM and Docker registry projects.

Layer Technology
Server Go
Web UI React, embedded in the binary
Metadata PostgreSQL
Hot state Redis
Blobs S3 / MinIO
  • Docker, npm, and PyPI — One service for all three ecosystems
  • Hosted, proxy, and group feeds — Private and public dependencies resolve from a single URL
  • Upstream management — Add, reorder, scope to name patterns, and test upstreams in Settings
  • Access control — Users, access tokens, ACLs, and an audit log
  • Sign-in options — Per-user TOTP two-factor authentication and OIDC single sign-on
  • Operations — /metrics for Prometheus and /healthz for probes

The registry needs PostgreSQL, Redis, and an S3-compatible store such as MinIO.

Terminal window
# Build the image
docker build -t eternals-registry .
# Or build the binary, with the UI embedded
npm run build && go build -o bin/registry . && ./bin/registry

Configure it with these environment variables:

Terminal window
POSTGRES_URL REDIS_URL S3_ENDPOINT S3_ACCESS_KEY S3_SECRET_KEY S3_BUCKET
DEFAULT_USER_USERNAME DEFAULT_USER_PASSWORD
UPSTREAMS_NPM UPSTREAMS_PYPI PUBLIC_URL

The server listens on port 4874. First boot creates the admin from DEFAULT_USER_USERNAME and DEFAULT_USER_PASSWORD, then seeds the default feeds.

Create an access token in the web UI. Tokens start with ecr_.

.npmrc
registry=https://registry.your-domain.com/npm/
//registry.your-domain.com/npm/:_authToken=ecr_...

The server is stateless. Run multiple replicas behind a load balancer, all pointing at the same PostgreSQL, Redis, and S3 bucket. Back up PostgreSQL for metadata and the bucket for blobs.

Eternals Registry aims to replace a pile of separate package registries with one service you run yourself.