Edya — commercial VPN customer portal
Frontend & architecture· 2026
A production VPN customer portal at about 20k MAU: OAuth/OTP login, one-link activation across six platforms, subscription migration from a Telegram bot, a custom censorship-resilience layer. Eight white-label brands from one codebase.
- The service needed a portal for several brands at once. I built the whole SPA: eight brands ship from one codebase, a new one is a couple of config files, every API response is schema-checked.
- The portal has to open even when the main domain goes dark. On every navigation a service worker checks the mirror list and quietly moves the user to a live domain; old links from bookmarks and the bot still land in the portal. The build is obfuscated.
- Subscriptions move from the legacy Telegram bot to a web account in five steps, payments and remaining days included. Repeat transfers and wrong accounts are caught by the flow itself.
- Firebase, Lottie and QR had bloated the bundle. I split it by page and pushed the heavy parts into lazy chunks: the initial load went from 1706 to 656 KB, gzip from 467 to 175.
- Product events, errors and API failures flow into PostHog, sliced by brand, platform and release.
