Eternals Registry
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.
Tech Stack
Section titled “Tech Stack”| Layer | Technology |
|---|---|
| Server | Go |
| Web UI | React, embedded in the binary |
| Metadata | PostgreSQL |
| Hot state | Redis |
| Blobs | S3 / MinIO |
Features
Section titled “Features”- 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 —
/metricsfor Prometheus and/healthzfor probes
Running the Server
Section titled “Running the Server”The registry needs PostgreSQL, Redis, and an S3-compatible store such as MinIO.
# Build the imagedocker build -t eternals-registry .
# Or build the binary, with the UI embeddednpm run build && go build -o bin/registry . && ./bin/registryConfigure it with these environment variables:
POSTGRES_URL REDIS_URL S3_ENDPOINT S3_ACCESS_KEY S3_SECRET_KEY S3_BUCKETDEFAULT_USER_USERNAME DEFAULT_USER_PASSWORDUPSTREAMS_NPM UPSTREAMS_PYPI PUBLIC_URLThe server listens on port 4874. First boot creates the admin from DEFAULT_USER_USERNAME and DEFAULT_USER_PASSWORD, then seeds the default feeds.
Configuring Your Client
Section titled “Configuring Your Client”Create an access token in the web UI. Tokens start with ecr_.
registry=https://registry.your-domain.com/npm///registry.your-domain.com/npm/:_authToken=ecr_...pip install --index-url https://__token__:ecr_...@registry.your-domain.com/simple/ <pkg>twine upload --repository-url https://registry.your-domain.com/legacy/ -u __token__ -p ecr_... dist/*Scaling
Section titled “Scaling”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.
Vision
Section titled “Vision”Eternals Registry aims to replace a pile of separate package registries with one service you run yourself.