Coherence Academy: one platform for a coaching class, on web, iOS and Android
- Role
- Sole software engineer, Coherence Academy, Pune (Aug 2026 to present)
- Users
- 8 admins, 105 Class 11 students and their families
- Platforms
- Web app (live); native iOS and Android apps (in internal testing)
- Stack
- TypeScript, React 19, TanStack Start, Vite+, Effect v4, libSQL/SQLite, Tailwind, Playwright, Vitest; Swift, SwiftUI, XcodeGen; Kotlin, Jetpack Compose, CameraX, ML Kit; LiteRT, OpenCV.js, Typst, Vercel
The problem
The academy ran its operations from Excel sheets on one laptop. Recorded lectures lived in Classplus and MCQ tests were graded in ZipGrade, and both admins and students found those tools hard to use. Nothing connected fees, tests, attendance and assignments, so every report meant stitching spreadsheets together.
What I built
One platform that replaces all three tools, with a web app for admins and native apps for students and families:
Fees and payments
UPI payment-proof verification, receipts for verified payments, and fee reports that can count payments still under verification.
OMR grading in the app
Students' MCQ answer sheets are scanned and graded in-app, about 50 students per test.
AI-assisted marking of written work
Assignments and exam papers are checked against admin rubrics, with an admin always able to recheck.
Proctored online tests
With AI typesetting of questions and a downloadable report for each attempt.
Attendance, assignments and recorded lectures
Including assignment hand-in of up to 30 pages, and parents handing in for their child.
Family portal
A Home screen for families on phones.
Sign-in
MSG91 OTP, with a web hand-off for the native apps.
Technical decisions
Moving the web app off Next.js
I migrated it to TanStack Start on Vite (later Vite+), with Effect v4 for typed effects and errors and libSQL/SQLite for storage. The migration shipped as stacked, independently deployable PRs, and each decision is written up as an ADR (40+ and counting).
OMR that copes with real paper
I moved production to an in-process OMR reader and deleted the separate worker. The reader handles sheets photographed on curled or creased paper, tilted name and roll-number boxes, and older sheets printed without a direction cue. When an admin has confirmed a phone scan and the server reads the same answers, the result goes straight to the student.
Keeping a human in the AI marking loop
Instead of admins drawing answer areas on every page, the AI finds the answers itself. It checks up to five papers at once, transcribes answers word for word in LaTeX, and returns a Corrected copy typeset with Typst. Every AI-checked paper is saved with its Corrected copy, and an admin can recheck any paper with feedback.
Marking runs on Claude Haiku through the Anthropic API, reached via Vercel's OIDC integration so no long-lived API key is stored. In November 2026 I moved it there from OpenAI's GPT models, and the model is upgraded as newer versions ship.
Tests that are hard to copy
Online test questions are compiled to images by the app's own Typst compiler, so they can't be copied as text. Each student gets questions in their own order, and solutions are shown question by question in that order. I dropped a single solutions PDF because it gave the paper order away.
Privacy for families
I stopped sending ranks and batch averages to families, so a parent sees their own child's progress and not a league table.
Native apps, not a web wrapper
The iOS app is SwiftUI with XcodeGen and a shared CoherenceCore Swift package; the Android app is Kotlin and Jetpack Compose with CameraX and the ML Kit Document Scanner. Both run LiteRT on device, and both keep feature parity with the web for the family portal, admin console, assignments, data editor and view-as-student tooling. Builds are signed for debug, preview and release.
Both apps are in internal testing for now, Android through APK builds and iOS on a test iPhone. Android will go to the Play Store first, once the web app is where I want it.
Tests that stay fast and cheap
The web app has 330+ unit, Effect and Playwright browser tests, each running on an isolated database, with production and testing data kept strictly apart. The full browser suite runs nightly, local checks run only the specs nearest a change, and Vercel previews build only on request. Previews had been 71% of the project's build minutes and most were never opened, so this cut the build bill.
Results
- Excel, Classplus and ZipGrade are replaced by one platform.
- Live and used daily by 8 admins and 105 students.
- MCQ tests of about 50 students are graded in the app.
- Admins, students and parents have all said they're happy with how the platform looks, how reliably it saves their data and how easily they find what they need.
Latest additions
In late November I shipped a family Home screen in the Coherence gold-and-graphite brand, and a Parent's Daily Rating that a parent confirms with fingerprint or Face ID.
Alongside the platform
I also built registration and UPI payment sites for Campus Connect and Mission 95 (100+ registrations each), and a Google Sheets ranking script for COEP Campus Connect (300+ students).