Local Host Layer for exercising Host ↔ Branding communication against this repo’s wallet (served at domain root).
Adapted from OWS examples/host, plus a Style panel that calls proxy.rpc("configure", options).
From the repo root (after npm install):
# Terminal 1 — Branding Layer (prefer ngrok for passkeys)
npm run dev
# Terminal 2 — this host
npm run dev:hostOpen the printed host URL (default http://localhost:5173). The iframe URL comes from:
WALLET_IFRAME_URLif set- else
https://{NGROK_DOMAIN}/whenNGROK_DOMAINis set in root.env - else
http://localhost:5174/
If the wallet iframe is HTTPS (ngrok), the host page should also be HTTPS for a secure-context ancestor chain:
mkcert -install
mkcert -cert-file host/certs/dev-cert.pem \
-key-file host/certs/dev-key.pem \
localhost 127.0.0.1Certs present under host/certs/ enable HTTPS automatically; or set HOST_HTTPS=1.