From 84d789cd5c42bab8bba8dca6a841e8da37720884 Mon Sep 17 00:00:00 2001 From: nicodes Date: Sun, 2 Aug 2026 20:28:39 -0600 Subject: [PATCH] Point the arcade at the live registry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DefaultURL becomes https://api.termca.de. Its own comment set the condition for this — "when that is deployed and answering, and not before, because this value is compiled into every released binary, so pointing it at a host that is not up costs a release to undo". The host now serves: /healthz answers, the catalog responds, and the deploy's health checks passed. TERMCADE_REGISTRY still overrides it, which is how a local termcade-be stack is reached now that the default is not localhost. Verified with a binary built from this commit and no configuration at all: the bundled three still list and play with no network, and a marketplace add reaches api.termca.de and comes back with that registry's own answer rather than a connection error. Co-Authored-By: Claude Opus 5 (1M context) --- README.md | 7 +++---- internal/registry/client.go | 16 +++++++++------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 0ed5d47..2f3edbc 100644 --- a/README.md +++ b/README.md @@ -126,10 +126,9 @@ that does narrow the choice is the ABI: the registry picks the newest release your arcade can actually run, so a game that has moved on to a later ABI tells you to update termcade instead of handing you a package the host would refuse. -The registry defaults to local dev (`http://127.0.0.1:8080`, the termcade-be -stack) and will point at `https://api.termca.de` once that is deployed. -`TERMCADE_REGISTRY` overrides it either way — which is how you reach a local -stack after the default moves: +The registry is `https://api.termca.de`. `TERMCADE_REGISTRY` overrides it, +which is how you reach a local termcade-be stack (`make dev` serves one on +port 8080): ```sh TERMCADE_REGISTRY=http://127.0.0.1:8080 termcade add you/mygame diff --git a/internal/registry/client.go b/internal/registry/client.go index 4e0b75f..4b01877 100644 --- a/internal/registry/client.go +++ b/internal/registry/client.go @@ -27,13 +27,15 @@ import ( "github.com/aviorstudio/termcade/sdk" ) -// DefaultURL is the development default: the termcade-be stack on localhost. -// It becomes https://api.termca.de when that is deployed and answering — and -// not before, because this value is compiled into every released binary, so -// pointing it at a host that is not up costs a release to undo. Until then, -// TERMCADE_REGISTRY overrides it for anyone who wants to talk to something -// else. -const DefaultURL = "http://127.0.0.1:8080" +// DefaultURL is the marketplace every released binary talks to. +// +// This was localhost until api.termca.de was deployed and answering, which was +// the stated condition for moving it: the value is compiled in, so pointing it +// at a host that is not up costs a release to undo. The host now serves. +// +// TERMCADE_REGISTRY overrides it, which is how you reach a local stack — +// `make dev` in termcade-be still listens on 127.0.0.1:8080. +const DefaultURL = "https://api.termca.de" // maxPackageSize matches the registry's publish-time ceiling. const maxPackageSize = 64 << 20