The Operating Challenge
Relying on third-party SaaS chat UIs incurs recurring subscription fees, routing bugs, and heavy JavaScript bundle payloads (>10 MB) that degrade mobile experience.
Cloud-hosted OpenAI-compatible LLM gateway and custom 15 KB static chat SPA on ARM64 cloud architecture, featuring Caddy reverse proxy, PocketBase forward_auth, and streaming SSE responses.
Relying on third-party SaaS chat UIs incurs recurring subscription fees, routing bugs, and heavy JavaScript bundle payloads (>10 MB) that degrade mobile experience.
Architected a lean AI gateway stack: Caddy reverse proxy managing automatic Let's Encrypt TLS, PocketBase handling custom forward_auth verification hooks, and a 15 KB vanilla JavaScript SPA supporting SSE streaming, model switching, and document attachments.
Achieves sub-50 ms API authorization and sub-second cold page loads on lean ARM64 cloud infrastructure.