carlos / platform Public

Static sites need the visitor's country (geo) for carloku.com pricing open

Paul, 2026-11-12: carloku.com/pricing should default its currency from the visitor's location, not the browser language. EUR in Ireland and the rest of the EU, GBP only in the UK, USD everywhere else.

Today the edge sends X-Carlos-Geo-Country and the other geo headers only to app upstreams (#241). A static site (carloku.com is bes/website, kind static) runs no code, so the page can't see them. Its script guesses from navigator.language instead, which shows USD to the many Irish and UK visitors whose browser runs en-US.

Request: a platform way for a static site's page to learn the visitor's country, without the site becoming an app. The proposed shape is a same-origin endpoint the edge answers for every site, for example GET /.well-known/carlos/geo returning {"country":"IE"} (or null), with Cache-Control no-store and nothing stored per visitor. It uses the same lookup as the X-Carlos-Geo-* headers and the same opt-outs, if any. The site's script fetches it and falls back to the language guess.

Site follow-up (carlos/carloku): src/site.js uses the endpoint before the language guess. The map stays as the price book's country_currency (27 EU states eur, GB gbp).

Merged to main as 8f82077 (2026-11-13). Not released yet: asked 8a3d302 for a release slot.