Skip to content
← Back to the bridge

CASE FILE / 2025PRODUCTION WORK

carer.emoha.com

Carer enrolment and onboarding for Emoha, in 11 Indian languages

Lead engineer · Emoha2025In production since 2025 and actively developed
carer.emoha.com landing page: "Join as a Carer and earn up to ₹45,000 per month" over a photo of a carer with an elder, a language switcher, and a "Join as a carer" button with "Free to apply. Get verified in days."
carer.emoha.com landing page: "Join as a Carer and earn up to ₹45,000 per month" over a photo of a carer with an elder, a language switcher, and a "Join as a carer" button with "Free to apply. Get verified in days."
carer.emoha.com on a phone: the same landing page in its mobile layout with the three-step enrolment explainer
carer.emoha.com on a phone: the same landing page in its mobile layout with the three-step enrolment explainer

Overview

Emoha's mobile-first platform for care professionals: OTP sign-up, multi-step KYC and document onboarding, payouts, referrals and rewards, served in 11 Indian languages. I lead the front end. The site stays light on purpose: about 600 KB of total page weight with roughly 290 KB of JavaScript, no third-party scripts in the load window and zero layout shift, which puts it at Lighthouse 100/100/100/100 on desktop.

The problem

Carers apply from low-end Android phones on patchy networks, in whichever language they read. The enrolment flow has to be light, fast and trustworthy, and marketing needs analytics on it without slowing it down.

Outcome

Lighthouse 100/100/100/100 on desktop (mobile: 88–91 performance, 100 on accessibility, best practices and SEO), zero layout shift, live at carer.emoha.com.

Architecture

deferredasserts dataLayer + backendCarer's phonelow-end AndroidNginx + PM2 on EC2Next.js 16 · React 1911 locales · RTK QueryEmoha APIsOTP · KYC · payoutsGTM · GA4 · pixelkept off the interaction pathPlaywright suitelogin → … → dashboard
carer.emoha.com: request path, localisation, analytics and the release gate

Key decisions

  • Ship light by default. About 600 KB total page weight with ~290 KB of JavaScript, no third-party scripts in the load window, and reserved media aspect ratios so nothing shifts while images arrive.
  • Localise at the routing layer. next-intl locale segments for 11 languages, each with its own hreflang set and structured data, so search engines and users land on the right language without client-side redirects.
  • Test the funnel, not the components. A Playwright suite walks login → signup → onboarding → dashboard and asserts both the analytics dataLayer and backend state, so a regression on either side shows up before release.

Keeping the marketing stack off the interaction path

carer.emoha.com is light by design, but it is also a marketing surface. Google Tag Manager, GA4 and the Facebook pixel have to be on it, and the marketing team has to be able to change tags without a release. Loaded in full, that container is a bundle larger than the entire application, fetched and parsed by a phone that is often a low-end Android on a patchy network. An earlier version already held it off the initial load and injected it on the first interaction. That turned out to be the wrong place: the tap that triggered it paid for the fetch and the parse, and real-user interaction latency slipped out of the range Google calls good.

The version in production separates the two things a tag snippet does. The dataLayer and the gtm.start event are pushed immediately, so any event the app fires before the container exists is buffered and flushed later rather than lost. The heavy script is a separate decision. The first scroll, pointer, key or touch event only schedules it, through requestIdleCallback with a two-second ceiling and a setTimeout fallback, never inside the event handler itself, so the interaction completes before the browser picks up the download. Sessions that never interact, bots and lab runs among them, get the container five seconds after load. The marketing stack is present on every session and absent from both the LCP window and the interaction path.

Two details made it stick. The snippet stays inline in the server-rendered head rather than going through next/script, because the after-interactive strategy relocates the tag into the body and Google’s own tag detector stops recognising the site even though the tag runs fine. And because buffering can fail silently, the Playwright suite that walks login, sign-up, onboarding and dashboard asserts the dataLayer alongside the backend state, so an event that stops arriving fails a test instead of a monthly report.

The same release fixed the other field metric that had drifted, layout shift from media arriving late. Every image and video slot now reserves its aspect ratio up front, which is why the page holds zero layout shift.

What it does

  • OTP sign-up and multi-step KYC / document onboarding
  • 11 Indian languages via next-intl, with hreflang and Organization / WebSite JSON-LD per locale
  • Payouts, referrals and rewards flows for enrolled carers
  • Playwright end-to-end suite: login → signup → onboarding → dashboard, asserting the analytics dataLayer and backend state

Technology

Next.js 16React 19TypeScriptTailwind v4shadcn/RadixRTK Querynext-intlNginx + PM2 on EC2

Current status

In production since 2025 and actively developed. Company codebase, so the source is not public.