Home/Case Studies/ZHI Early Learning Platform
OFFICIAL TECHNICAL WHITEPAPER • CASE STUDY REPORT
EdTech SaaS • Pre-KG to 1st Std Foundation • B2C Parent & B2B School Pack

ZHI — Learn While Playing

ZHI is a production-grade, multi-portal EdTech SaaS platform purpose-built for early childhood foundation learning (Pre-KG, LKG, UKG, and 1st Standard). It combines four distinct authenticated portals — Super Admin, School Admin, Parent, and Student — each with its own role-specific dashboard and business logic. The platform serves two distinct customer segments: B2C individual parents via Razorpay subscription plans, and B2B school institutions via manual invoice and bank transfer activation.

Platform Name
ZHI (Agaran EdTech)
Multi-Role SaaS Platform
Target Grades
Pre-KG, LKG, UKG, 1st Std
Ages 3 to 7 Foundation
Portals Built
4 Role-Based Systems
JWT Authenticated Scopes
Deployment
Live Production System
Vercel + Railway Deploy
https://app.zhi-learning.com
ZHI PLATFORM v3.1 — 4 PORTALS ACTIVE
PORTAL 01
Super Admin HQ
Platform Command Center for global operations.
Schools ListRevenue KPIsApprovals
PORTAL 02
School Admin HQ
Principal portal with scoped school dataset.
Student RosterClass PulseBilling
PORTAL 03
Parent Dashboard
Real-time learning monitoring for parents.
Child SwitcherQuiz LogTimer
PORTAL 04
Kids Learning Hub
Interactive gamified student interface.
TTS MascotWordSorterBadges
[ PLATFORM ARCHITECTURE TOPOLOGY • DUAL-MODEL EDTECH SYSTEM ]Figure 1.0 — Four Role-Based Authenticated Portals

01

PROJECT OVERVIEW

ZHI is a full-stack, production-grade early childhood learning platform that replaces fragmented PDF worksheets and passive YouTube playlists with a structured, interactive digital curriculum. The platform was engineered to serve two distinct business models simultaneously: B2C individual parents who subscribe to monthly plans for their child's home learning, and B2B school institutions that pay a per-student monthly fee to unlock full curriculum access for every enrolled student.

Dual Monetization Architecture

B2C parents subscribe via automated monthly Razorpay plans (Free 14-day trial, Focus Premium Ultimate é╣699) with countdown trial timers and instant activation. B2B schools pay via GST invoice and bank transfer, activated via Super Admin control.

The core challenge of building ZHI was not just building a learning portal — it was building four fundamentally different applications that share a unified Next.js backend architecture, and a common authentication system with strict role-based access control. Each portal serves a completely different user persona with entirely different data needs, UI flows, and business rules.

Agaran designed and engineered the complete system from multi-role JWT authentication middleware, secure platform architecture, payment integration with webhook fallback safety, and four full frontend portals — all delivered as a cohesive, live production system.

EXECUTIVE SUMMARYZHI PLATFORM
4 Authenticated Portals

Super Admin HQ, School Admin HQ, Parent Dashboard & Kids Learning Hub.

Dual Revenue Model

B2C Razorpay subscriptions + B2B manual school GST invoice flow.

Gamified Foundation Curriculum

English Phonics (-at/-an/-ig), Tamil, Early Maths & EVS with TTS Mascot Voice.

Bilingual Engine

Multilingual English + Tamil i18n support powered by next-intl.

50+ Modules
Curriculum Library
Lost
Payment Failures
02

THE CHALLENGE

No Structured Curriculum

PDF & YouTube Dependency

Schools and parents had no structured digital curriculum for Pre-KG to 1st Std. Learning happened through scattered WhatsApp PDFs, random YouTube videos, and printed sheets — with zero tracking, zero progress data, and zero engagement feedback for parents or teachers.

Payment & Access Chaos

Past Payment Failures

Prior EdTech systems faced a critical failure mode: parents would pay via Razorpay, but webhook misses or race conditions meant course access never activated. Money was deducted with zero access granted — a trust-destroying user experience that ZHI required a bulletproof verification engine to solve.

Multi-Role Complexity

Four Different Users, One System

Super admins, school principals, parents, and young students each require completely different interfaces, data scopes, and access permissions. Building four coherent portals on a shared backend without data leakage between tenants was a fundamental architectural challenge.

03

PORTAL ARCHITECTURE — FOUR USER SYSTEMS

ZHI is not a single portal with a “role toggle.” It is four fully independent, purpose-designed user systems — each with its own frontend routes, access permissions, data visibility rules, and business logic — served from a shared Next.js backend with centralized JWT authentication middleware.

PORTAL 01

Super Admin — Platform Command Center

LIVE

The Super Admin portal is the master control layer for the entire ZHI platform. This is an internal operations dashboard accessible only to Agaran/ZHI platform administrators. It provides full visibility across every school, student, parent, and payment in the system.

School Registration & Management

Create new school accounts, assign school admins, set student capacity limits, view active/inactive school plans, and soft-delete institutions from the platform.

Platform KPI Dashboard

Real-time metrics: total students, total parents, active schools, platform revenue, lesson completion rate, avg quiz score, engagement score, and avg session minutes.

Pending Registration Approvals

Review and approve parent+student account creation requests. Every new parent registration triggers a pending approval queue before the account is activated.

Payment Verification Center

Track all subscription revenues, verify unverified school bank transfers (mark UTR, confirm credit), and force-activate access for parents whose payment cleared but auto-webhook failed.

Curriculum Settings

Map education boards, add grades, manage chapters and lessons, publish quizzes, and maintain the entire content library across all subjects and terms.

Alert System

Live alert panel: pending_approvals count, pending_payments unverified, expiring_plans near renewal — with severity ratings (High / Medium / Soon).

PORTAL 02

School Admin — Institution Management Portal

LIVE

The School Admin portal is issued to the principal or administrator of each enrolled institution. Each school admin has a strictly scoped data view — they can see only their own school's students, parents, and analytics. They cannot access data from any other school. This is enforced via JWT-bound school_id claims on every request.

School Dashboard KPIs

Real-time stats for their school: total students enrolled, students active today (within last 24h), total stars given out platform-wide within the school, and number of unique grade sections active.

Students Directory

Full student roster management — view all enrolled students, add new students, update roll numbers and section assignments, and remove students. Bulk import of student records from school management systems.

Class Pulse — Grade Analytics

Per-grade average progress tracking. Visual progress bar per grade (LKG, UKG, Grade 1) showing what % of the curriculum each class has completed on average. Color-coded green/amber/red based on progress thresholds.

Needs Attention Panel

Smart alert system that surfaces students with overall_progress < 30% or who have had no activity in the last 7 days. School admin can identify at-risk learners and follow up with parents.

Top Performers Leaderboard

Star-based ranking of the top 5 performers in the school by total_stars_earned. Encourages healthy academic competition and highlights consistent learners for recognition.

Parents Directory & Plan Billing

View all parent profiles linked to their school students. Access school subscription plan details and billing status (Bank transfer / Invoice-based activation confirmed by Super Admin).

PORTAL 03

Parent Portal — Child Progress Monitoring Dashboard

LIVE

The Parent Portal gives every parent a real-time window into their child's learning journey. Built with simplicity-first design (parents with limited digital literacy must be able to understand their child's progress at a glance), the portal provides multi-child switching, per-subject progress tracking, quiz attempt logs, badge achievements, milestone timelines, and subscription plan management — all in a single unified dashboard.

Multi-Child Switcher

Parents with multiple children can switch between child profiles using a dropdown selector. The active child's full progress data is pre-fetched and cached using React Query — switching is instant with no load delay.

Learning Journey KPIs

Four top-level stats for the active child: Lessons Completed, Learning Streak (consecutive active days), Badges Earned, and Quiz Attempts — all pulled from live platform data.

Subject-wise Progress Map

Per-subject completion progress bars (English, Tamil, Maths, EVS, GK) showing percentage of chapters and lessons completed within each subject. Expandable to chapter-level detail with lesson-by-lesson unlock status.

Quiz History Drawer

Full quiz attempt log: quiz name, subject, lesson linked, score (e.g., 8/10), percentage, pass/fail status, time taken, and attempt timestamp. Summary metrics: total attempts, total passed, failed count, and average score percentage.

Recent Milestones Timeline

Chronological activity feed combining quiz completions, chapter finishes, and learning streaks into a milestone timeline. Parents see what their child did most recently without needing to understand raw progress numbers.

Subscription Plan & Countdown Timer

Parents on individual paid plans see their active plan tier and a live countdown timer (DD:HH:MM:SS) showing exactly how much premium access time remains before renewal. Integrated with Razorpay subscription lifecycle.

PORTAL 04

Student Portal — Kids Interactive Learning Hub

LIVE

The Student Portal is the core learning interface for children aged 3 to 7. It is built with child-first UX principles: large visual elements, audio-driven instruction, gamified progression, and minimal text. Every lesson includes a mascot-guided TTS voice tutorial, followed by interactive quiz activities. The portal routes are: /student/Home (dashboard), /student/Learn (lesson library), /student/Quiz (active quizzes), /student/Games (activity mini-games), and /student/profile.

Student Home Dashboard

Personalized greeting with grade, current overall progress %, total stars earned, badges count, current learning streak, and max streak. Shows today's lessons with thumbnail previews, in-progress status indicators, and next lesson unlock requirements.

Learn — Structured Lesson Library

Grade-specific, term-sequenced lesson library. Subjects covered: English Phonics (Capital/Small letters, CVC word families -at/-an/-ig, Sight Words, Rhymes), Early Maths (Numbers 1–100, Shapes, Missing Number Trains), Tamil (α«ëα«»α«┐α«░α»ì & α««α»åα«»α»ì α«Äα«┤α»üα«ñα»ìα«ñα»üα«òα»ìα«òα«│α»ì), and EVS/GK (Animals, Body Parts, Seasons, Fruits).

Mascot Voice Tutorial Engine

Each lesson launches an audio-visual step-by-step mascot tutorial powered by Web Speech Synthesis TTS. The mascot speaks directly to the child ('Hello Explorer! Let us learn the -at family today!'), animates letter cards, and pronounces every word sound clearly.

Quiz — Gamified Assessment

Post-lesson quizzes with interactive formats: WordSorterQuiz (drag letters into word families), PictureLetterMatch (match images to correct letters), MissingLettersTrain (complete the sequence), and RhymesPlayer sing-along activities. Each attempt is submitted to the backend, scored, and stored.

Games — Mini Activity Engine

Standalone gamified activity modules beyond lesson-tied quizzes. Includes independent word building games, picture matching challenges, and counting activities. Stars are earned per correct answer and accumulate in the student's global star total.

Progress Tracking & Badge Rewards

Every lesson watched, quiz submitted, and activity completed is logged to the student's progress record. Completion unlocks the next sequential lesson. Badge rewards are issued on milestones (First Steps, 10 Lessons, 5-Day Streak, etc.) and synced to the parent dashboard in real-time.

04

PAYMENT ENGINE & SUBSCRIPTION ARCHITECTURE

ZHI runs a dual-track monetization model: B2C individual parent subscriptions via Razorpay, and B2B school institution billing via manual invoice and bank transfer. The payment system was engineered with bulletproof idempotency and triple-verificationto prevent the trust-breaking failure mode of “payment deducted but access not granted” — a critical issue from prior EdTech projects.

B2C — Individual Parent Subscription Plans (Razorpay)

Free Plan (é╣0):14-day full trial. After trial expiry, system locks all content automatically. No manual action needed.
Focus Plan (é╣149/month):Single subject access (e.g., Maths only or English only) with full lesson and quiz unlock for that subject.
Premium Plan (é╣399/month):All subjects, all video/audio tutorials, all activity games. The most popular individual parent plan.
Ultimate Plan (é╣699/month):Everything in Premium + AI Tutor integration (v2). Child can interact directly with an AI mentor for personalized doubt resolution.
Razorpay Payment Flow (Bulletproof)
1. Parent clicks Upgrade → button DISABLED immediately
2. Backend creates Razorpay order reference
3. Razorpay checkout opens → UPI / Card / NetBanking
4. Payment success → frontend sends verification payload
5. Backend: verify signature → check idempotency → secure transaction commit
6. Triple check: Razorpay dashboard ✓ + Parent account status = PAID ✓ + Payment log = success ✓
7. Webhook backup: if frontend miss, Razorpay webhook auto-triggers backend activation
8. Manual override: Super Admin force-activate if webhook also missed

B2B — School Institution Pack (Manual Invoice)

Schools pay per child per month via bank transfer or cheque. For a school with 500 students, this is é╣25,000/month — a bulk amount that cannot go through standard Razorpay UPI (limit issues, GST invoice requirements, PO approval cycles). The B2B flow is deliberately manual with Super Admin verification as the activation gate.

School Payment Flow
1. Agaran sends formal quotation to school management
2. School issues Purchase Order (PO) from accounts department
3. Agaran Finance raises GST invoice (PDF, custom)
4. School transfers via NEFT/IMPS or posts cheque
5. Accountant confirms bank statement credit (2–3 day delay)
6. Super Admin marks UTR number → [Mark as Paid] in dashboard
7. System activates: all students in school → FULL ACCESS
8. Transaction logged in system billing audit records
Students Unlocked
All enrolled students in school get full curriculum access immediately upon Super Admin activation.
GST Compliance
Custom GST invoice generated for school accounts department. PO reference number logged in payments record.
05

CURRICULUM ARCHITECTURE — SUBJECTS & MODULES

The ZHI curriculum is organized in a hierarchical structure: Board → Grade → Subject → Chapter → Lesson → Activity/Quiz. Each lesson has a defined position in a term sequence (Term 1, Term 2, Term 3), and the next lesson is unlocked only after the current lesson is completed. This sequential unlock architecture ensures structured learning and prevents content skipping.

LKG, UKG, Grade 1

English Phonics & Literacy

  • Capital Letters A–Z (with mascot pronunciation)
  • Small Letters a–z (recognition & matching)
  • Capital-to-Small Letter Matching games
  • Phonics Soundboard (letter sound isolation)
  • CVC Word Families: -at (cat, hat, mat, bat), -an (can, fan, man, van), -ig (big, dig, fig, wig), -op (hop, mop, pop, top)
  • Sight Word recognition (the, and, is, was, etc.)
  • Story Reading Time (guided reading with TTS)
  • Nursery Rhymes Sing-along player (animated)
LKG, UKG, Grade 1

Early Mathematics & Logic

  • Number Counting 1 to 10 (with object visual aids)
  • Number Counting 11 to 50 (sequence exercises)
  • Number Counting 51 to 100 (complete range mastery)
  • Object Counting games (count the apples, stars, etc.)
  • Missing Number Train (fill-in-the-blank sequences)
  • Shape Recognition (circle, square, triangle, rectangle)
  • Color & Pattern Identification exercises
  • 1st Std Introduction to Visual Addition (1+1, 2+3, etc.)
LKG, UKG

Tamil Language Foundation

  • α«ëα«»α«┐α«░α»ì α«Äα«┤α»üα«ñα»ìα«ñα»üα«òα»ìα«òα«│α»ì — 12 vowels (α«à, α«å, α«ç, α«ê, α«ë, α«è, α«Ä, α«Å, α«É, α«Æ, α«ô, α«ö)
  • α««α»åα«»α»ì α«Äα«┤α»üα«ñα»ìα«ñα»üα«òα»ìα«òα«│α»ì — 18 consonants recognition
  • Tamil letter audio pronunciation with mascot
  • Picture-to-word letter matching activities
  • Tamil rhymes with animated sing-along player
  • Basic Tamil vocabulary building (objects, animals, colors)
Pre-KG, LKG, UKG

EVS & General Knowledge

  • My Body Parts (head, shoulders, eyes, etc. — interactive)
  • Animals of the World (domestic & wild — picture quiz)
  • Seasons & Weather (summer, winter, rainy — visual cards)
  • Fruits & Vegetables identification (picture matching)
  • Community Helpers (teacher, doctor, police, etc.)
  • Colors & Shapes in nature (environmental awareness)
06

HOW IT WORKS — TWO USER JOURNEYS

B2C Journey — Individual Parent

STEP 01
Parent Registers
Account created → pending registration queue
STEP 02
Super Admin Approves
Registration reviewed & approved → account activated
STEP 03
14-Day Free Trial
Full content access. Countdown timer active in dashboard.
STEP 04
Parent Subscribes
Picks plan (é╣149/é╣399/é╣699) → Razorpay checkout
STEP 05
Triple Verification
Signature verify → idempotency check → secure transaction commit → Webhook backup
STEP 06
Access Activated
Plan tier unlocked. Child begins structured learning journey.

B2B Journey — School Institution

STEP 01
School Onboarding
Super Admin creates school account, assigns School Admin login credentials
STEP 02
Student Registration
School Admin adds students (LKG/UKG/Grade 1, roll numbers, sections)
STEP 03
Invoice Sent
Agaran Finance sends GST invoice → é╣50/child/month
STEP 04
Bank Transfer
School accounts dept transfers via NEFT/IMPS. Takes 2–3 days.
STEP 05
Super Admin Verifies
UTR number logged → Mark as Paid → system activation triggered
STEP 06
All Students Unlocked
Every student in school gets full curriculum access immediately
07

SYSTEM ARCHITECTURE

ZHI ARCHITECTURE TOPOLOGYv3.1 PRODUCTION
CLIENT LAYER — FOUR AUTHENTICATED PORTALS
Super Admin /adminSchool Admin /school-adminParent /parentStudent /student
↓ Next.js Middleware — JWT Role Validation ↓
CORE SERVICES LAYER
Admin Management
School Services
Parent Services
Student Engine
Auth & Roles
Payment Gateway
Subscription
Curriculum Engine
↓ Shared Business Logic Layer ↓
PERSISTENCE & STORAGE LAYER
Platform Data Store
Student Progress Records
Badge Registry
Payment Audit Logs
Curriculum Library
School Tenant Records
↓ External Integrations ↓
Razorpay Payments
TTS Mascot Voice
next-intl (EN/Tamil)

Architectural Design Decisions: The platform uses Next.js App Router for both frontend rendering and server services. Role-based access is enforced at the middleware layer using JWT claims — every request is validated before reaching business logic. Enterprise data isolation ensures no cross-tenant data leakage between schools. The i18n architecture (next-intl) supports bilingual content delivery in English and Tamil across all four portals.

08

AGARAN'S ROLE

Full-Stack System Architecture
Designed the complete multi-portal system architecture, role management, and frontend routing. Made all key architectural decisions: multi-tenant data scoping, JWT role enforcement strategy, sequential lesson unlock logic, and idempotent payment verification flow.
Four Independent Portal Frontends
Built all four Next.js frontend portals (Super Admin, School Admin, Parent, Student) with role-specific dashboards, data-fetching with React Query (including prefetching, stale-time tuning, and 30s auto-refresh for critical data), and responsive mobile-first UI.
Bulletproof Payment Engine
Engineered the Razorpay integration with triple-verification (frontend → webhook → manual override), idempotency key enforcement, database transaction atomicity, audit trail logging, and Super Admin force-activate fallback.
Curriculum Content Engine
Built the full curriculum data architecture: board → grade → subject → chapter → lesson → activity/quiz hierarchy. Implemented TTS-driven mascot voice tutorial engine, gamified quiz components (WordSorterQuiz, PictureLetterMatch, MissingLettersTrain), and badge reward system.
B2B School Admin System
Designed and built the school-scoped admin portal with real-time student roster management, grade-wise class pulse analytics, needs-attention smart alerting (progress < 30% or 7-day inactivity), top performer leaderboard, and invoice-based school plan activation flow.
Multi-language i18n Infrastructure
Implemented next-intl internationalization supporting English and Tamil across all portal routes, content delivery, and UI strings — enabling the platform to serve Tamil-medium schools and parents who prefer their regional language interface.
09

TECHNOLOGY STACK

Frontend
Next.js 14 (App Router)TypeScriptTailwind CSSFramer MotionReact Query (TanStack)
Backend & Services
Next.js App RouterJWT AuthenticationRole-based MiddlewareCloud InfrastructureServerless Functions
Payment & Billing
Razorpay (B2C Subscriptions)Webhook Handler (Backup)Idempotency Key EngineManual Invoice Flow (B2B)Audit Trail Engine
Learning Engine
Web Speech Synthesis TTSCustom Mascot Tutorial PlayerWordSorterQuiz ComponentPictureLetterMatch ComponentMissingLettersTrain Component
i18n & Localisation
next-intl (EN + Tamil)Locale-scoped routing /[locale]/*Bilingual content deliveryTamil script renderingRTL-ready architecture
Infrastructure
Vercel (Frontend)Railway (Backend)Cloud InfrastructureCron JobsDocker (local dev)
10

PROJECT DETAILS

Project ModelB2B + B2C
Dual Monetization

B2B School SaaS Pack + B2C Parent Subscription

Industry & DomainEdTech
Early EdTech SaaS

Early Childhood & Elementary Education Technology

Target AudienceFoundation
Pre-KG to 1st Std

Pre-KG, LKG, UKG & 1st Standard (Ages 3 to 7)

Portals Built4 Portals
4 Scoped Portals

Super Admin, School Admin, Parent Dashboard & Kids Hub

LocalizationEN + Tamil
Bilingual Engine

English + Tamil (i18n powered by next-intl)

DeploymentVercel + Railway
Live Production

Vercel (Frontend) + Railway (Backend Infrastructure)

Current StatusActive System
Active Production

Live with continuous curriculum & module expansion

Agaran RoleLead Architect
Full-Stack Lead

Architecture, all 4 portal frontends, payment engine

11

OUTCOME & MEASURABLE RESULTS

4 Portals
Role-Based Systems
Super Admin, School Admin, Parent, Student
Lost
Payment Failures
Triple-verified, bulletproof payment engine
2 Models
Revenue Streams
B2C Razorpay + B2B Invoice — Dual monetization
100%
Syllabus Coverage
English, Tamil, Maths, EVS, GK — Term 1, 2, 3
“The ZHI platform completely changed how we track our kindergarten students' learning progress. The school admin dashboard shows us which grade sections are falling behind in real time, and parents love being able to see their child's quiz scores and chapter completions the same day it happens. The structured term-by-term curriculum also gave our teachers a proper digital framework to follow for the first time.”
— Principal, Partner Kindergarten Institution (South India)
12

CASE STUDY NAVIGATION