React / Firebase / TypeScript

GyanMarg

EdTech learning management platform with real-time sync, educational content delivery, and adaptive learning paths.

GyanMarg

Showcase

Product Walkthrough

Four screens from the GyanMarg adaptive learning platform — chapter timeline, library, scroll-based reading, and visualization workspace.

GyanMarg — Chapter timeline — adaptive sequencing of curriculum chapters, progress markers, and recommended next steps.
Chapter timeline — adaptive sequencing of curriculum chapters, progress markers, and recommended next steps.
GyanMarg — Library — searchable corpus of materials, tagged by subject and difficulty.
Library — searchable corpus of materials, tagged by subject and difficulty.
GyanMarg — Scroll reader — long-form reading view with inline questions and highlights synced across devices.
Scroll reader — long-form reading view with inline questions and highlights synced across devices.
GyanMarg — Visualization workspace — interactive diagrams generated from textual content for STEM topics.
Visualization workspace — interactive diagrams generated from textual content for STEM topics.

Leadership Lens

01 The Call

Chose to build a custom adaptive LMS on Firebase rather than extending an existing platform (Moodle, Canvas, Google Classroom), identifying that the core gap was not content delivery but the feedback loop — instructors discovering student struggles days after the fact. The decision to own the full stack meant owning the real-time sync layer, which no off-the-shelf tool offered without expensive add-ons.

02 The Bet

Bet that Firestore's onSnapshot listeners — replacing REST polling and eliminating WebSocket boilerplate entirely — would deliver a real-time instructor dashboard and adaptive path recalculation with zero server management overhead, and that this architectural simplicity would hold from a classroom of 10 to one of 10,000.

03 The Trade-off

Traded breadth of features (no gradebook import/export, no LTI integrations, no SCORM compliance) for depth in the two capabilities that mattered most: instant progress visibility for instructors and per-student difficulty adjustment. Also accepted Firestore's document model limitations (no complex joins) in exchange for built-in offline persistence and sub-100ms global CDN delivery via Firebase Hosting.

04 The Outcome

Live platform at ai-polymind.web.app — a full React + Firebase LMS with real-time sync across the Course > Module > Lesson > Assessment hierarchy, adaptive path recalculation via Cloud Functions (score > 85% for 3 consecutive assessments advances difficulty; score < 60% branches to remedial content), optimistic UI updates so learners stay in flow state, and multi-device access (phone for students, desktop dashboard for instructors). Firebase free tier (50K reads/day, 20K writes/day, 1 GB storage) supports product-market-fit validation at zero infrastructure cost.

05 Coordinated

Sole product and engineering decision-maker. Designed the adaptive path algorithm, the Firestore data model, the role separation (student vs. instructor views), and the Cloud Functions trigger logic. Curriculum and content-sequencing decisions — what constitutes "mastery" (85% threshold), what triggers remediation (sub-60%), how modules nest — were made without an external curriculum team, requiring domain judgment to be embedded directly into code.

06 Where this goes next

Add AI-generated hint prompts tied to the remedial branch (leveraging the polymind branding direction); build an analytics export for instructors (cohort-level completion rates, time-on-task heatmaps); explore LTI 1.3 integration to allow embedding within institutional portals without requiring separate Firebase Auth accounts.

01 Chapter 1

Static Learning Doesn't Scale

Traditional LMS platforms are fundamentally static — content delivery doesn't adapt to individual learning pace. Every student receives the same material at the same speed, regardless of their comprehension level or prior knowledge.

Teachers lack real-time visibility into student progress. They discover struggles only after assignments are submitted, missing the critical window for intervention. The feedback loop between instructor action and student response is measured in days, not seconds.

Core Challenges

No real-time sync between instructor and students. No adaptive content paths based on performance. No immediate feedback loops. Result: disengaged learners and overwhelmed teachers.

Gap Identified

Days

feedback latency in traditional LMS

Target Latency

Seconds

with Firestore real-time listeners

02 Chapter 2

Serverless Real-time Stack

GyanMarg is built on a fully serverless architecture. Firebase provides the backbone — authentication, real-time database, cloud functions, and hosting — eliminating server management overhead while guaranteeing automatic scaling.

System Architecture

React Frontend
Firebase Auth
Firestore (Real-time)
Cloud Functions
Student Browser
Auth Layer
Real-time Listeners
Serverless Logic

Architecture Decision

By choosing Firestore over a traditional REST API, every data mutation automatically propagates to all subscribed clients. This eliminates an entire class of sync bugs and removes the need for manual cache invalidation.

03 Chapter 3

Platform Capabilities

GyanMarg delivers four core capabilities that distinguish it from traditional LMS platforms — each designed to close the feedback gap between instruction and learning.

Feature 01 — Real-time Synchronization

Live updates propagate the instant an instructor publishes content. Student progress is visible immediately on the instructor dashboard — no refresh required. Powered by Firestore's onSnapshot listeners.

Feature 02 — Adaptive Learning Paths

Content difficulty adjusts based on student performance. Struggling students receive additional foundational material; advanced learners progress to challenging content. Paths recalculate after each assessment.

Feature 03 — Educational Content Delivery

Structured modules with lessons, assessments, and multimedia content. Hierarchical organization: Course > Module > Lesson > Assessment. Rich text, video embeds, and interactive elements.

Feature 04 — Progress Tracking

Instructor dashboard showing class-wide and individual metrics. Completion rates, time-on-task, assessment scores, and engagement patterns — all updating in real-time.

Adaptive Path Algorithm

difficulty_level = f(assessment_score, time_spent, attempts) // Score > 85% for 3 consecutive assessments → advance difficulty // Score < 60% → provide remedial content branch next_content = path_map[difficulty_level][module_id] // Real-time recalculation via Cloud Functions trigger

04 Chapter 4

Engineering Decisions

Every technical choice in GyanMarg was driven by two priorities: type safety to reduce runtime errors in an educational context where reliability matters, and perceived speed to keep learners engaged.

TechnologyPurposeWhy This Choice
React + TypeScriptFrontend frameworkType safety catches data-shape bugs at compile time; component model maps to LMS UI patterns
Firebase AuthAuthenticationEmail/password + Google OAuth out of the box; role-based access (student vs instructor)
Firestore ListenersReal-time data syncInstant propagation without WebSocket boilerplate; offline persistence built-in
Optimistic UIPerceived performanceUI updates immediately before server confirms; reverts on failure — feels instant
Responsive CSSMulti-device supportStudents access from phones during commutes; instructors use desktop dashboards

User Authentication Flow

Login Page
Firebase Auth
JWT Token
Role Check
Dashboard

Optimistic Updates

When a student submits an answer, the UI shows success immediately while the write propagates to Firestore. If the write fails (e.g., network issues), the UI gracefully reverts. This pattern eliminates perceived latency and keeps learners in flow state.

05 Chapter 5

Platform Choice Rationale

Firebase was chosen deliberately — not as a default, but because its feature set maps precisely to EdTech requirements. The platform eliminates entire categories of infrastructure work that would otherwise consume engineering time.

Zero Server Management

No provisioning, patching, or scaling decisions. Focus engineering effort on learning outcomes, not infrastructure.

Built-in Real-time

No WebSocket server setup. No connection pooling. No reconnection logic. Firestore handles all of this natively.

Automatic Scaling

Handles 10 students or 10,000 without configuration changes. Exam-day traffic spikes are absorbed transparently.

Offline Support

Firestore caches data locally. Students in low-connectivity environments continue learning; syncs when reconnected.

Cost at Scale

Firebase's pay-per-operation model means costs grow linearly with actual usage — not with provisioned capacity. For an EdTech platform with variable daily active users, this eliminates idle-infrastructure waste. The generous free tier (50K reads/day, 20K writes/day, 1 GB storage) allows full product-market-fit validation at zero cost.

06 Chapter 6

Technology Overview

Frontend

React

Component-based UI

Language

TypeScript

Full type safety

Backend

Firebase

Serverless platform

Database

Firestore

Real-time NoSQL

ReactTypeScriptFirebase AuthFirestoreFirebase HostingCloud FunctionsReal-time ListenersResponsive CSSGoogle OAuthCDN Delivery
ResourceURL
Live Platformai-polymind.web.app
Source Codegithub.com/CryptoPrism-io/gyanmarg