Remote access (Tailscale)
Use HTTPS secure context on phones/laptops via Tailscale Serve.
Remote access (Tailscale + phone)
Happier relies on “secure context” browser features (WebCrypto). Browsers treat http://localhost as a secure context, but not http://<lan-ip>:<port> or http://<tailscale-ip>:<port>.
For remote access (phone, another laptop, etc) you should use HTTPS.
The recommended approach is Tailscale Serve, which gives you an https://*.ts.net URL for your machine that is only accessible inside your tailnet.
Quickstart
-
Install Tailscale and sign in on your computer.
-
Enable Serve:
hstack tailscale enable
hstack tailscale url- Open the URL from
hstack tailscale urlon another device (also signed into Tailscale).
Tip: on iOS, you can “Add to Home Screen” from Safari to use it like an app.
Automation
If Serve is already configured, hstack start will automatically prefer the https://*.ts.net URL for “public” links unless you explicitly set HAPPIER_STACK_SERVER_URL.
You can also ask hstack to enable Serve automatically at boot:
HAPPIER_STACK_TAILSCALE_SERVE=1 hstack startUseful knobs:
HAPPIER_STACK_TAILSCALE_WAIT_MSHAPPIER_STACK_TAILSCALE_BIN
Using the native mobile app (optional)
The Happier mobile app has an “API Endpoint” (or “Custom server URL”) setting in developer mode.
Point it at the same HTTPS *.ts.net URL to use your local server.
However, the simplest option is usually the served web UI (no app updates needed).