raz / commit 4c98ab55

commit
4c98ab556d4996bf1d686507efc6134976346180
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
ecf32b3b
Add raz 0.21 CI image and Cloudflare registry setup

Build a Debian12 CI environment with verified raz0.21.0, pinned concha and robbie, and source-build tests. Use a verified build-only0.18.0 compiler for Robbie; retain only0.21.0 in the final image. Guard every compressed layer below90MB.

Prepare a separate Workers/R2 registry with anonymous pull tokens and authenticated publishing, plus opt-in publication and local Docker roundtrip checks in CI. Document credentials and deployment; no live Cloudflare resources are created.

Validated make check (1013 passed), all tool suites, root and nonroot smoke tests,9 image layers,12 registry tests, Wrangler deployment dry-run, actionlint, and authenticated Docker push with anonymous pull/run.

patch · log

16 files changed, +3294 -0

.github/workflows/container.yml (history) added +100 -0

@@ -0,0 +1,100 @@
1+name: CI image and registry
2+on:
3+ push:
4+ branches: [main]
5+ paths:
6+ - 'containers/ci/**'
7+ - 'registry/**'
8+ - '.github/workflows/container.yml'
9+ pull_request:
10+ paths:
11+ - 'containers/ci/**'
12+ - 'registry/**'
13+ - '.github/workflows/container.yml'
14+ workflow_dispatch:
15+ inputs:
16+ publish:
17+ description: Push the validated image to the configured Cloudflare registry
18+ type: boolean
19+ default: false
20+permissions:
21+ contents: read
22+concurrency:
23+ group: raz-ci-image
24+ cancel-in-progress: false
25+env:
26+ IMAGE_TAG: 0.21.0-debian12-r1
27+jobs:
28+ registry:
29+ runs-on: ubuntu-24.04
30+ defaults:
31+ run:
32+ working-directory: registry
33+ steps:
34+ - uses: actions/checkout@v4
35+ - uses: actions/setup-node@v4
36+ with:
37+ node-version: '24'
38+ cache: npm
39+ cache-dependency-path: registry/package-lock.json
40+ - run: npm ci
41+ - run: npm test
42+ - run: npm run dry-run
43+ image:
44+ needs: registry
45+ runs-on: ubuntu-24.04
46+ steps:
47+ - uses: actions/checkout@v4
48+ - uses: actions/setup-node@v4
49+ with:
50+ node-version: '24'
51+ cache: npm
52+ cache-dependency-path: registry/package-lock.json
53+ - name: Build the pinned tools and run their tests
54+ run: docker build --platform linux/amd64 -t "raz:$IMAGE_TAG" containers/ci
55+ - name: Check layer sizes against the registry upload limit
56+ run: docker save "raz:$IMAGE_TAG" | python3 containers/ci/check-layers.py
57+ - name: Smoke-test the final image
58+ run: docker run --rm "raz:$IMAGE_TAG" sh /usr/local/share/raz-ci/smoke.sh
59+ - name: Record the exact image contents
60+ run: docker run --rm "raz:$IMAGE_TAG" cat /usr/local/share/raz-ci/versions.txt
61+ - name: Test Docker publishing and anonymous pulling locally
62+ working-directory: registry
63+ run: |
64+ npm ci
65+ npm run test:docker -- "raz:$IMAGE_TAG"
66+ - name: Check the release tag has not been published
67+ if: github.event_name == 'workflow_dispatch' && inputs.publish
68+ env:
69+ REGISTRY: ${{ vars.RAZ_REGISTRY || 'raz-registry.lucelad.workers.dev' }}
70+ run: |
71+ status=$(curl --silent --show-error --head --output /dev/null --write-out '%{http_code}' \
72+ "https://$REGISTRY/v2/raz/manifests/$IMAGE_TAG")
73+ if [ "$status" != 404 ]; then
74+ echo "Expected an unpublished tag (404); got $status. Refusing to replace a release."
75+ exit 1
76+ fi
77+ - name: Log in for publishing
78+ if: github.event_name == 'workflow_dispatch' && inputs.publish
79+ uses: docker/login-action@v3
80+ with:
81+ registry: ${{ vars.RAZ_REGISTRY || 'raz-registry.lucelad.workers.dev' }}
82+ username: publisher
83+ password: ${{ secrets.RAZ_REGISTRY_PASSWORD }}
84+ - name: Publish the validated image
85+ if: github.event_name == 'workflow_dispatch' && inputs.publish
86+ env:
87+ REGISTRY: ${{ vars.RAZ_REGISTRY || 'raz-registry.lucelad.workers.dev' }}
88+ run: |
89+ docker tag "raz:$IMAGE_TAG" "$REGISTRY/raz:$IMAGE_TAG"
90+ docker push "$REGISTRY/raz:$IMAGE_TAG"
91+ - name: Verify an anonymous pull
92+ if: github.event_name == 'workflow_dispatch' && inputs.publish
93+ env:
94+ REGISTRY: ${{ vars.RAZ_REGISTRY || 'raz-registry.lucelad.workers.dev' }}
95+ run: |
96+ docker_config=$(mktemp -d)
97+ docker --config "$docker_config" pull "$REGISTRY/raz:$IMAGE_TAG"
98+ docker --config "$docker_config" run --rm "$REGISTRY/raz:$IMAGE_TAG" \
99+ sh /usr/local/share/raz-ci/smoke.sh
100+ rm -r "$docker_config"

README.md (history) modified +13 -0

@@ -237,6 +237,19 @@
237237 pins the raz it is built with: rmacs, with emacs's keys, and ravite,
238238 with vim's. Both colour raz through `tools/Scan.raz`.
239239
240+## CI image
241+
242+`containers/ci/` builds an x86-64 Linux image with released raz 0.21.0,
243+its library and tools, pinned concha and robbie, and Debian build tools.
244+Its [README](containers/ci/README.md) gives the build and checks.
245+The image revision is `0.21.0-debian12-r1`.
246+
247+`registry/` prepares a separate Cloudflare Worker and R2 registry for
248+public Docker pulls and authenticated pushes. Its [README](registry/README.md)
249+gives deployment and publishing steps. The container workflow validates
250+the image and registry; publishing is an explicit manual option and
251+needs a deployed registry and its publisher secret.
252+
240253 ## Versions
241254
242255 The compiler says its own version and that of the report it follows:

containers/ci/Dockerfile (history) added +55 -0

@@ -0,0 +1,55 @@
1+# syntax=docker/dockerfile:1
2+# raz currently targets x86-64 Linux only; build with --platform linux/amd64.
3+FROM debian:12-slim@sha256:a4672c0cb26fbdde88e38fa2dfb6c681942306680e41e4378b28770b6e79ee91 AS base
4+
5+# Optional combined CA bundle for builds behind a TLS-inspecting proxy. It is
6+# mounted only for networked steps and never becomes part of the image.
7+RUN --mount=type=secret,id=proxy_ca \
8+ test "$(dpkg --print-architecture)" = amd64 && \
9+ if [ -f /run/secrets/proxy_ca ]; then \
10+ printf 'Acquire::https::CaInfo "/run/secrets/proxy_ca";\n' > /etc/apt/apt.conf.d/99-build-ca; \
11+ fi && \
12+ apt-get update && \
13+ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
14+ bash ca-certificates curl git && \
15+ rm -rf /var/lib/apt/lists/* /etc/apt/apt.conf.d/99-build-ca
16+
17+# Keep each compressed layer below Cloudflare's free-plan upload limit.
18+RUN --mount=type=secret,id=proxy_ca \
19+ if [ -f /run/secrets/proxy_ca ]; then \
20+ printf 'Acquire::https::CaInfo "/run/secrets/proxy_ca";\n' > /etc/apt/apt.conf.d/99-build-ca; \
21+ fi && \
22+ apt-get update && \
23+ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
24+ build-essential pkg-config && \
25+ rm -rf /var/lib/apt/lists/* /etc/apt/apt.conf.d/99-build-ca
26+
27+RUN --mount=type=secret,id=proxy_ca \
28+ if [ -f /run/secrets/proxy_ca ]; then \
29+ printf 'Acquire::https::CaInfo "/run/secrets/proxy_ca";\n' > /etc/apt/apt.conf.d/99-build-ca; \
30+ fi && \
31+ apt-get update && \
32+ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
33+ bsdextrautils groff procps python3 tzdata && \
34+ rm -rf /var/lib/apt/lists/* /etc/apt/apt.conf.d/99-build-ca
35+
36+FROM base AS build
37+COPY build-tools.sh /tmp/build-tools.sh
38+RUN --mount=type=secret,id=proxy_ca \
39+ if [ -f /run/secrets/proxy_ca ]; then \
40+ export CURL_CA_BUNDLE=/run/secrets/proxy_ca GIT_SSL_CAINFO=/run/secrets/proxy_ca; \
41+ fi; \
42+ sh /tmp/build-tools.sh
43+
44+FROM base AS ci
45+LABEL org.opencontainers.image.title="raz CI" \
46+ org.opencontainers.image.description="raz 0.21.0 with concha, robbie and native build tools" \
47+ org.opencontainers.image.source="https://github.com/ldiaz94/raz" \
48+ org.opencontainers.image.version="0.21.0-debian12-r1"
49+COPY --from=build /opt/raz /opt/raz
50+COPY --from=build /usr/local/ /usr/local/
51+COPY --chmod=0644 smoke.sh /usr/local/share/raz-ci/smoke.sh
52+RUN ln -s /opt/raz/raz /usr/local/bin/raz && \
53+ sh /usr/local/share/raz-ci/smoke.sh
54+WORKDIR /workspace
55+CMD ["bash"]

containers/ci/README.md (history) added +79 -0

@@ -0,0 +1,79 @@
1+# raz CI image
2+
3+`0.21.0-debian12-r1` is an x86-64 Linux build environment containing the
4+released raz 0.21.0, concha and robbie. Debian 12 slim provides Bash, the
5+normal `/bin/sh`, Make, Git, curl, CA certificates, Python 3, C/C++ build
6+tools, pkg-config, groff, bsdextrautils (including `col`), procps
7+(including external `kill`) and timezone
8+data. No entrypoint replaces the
9+command supplied by CI; the default command is Bash.
10+
11+Build from the repository root:
12+
13+```sh
14+docker build --platform linux/amd64 \
15+ -t raz:0.21.0-debian12-r1 containers/ci
16+docker run --rm raz:0.21.0-debian12-r1 \
17+ sh /usr/local/share/raz-ci/smoke.sh
18+docker save raz:0.21.0-debian12-r1 | python3 containers/ci/check-layers.py
19+```
20+
21+Behind a TLS-inspecting proxy, supply a combined trusted CA bundle through
22+BuildKit, without adding it to the image:
23+
24+```sh
25+docker build --platform linux/amd64 \
26+ --secret id=proxy_ca,src=/path/to/combined-ca-bundle.pem \
27+ -t raz:0.21.0-debian12-r1 containers/ci
28+```
29+
30+The build verifies the release archive against the SHA-256 published with
31+raz's distribution, fetches the exact source commits recorded in
32+`build-tools.sh`, and runs rzone's checks and concha's and robbie's test
33+suites before installing the programs. The final image also compiles and
34+runs static and glibc-linked raz programs, compiles its formatter and
35+executes both added tools.
36+`/usr/local/share/raz-ci/versions.txt` records application versions and
37+`packages.txt` records installed Debian packages. License files and tool
38+manual pages are included. rzone is compiled into concha and is not
39+installed as a global source library.
40+
41+Robbie's pinned source uses raz 0.18.0's library interfaces. Its latest
42+commit changes the declared compiler version without porting those calls,
43+so the build explicitly selects the verified 0.18.0 release and overrides
44+`RAZVERSION` for robbie's tests and installation. The bootstrap compiler
45+and its library stay in the build stage. Only raz 0.21.0 is installed in
46+the final image. `versions.txt` records both archive checksums and the
47+compiler used to build robbie.
48+
49+The compiler, its standard library, source tools and release documentation
50+live together under `/opt/raz`. `/usr/local/bin/raz` is a symlink to the
51+actual executable. `RAZ_PATH` is left unset: the 0.21.0 release predates
52+support for this variable.
53+
54+Use the image to build a checked-out project:
55+
56+```sh
57+docker run --rm -v "$PWD:/workspace" raz:0.21.0-debian12-r1 make check
58+docker run --rm -v "$PWD:/workspace" raz:0.21.0-debian12-r1 robbie check
59+```
60+
61+The working directory is `/workspace`. Containers run as root by default,
62+so bind-mounted build outputs are owned by root on Linux. Pass
63+`--user "$(id -u):$(id -g)"` when the project supports an arbitrary user;
64+set `HOME` to a writable directory if its build tools need one.
65+
66+The base image is pinned by its amd64 manifest digest. Debian packages are
67+installed from the configured repositories at build time, so rebuilding
68+may receive package updates. Publish each image revision once and pin the
69+published image digest in downstream CI for an exact environment. Keep
70+`0.21.0-debian12-r1` immutable; use `r2` for a changed tool revision, base,
71+or package refresh. Registry deployment and publishing are documented in
72+the repository's `registry/` directory.
73+
74+The layer check streams the export and measures each layer's gzip size,
75+without extracting the image. Every layer must stay below 90,000,000 bytes,
76+leaving room beneath Cloudflare's 100 MB request-body limit. Package
77+installation is split across layers for this reason. Run the check before
78+publishing any changed image; a local registry does not enforce the edge
79+request limit. Downstream projects adding large layers must also respect it.

containers/ci/build-tools.sh (history) added +69 -0

@@ -0,0 +1,69 @@
1+#!/bin/sh
2+set -eu
3+
4+raz_version=0.21.0
5+raz_sha256=a8e2e550e927050d36a7e9731e6de22b094189adea15a984cd921917cbd8d90f
6+concha_revision=029289644abee68ddc3c06da526d394939846a41
7+robbie_revision=3328bcf7060ef663b309e8a7a5e8a528a7962aee
8+robbie_build_raz=0.18.0
9+robbie_build_raz_sha256=d05f2adbfddd52eabbf10db275fa69390102f46e40825ae94adaeade219799aa
10+rzone_revision=2644afb0827fe5ce1679a386336728183d61db11
11+
12+mkdir -p /opt/raz /tmp/raz-ci /usr/local/share/raz-ci
13+cd /tmp/raz-ci
14+curl --fail --location --retry 3 \
15+ "https://raz.lucelad.workers.dev/download/raz-$raz_version-linux-x86_64.tar.gz" \
16+ -o raz.tar.gz
17+printf '%s raz.tar.gz\n' "$raz_sha256" | sha256sum -c -
18+tar -xzf raz.tar.gz --strip-components=1 -C /opt/raz
19+export PATH="/opt/raz:$PATH"
20+raz --version | grep '^raz 0\.21\.0, '
21+
22+fetch() {
23+ git init -q "$1"
24+ git -C "$1" remote add origin "https://github.com/ldiaz94/$1.git"
25+ attempt=1
26+ until git -C "$1" fetch -q --depth=1 origin "$2"; do
27+ if [ "$attempt" -ge 3 ]; then return 1; fi
28+ attempt=$((attempt + 1))
29+ sleep 2
30+ done
31+ git -C "$1" checkout -q --detach FETCH_HEAD
32+ test "$(git -C "$1" rev-parse HEAD)" = "$2"
33+}
34+
35+fetch rzone "$rzone_revision"
36+fetch concha "$concha_revision"
37+fetch robbie "$robbie_revision"
38+make -C rzone check
39+make -C concha test
40+# robbie's latest commit changes RAZVERSION alone. Its source still uses
41+# the 0.18 library's pointer API; use that compiler only in this build stage.
42+curl --fail --location --retry 3 \
43+ "https://raz.lucelad.workers.dev/download/raz-$robbie_build_raz-linux-x86_64.tar.gz" \
44+ -o robbie-raz.tar.gz
45+printf '%s robbie-raz.tar.gz\n' "$robbie_build_raz_sha256" | sha256sum -c -
46+mkdir robbie-raz
47+tar -xzf robbie-raz.tar.gz --strip-components=1 -C robbie-raz
48+robbie_raz="$PWD/robbie-raz/raz"
49+"$robbie_raz" --version | grep '^raz 0\.18\.0, '
50+make -C robbie test RAZ="$robbie_raz" RAZVERSION="$robbie_build_raz"
51+make -C concha install PREFIX=/usr/local
52+make -C robbie install PREFIX=/usr/local RAZ="$robbie_raz" RAZVERSION="$robbie_build_raz"
53+
54+cat > /usr/local/share/raz-ci/versions.txt <<EOF
55+image=0.21.0-debian12-r1
56+raz=$raz_version
57+raz_archive_sha256=$raz_sha256
58+concha=$concha_revision
59+robbie=$robbie_revision
60+robbie_build_raz=$robbie_build_raz
61+robbie_build_raz_archive_sha256=$robbie_build_raz_sha256
62+rzone=$rzone_revision
63+EOF
64+dpkg-query -W > /usr/local/share/raz-ci/packages.txt
65+for project in concha robbie rzone; do
66+ if [ -f "$project/LICENSE" ]; then
67+ install -Dm644 "$project/LICENSE" "/usr/local/share/licenses/$project/LICENSE"
68+ fi
69+done

containers/ci/check-layers.py (history) added +63 -0

@@ -0,0 +1,63 @@
1+#!/usr/bin/env python3
2+"""Check a docker-save stream against the registry's per-request size budget.
3+
4+Docker's classic save format names layers */layer.tar. Newer exports may
5+put raw tar or already compressed layers under blobs/sha256/. Inspect both
6+without unpacking the image or retaining layers in memory.
7+"""
8+
9+import argparse
10+import sys
11+import tarfile
12+import zlib
13+
14+
15+def check(stream, limit):
16+ layers = 0
17+ oversized = False
18+ with tarfile.open(fileobj=stream, mode="r|") as archive:
19+ for member in archive:
20+ if not member.isfile():
21+ continue
22+ if not (member.name.endswith(".tar") or "/blobs/" in "/" + member.name):
23+ continue
24+ source = archive.extractfile(member)
25+ first = source.read(512)
26+ if first.startswith(b"\x1f\x8b"):
27+ size = member.size
28+ elif member.name.endswith(".tar") or first[257:263] in (b"ustar\0", b"ustar "):
29+ compressor = zlib.compressobj(level=6, wbits=31)
30+ size = len(compressor.compress(first))
31+ while chunk := source.read(1024 * 1024):
32+ size += len(compressor.compress(chunk))
33+ size += len(compressor.flush())
34+ elif first.startswith(b"\x28\xb5\x2f\xfd"):
35+ raise ValueError("zstd layers are unsupported; export gzip layers for this registry")
36+ else:
37+ # Manifests, image configuration and other non-layer blobs.
38+ continue
39+ layers += 1
40+ status = "FAIL" if size >= limit else "OK"
41+ print(f"{status}: {member.name}: {size:,} compressed bytes", flush=True)
42+ oversized |= size >= limit
43+ if layers == 0:
44+ raise ValueError("no image layers found in docker save stream")
45+ print(f"Checked {layers} layers; each must be smaller than {limit:,} bytes.")
46+ return not oversized
47+
48+
49+def main():
50+ parser = argparse.ArgumentParser(description=__doc__)
51+ parser.add_argument("--max-bytes", type=int, default=90_000_000)
52+ options = parser.parse_args()
53+ if options.max_bytes <= 0:
54+ parser.error("--max-bytes must be positive")
55+ try:
56+ return 0 if check(sys.stdin.buffer, options.max_bytes) else 1
57+ except (tarfile.TarError, ValueError, OSError) as error:
58+ print(f"Layer check failed: {error}", file=sys.stderr)
59+ return 1
60+
61+
62+if __name__ == "__main__":
63+ sys.exit(main())

containers/ci/smoke.sh (history) added +42 -0

@@ -0,0 +1,42 @@
1+#!/bin/sh
2+set -eu
3+work=$(mktemp -d)
4+trap 'rm -rf "$work"' EXIT HUP INT TERM
5+cd "$work"
6+raz --version | grep '^raz 0\.21\.0, '
7+cat > Hello.raz <<'EOF'
8+module Hello;
9+import Out;
10+proc main*;
11+begin
12+ Out.str("hello, world\n");
13+end;
14+end Hello.
15+EOF
16+raz -Werror Hello.raz
17+test "$(./Hello)" = 'hello, world'
18+cat > Libc.raz <<'EOF'
19+module Libc;
20+import C;
21+proc main*;
22+const message = "libc-ok\n";
23+begin
24+ if C.write(1, PTR(message), LEN(message)) # LEN(message) then
25+ C.exit(1);
26+ end;
27+end;
28+end Libc.
29+EOF
30+raz -Werror Libc.raz
31+test "$(./Libc)" = libc-ok
32+raz -Werror -o Pretty /opt/raz/tools/Pretty.raz
33+./Pretty Hello.raz > formatted.raz
34+test -s formatted.raz
35+test "$(concha -c 'echo concha-ok')" = concha-ok
36+cat > Robfile <<'EOF'
37+check:
38+ printf 'robbie-ok\n'
39+EOF
40+robbie -q check > robbie.log
41+grep -qx robbie-ok robbie.log
42+printf 'raz CI smoke tests passed\n'

registry/.gitignore (history) added +5 -0

@@ -0,0 +1,5 @@
1+node_modules/
2+dist/
3+.wrangler/
4+.dev.vars
5+.env

registry/README.md (history) added +141 -0

@@ -0,0 +1,141 @@
1+# raz's container registry
2+
3+This Worker serves the `raz` image from a private R2 bucket using the
4+Docker Registry v2 protocol. It is a separate deployment from raz's
5+website and ladle source browser. The proposed public address is
6+`raz-registry.lucelad.workers.dev`; another account uses its own
7+workers.dev subdomain.
8+
9+After deployment and publication, the image can be pulled with:
10+
11+```sh
12+docker pull raz-registry.lucelad.workers.dev/raz:0.21.0-debian12-r1
13+```
14+
15+Preparing these files does not create a Cloudflare deployment.
16+
17+## Implementation and checks
18+
19+`package.json` pins Cloudflare's Apache-2.0
20+[serverless-registry](https://github.com/cloudflare/serverless-registry)
21+to commit `a73605d6d5587286eb9cfcb910148f7d1423f218`.
22+`package-lock.json` fixes dependencies and archive integrity.
23+`worker.ts` adds anonymous pulls for `raz` alone. The upstream handles
24+authentication, storage, digest checks and multipart uploads.
25+
26+Docker discovers a Bearer token endpoint at `/v2/`. Anonymous clients
27+receive pull-only tokens automatically; a publisher supplies Basic
28+credentials to receive a push token. Tokens last five minutes, are bound
29+to this registry's hostname and repository, and use HMAC-SHA256 with the
30+publisher secret as the signing key. Rotating that secret revokes tokens.
31+The adapter passes authorized operations to the upstream using its
32+appropriate read-only or publisher identity.
33+
34+Anonymous reads use an upstream identity with pull capability alone;
35+knowing that public identity cannot authorize writes. Supplied
36+credentials are checked, including on the endpoint used by `docker
37+login`. Upload status also needs authentication. No other repositories,
38+catalog or fallback registry are exposed. The R2 bucket stays private.
39+
40+Use Node 24 or later:
41+
42+```sh
43+cd registry
44+npm ci
45+npm test
46+npm run dry-run
47+```
48+
49+Tests use isolated local R2 storage, not a Cloudflare account. They
50+exercise anonymous reads, authentication and write restrictions,
51+repository scope, upload cancellation, and OCI manifest/blob upload
52+and pull by tag and digest, plus token scope, expiry, signature and
53+audience validation. The dry run bundles without publishing. To test
54+the actual Docker handshake with a built image:
55+
56+```sh
57+npm run test:docker -- raz:0.21.0-debian12-r1
58+```
59+
60+That test starts a disposable local Worker/R2 instance, pushes using
61+a generated test password, pulls with an empty Docker credential
62+directory, and runs the image smoke test. It needs a Docker engine on
63+the same host. Existing source-image tags are kept.
64+
65+For local Docker testing, put a disposable `REGISTRY_PASSWORD` in the
66+ignored `.dev.vars` file and run `npm run dev`. Push to
67+`localhost:8787/raz:local-test`, using username `publisher`. Docker
68+permits HTTP for localhost; the deployed registry uses HTTPS. Do not
69+reuse a local password for production.
70+
71+## First deployment
72+
73+Enable R2 on the target Cloudflare account. Attach these values securely
74+to the environment running Wrangler:
75+
76+- `CLOUDFLARE_ACCOUNT_ID`: the target account ID.
77+- `CLOUDFLARE_API_TOKEN`: an account-scoped secret with Workers Scripts
78+ Edit and Workers R2 Storage Edit. Do not commit or paste this token.
79+
80+From `registry/`, after `npm ci` and local checks:
81+
82+```sh
83+npx wrangler r2 bucket create raz-image-registry
84+npm run deploy
85+npx wrangler secret put REGISTRY_PASSWORD
86+```
87+
88+Use a newly generated strong password for the last command; Wrangler
89+reads it interactively. This publisher password is separate from the
90+Cloudflare API token. Image publishers do not need the Cloudflare token.
91+Until the password is set, reads work but uploads cannot be authorized.
92+`REGISTRY_USERNAME` is `publisher`, set in `wrangler.jsonc`.
93+
94+The deploy output gives the actual hostname. Its version endpoint should
95+return a 401 Bearer challenge pointing at `/token`; Docker follows that
96+challenge automatically, without requiring login for pulls:
97+
98+```sh
99+curl -i https://raz-registry.lucelad.workers.dev/v2/
100+```
101+
102+## Publishing images
103+
104+The container workflow validates on relevant pushes. Its manual publish
105+option needs the deployed registry and GitHub Actions secret
106+`RAZ_REGISTRY_PASSWORD`. Set repository variable `RAZ_REGISTRY` to the
107+deployed hostname if it differs from the proposed address.
108+
109+For a manual push, build and test `../containers/ci/` as its README
110+says, then:
111+
112+```sh
113+registry=raz-registry.lucelad.workers.dev
114+docker login "$registry" --username publisher
115+docker tag raz:0.21.0-debian12-r1 "$registry/raz:0.21.0-debian12-r1"
116+docker push "$registry/raz:0.21.0-debian12-r1"
117+```
118+
119+Keep published release tags fixed. A changed tool, base or package set
120+gets a new revision such as `r2`. This is a publishing convention: the
121+upstream permits authenticated tag replacement. The workflow serializes
122+its runs and refuses an existing tag; that does not prevent unrelated
123+manual publishers from replacing it. Pin the manifest digest in
124+downstream CI for an exact image.
125+
126+Verify anonymous pulling with an empty Docker credential directory:
127+
128+```sh
129+docker_config=$(mktemp -d)
130+docker --config "$docker_config" pull "$registry/raz:0.21.0-debian12-r1"
131+docker --config "$docker_config" run --rm "$registry/raz:0.21.0-debian12-r1" \
132+ sh /usr/local/share/raz-ci/smoke.sh
133+rm -r "$docker_config"
134+```
135+
136+The Worker and R2 have their own request, storage and usage limits.
137+An individual Docker layer upload must fit the account's request body
138+limit: advertising chunk sizes does not make every Docker client split
139+a large layer. Keep compressed layers below 90 MB for headroom under a
140+100 MB request limit. Local tests cannot establish billing, hostname
141+availability or edge limits; repeat the push/pull test after deployment.

registry/build.mjs (history) added +10 -0

@@ -0,0 +1,10 @@
1+import { build } from "esbuild";
2+
3+await build({
4+ entryPoints: ["worker.ts"],
5+ outfile: "dist/worker.mjs",
6+ bundle: true,
7+ format: "esm",
8+ platform: "browser",
9+ target: "es2022",
10+});

registry/docker-smoke.mjs (history) added +56 -0

@@ -0,0 +1,56 @@
1+// Exercise the real Docker authentication flow against a disposable local
2+// Worker/R2 instance. No Cloudflare account or production password is used.
3+import { spawn } from "node:child_process";
4+import { randomBytes } from "node:crypto";
5+import { mkdtemp, rm } from "node:fs/promises";
6+import { tmpdir } from "node:os";
7+import { join } from "node:path";
8+import { fileURLToPath } from "node:url";
9+import { Miniflare, Log, LogLevel } from "miniflare";
10+
11+const image = process.argv[2];
12+if (!image) throw new Error("Usage: node registry/docker-smoke.mjs SOURCE_IMAGE");
13+const work = await mkdtemp(join(tmpdir(), "raz-docker-registry-"));
14+const password = randomBytes(32).toString("hex");
15+const mf = new Miniflare({
16+ modules: true,
17+ scriptPath: fileURLToPath(new URL("dist/worker.mjs", import.meta.url)),
18+ compatibilityDate: "2026-07-30",
19+ host: "127.0.0.1",
20+ port: 0,
21+ r2Buckets: ["REGISTRY"],
22+ bindings: { REGISTRY_USERNAME: "publisher", REGISTRY_PASSWORD: password },
23+ log: new Log(LogLevel.ERROR),
24+});
25+
26+function docker(args, input) {
27+ return new Promise((resolve, reject) => {
28+ const child = spawn("docker", args, {
29+ stdio: [input ? "pipe" : "ignore", "inherit", "inherit"],
30+ timeout: 300_000,
31+ });
32+ if (input) child.stdin.end(input);
33+ child.on("error", reject);
34+ child.on("exit", (code) => code === 0 ? resolve() : reject(new Error(`docker ${args[0]} exited ${code}`)));
35+ });
36+}
37+
38+let target;
39+try {
40+ const address = await mf.ready;
41+ const registry = `localhost:${address.port}`;
42+ target = `${registry}/raz:local-smoke-${Date.now()}`;
43+ await docker(["--config", work, "login", registry, "--username", "publisher", "--password-stdin"], password);
44+ await docker(["tag", image, target]);
45+ await docker(["--config", work, "push", target]);
46+ // Remove just this test's alias. The source image and its tags stay intact.
47+ await docker(["image", "rm", target]);
48+ const anonymous = await mkdtemp(join(work, "anonymous-"));
49+ await docker(["--config", anonymous, "pull", target]);
50+ await docker(["--config", anonymous, "run", "--rm", target, "sh", "/usr/local/share/raz-ci/smoke.sh"]);
51+ console.log("Authenticated Docker push and anonymous pull/run passed.");
52+} finally {
53+ if (target) await docker(["image", "rm", target]).catch(() => {});
54+ await mf.dispose();
55+ await rm(work, { recursive: true, force: true });
56+}

registry/package-lock.json (history) added +2292 -0

@@ -0,0 +1,2292 @@
1+{
2+ "name": "raz-image-registry",
3+ "lockfileVersion": 3,
4+ "requires": true,
5+ "packages": {
6+ "": {
7+ "name": "raz-image-registry",
8+ "dependencies": {
9+ "r2-registry": "https://github.com/cloudflare/serverless-registry/archive/a73605d6d5587286eb9cfcb910148f7d1423f218.tar.gz"
10+ },
11+ "devDependencies": {
12+ "esbuild": "0.28.2",
13+ "miniflare": "4.20260730.0",
14+ "wrangler": "4.151.2"
15+ },
16+ "engines": {
17+ "node": ">=24"
18+ }
19+ },
20+ "node_modules/@cloudflare/kv-asset-handler": {
21+ "version": "0.5.0",
22+ "resolved": "https://registry.npmjs.org/@cloudflare/kv-asset-handler/-/kv-asset-handler-0.5.0.tgz",
23+ "integrity": "sha512-jxQYkj8dSIzc0cD6cMMNdOc1UVjqSqu8BZdor5s8cGjW2I8BjODt/kWPVdY+u9zj3ms75Q5qaZgnxUad83+eAg==",
24+ "dev": true,
25+ "license": "MIT OR Apache-2.0",
26+ "engines": {
27+ "node": ">=22.0.0"
28+ }
29+ },
30+ "node_modules/@cloudflare/unenv-preset": {
31+ "version": "2.16.2",
32+ "resolved": "https://registry.npmjs.org/@cloudflare/unenv-preset/-/unenv-preset-2.16.2.tgz",
33+ "integrity": "sha512-JBP1+Z7ZSNG/d4mRP+y8VC5dka3tZVMLEZRvS+rzQ4DGV1EoxRFQckcJTTkXbHSQiTj0DtNI01Zwb/V2fX0mvQ==",
34+ "dev": true,
35+ "license": "MIT OR Apache-2.0",
36+ "peerDependencies": {
37+ "unenv": "2.0.0-rc.24",
38+ "workerd": ">1.20260305.0 <2.0.0-0"
39+ },
40+ "peerDependenciesMeta": {
41+ "workerd": {
42+ "optional": true
43+ }
44+ }
45+ },
46+ "node_modules/@cloudflare/workerd-darwin-64": {
47+ "version": "1.20260730.1",
48+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-1.20260730.1.tgz",
49+ "integrity": "sha512-+MBHmPaiTe2KajryW0T24rZvWFxb41hD3d8anNzQqHzft6vSEb18+sp0znSwxgij7ApPhSM1+vhkNg4f3YMguA==",
50+ "cpu": [
51+ "x64"
52+ ],
53+ "dev": true,
54+ "license": "Apache-2.0",
55+ "optional": true,
56+ "os": [
57+ "darwin"
58+ ],
59+ "engines": {
60+ "node": ">=16"
61+ }
62+ },
63+ "node_modules/@cloudflare/workerd-darwin-arm64": {
64+ "version": "1.20260730.1",
65+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-1.20260730.1.tgz",
66+ "integrity": "sha512-SBHKntPkKvNPgaCrTe99xC1CAl8ygJDzlYfK0LbuJ1muKadIw35WnhO0wu894fKBtllsVQdNzDLee+cm0ppLSQ==",
67+ "cpu": [
68+ "arm64"
69+ ],
70+ "dev": true,
71+ "license": "Apache-2.0",
72+ "optional": true,
73+ "os": [
74+ "darwin"
75+ ],
76+ "engines": {
77+ "node": ">=16"
78+ }
79+ },
80+ "node_modules/@cloudflare/workerd-linux-64": {
81+ "version": "1.20260730.1",
82+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20260730.1.tgz",
83+ "integrity": "sha512-ouyPOSMbiKPeSwUJUvxtMcxGAXs2J4aPE4T5ABIYX5ClcQx5j5bbHTmnqOQEY8sAuLTPjH7dY+iB6UI5ISlwwA==",
84+ "cpu": [
85+ "x64"
86+ ],
87+ "dev": true,
88+ "license": "Apache-2.0",
89+ "optional": true,
90+ "os": [
91+ "linux"
92+ ],
93+ "engines": {
94+ "node": ">=16"
95+ }
96+ },
97+ "node_modules/@cloudflare/workerd-linux-arm64": {
98+ "version": "1.20260730.1",
99+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-1.20260730.1.tgz",
100+ "integrity": "sha512-YQ+Mi78U3TPdgBPtwq+Sm6rJU+Ihl2y0pjYtuuKkdmUbYzL7oLR6Xqq9wljhasnuCFICssDJaqhMep5WizYoEQ==",
101+ "cpu": [
102+ "arm64"
103+ ],
104+ "dev": true,
105+ "license": "Apache-2.0",
106+ "optional": true,
107+ "os": [
108+ "linux"
109+ ],
110+ "engines": {
111+ "node": ">=16"
112+ }
113+ },
114+ "node_modules/@cloudflare/workerd-windows-64": {
115+ "version": "1.20260730.1",
116+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-windows-64/-/workerd-windows-64-1.20260730.1.tgz",
117+ "integrity": "sha512-27fAN+vUECW1oYVc1KOcHYpkL8COM2Uxtxql7TL595kxbjoqS5yckw7NLz7bTf2pALFCZWjqXDjZGJ/xbG4ZKQ==",
118+ "cpu": [
119+ "x64"
120+ ],
121+ "dev": true,
122+ "license": "Apache-2.0",
123+ "optional": true,
124+ "os": [
125+ "win32"
126+ ],
127+ "engines": {
128+ "node": ">=16"
129+ }
130+ },
131+ "node_modules/@cspotcode/source-map-support": {
132+ "version": "0.8.1",
133+ "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",
134+ "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==",
135+ "dev": true,
136+ "license": "MIT",
137+ "dependencies": {
138+ "@jridgewell/trace-mapping": "0.3.9"
139+ },
140+ "engines": {
141+ "node": ">=12"
142+ }
143+ },
144+ "node_modules/@emnapi/runtime": {
145+ "version": "1.11.3",
146+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz",
147+ "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==",
148+ "dev": true,
149+ "license": "MIT",
150+ "optional": true,
151+ "dependencies": {
152+ "tslib": "^2.4.0"
153+ }
154+ },
155+ "node_modules/@esbuild/aix-ppc64": {
156+ "version": "0.28.2",
157+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz",
158+ "integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==",
159+ "cpu": [
160+ "ppc64"
161+ ],
162+ "dev": true,
163+ "license": "MIT",
164+ "optional": true,
165+ "os": [
166+ "aix"
167+ ],
168+ "engines": {
169+ "node": ">=18"
170+ }
171+ },
172+ "node_modules/@esbuild/android-arm": {
173+ "version": "0.28.2",
174+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz",
175+ "integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==",
176+ "cpu": [
177+ "arm"
178+ ],
179+ "dev": true,
180+ "license": "MIT",
181+ "optional": true,
182+ "os": [
183+ "android"
184+ ],
185+ "engines": {
186+ "node": ">=18"
187+ }
188+ },
189+ "node_modules/@esbuild/android-arm64": {
190+ "version": "0.28.2",
191+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz",
192+ "integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==",
193+ "cpu": [
194+ "arm64"
195+ ],
196+ "dev": true,
197+ "license": "MIT",
198+ "optional": true,
199+ "os": [
200+ "android"
201+ ],
202+ "engines": {
203+ "node": ">=18"
204+ }
205+ },
206+ "node_modules/@esbuild/android-x64": {
207+ "version": "0.28.2",
208+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz",
209+ "integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==",
210+ "cpu": [
211+ "x64"
212+ ],
213+ "dev": true,
214+ "license": "MIT",
215+ "optional": true,
216+ "os": [
217+ "android"
218+ ],
219+ "engines": {
220+ "node": ">=18"
221+ }
222+ },
223+ "node_modules/@esbuild/darwin-arm64": {
224+ "version": "0.28.2",
225+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz",
226+ "integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==",
227+ "cpu": [
228+ "arm64"
229+ ],
230+ "dev": true,
231+ "license": "MIT",
232+ "optional": true,
233+ "os": [
234+ "darwin"
235+ ],
236+ "engines": {
237+ "node": ">=18"
238+ }
239+ },
240+ "node_modules/@esbuild/darwin-x64": {
241+ "version": "0.28.2",
242+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz",
243+ "integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==",
244+ "cpu": [
245+ "x64"
246+ ],
247+ "dev": true,
248+ "license": "MIT",
249+ "optional": true,
250+ "os": [
251+ "darwin"
252+ ],
253+ "engines": {
254+ "node": ">=18"
255+ }
256+ },
257+ "node_modules/@esbuild/freebsd-arm64": {
258+ "version": "0.28.2",
259+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz",
260+ "integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==",
261+ "cpu": [
262+ "arm64"
263+ ],
264+ "dev": true,
265+ "license": "MIT",
266+ "optional": true,
267+ "os": [
268+ "freebsd"
269+ ],
270+ "engines": {
271+ "node": ">=18"
272+ }
273+ },
274+ "node_modules/@esbuild/freebsd-x64": {
275+ "version": "0.28.2",
276+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz",
277+ "integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==",
278+ "cpu": [
279+ "x64"
280+ ],
281+ "dev": true,
282+ "license": "MIT",
283+ "optional": true,
284+ "os": [
285+ "freebsd"
286+ ],
287+ "engines": {
288+ "node": ">=18"
289+ }
290+ },
291+ "node_modules/@esbuild/linux-arm": {
292+ "version": "0.28.2",
293+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz",
294+ "integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==",
295+ "cpu": [
296+ "arm"
297+ ],
298+ "dev": true,
299+ "license": "MIT",
300+ "optional": true,
301+ "os": [
302+ "linux"
303+ ],
304+ "engines": {
305+ "node": ">=18"
306+ }
307+ },
308+ "node_modules/@esbuild/linux-arm64": {
309+ "version": "0.28.2",
310+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz",
311+ "integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==",
312+ "cpu": [
313+ "arm64"
314+ ],
315+ "dev": true,
316+ "license": "MIT",
317+ "optional": true,
318+ "os": [
319+ "linux"
320+ ],
321+ "engines": {
322+ "node": ">=18"
323+ }
324+ },
325+ "node_modules/@esbuild/linux-ia32": {
326+ "version": "0.28.2",
327+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz",
328+ "integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==",
329+ "cpu": [
330+ "ia32"
331+ ],
332+ "dev": true,
333+ "license": "MIT",
334+ "optional": true,
335+ "os": [
336+ "linux"
337+ ],
338+ "engines": {
339+ "node": ">=18"
340+ }
341+ },
342+ "node_modules/@esbuild/linux-loong64": {
343+ "version": "0.28.2",
344+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz",
345+ "integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==",
346+ "cpu": [
347+ "loong64"
348+ ],
349+ "dev": true,
350+ "license": "MIT",
351+ "optional": true,
352+ "os": [
353+ "linux"
354+ ],
355+ "engines": {
356+ "node": ">=18"
357+ }
358+ },
359+ "node_modules/@esbuild/linux-mips64el": {
360+ "version": "0.28.2",
361+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz",
362+ "integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==",
363+ "cpu": [
364+ "mips64el"
365+ ],
366+ "dev": true,
367+ "license": "MIT",
368+ "optional": true,
369+ "os": [
370+ "linux"
371+ ],
372+ "engines": {
373+ "node": ">=18"
374+ }
375+ },
376+ "node_modules/@esbuild/linux-ppc64": {
377+ "version": "0.28.2",
378+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz",
379+ "integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==",
380+ "cpu": [
381+ "ppc64"
382+ ],
383+ "dev": true,
384+ "license": "MIT",
385+ "optional": true,
386+ "os": [
387+ "linux"
388+ ],
389+ "engines": {
390+ "node": ">=18"
391+ }
392+ },
393+ "node_modules/@esbuild/linux-riscv64": {
394+ "version": "0.28.2",
395+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz",
396+ "integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==",
397+ "cpu": [
398+ "riscv64"
399+ ],
400+ "dev": true,
401+ "license": "MIT",
402+ "optional": true,
403+ "os": [
404+ "linux"
405+ ],
406+ "engines": {
407+ "node": ">=18"
408+ }
409+ },
410+ "node_modules/@esbuild/linux-s390x": {
411+ "version": "0.28.2",
412+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz",
413+ "integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==",
414+ "cpu": [
415+ "s390x"
416+ ],
417+ "dev": true,
418+ "license": "MIT",
419+ "optional": true,
420+ "os": [
421+ "linux"
422+ ],
423+ "engines": {
424+ "node": ">=18"
425+ }
426+ },
427+ "node_modules/@esbuild/linux-x64": {
428+ "version": "0.28.2",
429+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz",
430+ "integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==",
431+ "cpu": [
432+ "x64"
433+ ],
434+ "dev": true,
435+ "license": "MIT",
436+ "optional": true,
437+ "os": [
438+ "linux"
439+ ],
440+ "engines": {
441+ "node": ">=18"
442+ }
443+ },
444+ "node_modules/@esbuild/netbsd-arm64": {
445+ "version": "0.28.2",
446+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz",
447+ "integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==",
448+ "cpu": [
449+ "arm64"
450+ ],
451+ "dev": true,
452+ "license": "MIT",
453+ "optional": true,
454+ "os": [
455+ "netbsd"
456+ ],
457+ "engines": {
458+ "node": ">=18"
459+ }
460+ },
461+ "node_modules/@esbuild/netbsd-x64": {
462+ "version": "0.28.2",
463+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz",
464+ "integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==",
465+ "cpu": [
466+ "x64"
467+ ],
468+ "dev": true,
469+ "license": "MIT",
470+ "optional": true,
471+ "os": [
472+ "netbsd"
473+ ],
474+ "engines": {
475+ "node": ">=18"
476+ }
477+ },
478+ "node_modules/@esbuild/openbsd-arm64": {
479+ "version": "0.28.2",
480+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz",
481+ "integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==",
482+ "cpu": [
483+ "arm64"
484+ ],
485+ "dev": true,
486+ "license": "MIT",
487+ "optional": true,
488+ "os": [
489+ "openbsd"
490+ ],
491+ "engines": {
492+ "node": ">=18"
493+ }
494+ },
495+ "node_modules/@esbuild/openbsd-x64": {
496+ "version": "0.28.2",
497+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz",
498+ "integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==",
499+ "cpu": [
500+ "x64"
501+ ],
502+ "dev": true,
503+ "license": "MIT",
504+ "optional": true,
505+ "os": [
506+ "openbsd"
507+ ],
508+ "engines": {
509+ "node": ">=18"
510+ }
511+ },
512+ "node_modules/@esbuild/openharmony-arm64": {
513+ "version": "0.28.2",
514+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz",
515+ "integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==",
516+ "cpu": [
517+ "arm64"
518+ ],
519+ "dev": true,
520+ "license": "MIT",
521+ "optional": true,
522+ "os": [
523+ "openharmony"
524+ ],
525+ "engines": {
526+ "node": ">=18"
527+ }
528+ },
529+ "node_modules/@esbuild/sunos-x64": {
530+ "version": "0.28.2",
531+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz",
532+ "integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==",
533+ "cpu": [
534+ "x64"
535+ ],
536+ "dev": true,
537+ "license": "MIT",
538+ "optional": true,
539+ "os": [
540+ "sunos"
541+ ],
542+ "engines": {
543+ "node": ">=18"
544+ }
545+ },
546+ "node_modules/@esbuild/win32-arm64": {
547+ "version": "0.28.2",
548+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz",
549+ "integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==",
550+ "cpu": [
551+ "arm64"
552+ ],
553+ "dev": true,
554+ "license": "MIT",
555+ "optional": true,
556+ "os": [
557+ "win32"
558+ ],
559+ "engines": {
560+ "node": ">=18"
561+ }
562+ },
563+ "node_modules/@esbuild/win32-ia32": {
564+ "version": "0.28.2",
565+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz",
566+ "integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==",
567+ "cpu": [
568+ "ia32"
569+ ],
570+ "dev": true,
571+ "license": "MIT",
572+ "optional": true,
573+ "os": [
574+ "win32"
575+ ],
576+ "engines": {
577+ "node": ">=18"
578+ }
579+ },
580+ "node_modules/@esbuild/win32-x64": {
581+ "version": "0.28.2",
582+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz",
583+ "integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==",
584+ "cpu": [
585+ "x64"
586+ ],
587+ "dev": true,
588+ "license": "MIT",
589+ "optional": true,
590+ "os": [
591+ "win32"
592+ ],
593+ "engines": {
594+ "node": ">=18"
595+ }
596+ },
597+ "node_modules/@img/colour": {
598+ "version": "1.1.0",
599+ "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz",
600+ "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==",
601+ "dev": true,
602+ "license": "MIT",
603+ "engines": {
604+ "node": ">=18"
605+ }
606+ },
607+ "node_modules/@img/sharp-darwin-arm64": {
608+ "version": "0.35.2",
609+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.2.tgz",
610+ "integrity": "sha512-eEieHsMksAW4IiO5NzauESRl2D2qz3J/kwUxUrSfV06A93eEaRfMpHXyUb1mAqrR7i8U9A0GRqE9pjn6u1Jjpg==",
611+ "cpu": [
612+ "arm64"
613+ ],
614+ "dev": true,
615+ "license": "Apache-2.0",
616+ "optional": true,
617+ "os": [
618+ "darwin"
619+ ],
620+ "engines": {
621+ "node": ">=20.9.0"
622+ },
623+ "funding": {
624+ "url": "https://opencollective.com/libvips"
625+ },
626+ "optionalDependencies": {
627+ "@img/sharp-libvips-darwin-arm64": "1.3.1"
628+ }
629+ },
630+ "node_modules/@img/sharp-darwin-x64": {
631+ "version": "0.35.2",
632+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.2.tgz",
633+ "integrity": "sha512-BaktuGPCeHJMARpodR8jK4uKiZrPAy9WrfQW0sdI37clracq8Bp01AYS3SZgi5FS/y5twa9t4+LIuuxQjqRrWw==",
634+ "cpu": [
635+ "x64"
636+ ],
637+ "dev": true,
638+ "license": "Apache-2.0",
639+ "optional": true,
640+ "os": [
641+ "darwin"
642+ ],
643+ "engines": {
644+ "node": ">=20.9.0"
645+ },
646+ "funding": {
647+ "url": "https://opencollective.com/libvips"
648+ },
649+ "optionalDependencies": {
650+ "@img/sharp-libvips-darwin-x64": "1.3.1"
651+ }
652+ },
653+ "node_modules/@img/sharp-freebsd-wasm32": {
654+ "version": "0.35.2",
655+ "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.2.tgz",
656+ "integrity": "sha512-YoAxdnd8hPUkvLHd3bWY+YA8nw3xM/RyRopYucNsWHVSan8NLVM3X2volsfoRDcXdUJPg6tXahSd7HXPK7lRnw==",
657+ "dev": true,
658+ "license": "Apache-2.0",
659+ "optional": true,
660+ "os": [
661+ "freebsd"
662+ ],
663+ "dependencies": {
664+ "@img/sharp-wasm32": "0.35.2"
665+ },
666+ "engines": {
667+ "node": ">=20.9.0"
668+ },
669+ "funding": {
670+ "url": "https://opencollective.com/libvips"
671+ }
672+ },
673+ "node_modules/@img/sharp-libvips-darwin-arm64": {
674+ "version": "1.3.1",
675+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.1.tgz",
676+ "integrity": "sha512-4V/M3roRMTYjiwZY9IOVQOE8OyeCxFAkYmyZDrZl51uOKjibm3oeEJ4WAmLxutAfzFbC9jqUiPs2gbnGflH+7g==",
677+ "cpu": [
678+ "arm64"
679+ ],
680+ "dev": true,
681+ "license": "LGPL-3.0-or-later",
682+ "optional": true,
683+ "os": [
684+ "darwin"
685+ ],
686+ "funding": {
687+ "url": "https://opencollective.com/libvips"
688+ }
689+ },
690+ "node_modules/@img/sharp-libvips-darwin-x64": {
691+ "version": "1.3.1",
692+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.1.tgz",
693+ "integrity": "sha512-c0/DxItpJv2+dGhgycJBBgotdqruGYDvA79drdh0MD1dFpy7JzJ/PlXwi1H4rFf0eTy8tgbI91aHDnZIceY3jQ==",
694+ "cpu": [
695+ "x64"
696+ ],
697+ "dev": true,
698+ "license": "LGPL-3.0-or-later",
699+ "optional": true,
700+ "os": [
701+ "darwin"
702+ ],
703+ "funding": {
704+ "url": "https://opencollective.com/libvips"
705+ }
706+ },
707+ "node_modules/@img/sharp-libvips-linux-arm": {
708+ "version": "1.3.1",
709+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.1.tgz",
710+ "integrity": "sha512-aGGy9aWzXgHBG7HNyQPWorZthlp7+x6fDRoPAQbGO3ThcttuTyKIx3NuSHb6zb4gBNq6/yNn9f1cy9nFKS/Vmg==",
711+ "cpu": [
712+ "arm"
713+ ],
714+ "dev": true,
715+ "license": "LGPL-3.0-or-later",
716+ "optional": true,
717+ "os": [
718+ "linux"
719+ ],
720+ "funding": {
721+ "url": "https://opencollective.com/libvips"
722+ }
723+ },
724+ "node_modules/@img/sharp-libvips-linux-arm64": {
725+ "version": "1.3.1",
726+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.1.tgz",
727+ "integrity": "sha512-JznefmcK9j1JKPz8AkQDh89kjojubyfOasWBPKfzMIhPwsgDy9evpE/naJTXXXmghS1iFwR8u/kTwh/I2/+GCw==",
728+ "cpu": [
729+ "arm64"
730+ ],
731+ "dev": true,
732+ "license": "LGPL-3.0-or-later",
733+ "optional": true,
734+ "os": [
735+ "linux"
736+ ],
737+ "funding": {
738+ "url": "https://opencollective.com/libvips"
739+ }
740+ },
741+ "node_modules/@img/sharp-libvips-linux-ppc64": {
742+ "version": "1.3.1",
743+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.1.tgz",
744+ "integrity": "sha512-1EkwGNCZk6iWNCMWqrvdJ+r1j0PT1zIz60CNPhYnJlK/zyeWqlsPZIe+ocBVqPF8k/Ssee/NCk+tE9Ryrko6ng==",
745+ "cpu": [
746+ "ppc64"
747+ ],
748+ "dev": true,
749+ "license": "LGPL-3.0-or-later",
750+ "optional": true,
751+ "os": [
752+ "linux"
753+ ],
754+ "funding": {
755+ "url": "https://opencollective.com/libvips"
756+ }
757+ },
758+ "node_modules/@img/sharp-libvips-linux-riscv64": {
759+ "version": "1.3.1",
760+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.1.tgz",
761+ "integrity": "sha512-Ilays+w2bXdnxzxtQdmXR62u8o8GYa3eL4+Gr+1KiE4xperMZUslRaVPJwwPkzlHEjGfXAfRVAa/7CYCtSqsBw==",
762+ "cpu": [
763+ "riscv64"
764+ ],
765+ "dev": true,
766+ "license": "LGPL-3.0-or-later",
767+ "optional": true,
768+ "os": [
769+ "linux"
770+ ],
771+ "funding": {
772+ "url": "https://opencollective.com/libvips"
773+ }
774+ },
775+ "node_modules/@img/sharp-libvips-linux-s390x": {
776+ "version": "1.3.1",
777+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.1.tgz",
778+ "integrity": "sha512-VfBwVHQTbRoj4XlpA/KLZ7ltgMpz+4WSejFzQ+GnoImjo1PtEJ59QB2qR1xQEeRPYIkNrPIm2L4cICMvz4C2ew==",
779+ "cpu": [
780+ "s390x"
781+ ],
782+ "dev": true,
783+ "license": "LGPL-3.0-or-later",
784+ "optional": true,
785+ "os": [
786+ "linux"
787+ ],
788+ "funding": {
789+ "url": "https://opencollective.com/libvips"
790+ }
791+ },
792+ "node_modules/@img/sharp-libvips-linux-x64": {
793+ "version": "1.3.1",
794+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.1.tgz",
795+ "integrity": "sha512-+c8ukgwU62DS54nCAjw7keOfHUkmr0B5QHEdcOqRnodF/MNXJbVI8Eopoj4B/0H8Asr65I+A4Amrn7a85/md6A==",
796+ "cpu": [
797+ "x64"
798+ ],
799+ "dev": true,
800+ "license": "LGPL-3.0-or-later",
801+ "optional": true,
802+ "os": [
803+ "linux"
804+ ],
805+ "funding": {
806+ "url": "https://opencollective.com/libvips"
807+ }
808+ },
809+ "node_modules/@img/sharp-libvips-linuxmusl-arm64": {
810+ "version": "1.3.1",
811+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.1.tgz",
812+ "integrity": "sha512-qlKb/pwbkAi1WMsJrYHk7CuDrd12s27U2QnRhFYUoJNrRCmkosMTttuRFat/DDB3IlDm5qE1TJgZ4JDnHX8Ldw==",
813+ "cpu": [
814+ "arm64"
815+ ],
816+ "dev": true,
817+ "license": "LGPL-3.0-or-later",
818+ "optional": true,
819+ "os": [
820+ "linux"
821+ ],
822+ "funding": {
823+ "url": "https://opencollective.com/libvips"
824+ }
825+ },
826+ "node_modules/@img/sharp-libvips-linuxmusl-x64": {
827+ "version": "1.3.1",
828+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.1.tgz",
829+ "integrity": "sha512-yO21HwoUVLN8Qa+/SBjQLMYwBWAVJjeGPNe+hc0OUeMeifEtJqu5a1c4HayE1nNpDih9y3/KkoltfkDodmKAlg==",
830+ "cpu": [
831+ "x64"
832+ ],
833+ "dev": true,
834+ "license": "LGPL-3.0-or-later",
835+ "optional": true,
836+ "os": [
837+ "linux"
838+ ],
839+ "funding": {
840+ "url": "https://opencollective.com/libvips"
841+ }
842+ },
843+ "node_modules/@img/sharp-linux-arm": {
844+ "version": "0.35.2",
845+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.2.tgz",
846+ "integrity": "sha512-SE4kzF2mepn6z+6E7L6lsV8FzuLL6IPQdyX8ZiwROAG/G8td+hP/m7FsFPwidtrF19gvajuC9l6TxAVcsA4S7A==",
847+ "cpu": [
848+ "arm"
849+ ],
850+ "dev": true,
851+ "license": "Apache-2.0",
852+ "optional": true,
853+ "os": [
854+ "linux"
855+ ],
856+ "engines": {
857+ "node": ">=20.9.0"
858+ },
859+ "funding": {
860+ "url": "https://opencollective.com/libvips"
861+ },
862+ "optionalDependencies": {
863+ "@img/sharp-libvips-linux-arm": "1.3.1"
864+ }
865+ },
866+ "node_modules/@img/sharp-linux-arm64": {
867+ "version": "0.35.2",
868+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.2.tgz",
869+ "integrity": "sha512-af12Pnd0ZGu2HfP8NayB0kk6eC/lrfbQE6HlR4jD+34wdJ1Vw9TF6TMn6ZvffT+WgqVsl0hRbmNvz2u/23VmwA==",
870+ "cpu": [
871+ "arm64"
872+ ],
873+ "dev": true,
874+ "license": "Apache-2.0",
875+ "optional": true,
876+ "os": [
877+ "linux"
878+ ],
879+ "engines": {
880+ "node": ">=20.9.0"
881+ },
882+ "funding": {
883+ "url": "https://opencollective.com/libvips"
884+ },
885+ "optionalDependencies": {
886+ "@img/sharp-libvips-linux-arm64": "1.3.1"
887+ }
888+ },
889+ "node_modules/@img/sharp-linux-ppc64": {
890+ "version": "0.35.2",
891+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.2.tgz",
892+ "integrity": "sha512-hYSBm7zcNtDCozCxQHYZJiu63b/bXsgRZuOxCIBZsStMM9Vap47iFHdbX4kCvQsblPB/k+clhELpdQJHQLSHvg==",
893+ "cpu": [
894+ "ppc64"
895+ ],
896+ "dev": true,
897+ "license": "Apache-2.0",
898+ "optional": true,
899+ "os": [
900+ "linux"
901+ ],
902+ "engines": {
903+ "node": ">=20.9.0"
904+ },
905+ "funding": {
906+ "url": "https://opencollective.com/libvips"
907+ },
908+ "optionalDependencies": {
909+ "@img/sharp-libvips-linux-ppc64": "1.3.1"
910+ }
911+ },
912+ "node_modules/@img/sharp-linux-riscv64": {
913+ "version": "0.35.2",
914+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.2.tgz",
915+ "integrity": "sha512-qQt0Kc13+Hoan/Awq/qMSQw3L+RI1NCRPgD5cUJ/1WSSmIoysLOc72jlRM3E0OHN9Yr313jgeQ2T+zW+F03QFA==",
916+ "cpu": [
917+ "riscv64"
918+ ],
919+ "dev": true,
920+ "license": "Apache-2.0",
921+ "optional": true,
922+ "os": [
923+ "linux"
924+ ],
925+ "engines": {
926+ "node": ">=20.9.0"
927+ },
928+ "funding": {
929+ "url": "https://opencollective.com/libvips"
930+ },
931+ "optionalDependencies": {
932+ "@img/sharp-libvips-linux-riscv64": "1.3.1"
933+ }
934+ },
935+ "node_modules/@img/sharp-linux-s390x": {
936+ "version": "0.35.2",
937+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.2.tgz",
938+ "integrity": "sha512-E4fLLfRPzDLlEeDaTzI98OFLcv++WL5ChLLMwPoVd0CIoZQqupBSNbOisPL5am9XsbQ9T84+iiMpUvbFtkunbA==",
939+ "cpu": [
940+ "s390x"
941+ ],
942+ "dev": true,
943+ "license": "Apache-2.0",
944+ "optional": true,
945+ "os": [
946+ "linux"
947+ ],
948+ "engines": {
949+ "node": ">=20.9.0"
950+ },
951+ "funding": {
952+ "url": "https://opencollective.com/libvips"
953+ },
954+ "optionalDependencies": {
955+ "@img/sharp-libvips-linux-s390x": "1.3.1"
956+ }
957+ },
958+ "node_modules/@img/sharp-linux-x64": {
959+ "version": "0.35.2",
960+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.2.tgz",
961+ "integrity": "sha512-gi0zFJJRLswfCZmHtJdikXPOc5u7qamSOS3NHedLqLd4W8Q0NqjdBr6TTRIgsfFjqfTsHFgdfvJ9LwqSgcHiAA==",
962+ "cpu": [
963+ "x64"
964+ ],
965+ "dev": true,
966+ "license": "Apache-2.0",
967+ "optional": true,
968+ "os": [
969+ "linux"
970+ ],
971+ "engines": {
972+ "node": ">=20.9.0"
973+ },
974+ "funding": {
975+ "url": "https://opencollective.com/libvips"
976+ },
977+ "optionalDependencies": {
978+ "@img/sharp-libvips-linux-x64": "1.3.1"
979+ }
980+ },
981+ "node_modules/@img/sharp-linuxmusl-arm64": {
982+ "version": "0.35.2",
983+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.2.tgz",
984+ "integrity": "sha512-siWbOW1u6HFnFLrp0waKyW7VEf7jYvcDWdrXEFa8AkdAQgEvuu5Fz8/Y70w9EeqAdwDtfU012BhEHHaDqvQNzg==",
985+ "cpu": [
986+ "arm64"
987+ ],
988+ "dev": true,
989+ "license": "Apache-2.0",
990+ "optional": true,
991+ "os": [
992+ "linux"
993+ ],
994+ "engines": {
995+ "node": ">=20.9.0"
996+ },
997+ "funding": {
998+ "url": "https://opencollective.com/libvips"
999+ },
1000+ "optionalDependencies": {
1001+ "@img/sharp-libvips-linuxmusl-arm64": "1.3.1"
1002+ }
1003+ },
1004+ "node_modules/@img/sharp-linuxmusl-x64": {
1005+ "version": "0.35.2",
1006+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.2.tgz",
1007+ "integrity": "sha512-YBqMMcjDi4QGYiSn4vNOYBhmlC4z5AXqkOUUqI2e0AFA4urNv4ESgOgwNl3K+4etQhha0twXlzeF20bbULm9Yg==",
1008+ "cpu": [
1009+ "x64"
1010+ ],
1011+ "dev": true,
1012+ "license": "Apache-2.0",
1013+ "optional": true,
1014+ "os": [
1015+ "linux"
1016+ ],
1017+ "engines": {
1018+ "node": ">=20.9.0"
1019+ },
1020+ "funding": {
1021+ "url": "https://opencollective.com/libvips"
1022+ },
1023+ "optionalDependencies": {
1024+ "@img/sharp-libvips-linuxmusl-x64": "1.3.1"
1025+ }
1026+ },
1027+ "node_modules/@img/sharp-wasm32": {
1028+ "version": "0.35.2",
1029+ "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.2.tgz",
1030+ "integrity": "sha512-Mrv4JQNYVQ94xH+jzZ9r+gowleN8mv2FTgKT+PI6bx5C0G8TdNYndu161pg2i7uoBwxy2ImPMHrJOM2LZef7Bw==",
1031+ "dev": true,
1032+ "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",
1033+ "optional": true,
1034+ "dependencies": {
1035+ "@emnapi/runtime": "^1.11.1"
1036+ },
1037+ "engines": {
1038+ "node": ">=20.9.0"
1039+ },
1040+ "funding": {
1041+ "url": "https://opencollective.com/libvips"
1042+ }
1043+ },
1044+ "node_modules/@img/sharp-webcontainers-wasm32": {
1045+ "version": "0.35.2",
1046+ "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.2.tgz",
1047+ "integrity": "sha512-QNV27pxs9wpApEiCfvHM1RDoP1w1+2KrUWWDPEhEwg+latvOrfuhWrHWZKwdSFwU6jh3myjw/yOCRsUIuOft3g==",
1048+ "cpu": [
1049+ "wasm32"
1050+ ],
1051+ "dev": true,
1052+ "license": "Apache-2.0",
1053+ "optional": true,
1054+ "dependencies": {
1055+ "@img/sharp-wasm32": "0.35.2"
1056+ },
1057+ "engines": {
1058+ "node": ">=20.9.0"
1059+ },
1060+ "funding": {
1061+ "url": "https://opencollective.com/libvips"
1062+ }
1063+ },
1064+ "node_modules/@img/sharp-win32-arm64": {
1065+ "version": "0.35.2",
1066+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.2.tgz",
1067+ "integrity": "sha512-BiVRYc/t6/Vl3e1hBx0hugG4oN9Pydf4fgMSpxTQJmwGUg/YoXTWHiFeRymHfCZzifxu4F4rpk/I67D0LQ20wQ==",
1068+ "cpu": [
1069+ "arm64"
1070+ ],
1071+ "dev": true,
1072+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
1073+ "optional": true,
1074+ "os": [
1075+ "win32"
1076+ ],
1077+ "engines": {
1078+ "node": ">=20.9.0"
1079+ },
1080+ "funding": {
1081+ "url": "https://opencollective.com/libvips"
1082+ }
1083+ },
1084+ "node_modules/@img/sharp-win32-ia32": {
1085+ "version": "0.35.2",
1086+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.2.tgz",
1087+ "integrity": "sha512-YYEhx9PImCC7T0tI8JDMi4DB9LwLCXCU5OWNYEXAxh5Q1ShKkyC6byxzoBJ3gEFDnH2lQckWuDe70G7mB2XJog==",
1088+ "cpu": [
1089+ "ia32"
1090+ ],
1091+ "dev": true,
1092+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
1093+ "optional": true,
1094+ "os": [
1095+ "win32"
1096+ ],
1097+ "engines": {
1098+ "node": "^20.9.0"
1099+ },
1100+ "funding": {
1101+ "url": "https://opencollective.com/libvips"
1102+ }
1103+ },
1104+ "node_modules/@img/sharp-win32-x64": {
1105+ "version": "0.35.2",
1106+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.2.tgz",
1107+ "integrity": "sha512-imoOyBcoM/iiUr4J6VPpCNjPnjvP/Gks95898yB8YqoGGYmHYbOyCuNv9FMhFgtaiHFGbHW8bxKqRV6VjtXThQ==",
1108+ "cpu": [
1109+ "x64"
1110+ ],
1111+ "dev": true,
1112+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
1113+ "optional": true,
1114+ "os": [
1115+ "win32"
1116+ ],
1117+ "engines": {
1118+ "node": ">=20.9.0"
1119+ },
1120+ "funding": {
1121+ "url": "https://opencollective.com/libvips"
1122+ }
1123+ },
1124+ "node_modules/@jridgewell/resolve-uri": {
1125+ "version": "3.1.2",
1126+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
1127+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
1128+ "dev": true,
1129+ "license": "MIT",
1130+ "engines": {
1131+ "node": ">=6.0.0"
1132+ }
1133+ },
1134+ "node_modules/@jridgewell/sourcemap-codec": {
1135+ "version": "1.6.0",
1136+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz",
1137+ "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==",
1138+ "dev": true,
1139+ "license": "MIT"
1140+ },
1141+ "node_modules/@jridgewell/trace-mapping": {
1142+ "version": "0.3.9",
1143+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz",
1144+ "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==",
1145+ "dev": true,
1146+ "license": "MIT",
1147+ "dependencies": {
1148+ "@jridgewell/resolve-uri": "^3.0.3",
1149+ "@jridgewell/sourcemap-codec": "^1.4.10"
1150+ }
1151+ },
1152+ "node_modules/@poppinss/colors": {
1153+ "version": "4.1.6",
1154+ "resolved": "https://registry.npmjs.org/@poppinss/colors/-/colors-4.1.6.tgz",
1155+ "integrity": "sha512-H9xkIdFswbS8n1d6vmRd8+c10t2Qe+rZITbbDHHkQixH5+2x1FDGmi/0K+WgWiqQFKPSlIYB7jlH6Kpfn6Fleg==",
1156+ "dev": true,
1157+ "license": "MIT",
1158+ "dependencies": {
1159+ "kleur": "^4.1.5"
1160+ }
1161+ },
1162+ "node_modules/@poppinss/dumper": {
1163+ "version": "0.6.5",
1164+ "resolved": "https://registry.npmjs.org/@poppinss/dumper/-/dumper-0.6.5.tgz",
1165+ "integrity": "sha512-NBdYIb90J7LfOI32dOewKI1r7wnkiH6m920puQ3qHUeZkxNkQiFnXVWoE6YtFSv6QOiPPf7ys6i+HWWecDz7sw==",
1166+ "dev": true,
1167+ "license": "MIT",
1168+ "dependencies": {
1169+ "@poppinss/colors": "^4.1.5",
1170+ "@sindresorhus/is": "^7.0.2",
1171+ "supports-color": "^10.0.0"
1172+ }
1173+ },
1174+ "node_modules/@poppinss/exception": {
1175+ "version": "1.2.3",
1176+ "resolved": "https://registry.npmjs.org/@poppinss/exception/-/exception-1.2.3.tgz",
1177+ "integrity": "sha512-dCED+QRChTVatE9ibtoaxc+WkdzOSjYTKi/+uacHWIsfodVfpsueo3+DKpgU5Px8qXjgmXkSvhXvSCz3fnP9lw==",
1178+ "dev": true,
1179+ "license": "MIT"
1180+ },
1181+ "node_modules/@sindresorhus/is": {
1182+ "version": "7.2.0",
1183+ "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-7.2.0.tgz",
1184+ "integrity": "sha512-P1Cz1dWaFfR4IR+U13mqqiGsLFf1KbayybWwdd2vfctdV6hDpUkgCY0nKOLLTMSoRd/jJNjtbqzf13K8DCCXQw==",
1185+ "dev": true,
1186+ "license": "MIT",
1187+ "engines": {
1188+ "node": ">=18"
1189+ },
1190+ "funding": {
1191+ "url": "https://github.com/sindresorhus/is?sponsor=1"
1192+ }
1193+ },
1194+ "node_modules/@speed-highlight/core": {
1195+ "version": "1.2.24",
1196+ "resolved": "https://registry.npmjs.org/@speed-highlight/core/-/core-1.2.24.tgz",
1197+ "integrity": "sha512-qeW2e1l78afw8VhRPfPQ1Gjj+KU5XFQ/OFV5ti6eTa9bruO7mJyZtA4vw0ofqmA3tKCkROE9xLk3VZoeRc98nw==",
1198+ "dev": true,
1199+ "license": "CC0-1.0"
1200+ },
1201+ "node_modules/@tsndr/cloudflare-worker-jwt": {
1202+ "version": "3.2.3",
1203+ "resolved": "https://registry.npmjs.org/@tsndr/cloudflare-worker-jwt/-/cloudflare-worker-jwt-3.2.3.tgz",
1204+ "integrity": "sha512-qAwqvhtO0d6Ixsxpi3a01HKCLQlwwjBxDoqF/6fvMEWgW/fdjE3AE8GqO8lQilryBilNX9wNR8p6vMbVWyzJ4Q==",
1205+ "license": "MIT"
1206+ },
1207+ "node_modules/blake3-wasm": {
1208+ "version": "2.1.5",
1209+ "resolved": "https://registry.npmjs.org/blake3-wasm/-/blake3-wasm-2.1.5.tgz",
1210+ "integrity": "sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g==",
1211+ "dev": true,
1212+ "license": "MIT"
1213+ },
1214+ "node_modules/cookie": {
1215+ "version": "1.1.1",
1216+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz",
1217+ "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==",
1218+ "dev": true,
1219+ "license": "MIT",
1220+ "engines": {
1221+ "node": ">=18"
1222+ },
1223+ "funding": {
1224+ "type": "opencollective",
1225+ "url": "https://opencollective.com/express"
1226+ }
1227+ },
1228+ "node_modules/detect-libc": {
1229+ "version": "2.1.2",
1230+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
1231+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
1232+ "dev": true,
1233+ "license": "Apache-2.0",
1234+ "engines": {
1235+ "node": ">=8"
1236+ }
1237+ },
1238+ "node_modules/error-stack-parser-es": {
1239+ "version": "1.0.5",
1240+ "resolved": "https://registry.npmjs.org/error-stack-parser-es/-/error-stack-parser-es-1.0.5.tgz",
1241+ "integrity": "sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA==",
1242+ "dev": true,
1243+ "license": "MIT",
1244+ "funding": {
1245+ "url": "https://github.com/sponsors/antfu"
1246+ }
1247+ },
1248+ "node_modules/esbuild": {
1249+ "version": "0.28.2",
1250+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz",
1251+ "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==",
1252+ "dev": true,
1253+ "hasInstallScript": true,
1254+ "license": "MIT",
1255+ "bin": {
1256+ "esbuild": "bin/esbuild"
1257+ },
1258+ "engines": {
1259+ "node": ">=18"
1260+ },
1261+ "optionalDependencies": {
1262+ "@esbuild/aix-ppc64": "0.28.2",
1263+ "@esbuild/android-arm": "0.28.2",
1264+ "@esbuild/android-arm64": "0.28.2",
1265+ "@esbuild/android-x64": "0.28.2",
1266+ "@esbuild/darwin-arm64": "0.28.2",
1267+ "@esbuild/darwin-x64": "0.28.2",
1268+ "@esbuild/freebsd-arm64": "0.28.2",
1269+ "@esbuild/freebsd-x64": "0.28.2",
1270+ "@esbuild/linux-arm": "0.28.2",
1271+ "@esbuild/linux-arm64": "0.28.2",
1272+ "@esbuild/linux-ia32": "0.28.2",
1273+ "@esbuild/linux-loong64": "0.28.2",
1274+ "@esbuild/linux-mips64el": "0.28.2",
1275+ "@esbuild/linux-ppc64": "0.28.2",
1276+ "@esbuild/linux-riscv64": "0.28.2",
1277+ "@esbuild/linux-s390x": "0.28.2",
1278+ "@esbuild/linux-x64": "0.28.2",
1279+ "@esbuild/netbsd-arm64": "0.28.2",
1280+ "@esbuild/netbsd-x64": "0.28.2",
1281+ "@esbuild/openbsd-arm64": "0.28.2",
1282+ "@esbuild/openbsd-x64": "0.28.2",
1283+ "@esbuild/openharmony-arm64": "0.28.2",
1284+ "@esbuild/sunos-x64": "0.28.2",
1285+ "@esbuild/win32-arm64": "0.28.2",
1286+ "@esbuild/win32-ia32": "0.28.2",
1287+ "@esbuild/win32-x64": "0.28.2"
1288+ }
1289+ },
1290+ "node_modules/fsevents": {
1291+ "version": "2.3.3",
1292+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
1293+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
1294+ "dev": true,
1295+ "hasInstallScript": true,
1296+ "license": "MIT",
1297+ "optional": true,
1298+ "os": [
1299+ "darwin"
1300+ ],
1301+ "engines": {
1302+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
1303+ }
1304+ },
1305+ "node_modules/itty-router": {
1306+ "version": "5.0.24",
1307+ "resolved": "https://registry.npmjs.org/itty-router/-/itty-router-5.0.24.tgz",
1308+ "integrity": "sha512-PXij1qGKtE6jg3dLgrTRdh/Frovl5Wc4Av67sD2xfhDPrgNt4u79++/il8/c/OfZGkhD/8uYJub8tjo+H165rA==",
1309+ "license": "MIT"
1310+ },
1311+ "node_modules/kleur": {
1312+ "version": "4.1.5",
1313+ "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz",
1314+ "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==",
1315+ "dev": true,
1316+ "license": "MIT",
1317+ "engines": {
1318+ "node": ">=6"
1319+ }
1320+ },
1321+ "node_modules/miniflare": {
1322+ "version": "4.20260730.0",
1323+ "resolved": "https://registry.npmjs.org/miniflare/-/miniflare-4.20260730.0.tgz",
1324+ "integrity": "sha512-1Z9SB9r/o//80UA02Re3QhtcecSHAyAjf5EcKBfQVlQrCg7Miy79hl2PvtkwFLIaJ5rcrOPdDcRr577okwZPsg==",
1325+ "dev": true,
1326+ "license": "MIT",
1327+ "dependencies": {
1328+ "@cspotcode/source-map-support": "0.8.1",
1329+ "sharp": "0.35.2",
1330+ "undici": "7.28.0",
1331+ "workerd": "1.20260730.1",
1332+ "ws": "8.21.0",
1333+ "youch": "4.1.0-beta.10"
1334+ },
1335+ "bin": {
1336+ "miniflare": "bootstrap.js"
1337+ },
1338+ "engines": {
1339+ "node": ">=22.0.0"
1340+ }
1341+ },
1342+ "node_modules/path-to-regexp": {
1343+ "version": "6.3.0",
1344+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.3.0.tgz",
1345+ "integrity": "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==",
1346+ "dev": true,
1347+ "license": "MIT"
1348+ },
1349+ "node_modules/pathe": {
1350+ "version": "2.0.3",
1351+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",
1352+ "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",
1353+ "dev": true,
1354+ "license": "MIT"
1355+ },
1356+ "node_modules/r2-registry": {
1357+ "version": "1.1.0",
1358+ "resolved": "https://github.com/cloudflare/serverless-registry/archive/a73605d6d5587286eb9cfcb910148f7d1423f218.tar.gz",
1359+ "integrity": "sha512-JG44LBs8dhDkm2jBltewUe0XnCRouIq4aZNwJr4mNGLIl9ZuZOQ/FFBwLLLmwJ6Iax7Ykot3qBvDkOoaxHQxyg==",
1360+ "license": "Apache-2.0",
1361+ "dependencies": {
1362+ "@tsndr/cloudflare-worker-jwt": "^3.2.3",
1363+ "itty-router": "^5.0.24",
1364+ "rfc4648": "^1.5.4",
1365+ "zod": "^4.4.3"
1366+ },
1367+ "engines": {
1368+ "node": ">=24.0.0",
1369+ "pnpm": ">=11.0.0"
1370+ }
1371+ },
1372+ "node_modules/rfc4648": {
1373+ "version": "1.5.4",
1374+ "resolved": "https://registry.npmjs.org/rfc4648/-/rfc4648-1.5.4.tgz",
1375+ "integrity": "sha512-rRg/6Lb+IGfJqO05HZkN50UtY7K/JhxJag1kP23+zyMfrvoB0B7RWv06MbOzoc79RgCdNTiUaNsTT1AJZ7Z+cg==",
1376+ "license": "MIT"
1377+ },
1378+ "node_modules/semver": {
1379+ "version": "7.8.5",
1380+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
1381+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
1382+ "dev": true,
1383+ "license": "ISC",
1384+ "bin": {
1385+ "semver": "bin/semver.js"
1386+ },
1387+ "engines": {
1388+ "node": ">=10"
1389+ }
1390+ },
1391+ "node_modules/sharp": {
1392+ "version": "0.35.2",
1393+ "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.2.tgz",
1394+ "integrity": "sha512-FVtFjtBCMiJS6yb5CX7Sop45WFMpeGw6oRKuJnXYgf/f1ms/D7LE/ZUSNxnW7rZ/dbslQWYkoqFHGPaDBtaK4w==",
1395+ "dev": true,
1396+ "license": "Apache-2.0",
1397+ "dependencies": {
1398+ "@img/colour": "^1.1.0",
1399+ "detect-libc": "^2.1.2",
1400+ "semver": "^7.8.4"
1401+ },
1402+ "engines": {
1403+ "node": ">=20.9.0"
1404+ },
1405+ "funding": {
1406+ "url": "https://opencollective.com/libvips"
1407+ },
1408+ "optionalDependencies": {
1409+ "@img/sharp-darwin-arm64": "0.35.2",
1410+ "@img/sharp-darwin-x64": "0.35.2",
1411+ "@img/sharp-freebsd-wasm32": "0.35.2",
1412+ "@img/sharp-libvips-darwin-arm64": "1.3.1",
1413+ "@img/sharp-libvips-darwin-x64": "1.3.1",
1414+ "@img/sharp-libvips-linux-arm": "1.3.1",
1415+ "@img/sharp-libvips-linux-arm64": "1.3.1",
1416+ "@img/sharp-libvips-linux-ppc64": "1.3.1",
1417+ "@img/sharp-libvips-linux-riscv64": "1.3.1",
1418+ "@img/sharp-libvips-linux-s390x": "1.3.1",
1419+ "@img/sharp-libvips-linux-x64": "1.3.1",
1420+ "@img/sharp-libvips-linuxmusl-arm64": "1.3.1",
1421+ "@img/sharp-libvips-linuxmusl-x64": "1.3.1",
1422+ "@img/sharp-linux-arm": "0.35.2",
1423+ "@img/sharp-linux-arm64": "0.35.2",
1424+ "@img/sharp-linux-ppc64": "0.35.2",
1425+ "@img/sharp-linux-riscv64": "0.35.2",
1426+ "@img/sharp-linux-s390x": "0.35.2",
1427+ "@img/sharp-linux-x64": "0.35.2",
1428+ "@img/sharp-linuxmusl-arm64": "0.35.2",
1429+ "@img/sharp-linuxmusl-x64": "0.35.2",
1430+ "@img/sharp-webcontainers-wasm32": "0.35.2",
1431+ "@img/sharp-win32-arm64": "0.35.2",
1432+ "@img/sharp-win32-ia32": "0.35.2",
1433+ "@img/sharp-win32-x64": "0.35.2"
1434+ }
1435+ },
1436+ "node_modules/supports-color": {
1437+ "version": "10.2.2",
1438+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-10.2.2.tgz",
1439+ "integrity": "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==",
1440+ "dev": true,
1441+ "license": "MIT",
1442+ "engines": {
1443+ "node": ">=18"
1444+ },
1445+ "funding": {
1446+ "url": "https://github.com/chalk/supports-color?sponsor=1"
1447+ }
1448+ },
1449+ "node_modules/tslib": {
1450+ "version": "2.8.1",
1451+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
1452+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
1453+ "dev": true,
1454+ "license": "0BSD",
1455+ "optional": true
1456+ },
1457+ "node_modules/undici": {
1458+ "version": "7.28.0",
1459+ "resolved": "https://registry.npmjs.org/undici/-/undici-7.28.0.tgz",
1460+ "integrity": "sha512-cRZYrTDwWznlnRiPjggAGxZXanty6M8RV1ff8Wm4LWXBp7/IG8v5DnOm74DtUBp9OONpK75YlPnIjQqX0dBDtA==",
1461+ "dev": true,
1462+ "license": "MIT",
1463+ "engines": {
1464+ "node": ">=20.18.1"
1465+ }
1466+ },
1467+ "node_modules/unenv": {
1468+ "version": "2.0.0-rc.24",
1469+ "resolved": "https://registry.npmjs.org/unenv/-/unenv-2.0.0-rc.24.tgz",
1470+ "integrity": "sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw==",
1471+ "dev": true,
1472+ "license": "MIT",
1473+ "dependencies": {
1474+ "pathe": "^2.0.3"
1475+ }
1476+ },
1477+ "node_modules/workerd": {
1478+ "version": "1.20260730.1",
1479+ "resolved": "https://registry.npmjs.org/workerd/-/workerd-1.20260730.1.tgz",
1480+ "integrity": "sha512-zmfNIjwYSWFY5chGBOjWtH3xAE7p97FTC6vR4Ep98290ho6AeAR/NVcBD274YCLEUYzqm8yxdtZlxMybU8a3jA==",
1481+ "dev": true,
1482+ "hasInstallScript": true,
1483+ "license": "Apache-2.0",
1484+ "bin": {
1485+ "workerd": "bin/workerd"
1486+ },
1487+ "engines": {
1488+ "node": ">=16"
1489+ },
1490+ "optionalDependencies": {
1491+ "@cloudflare/workerd-darwin-64": "1.20260730.1",
1492+ "@cloudflare/workerd-darwin-arm64": "1.20260730.1",
1493+ "@cloudflare/workerd-linux-64": "1.20260730.1",
1494+ "@cloudflare/workerd-linux-arm64": "1.20260730.1",
1495+ "@cloudflare/workerd-windows-64": "1.20260730.1"
1496+ }
1497+ },
1498+ "node_modules/wrangler": {
1499+ "version": "4.151.2",
1500+ "resolved": "https://registry.npmjs.org/wrangler/-/wrangler-4.151.2.tgz",
1501+ "integrity": "sha512-yIT5Q08eVP2ZSE4XHGZ81Y+Y1b25uzp7LANwV2siaEt/O7TpeiFiEih/xHwARHGQo8sufs2ZaILGxCccHgjQPg==",
1502+ "dev": true,
1503+ "license": "MIT OR Apache-2.0",
1504+ "dependencies": {
1505+ "@cloudflare/kv-asset-handler": "0.5.0",
1506+ "@cloudflare/unenv-preset": "2.16.2",
1507+ "blake3-wasm": "2.1.5",
1508+ "esbuild": "0.28.2",
1509+ "miniflare": "5.20261019.0-beta",
1510+ "path-to-regexp": "6.3.0",
1511+ "unenv": "2.0.0-rc.24",
1512+ "workerd": "1.20261019.1"
1513+ },
1514+ "bin": {
1515+ "cf-wrangler": "bin/cf-wrangler.js",
1516+ "wrangler": "bin/wrangler.js",
1517+ "wrangler2": "bin/wrangler.js"
1518+ },
1519+ "engines": {
1520+ "node": ">=22.0.0"
1521+ },
1522+ "optionalDependencies": {
1523+ "fsevents": "2.3.3"
1524+ },
1525+ "peerDependencies": {
1526+ "@cloudflare/workers-types": "^5.20261019.1"
1527+ },
1528+ "peerDependenciesMeta": {
1529+ "@cloudflare/workers-types": {
1530+ "optional": true
1531+ }
1532+ }
1533+ },
1534+ "node_modules/wrangler/node_modules/@cloudflare/workerd-darwin-64": {
1535+ "version": "1.20261019.1",
1536+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-1.20261019.1.tgz",
1537+ "integrity": "sha512-5ZILbAta/fBQvhmAYeCE7dKMMYIr7N9wJEX50fEGLKSIwGtvT0HzSfHNIK/O7cBQ4gHQ2WfIiPClvwcye6E0fA==",
1538+ "cpu": [
1539+ "x64"
1540+ ],
1541+ "dev": true,
1542+ "license": "Apache-2.0",
1543+ "optional": true,
1544+ "os": [
1545+ "darwin"
1546+ ],
1547+ "engines": {
1548+ "node": ">=16"
1549+ }
1550+ },
1551+ "node_modules/wrangler/node_modules/@cloudflare/workerd-darwin-arm64": {
1552+ "version": "1.20261019.1",
1553+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-1.20261019.1.tgz",
1554+ "integrity": "sha512-cww2Ab6lVMxpTiEEjKmPI58p5EMo0vYTZSH+3WkqXJdQgc3ES66GuL247+U2B2YWajhhu2tqj7jySrXneU749g==",
1555+ "cpu": [
1556+ "arm64"
1557+ ],
1558+ "dev": true,
1559+ "license": "Apache-2.0",
1560+ "optional": true,
1561+ "os": [
1562+ "darwin"
1563+ ],
1564+ "engines": {
1565+ "node": ">=16"
1566+ }
1567+ },
1568+ "node_modules/wrangler/node_modules/@cloudflare/workerd-linux-64": {
1569+ "version": "1.20261019.1",
1570+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20261019.1.tgz",
1571+ "integrity": "sha512-4++VRi9vkQROYqrpZYOixIJuVDmujkwrT4kszsxNFlvcmsX6Mr2GumvxIN3gIixS3vJUh3Umdtkthqj5X0S3Xw==",
1572+ "cpu": [
1573+ "x64"
1574+ ],
1575+ "dev": true,
1576+ "license": "Apache-2.0",
1577+ "optional": true,
1578+ "os": [
1579+ "linux"
1580+ ],
1581+ "engines": {
1582+ "node": ">=16"
1583+ }
1584+ },
1585+ "node_modules/wrangler/node_modules/@cloudflare/workerd-linux-arm64": {
1586+ "version": "1.20261019.1",
1587+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-1.20261019.1.tgz",
1588+ "integrity": "sha512-75PVtJOwfjScQ53sbLtQXI7D8yP1c21t+WEUPaYbqkzaz4ZqfR5wAd+zuWs8G5Q7kOj2SQIvEfY5Sn8Y+UVrnA==",
1589+ "cpu": [
1590+ "arm64"
1591+ ],
1592+ "dev": true,
1593+ "license": "Apache-2.0",
1594+ "optional": true,
1595+ "os": [
1596+ "linux"
1597+ ],
1598+ "engines": {
1599+ "node": ">=16"
1600+ }
1601+ },
1602+ "node_modules/wrangler/node_modules/@cloudflare/workerd-windows-64": {
1603+ "version": "1.20261019.1",
1604+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-windows-64/-/workerd-windows-64-1.20261019.1.tgz",
1605+ "integrity": "sha512-z49fvKTETMCnG6wnMcQwxx9CpryFceiKz04FRjq26EkhCyzRNJ6c3UXhyZz3r5f1CXnnBZc5DcU8ZouPkUJCqw==",
1606+ "cpu": [
1607+ "x64"
1608+ ],
1609+ "dev": true,
1610+ "license": "Apache-2.0",
1611+ "optional": true,
1612+ "os": [
1613+ "win32"
1614+ ],
1615+ "engines": {
1616+ "node": ">=16"
1617+ }
1618+ },
1619+ "node_modules/wrangler/node_modules/@img/sharp-darwin-arm64": {
1620+ "version": "0.35.5",
1621+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.5.tgz",
1622+ "integrity": "sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==",
1623+ "cpu": [
1624+ "arm64"
1625+ ],
1626+ "dev": true,
1627+ "license": "Apache-2.0",
1628+ "optional": true,
1629+ "os": [
1630+ "darwin"
1631+ ],
1632+ "engines": {
1633+ "node": ">=20.9.0"
1634+ },
1635+ "funding": {
1636+ "url": "https://opencollective.com/libvips"
1637+ },
1638+ "optionalDependencies": {
1639+ "@img/sharp-libvips-darwin-arm64": "1.3.4"
1640+ }
1641+ },
1642+ "node_modules/wrangler/node_modules/@img/sharp-darwin-x64": {
1643+ "version": "0.35.5",
1644+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.5.tgz",
1645+ "integrity": "sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==",
1646+ "cpu": [
1647+ "x64"
1648+ ],
1649+ "dev": true,
1650+ "license": "Apache-2.0",
1651+ "optional": true,
1652+ "os": [
1653+ "darwin"
1654+ ],
1655+ "engines": {
1656+ "node": ">=20.9.0"
1657+ },
1658+ "funding": {
1659+ "url": "https://opencollective.com/libvips"
1660+ },
1661+ "optionalDependencies": {
1662+ "@img/sharp-libvips-darwin-x64": "1.3.4"
1663+ }
1664+ },
1665+ "node_modules/wrangler/node_modules/@img/sharp-freebsd-wasm32": {
1666+ "version": "0.35.5",
1667+ "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.5.tgz",
1668+ "integrity": "sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==",
1669+ "dev": true,
1670+ "license": "Apache-2.0",
1671+ "optional": true,
1672+ "os": [
1673+ "freebsd"
1674+ ],
1675+ "dependencies": {
1676+ "@img/sharp-wasm32": "0.35.5"
1677+ },
1678+ "engines": {
1679+ "node": ">=20.9.0"
1680+ },
1681+ "funding": {
1682+ "url": "https://opencollective.com/libvips"
1683+ }
1684+ },
1685+ "node_modules/wrangler/node_modules/@img/sharp-libvips-darwin-arm64": {
1686+ "version": "1.3.4",
1687+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.4.tgz",
1688+ "integrity": "sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==",
1689+ "cpu": [
1690+ "arm64"
1691+ ],
1692+ "dev": true,
1693+ "license": "LGPL-3.0-or-later",
1694+ "optional": true,
1695+ "os": [
1696+ "darwin"
1697+ ],
1698+ "funding": {
1699+ "url": "https://opencollective.com/libvips"
1700+ }
1701+ },
1702+ "node_modules/wrangler/node_modules/@img/sharp-libvips-darwin-x64": {
1703+ "version": "1.3.4",
1704+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.4.tgz",
1705+ "integrity": "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==",
1706+ "cpu": [
1707+ "x64"
1708+ ],
1709+ "dev": true,
1710+ "license": "LGPL-3.0-or-later",
1711+ "optional": true,
1712+ "os": [
1713+ "darwin"
1714+ ],
1715+ "funding": {
1716+ "url": "https://opencollective.com/libvips"
1717+ }
1718+ },
1719+ "node_modules/wrangler/node_modules/@img/sharp-libvips-linux-arm": {
1720+ "version": "1.3.4",
1721+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.4.tgz",
1722+ "integrity": "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==",
1723+ "cpu": [
1724+ "arm"
1725+ ],
1726+ "dev": true,
1727+ "license": "LGPL-3.0-or-later",
1728+ "optional": true,
1729+ "os": [
1730+ "linux"
1731+ ],
1732+ "funding": {
1733+ "url": "https://opencollective.com/libvips"
1734+ }
1735+ },
1736+ "node_modules/wrangler/node_modules/@img/sharp-libvips-linux-arm64": {
1737+ "version": "1.3.4",
1738+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.4.tgz",
1739+ "integrity": "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==",
1740+ "cpu": [
1741+ "arm64"
1742+ ],
1743+ "dev": true,
1744+ "license": "LGPL-3.0-or-later",
1745+ "optional": true,
1746+ "os": [
1747+ "linux"
1748+ ],
1749+ "funding": {
1750+ "url": "https://opencollective.com/libvips"
1751+ }
1752+ },
1753+ "node_modules/wrangler/node_modules/@img/sharp-libvips-linux-ppc64": {
1754+ "version": "1.3.4",
1755+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.4.tgz",
1756+ "integrity": "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==",
1757+ "cpu": [
1758+ "ppc64"
1759+ ],
1760+ "dev": true,
1761+ "license": "LGPL-3.0-or-later",
1762+ "optional": true,
1763+ "os": [
1764+ "linux"
1765+ ],
1766+ "funding": {
1767+ "url": "https://opencollective.com/libvips"
1768+ }
1769+ },
1770+ "node_modules/wrangler/node_modules/@img/sharp-libvips-linux-riscv64": {
1771+ "version": "1.3.4",
1772+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.4.tgz",
1773+ "integrity": "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==",
1774+ "cpu": [
1775+ "riscv64"
1776+ ],
1777+ "dev": true,
1778+ "license": "LGPL-3.0-or-later",
1779+ "optional": true,
1780+ "os": [
1781+ "linux"
1782+ ],
1783+ "funding": {
1784+ "url": "https://opencollective.com/libvips"
1785+ }
1786+ },
1787+ "node_modules/wrangler/node_modules/@img/sharp-libvips-linux-s390x": {
1788+ "version": "1.3.4",
1789+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.4.tgz",
1790+ "integrity": "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==",
1791+ "cpu": [
1792+ "s390x"
1793+ ],
1794+ "dev": true,
1795+ "license": "LGPL-3.0-or-later",
1796+ "optional": true,
1797+ "os": [
1798+ "linux"
1799+ ],
1800+ "funding": {
1801+ "url": "https://opencollective.com/libvips"
1802+ }
1803+ },
1804+ "node_modules/wrangler/node_modules/@img/sharp-libvips-linux-x64": {
1805+ "version": "1.3.4",
1806+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.4.tgz",
1807+ "integrity": "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==",
1808+ "cpu": [
1809+ "x64"
1810+ ],
1811+ "dev": true,
1812+ "license": "LGPL-3.0-or-later",
1813+ "optional": true,
1814+ "os": [
1815+ "linux"
1816+ ],
1817+ "funding": {
1818+ "url": "https://opencollective.com/libvips"
1819+ }
1820+ },
1821+ "node_modules/wrangler/node_modules/@img/sharp-libvips-linuxmusl-arm64": {
1822+ "version": "1.3.4",
1823+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.4.tgz",
1824+ "integrity": "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==",
1825+ "cpu": [
1826+ "arm64"
1827+ ],
1828+ "dev": true,
1829+ "license": "LGPL-3.0-or-later",
1830+ "optional": true,
1831+ "os": [
1832+ "linux"
1833+ ],
1834+ "funding": {
1835+ "url": "https://opencollective.com/libvips"
1836+ }
1837+ },
1838+ "node_modules/wrangler/node_modules/@img/sharp-libvips-linuxmusl-x64": {
1839+ "version": "1.3.4",
1840+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.4.tgz",
1841+ "integrity": "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==",
1842+ "cpu": [
1843+ "x64"
1844+ ],
1845+ "dev": true,
1846+ "license": "LGPL-3.0-or-later",
1847+ "optional": true,
1848+ "os": [
1849+ "linux"
1850+ ],
1851+ "funding": {
1852+ "url": "https://opencollective.com/libvips"
1853+ }
1854+ },
1855+ "node_modules/wrangler/node_modules/@img/sharp-linux-arm": {
1856+ "version": "0.35.5",
1857+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.5.tgz",
1858+ "integrity": "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==",
1859+ "cpu": [
1860+ "arm"
1861+ ],
1862+ "dev": true,
1863+ "license": "Apache-2.0",
1864+ "optional": true,
1865+ "os": [
1866+ "linux"
1867+ ],
1868+ "engines": {
1869+ "node": ">=20.9.0"
1870+ },
1871+ "funding": {
1872+ "url": "https://opencollective.com/libvips"
1873+ },
1874+ "optionalDependencies": {
1875+ "@img/sharp-libvips-linux-arm": "1.3.4"
1876+ }
1877+ },
1878+ "node_modules/wrangler/node_modules/@img/sharp-linux-arm64": {
1879+ "version": "0.35.5",
1880+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.5.tgz",
1881+ "integrity": "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==",
1882+ "cpu": [
1883+ "arm64"
1884+ ],
1885+ "dev": true,
1886+ "license": "Apache-2.0",
1887+ "optional": true,
1888+ "os": [
1889+ "linux"
1890+ ],
1891+ "engines": {
1892+ "node": ">=20.9.0"
1893+ },
1894+ "funding": {
1895+ "url": "https://opencollective.com/libvips"
1896+ },
1897+ "optionalDependencies": {
1898+ "@img/sharp-libvips-linux-arm64": "1.3.4"
1899+ }
1900+ },
1901+ "node_modules/wrangler/node_modules/@img/sharp-linux-ppc64": {
1902+ "version": "0.35.5",
1903+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.5.tgz",
1904+ "integrity": "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==",
1905+ "cpu": [
1906+ "ppc64"
1907+ ],
1908+ "dev": true,
1909+ "license": "Apache-2.0",
1910+ "optional": true,
1911+ "os": [
1912+ "linux"
1913+ ],
1914+ "engines": {
1915+ "node": ">=20.9.0"
1916+ },
1917+ "funding": {
1918+ "url": "https://opencollective.com/libvips"
1919+ },
1920+ "optionalDependencies": {
1921+ "@img/sharp-libvips-linux-ppc64": "1.3.4"
1922+ }
1923+ },
1924+ "node_modules/wrangler/node_modules/@img/sharp-linux-riscv64": {
1925+ "version": "0.35.5",
1926+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.5.tgz",
1927+ "integrity": "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==",
1928+ "cpu": [
1929+ "riscv64"
1930+ ],
1931+ "dev": true,
1932+ "license": "Apache-2.0",
1933+ "optional": true,
1934+ "os": [
1935+ "linux"
1936+ ],
1937+ "engines": {
1938+ "node": ">=20.9.0"
1939+ },
1940+ "funding": {
1941+ "url": "https://opencollective.com/libvips"
1942+ },
1943+ "optionalDependencies": {
1944+ "@img/sharp-libvips-linux-riscv64": "1.3.4"
1945+ }
1946+ },
1947+ "node_modules/wrangler/node_modules/@img/sharp-linux-s390x": {
1948+ "version": "0.35.5",
1949+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.5.tgz",
1950+ "integrity": "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==",
1951+ "cpu": [
1952+ "s390x"
1953+ ],
1954+ "dev": true,
1955+ "license": "Apache-2.0",
1956+ "optional": true,
1957+ "os": [
1958+ "linux"
1959+ ],
1960+ "engines": {
1961+ "node": ">=20.9.0"
1962+ },
1963+ "funding": {
1964+ "url": "https://opencollective.com/libvips"
1965+ },
1966+ "optionalDependencies": {
1967+ "@img/sharp-libvips-linux-s390x": "1.3.4"
1968+ }
1969+ },
1970+ "node_modules/wrangler/node_modules/@img/sharp-linux-x64": {
1971+ "version": "0.35.5",
1972+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.5.tgz",
1973+ "integrity": "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==",
1974+ "cpu": [
1975+ "x64"
1976+ ],
1977+ "dev": true,
1978+ "license": "Apache-2.0",
1979+ "optional": true,
1980+ "os": [
1981+ "linux"
1982+ ],
1983+ "engines": {
1984+ "node": ">=20.9.0"
1985+ },
1986+ "funding": {
1987+ "url": "https://opencollective.com/libvips"
1988+ },
1989+ "optionalDependencies": {
1990+ "@img/sharp-libvips-linux-x64": "1.3.4"
1991+ }
1992+ },
1993+ "node_modules/wrangler/node_modules/@img/sharp-linuxmusl-arm64": {
1994+ "version": "0.35.5",
1995+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.5.tgz",
1996+ "integrity": "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==",
1997+ "cpu": [
1998+ "arm64"
1999+ ],
2000+ "dev": true,
2001+ "license": "Apache-2.0",
2002+ "optional": true,
2003+ "os": [
2004+ "linux"
2005+ ],
2006+ "engines": {
2007+ "node": ">=20.9.0"
2008+ },
2009+ "funding": {
2010+ "url": "https://opencollective.com/libvips"
2011+ },
2012+ "optionalDependencies": {
2013+ "@img/sharp-libvips-linuxmusl-arm64": "1.3.4"
2014+ }
2015+ },
2016+ "node_modules/wrangler/node_modules/@img/sharp-linuxmusl-x64": {
2017+ "version": "0.35.5",
2018+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.5.tgz",
2019+ "integrity": "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==",
2020+ "cpu": [
2021+ "x64"
2022+ ],
2023+ "dev": true,
2024+ "license": "Apache-2.0",
2025+ "optional": true,
2026+ "os": [
2027+ "linux"
2028+ ],
2029+ "engines": {
2030+ "node": ">=20.9.0"
2031+ },
2032+ "funding": {
2033+ "url": "https://opencollective.com/libvips"
2034+ },
2035+ "optionalDependencies": {
2036+ "@img/sharp-libvips-linuxmusl-x64": "1.3.4"
2037+ }
2038+ },
2039+ "node_modules/wrangler/node_modules/@img/sharp-wasm32": {
2040+ "version": "0.35.5",
2041+ "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz",
2042+ "integrity": "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==",
2043+ "dev": true,
2044+ "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",
2045+ "optional": true,
2046+ "dependencies": {
2047+ "@emnapi/runtime": "^1.11.3"
2048+ },
2049+ "engines": {
2050+ "node": ">=20.9.0"
2051+ },
2052+ "funding": {
2053+ "url": "https://opencollective.com/libvips"
2054+ }
2055+ },
2056+ "node_modules/wrangler/node_modules/@img/sharp-webcontainers-wasm32": {
2057+ "version": "0.35.5",
2058+ "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.5.tgz",
2059+ "integrity": "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==",
2060+ "cpu": [
2061+ "wasm32"
2062+ ],
2063+ "dev": true,
2064+ "license": "Apache-2.0",
2065+ "optional": true,
2066+ "dependencies": {
2067+ "@img/sharp-wasm32": "0.35.5"
2068+ },
2069+ "engines": {
2070+ "node": ">=20.9.0"
2071+ },
2072+ "funding": {
2073+ "url": "https://opencollective.com/libvips"
2074+ }
2075+ },
2076+ "node_modules/wrangler/node_modules/@img/sharp-win32-arm64": {
2077+ "version": "0.35.5",
2078+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.5.tgz",
2079+ "integrity": "sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==",
2080+ "cpu": [
2081+ "arm64"
2082+ ],
2083+ "dev": true,
2084+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
2085+ "optional": true,
2086+ "os": [
2087+ "win32"
2088+ ],
2089+ "engines": {
2090+ "node": ">=20.9.0"
2091+ },
2092+ "funding": {
2093+ "url": "https://opencollective.com/libvips"
2094+ }
2095+ },
2096+ "node_modules/wrangler/node_modules/@img/sharp-win32-ia32": {
2097+ "version": "0.35.5",
2098+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.5.tgz",
2099+ "integrity": "sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==",
2100+ "cpu": [
2101+ "ia32"
2102+ ],
2103+ "dev": true,
2104+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
2105+ "optional": true,
2106+ "os": [
2107+ "win32"
2108+ ],
2109+ "engines": {
2110+ "node": "^20.9.0"
2111+ },
2112+ "funding": {
2113+ "url": "https://opencollective.com/libvips"
2114+ }
2115+ },
2116+ "node_modules/wrangler/node_modules/@img/sharp-win32-x64": {
2117+ "version": "0.35.5",
2118+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.5.tgz",
2119+ "integrity": "sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==",
2120+ "cpu": [
2121+ "x64"
2122+ ],
2123+ "dev": true,
2124+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
2125+ "optional": true,
2126+ "os": [
2127+ "win32"
2128+ ],
2129+ "engines": {
2130+ "node": ">=20.9.0"
2131+ },
2132+ "funding": {
2133+ "url": "https://opencollective.com/libvips"
2134+ }
2135+ },
2136+ "node_modules/wrangler/node_modules/miniflare": {
2137+ "version": "5.20261019.0-beta",
2138+ "resolved": "https://registry.npmjs.org/miniflare/-/miniflare-5.20261019.0-beta.tgz",
2139+ "integrity": "sha512-NmE6Yz7MSdjrfr3lMaMAVO55rIm3+6YXllOkJOMy6pPQITDuDeo0PYRedp7pju2olNWmrAlf1i1LIWYfGQvvuw==",
2140+ "dev": true,
2141+ "license": "MIT",
2142+ "dependencies": {
2143+ "@cspotcode/source-map-support": "0.8.1",
2144+ "sharp": "0.35.5",
2145+ "undici": "7.29.1",
2146+ "workerd": "1.20261019.1",
2147+ "ws": "8.21.0",
2148+ "youch": "4.1.0-beta.10"
2149+ },
2150+ "engines": {
2151+ "node": ">=22.0.0"
2152+ }
2153+ },
2154+ "node_modules/wrangler/node_modules/sharp": {
2155+ "version": "0.35.5",
2156+ "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.5.tgz",
2157+ "integrity": "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==",
2158+ "dev": true,
2159+ "license": "Apache-2.0",
2160+ "dependencies": {
2161+ "@img/colour": "^1.1.0",
2162+ "detect-libc": "^2.1.2",
2163+ "semver": "^7.8.5"
2164+ },
2165+ "engines": {
2166+ "node": ">=20.9.0"
2167+ },
2168+ "funding": {
2169+ "url": "https://opencollective.com/libvips"
2170+ },
2171+ "optionalDependencies": {
2172+ "@img/sharp-darwin-arm64": "0.35.5",
2173+ "@img/sharp-darwin-x64": "0.35.5",
2174+ "@img/sharp-freebsd-wasm32": "0.35.5",
2175+ "@img/sharp-libvips-darwin-arm64": "1.3.4",
2176+ "@img/sharp-libvips-darwin-x64": "1.3.4",
2177+ "@img/sharp-libvips-linux-arm": "1.3.4",
2178+ "@img/sharp-libvips-linux-arm64": "1.3.4",
2179+ "@img/sharp-libvips-linux-ppc64": "1.3.4",
2180+ "@img/sharp-libvips-linux-riscv64": "1.3.4",
2181+ "@img/sharp-libvips-linux-s390x": "1.3.4",
2182+ "@img/sharp-libvips-linux-x64": "1.3.4",
2183+ "@img/sharp-libvips-linuxmusl-arm64": "1.3.4",
2184+ "@img/sharp-libvips-linuxmusl-x64": "1.3.4",
2185+ "@img/sharp-linux-arm": "0.35.5",
2186+ "@img/sharp-linux-arm64": "0.35.5",
2187+ "@img/sharp-linux-ppc64": "0.35.5",
2188+ "@img/sharp-linux-riscv64": "0.35.5",
2189+ "@img/sharp-linux-s390x": "0.35.5",
2190+ "@img/sharp-linux-x64": "0.35.5",
2191+ "@img/sharp-linuxmusl-arm64": "0.35.5",
2192+ "@img/sharp-linuxmusl-x64": "0.35.5",
2193+ "@img/sharp-webcontainers-wasm32": "0.35.5",
2194+ "@img/sharp-win32-arm64": "0.35.5",
2195+ "@img/sharp-win32-ia32": "0.35.5",
2196+ "@img/sharp-win32-x64": "0.35.5"
2197+ },
2198+ "peerDependenciesMeta": {
2199+ "@types/node": {
2200+ "optional": true
2201+ }
2202+ }
2203+ },
2204+ "node_modules/wrangler/node_modules/undici": {
2205+ "version": "7.29.1",
2206+ "resolved": "https://registry.npmjs.org/undici/-/undici-7.29.1.tgz",
2207+ "integrity": "sha512-RYONW2MeafgYlkVOKYKkA/Ag7BmXqgIWCa8t1m0JcxrQg9pI9lEqRhAOruOBCbAohOa/gkCF+iPi9hrgvTzu6Q==",
2208+ "dev": true,
2209+ "license": "MIT",
2210+ "engines": {
2211+ "node": ">=20.18.1"
2212+ }
2213+ },
2214+ "node_modules/wrangler/node_modules/workerd": {
2215+ "version": "1.20261019.1",
2216+ "resolved": "https://registry.npmjs.org/workerd/-/workerd-1.20261019.1.tgz",
2217+ "integrity": "sha512-UUYRUq/7DmeCl11YriNbcVbjUZVLtt8uuCXFu+nz77hGFf8d4DEVXoCYtnA+MlBatE4+wxoj47DVqzK3xGBAiw==",
2218+ "dev": true,
2219+ "hasInstallScript": true,
2220+ "license": "Apache-2.0",
2221+ "bin": {
2222+ "workerd": "bin/workerd"
2223+ },
2224+ "engines": {
2225+ "node": ">=16"
2226+ },
2227+ "optionalDependencies": {
2228+ "@cloudflare/workerd-darwin-64": "1.20261019.1",
2229+ "@cloudflare/workerd-darwin-arm64": "1.20261019.1",
2230+ "@cloudflare/workerd-linux-64": "1.20261019.1",
2231+ "@cloudflare/workerd-linux-arm64": "1.20261019.1",
2232+ "@cloudflare/workerd-windows-64": "1.20261019.1"
2233+ }
2234+ },
2235+ "node_modules/ws": {
2236+ "version": "8.21.0",
2237+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz",
2238+ "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==",
2239+ "dev": true,
2240+ "license": "MIT",
2241+ "engines": {
2242+ "node": ">=10.0.0"
2243+ },
2244+ "peerDependencies": {
2245+ "bufferutil": "^4.0.1",
2246+ "utf-8-validate": ">=5.0.2"
2247+ },
2248+ "peerDependenciesMeta": {
2249+ "bufferutil": {
2250+ "optional": true
2251+ },
2252+ "utf-8-validate": {
2253+ "optional": true
2254+ }
2255+ }
2256+ },
2257+ "node_modules/youch": {
2258+ "version": "4.1.0-beta.10",
2259+ "resolved": "https://registry.npmjs.org/youch/-/youch-4.1.0-beta.10.tgz",
2260+ "integrity": "sha512-rLfVLB4FgQneDr0dv1oddCVZmKjcJ6yX6mS4pU82Mq/Dt9a3cLZQ62pDBL4AUO+uVrCvtWz3ZFUL2HFAFJ/BXQ==",
2261+ "dev": true,
2262+ "license": "MIT",
2263+ "dependencies": {
2264+ "@poppinss/colors": "^4.1.5",
2265+ "@poppinss/dumper": "^0.6.4",
2266+ "@speed-highlight/core": "^1.2.7",
2267+ "cookie": "^1.0.2",
2268+ "youch-core": "^0.3.3"
2269+ }
2270+ },
2271+ "node_modules/youch-core": {
2272+ "version": "0.3.3",
2273+ "resolved": "https://registry.npmjs.org/youch-core/-/youch-core-0.3.3.tgz",
2274+ "integrity": "sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA==",
2275+ "dev": true,
2276+ "license": "MIT",
2277+ "dependencies": {
2278+ "@poppinss/exception": "^1.2.2",
2279+ "error-stack-parser-es": "^1.0.5"
2280+ }
2281+ },
2282+ "node_modules/zod": {
2283+ "version": "4.6.7",
2284+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz",
2285+ "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==",
2286+ "license": "MIT",
2287+ "funding": {
2288+ "url": "https://github.com/sponsors/colinhacks"
2289+ }
2290+ }
2291+ }
2292+}

registry/package.json (history) added +22 -0

@@ -0,0 +1,22 @@
1+{
2+ "name": "raz-image-registry",
3+ "private": true,
4+ "type": "module",
5+ "engines": { "node": ">=24" },
6+ "scripts": {
7+ "build": "node build.mjs",
8+ "test": "npm run build && node --test test.mjs",
9+ "test:docker": "npm run build && node docker-smoke.mjs",
10+ "dev": "wrangler dev --ip 0.0.0.0 --port 8787",
11+ "deploy": "wrangler deploy",
12+ "dry-run": "wrangler deploy --dry-run --outdir dist/deploy"
13+ },
14+ "dependencies": {
15+ "r2-registry": "https://github.com/cloudflare/serverless-registry/archive/a73605d6d5587286eb9cfcb910148f7d1423f218.tar.gz"
16+ },
17+ "devDependencies": {
18+ "esbuild": "0.28.2",
19+ "miniflare": "4.20260730.0",
20+ "wrangler": "4.151.2"
21+ }
22+}

registry/test.mjs (history) added +186 -0

@@ -0,0 +1,186 @@
1+import assert from "node:assert/strict";
2+import { createHash, createHmac } from "node:crypto";
3+import { after, before, test } from "node:test";
4+import { Miniflare, Log, LogLevel } from "miniflare";
5+
6+const origin = "https://registry.test";
7+const authorization = `Basic ${Buffer.from("publisher:test-only-password").toString("base64")}`;
8+const readonly = `Basic ${Buffer.from("__anonymous_pull__:public-read-only").toString("base64")}`;
9+const digest = (bytes) => `sha256:${createHash("sha256").update(bytes).digest("hex")}`;
10+let mf;
11+
12+before(async () => {
13+ mf = new Miniflare({
14+ modules: true,
15+ scriptPath: "dist/worker.mjs",
16+ compatibilityDate: "2026-07-30",
17+ r2Buckets: ["REGISTRY"],
18+ bindings: { REGISTRY_USERNAME: "publisher", REGISTRY_PASSWORD: "test-only-password" },
19+ log: new Log(LogLevel.ERROR),
20+ });
21+ await mf.ready;
22+});
23+after(async () => mf?.dispose());
24+
25+async function request(path, method = "GET", auth, body, headers = {}) {
26+ if (auth) headers.Authorization = auth;
27+ return mf.dispatchFetch(new URL(path, origin), { method, headers, body });
28+}
29+
30+async function upload(bytes) {
31+ let response = await request("/v2/raz/blobs/uploads/", "POST", authorization);
32+ assert.equal(response.status, 202, await response.text());
33+ let location = response.headers.get("Location");
34+ response = await request(location, "PATCH", authorization, bytes, {
35+ "Content-Type": "application/octet-stream",
36+ "Content-Length": String(bytes.length),
37+ });
38+ assert.equal(response.status, 202, await response.text());
39+ location = new URL(response.headers.get("Location"), origin);
40+ location.searchParams.set("digest", digest(bytes));
41+ response = await request(location, "PUT", authorization, undefined, { "Content-Length": "0" });
42+ assert.equal(response.status, 201, await response.text());
43+ return digest(bytes);
44+}
45+
46+test("Docker discovers Bearer authentication and gets an anonymous pull token", async () => {
47+ const challenge = await request("/v2/");
48+ assert.equal(challenge.status, 401);
49+ assert.match(challenge.headers.get("WWW-Authenticate"), /^Bearer realm="https:\/\/registry.test\/token"/);
50+ const token = (await (await request("/token?service=registry.test&scope=repository:raz:pull")).json()).token;
51+ for (const method of ["GET", "HEAD"]) {
52+ const response = await request("/v2/", method, `Bearer ${token}`);
53+ assert.equal(response.status, 200);
54+ assert.equal(response.headers.get("Docker-Distribution-Api-Version"), "registry/2.0");
55+ }
56+});
57+
58+test("supplied credentials are validated, including during docker login", async () => {
59+ assert.equal((await request("/v2/", "GET", authorization)).status, 200);
60+ const response = await request("/v2/", "GET", "Basic d3Jvbmc6d3Jvbmc=");
61+ assert.equal(response.status, 401);
62+ assert.match(response.headers.get("WWW-Authenticate"), /Bearer/);
63+});
64+
65+test("anonymous tokens have pull permission only", async () => {
66+ const response = await request("/token?scope=repository:raz:pull,push");
67+ assert.equal(response.status, 200);
68+ assert.equal(response.headers.get("Cache-Control"), "no-store");
69+ const auth = `Bearer ${(await response.json()).token}`;
70+ assert.equal((await request("/v2/", "GET", auth)).status, 200);
71+ assert.equal((await request("/v2/raz/blobs/uploads/", "POST", auth)).status, 401);
72+});
73+
74+test("publisher tokens authorize uploads, respecting requested scope", async () => {
75+ for (const actions of ["pull,push", "pull"]) {
76+ const token = await request(`/token?scope=repository:raz:${actions}`, "GET", authorization);
77+ assert.equal(token.status, 200);
78+ const response = await request("/v2/raz/blobs/uploads/", "POST", `Bearer ${(await token.json()).token}`);
79+ assert.equal(response.status, actions.includes("push") ? 202 : 401);
80+ }
81+});
82+
83+test("token issuance validates credentials, service and repository scope", async () => {
84+ assert.equal((await request("/token", "GET", "Basic d3Jvbmc6d3Jvbmc=")).status, 401);
85+ assert.equal((await request("/token?service=other.test")).status, 400);
86+ assert.equal((await request("/token?scope=repository:other:pull")).status, 400);
87+ assert.equal((await request("/token?scope=repository:raz:delete")).status, 400);
88+ assert.equal((await request("/token", "POST")).status, 405);
89+});
90+
91+test("expired, tampered and foreign-audience tokens cannot authorize requests", async () => {
92+ const issued = await request("/token", "GET", authorization);
93+ const token = (await issued.json()).token;
94+ for (const invalid of ["invalid", `${token}garbage`]) {
95+ assert.equal((await request("/v2/", "GET", `Bearer ${invalid}`)).status, 401);
96+ }
97+ function signedToken(payload) {
98+ const header = Buffer.from(JSON.stringify({ alg: "HS256", typ: "JWT" })).toString("base64url");
99+ const body = Buffer.from(JSON.stringify(payload)).toString("base64url");
100+ const message = `${header}.${body}`;
101+ return `${message}.${createHmac("sha256", "test-only-password").update(message).digest("base64url")}`;
102+ }
103+ const payload = { iss: "raz-registry", aud: "registry.test", exp: Math.floor(Date.now() / 1000) + 300,
104+ access: [{ type: "repository", name: "raz", actions: ["pull", "push"] }] };
105+ for (const changed of [{ exp: 1 }, { aud: "another-registry.test" }, { iss: "someone-else" },
106+ { access: [{ type: "repository", name: "other", actions: ["push"] }] }]) {
107+ const auth = `Bearer ${signedToken({ ...payload, ...changed })}`;
108+ assert.equal((await request("/v2/raz/blobs/uploads/", "POST", auth)).status, 401);
109+ }
110+});
111+
112+test("anonymous and public read-only credentials cannot mutate registry data", async () => {
113+ for (const auth of [undefined, readonly, "Basic d3Jvbmc6d3Jvbmc="]) {
114+ for (const [method, path] of [
115+ ["POST", "/v2/raz/blobs/uploads/"],
116+ ["PATCH", "/v2/raz/blobs/uploads/unknown"],
117+ ["PUT", "/v2/raz/manifests/release"],
118+ ["DELETE", "/v2/raz/manifests/release"],
119+ ["DELETE", "/v2/raz/blobs/uploads/unknown"],
120+ ]) {
121+ const response = await request(path, method, auth);
122+ assert.equal(response.status, 401, `${method} ${path}`);
123+ }
124+ }
125+});
126+
127+test("unknown repositories and nested namespaces are not served", async () => {
128+ for (const path of [
129+ "/v2/other/manifests/release", "/v2/raz/nested/manifests/release",
130+ "/v2/_catalog", "/", "/v2/raz/anything",
131+ ]) {
132+ assert.equal((await request(path, "GET", authorization)).status, 404, path);
133+ assert.equal((await request(path, "PUT", authorization)).status, 404, path);
134+ }
135+});
136+
137+test("upload status is not an anonymous read endpoint", async () => {
138+ assert.equal((await request("/v2/raz/blobs/uploads/unknown")).status, 401);
139+});
140+
141+test("a publisher can cancel an incomplete upload", async () => {
142+ const response = await request("/v2/raz/blobs/uploads/", "POST", authorization);
143+ assert.equal(response.status, 202);
144+ assert.equal((await request(response.headers.get("Location"), "DELETE", authorization)).status, 204);
145+});
146+
147+test("published OCI manifests and blobs can be pulled without credentials", async () => {
148+ const config = Buffer.from(JSON.stringify({
149+ architecture: "amd64", os: "linux", config: {},
150+ rootfs: { type: "layers", diff_ids: [] }, history: [],
151+ }));
152+ const configDigest = await upload(config);
153+ const manifest = JSON.stringify({
154+ schemaVersion: 2,
155+ mediaType: "application/vnd.oci.image.manifest.v1+json",
156+ config: { mediaType: "application/vnd.oci.image.config.v1+json", digest: configDigest, size: config.length },
157+ layers: [],
158+ });
159+ const path = "/v2/raz/manifests/test-release";
160+ const response = await request(path, "PUT", authorization, manifest, {
161+ "Content-Type": "application/vnd.oci.image.manifest.v1+json",
162+ });
163+ assert.equal(response.status, 201, await response.text());
164+ const manifestDigest = response.headers.get("Docker-Content-Digest");
165+ assert.equal(manifestDigest, digest(manifest));
166+ for (const reference of ["test-release", manifestDigest]) {
167+ const get = await request(`/v2/raz/manifests/${reference}`);
168+ assert.equal(get.status, 200);
169+ assert.equal(await get.text(), manifest);
170+ const head = await request(`/v2/raz/manifests/${reference}`, "HEAD");
171+ assert.equal(head.status, 200);
172+ assert.equal(head.headers.get("Docker-Content-Digest"), manifestDigest);
173+ }
174+ const blob = await request(`/v2/raz/blobs/${configDigest}`);
175+ assert.equal(blob.status, 200);
176+ assert.deepEqual(Buffer.from(await blob.arrayBuffer()), config);
177+ const tags = await request("/v2/raz/tags/list");
178+ assert.equal(tags.status, 200);
179+ assert.ok((await tags.json()).tags.includes("test-release"));
180+});
181+
182+test("missing manifests return a registry error rather than a login challenge", async () => {
183+ const response = await request("/v2/raz/manifests/not-published");
184+ assert.equal(response.status, 404);
185+ assert.equal(response.headers.has("WWW-Authenticate"), false);
186+});

registry/worker.ts (history) added +148 -0

@@ -0,0 +1,148 @@
1+// The upstream implements the Docker registry protocol and R2 storage.
2+// This adapter exposes anonymous pulls for raz alone. All uploads still
3+// pass through upstream authentication; its public identity has only pull.
4+import registry, { type Env as RegistryEnv } from "r2-registry";
5+import { UserAuthenticator } from "r2-registry/src/user";
6+
7+interface Env {
8+ REGISTRY: R2Bucket;
9+ REGISTRY_USERNAME: string;
10+ REGISTRY_PASSWORD?: string;
11+}
12+
13+const anonymousUser = "__anonymous_pull__";
14+const anonymousPassword = "public-read-only";
15+const publicPath = /^\/v2\/raz\/(?:manifests\/[^/]+|blobs\/[^/]+|tags\/list|referrers\/[^/]+)$/;
16+const uploadPath = /^\/v2\/raz\/blobs\/uploads\/(?:[^/]+)?$/;
17+
18+const encoder = new TextEncoder();
19+const tokenLifetime = 300;
20+const encode = (bytes: Uint8Array) => btoa(String.fromCharCode(...bytes)).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
21+const decode = (text: string) => Uint8Array.from(atob(text.replace(/-/g, "+").replace(/_/g, "/")), (c) => c.charCodeAt(0));
22+
23+// One secret serves as publisher password and token signing key. Rotation
24+// revokes both. Without a configured password, only public pulls can work.
25+async function tokenKey(env: Env) {
26+ return crypto.subtle.importKey("raw", encoder.encode(env.REGISTRY_PASSWORD || anonymousPassword),
27+ { name: "HMAC", hash: "SHA-256" }, false, ["sign", "verify"]);
28+}
29+
30+function challenge(request: Request): Response {
31+ const url = new URL(request.url);
32+ const scope = url.pathname === "/v2/" ? "" : ',scope="repository:raz:pull,push"';
33+ return new Response(JSON.stringify({ errors: [{ code: "UNAUTHORIZED", message: "authentication required" }] }), {
34+ status: 401,
35+ headers: {
36+ "Content-Type": "application/json",
37+ "Docker-Distribution-Api-Version": "registry/2.0",
38+ "WWW-Authenticate": `Bearer realm="${url.origin}/token",service="${url.host}"${scope}`,
39+ },
40+ });
41+}
42+
43+async function issueToken(request: Request, env: Env): Promise<Response> {
44+ if (request.method !== "GET") return new Response(null, { status: 405, headers: { Allow: "GET" } });
45+ const url = new URL(request.url);
46+ if (url.searchParams.has("service") && url.searchParams.get("service") !== url.host) {
47+ return new Response("Unknown service\n", { status: 400 });
48+ }
49+ const scopes = url.searchParams.getAll("scope");
50+ if (scopes.length > 1 || (scopes.length && !/^repository:raz:(pull|push)(,(pull|push))*$/.test(scopes[0]))) {
51+ return new Response("Unknown scope\n", { status: 400 });
52+ }
53+ let publisher = false;
54+ if (request.headers.has("Authorization")) {
55+ const credentials = env.REGISTRY_PASSWORD ? [{
56+ username: env.REGISTRY_USERNAME, password: env.REGISTRY_PASSWORD, capabilities: ["pull", "push"] as ("pull" | "push")[],
57+ }] : [];
58+ publisher = (await new UserAuthenticator(credentials).checkCredentials(request)).verified;
59+ if (!publisher) return challenge(request);
60+ }
61+ const requested = scopes.length ? scopes[0].split(":")[2].split(",") : ["pull", "push"];
62+ const actions = requested.filter((action) => action === "pull" || publisher);
63+ const now = Math.floor(Date.now() / 1000);
64+ const header = encode(encoder.encode(JSON.stringify({ alg: "HS256", typ: "JWT" })));
65+ const payload = encode(encoder.encode(JSON.stringify({
66+ iss: "raz-registry", aud: url.host, iat: now, exp: now + tokenLifetime,
67+ access: [{ type: "repository", name: "raz", actions }],
68+ })));
69+ const message = `${header}.${payload}`;
70+ const signature = encode(new Uint8Array(await crypto.subtle.sign("HMAC", await tokenKey(env), encoder.encode(message))));
71+ return Response.json({ token: `${message}.${signature}`, expires_in: tokenLifetime, issued_at: new Date().toISOString() }, {
72+ headers: { "Cache-Control": "no-store" },
73+ });
74+}
75+
76+async function bearerActions(request: Request, env: Env): Promise<string[] | null> {
77+ try {
78+ const token = request.headers.get("Authorization")!.slice(7).split(".");
79+ if (token.length !== 3) return null;
80+ const valid = await crypto.subtle.verify("HMAC", await tokenKey(env), decode(token[2]), encoder.encode(`${token[0]}.${token[1]}`));
81+ if (!valid) return null;
82+ const header = JSON.parse(new TextDecoder().decode(decode(token[0])));
83+ const payload = JSON.parse(new TextDecoder().decode(decode(token[1])));
84+ if (header.alg !== "HS256" || payload.iss !== "raz-registry" || payload.aud !== new URL(request.url).host
85+ || !Number.isFinite(payload.exp) || payload.exp <= Date.now() / 1000) return null;
86+ const access = payload.access?.find((entry: { type: string; name: string }) => entry.type === "repository" && entry.name === "raz");
87+ return Array.isArray(access?.actions) ? access.actions : null;
88+ } catch {
89+ return null;
90+ }
91+}
92+
93+export default {
94+ async fetch(request: Request, env: Env, context: ExecutionContext): Promise<Response> {
95+ const path = new URL(request.url).pathname;
96+ if (path === "/token") return issueToken(request, env);
97+ const ping = path === "/v2/";
98+ const pull = request.method === "GET" || request.method === "HEAD";
99+ if (!ping && !publicPath.test(path) && !uploadPath.test(path)) {
100+ return new Response("Not found\n", { status: 404 });
101+ }
102+
103+ const headers = new Headers(request.headers);
104+ const authorization = headers.get("Authorization");
105+ if (authorization?.startsWith("Bearer ")) {
106+ const actions = await bearerActions(request, env);
107+ const permitted = actions && (ping || request.method === "HEAD"
108+ ? actions.includes("pull") || actions.includes("push")
109+ : actions.includes(pull ? "pull" : "push"));
110+ if (!permitted) return challenge(request);
111+ const publisher = !pull && env.REGISTRY_PASSWORD && actions!.includes("push");
112+ if (!pull && !publisher) return challenge(request);
113+ const user = publisher ? env.REGISTRY_USERNAME : anonymousUser;
114+ const password = publisher ? env.REGISTRY_PASSWORD! : anonymousPassword;
115+ headers.set("Authorization", `Basic ${btoa(`${user}:${password}`)}`);
116+ } else if (ping && !authorization) {
117+ // Docker discovers authentication at the initial ping. Returning 200
118+ // here makes it omit credentials on subsequent uploads.
119+ return challenge(request);
120+ } else if (pull && publicPath.test(path) && !authorization) {
121+ headers.set("Authorization", `Basic ${btoa(`${anonymousUser}:${anonymousPassword}`)}`);
122+ }
123+ const forwarded = new Request(request, {
124+ headers,
125+ method: ping && request.method === "HEAD" ? "GET" : request.method,
126+ });
127+ // REGISTRY_CLIENT is initialized by the upstream fetch handler. Do not
128+ // pass fallback registries or other credentials into this public service.
129+ const registryEnv = {
130+ REGISTRY: env.REGISTRY,
131+ ENVIRONMENT: "production",
132+ USERNAME: env.REGISTRY_USERNAME,
133+ PASSWORD: env.REGISTRY_PASSWORD,
134+ READONLY_USERNAME: anonymousUser,
135+ READONLY_PASSWORD: anonymousPassword,
136+ PUSH_COMPATIBILITY_MODE: "full",
137+ } as RegistryEnv;
138+ const response = await registry.fetch(forwarded, registryEnv, context);
139+ if (response.status === 401) return challenge(request);
140+ const responseHeaders = new Headers(response.headers);
141+ responseHeaders.set("Docker-Distribution-Api-Version", "registry/2.0");
142+ return new Response(request.method === "HEAD" ? null : response.body, {
143+ status: response.status,
144+ statusText: response.statusText,
145+ headers: responseHeaders,
146+ });
147+ },
148+} satisfies ExportedHandler<Env>;

registry/wrangler.jsonc (history) added +13 -0

@@ -0,0 +1,13 @@
1+{
2+ "$schema": "node_modules/wrangler/config-schema.json",
3+ "name": "raz-registry",
4+ "main": "worker.ts",
5+ "compatibility_date": "2026-07-30",
6+ "workers_dev": true,
7+ "preview_urls": false,
8+ "r2_buckets": [
9+ { "binding": "REGISTRY", "bucket_name": "raz-image-registry" }
10+ ],
11+ "vars": { "REGISTRY_USERNAME": "publisher" }
12+ // REGISTRY_PASSWORD is a Worker secret, never a committed value.
13+}