Skip to content
Gantry
Sign in
Early accessGantry Cloud is open to an allowlist

One private registry for containers, npm, and cargo

Gantry serves OCI images, npm packages, and Rust crates from a single container. Blobs live in your object storage; metadata lives in embedded Turso, Turso Cloud, Postgres, or a change log in the same bucket. Use it hosted, or run it yourself.

Sign-in is invite-only during early access. Self-hosting needs no account.

one host, three clients
docker push registry.gantry.willothy.dev/acme/containers/api:1.4.0
npm publish --registry https://registry.gantry.willothy.dev/npm/acme/js/
cargo publish --registry acme

Formats

One registry for three ecosystems

An org holds as many registries as it needs, one format each, behind the same tokens, teams, and audit log. The clients you already use talk to it directly.

Containers

OCI images

Push and pull with docker. Passes the OCI distribution-spec conformance suite: 850 passed, 0 failed.

  • Tags, digests, and multi-platform indexes
  • Image sizes, layers, and platforms in the console
  • Token password: a scoped Gantry token
terminal
docker login registry.gantry.willothy.dev -u ci
docker push registry.gantry.willothy.dev/acme/containers/api:1.4.0

npm

JavaScript packages

Point npm at a registry with a token, for everything or only your scope. No npm login, no plugin.

  • publish, install, view, search, dist-tag, deprecate, unpublish
  • Route one scope with @acme:registry
  • Unpublished version numbers stay retired, as on npmjs
terminal
npm config set registry https://registry.gantry.willothy.dev/npm/acme/js/
npm config set //registry.gantry.willothy.dev/npm/acme/js/:_authToken "$GANTRY_TOKEN"

Cargo

Rust crates

A sparse index cargo reads directly. Authenticate with cargo's own token provider.

  • cargo login, publish, and yank with --registry acme
  • Public registries read without a token
  • Deleted versions cannot be published again
~/.cargo/config.toml
[registry]
global-credential-providers = ["cargo:token"]

[registries.acme]
index = "sparse+https://registry.gantry.willothy.dev/cargo/acme/crates/index/"

Pull-through caches

Make any registry a read-only cache of Docker Hub (or GHCR, ECR, Quay), npmjs, or crates.io. Gantry fetches what it does not have, verifies it against its digest, integrity, or checksum, and keeps serving it when the upstream is down. Cached versions are audited and pruned by retention like any other.

terminal
docker pull registry.gantry.willothy.dev/acme/hub/alpine:3.20
npm config set registry https://registry.gantry.willothy.dev/npm/acme/npmjs/

Security and compliance

Every change accounted for

Access comes from your identity provider and narrow grants, CI publishes without stored secrets, and every mutation lands in a tamper-evident log you can ship to your SIEM.

Hash-chained audit log

Every mutation records an event in the same transaction as the change. Each event's hash covers the event and the previous hash, so editing or removing one breaks the chain, and one API call recomputes it.

Stream the chains to your bucket as JSON lines, to Splunk's HTTP Event Collector, or to Datadog, and verify a downloaded copy offline.

terminal
aws s3 sync s3://acme-gantry/registry/audit ./audit && gantry audit verify-export ./audit
  1. token.createseq n
    target acme/ci
    prev_hash h(n-1)hash h(n)
  2. version.publishseq n+1
    target acme/containers/api
    prev_hash h(n)hash h(n+1)
  3. retention.updateseq n+2
    target acme/containers
    prev_hash h(n+1)hash h(n+2)

Single sign-on

Connect an org to your OpenID Connect provider with allowed domains and a default role. Teams sync from IdP groups at every sign-in.

Fine-grained tokens

Grants scope a token to registries, package globs, and actions. Tokens people create are bound to them and never do more than they can.

Trusted publishing

CI trades its OIDC token (GitHub Actions or any issuer you trust) for a 15-minute registry token, checked against claims like repository and ref. Nothing to store.

Signed webhooks

Publishes, deletes, tags, and token events reach your CI or chat as HMAC-signed requests, retried for a day, with a delivery log in the console.

Envelope encryption

Upstream passwords and client secrets are encrypted with a keyring, AWS KMS, or Vault transit. Rotated secrets reload from files without a restart.

Outbound guard

Upstreams and identity providers must be public addresses, checked when saved and on every connection and redirect, so cloud metadata stays out of reach.

Signed-image enforcement

In review

Refuse pulls of images without a valid signature, per registry.

SCIM provisioning

In review

Create, update, and suspend users from your IdP.

SAML

Planned

Company sign-in for IdPs that do not speak OpenID Connect.

Cloud or self-host

The same binary, wherever you want it

Start on the hosted registry, or run Gantry in your own cloud on your own bucket. Self-hosted servers can link to Gantry Cloud so people keep one account across both.

For individuals and startups

Early access

Gantry Cloud

A registry with nothing to run. Sign in, create an org, invite your team, and publish from CI. During early access, sign-in is open to an allowlist; we are adding people as we go.

  • Sign in with GitHub or an email link
  • A hosted registry at registry.gantry.willothy.dev
  • Orgs, teams, invitations, and scoped tokens
  • Trusted publishing from GitHub Actions
~/.npmrc
@acme:registry=https://registry.gantry.willothy.dev/npm/acme/js/
//registry.gantry.willothy.dev/npm/acme/js/:_authToken=${GANTRY_TOKEN}

For enterprises

No account needed

Self-hosted

Run it next to your workloads with your identity provider, your keys, and your SIEM. Until the first tagged release, build the image from the repository.

  • Company SSO over OpenID Connect, teams from IdP groups
  • SCIM provisioningIn review
  • SAML sign-inPlanned
  • Audit export to your bucket, Splunk, or Datadog
  • Keys in AWS KMS or Vault transit, keyless bucket access
  • Docker Compose, a Helm chart, and Fly.io configs
terminal
git clone https://github.com/willothy/gantry && cd gantry
docker build -t gantry .
cd deploy/compose && mkdir -p secrets
openssl rand -base64 32 > secrets/encryption-key
GANTRY_IMAGE=gantry docker compose up -d
docker compose logs gantry | grep setup_token

How it works

A single binary, your bucket, your database

Gantry is one Rust binary in a distroless container. It serves the three protocols, the management API, and sign-in. Blobs go to the bucket you already run; the package index goes to the metadata backend you pick.

Clients reach one Gantry container, which keeps blobs in object storage and metadata in the backend you pick.
  • docker
  • npm
  • cargo
  • console
  • CI with OIDC

gantry

OCI · npm · cargo · /api/v1 · /auth · /metrics

Object storage

Blobs, tarballs, crates, and the optional change log and audit export

S3 · R2 · MinIO · Tigris · GCS · Azure · disk

Metadata

Registries, packages, tokens, teams, and the audit chain

Turso · Turso Cloud · Postgres · bucket log

Pick a metadata backend

  • Embedded Turso

    default

    Replicas
    One
    Local disk
    The volume is the database
  • Bucket change log

    GANTRY_META_LOG=bucket

    Replicas
    One writer; a second is fenced
    Local disk
    A cache; an empty one restores from the bucket
  • Turso Cloud

    GANTRY_TURSO_DATABASE_URL

    Replicas
    One
    Local disk
    A cache; an empty one restores from Turso Cloud
  • Postgres

    GANTRY_DATABASE_URL

    Replicas
    Any number, rolling
    Local disk
    None

Presigned downloads

Gantry checks the token, then answers with a 307 to a presigned URL, so layers, tarballs, and crates come straight from the bucket or your CDN.

Retention and GC

Keep the newest N versions, drop old or untagged ones, and preview what a policy deletes before saving it. Tags are always kept.

Prometheus and OpenTelemetry

/metrics, /healthz, and /readyz on a listener of their own, OTLP traces, and a Grafana dashboard with alert rules.

Drains and limits

On SIGTERM Gantry fails readiness, keeps serving, then drains. Bodies, uploads, and API calls are limited with Retry-After.

The design of record is in docs/architecture.md.

Start on Gantry Cloud, or run it yourself

Gantry Cloud is in early access; self-hosting is open to everyone.