Edya — commercial VPN web cabinet
Frontend & architecture, led the team· 2026
Designed and built a production VPN cabinet: OAuth/OTP login, one-link activation across 6 platforms, subscription migration from a Telegram bot, and a custom censorship-resilience layer. White-labeled into 8 brands from one codebase.
- A commercial VPN needed a multi-brand web cabinet, so I built the whole SPA: file-based routing with auto code-splitting, a root store of 8 domain stores, and a hand-rolled API client that Zod-validates every response. One codebase compiles into white-label builds for 8 brands via a build-time flag.
- Under blocking, the cabinet has to stay reachable even when the main domain is killed. I built a failover layer — a service worker pulls a list of live mirrors and redirects to the first reachable one, with a static fallback page, and the mirror-list endpoint is hidden behind obfuscation. The cabinet still opens when the main domain is blocked.
- Legacy subscriptions from the old Telegram bot had to move into new web accounts. I wrote a 5-step migration with cross-account login and payment detection by watching the subscription term grow against a stored baseline — it works across accounts and handles the “already migrated” case.
- Firebase, Lottie and QR had bloated the bundle. I added route auto code-splitting, manual vendor chunking and lazy-loaded the heavy pages — the initial bundle dropped from 1706 to 656 KB, gzip from 467 to 175 KB.
