State-Scale Literacy Assessment App Android Ā· Play Store Ā· Mar 2025 ā Present
Government-school teachers use this app to check how well each child reads and does maths. A child reads aloud and the app helps score it. I've owned that assessment feature, the heart of the app, for 18 months.
- The app can listen to a child read in three ways, including one that can run entirely on the phone, for classrooms with poor internet.
- Built for four kinds of users (teachers, headmasters, parents, admins), each seeing only what they need.
- Shipped multiple Play Store releases, working directly with testers and the client's programme team on each round of changes.
- Added fairness checks: charts that flag when a teacher's grading looks biased.
- Made it dependable: automated tests, secure login and media, and careful handling of low-cost phones and weak networks.
FLN (foundational literacy & numeracy) assessment app, Marathi-first, for low- to mid-range Android on 2Gā4G in noisy classrooms. Four role-gated personas. Four evidence-capture modes: teacher-observed, photo/OCR, audio/ASR and interactive MCQ. I've written ~400 of the project's 1,257 commits (second of 12 contributors) and own the assessment vertical end to end.
On-device Marathi speech recognition Kotlin Ā· ONNX
- Context
- Reading assessment depended on a server round trip, which fails in classrooms with no signal.
- Constraint
- Low-end Android, a 100 MB+ model and a JS thread that can't afford heavy maths.
- Decision
- Run an IndicConformer CTC model with ONNX Runtime mobile, and compute its input features natively. I wrote the DSP from scratch as a Kotlin RN module: WAV header strip, PCM ā Float32, reflect padding, Hann window, an iterative radix-2 FFT, a Slaney mel filterbank (80 mels, n_fft 512, hop 160), log-mel and per-utterance normalisation, all on a background thread. Post-processing stays in TypeScript.
- Also
-
The model downloader validates size, stages to
.tmpwith an atomic rename, cleans up partial files from crashed attempts, checks free disk up front and throttles progress to ā¤4 bridge updates a second. - Result
- A fully offline reading-assessment path, integrated into the main line behind a feature gate.
Live transcription over WebSocket Streaming Ā· VAD
- Context
- Upload-then-transcribe meant teachers waited after every recording.
- Decision
- Stream 16 kHz mono audio over a WebSocket to a quantized Whisper service, with voice-activity detection deciding the chunks: ā40 dB silence threshold, 1.5 s of silence to cut, 2 s minimum and a 15 s force-send ceiling, with fixed 3 s chunks as the fallback.
- Detail
- Connection and recording are explicit state machines. All mutable runtime state lives in refs, so guards are synchronous, and backgrounding the app is handled explicitly.
- Result
- Partial transcripts while the child is still reading. Each record carries a flag showing whether it was streamed, so pathways can be compared.
The "wrong level saved" incident State machines
- Context
- The level saved with a result was read from Redux at save time. By then it could have changed.
- Decision
-
Move the audio workflow into a pure TypeScript reducer
(IDLE ā UPLOADING ā EVALUATING ā SAVING, 15 action
types) and lock
assessedLevelat evaluation time. It is never re-read from global state afterwards. - Detail
- Each transition documents its business reason. For example, "record again" keeps the previously passed level because the teacher may still choose to save it. Teacher overrides of the AI result carry a reason.
- Result
- The bug class is gone by construction, and the workflow is unit-testable without rendering anything.
Three-layer rewrite of the assessment engine Architecture
- Context
- Business logic lived inside components, so it couldn't be tested and every change was risky.
- Decision
-
Split all four assessment types, the student list
and the evidence modal into domain (pure TS) ā use
case (hooks) ā UI. Each capture type gets a
commands / reducer / rules triad. An anti-corruption
layer maps API payloads into domain types such as
AssessmentAttempt, andassessmentSlicewas extracted from a monolithic app slice. - Detail
-
I wrote the standard down: the team's engineering
guide covers discriminated unions over nullable bags,
ref guards for rapid taps,
??vs||on numbers, and AbortController on unmount. - Result
- Domain logic is covered by unit tests, and a later backend change only touched the adapter layer.
Short-lived media tokens & a cache-poisoning bug Security
- Context
- Private media on the CDN needs a short-lived token, separate from the login token, attached to every image, audio, Lottie and SVG fetch.
- Bug 1
- The token has a 30-minute TTL and is checked every 25 minutes, but it was only refreshed within 3 minutes of expiry. That left a recurring window with an expired token. Raising the window to 8 minutes (more than TTL ā interval) closes it, and a single-flight guard stops the timer and app-foreground events from refreshing twice.
- Bug 2
- 403 responses were cached and served again after a refresh. Fixed with proper cache keys across all media types.
- Result
- Authenticated media wrappers used everywhere, with silent refresh and no stale denials.
PagerView vs Hermes on the New Architecture Platform bugs
- Context
- On Android with Hermes and the New Architecture, PagerView ignored
initialPageand opened the evidence modal on the wrong subject. - Decision
-
Isolate the workaround behind a
ReliablePagerViewprimitive that usesonLayoutas the guaranteed-ready signal forsetPageWithoutAnimation. Pin the initial subject synchronously to remove an async race, and fall back to a ScrollView for tab navigation. - Result
- The modal opens on the right page every time, and callers never see the workaround.
Also shipped
- Two API migrations: flat legacy calls ā versioned modules (150 ā 250 functions, 8 ā 103
/v1endpoints), then a v2 teacher flow behind a build flag with an ACL and the v1 client kept for rollback. - Release & toolchain: Play Store releases 1.6.7ā1.6.9, version-code management, 16 KB page-size support (NDK 27, SDK 35).
- Test infrastructure: set up Jest + RNTL, organised suites by role flow, CI on GitHub Actions with dependency caching.
- Session security: 419/420 multi-device lockout with an ordered wipe (auth state ā modal ā storage), plus mock-GPS detection for school visits.
- Feel & polish: haptics module with a 45 ms throttle, a delay-to-show skeleton (140 ms delay / 320 ms minimum), memoised list rows, Urdu Nastaleeq and Devanagari text fixes.
- Observability: in-app logger with an on-device log viewer, and failed-assessment logging moved to a lightweight Kafka endpoint.
Community Web App, Embedded in the Mobile App Sole author Ā· Jun ā Aug 2026
A social space inside the education app where teachers share posts, photos, PDFs and videos, comment, appreciate each other's work and report anything inappropriate.
- Built entirely by me, from empty folder to production, in about two months (111 changes).
- Feels native inside the mobile app: the back button, keyboard and sharing all behave the way users expect.
- Safe by design: login details are never stored in the browser, and every post and comment can be reported.
A React 19 SPA rendered inside the RN app's Android WebView: cursor-paginated infinite feed, optimistic likes and comments, PDF and YouTube post types, reporting, profiles, and a public shared-post route. API types are generated from the live OpenAPI spec and never written by hand. 15.8k LOC, 111 of 111 commits.
Auth in a WebView without web storage Security
- Context
- The native shell owns the session. The token must reach the web app, but never sit in localStorage.
- Decision
-
A three-tier bridge (injected global, then URL
param, then
postMessage) with the token held only in Zustand memory, and initialised synchronously before React mounts to remove a first-render race. - Result
- No unauthenticated first paint, and no token anywhere in web storage.
A back-button contract for overlays WebView UX
- Context
- Android's back button calls
goBack()on the WebView. Any overlay that hadn't pushed a history entry was skipped, and the user was thrown out of the app. - Decision
- Every drawer, dialog, lightbox and sheet must register via
useDrawerBackButton(isOpen, onClose, name)with a unique name. This is written into the project rules as a ship checklist. - Result
- Back always closes the topmost overlay first, as a native app would.
Cold starts and consistent errors Resilience
- Context
- The WebView could load before the API was awake, and each mutation handled errors its own way.
- Decision
-
A health gate with a staged loading overlay, re-checked
on pull-to-refresh. A normalised
AppErrorwith three-tier classification behind a global QueryClient error policy, and an error boundary (details in dev, reload screen in prod). - Result
- Predictable failure behaviour everywhere, with no blank screens on cold start.
Multi-Tenant Retail SaaS Platform (500+ concurrent users Ā· 1,000+ SKUs)
Professional work on a live MERN product: a subdomain-based multi-tenant POS and online store serving 500+ concurrent users across 1,000+ SKUs, where I owned most of the front-end. The platform cut stock inconsistencies by 85%, and supported UPI QR payments, barcode scanning and receipt printing for in-store checkout.
Owned most of the React front-end and worked against the
platform's backend: per-tenant data isolation via
JWT-scoped auth middleware across subdomains, automated
billing workflows, and atomic MongoDB
findOneAndUpdate stock updates that replaced
read-then-write and cut stock inconsistencies by 85% during
peak billing. Checkout included a zero-MDR payment flow with
dynamic UPI QR generation and backend validation, hardware
barcode scanning and silent thermal-printer integration.
Engineering Excellence & Leadership
I set up the team's automated testing and wrote down how we build software, so quality doesn't depend on any one person. I review and merge teammates' work, turn stakeholder feedback into planned releases, and mentor new engineers. One junior engineer I guided shipped an internal tool that replaced a manual HR spreadsheet, and it was recognised by management.
-
Testing: stood up the test
infrastructure (Jest, RNTL, a custom setup, hand-tuned
transformIgnorePatternsfor the RTK/immer ESM cluster) and the GitHub Actions CI. - Documentation: authored the team's engineering standards, an 18-section architecture guide, an API-migration changelog and a PRD/FSD with requirement traceability reverse-engineered from the live code.
- Team: review and merge teammates' PRs (including the Keycloak auth integration), work within a multi-stage release flow across 60+ branches, and mentored a junior engineer through a React Native + web IT asset inventory app that replaced manual HR Excel tracking.