← Back to work

Case Study · 2024

Mozhi — Interactive Language Learning Platform

Gamified, interactive language-learning platform featuring multi-language lesson tracks, unit progression trees, streak rewards, audio pronunciation, and real-time leaderboards.

RoleFull-Stack Developer & UI Architect
Timeline2024 · Open Source Project
FocusNext.js 14 · TypeScript · PostgreSQL · Drizzle ORM · Clerk Auth · Tailwind CSS
RepositoryGitHub ↗
MOZHI LANGUAGE LEARNING

Context

Language learning platforms frequently suffer from learner churn. Transforming vocabulary drills into bite-sized gamified lessons with immediate auditory and visual feedback dramatically boosts engagement.

The Challenge

Developing an end-to-end interactive learning engine supporting dynamic challenge modalities (Multiple Choice, Assist Audio, Translation), optimistic client state updates, and schema migrations with Drizzle ORM on serverless PostgreSQL.

Engineering Process

01

Relational Schema & Drizzle ORM Architecture

Designed a clean, normalized PostgreSQL schema modeling courses, units, lessons, challenge types, options, and user subscription states with Drizzle ORM.

02

Gamification & Progress State Engine

Implemented a hearts system, XP accumulation, daily streak trackers, sound cues using Howler.js, and animated celebratory lesson completion modals.

03

Interactive Challenge Engine

Engineered responsive multi-format quiz components (Select, Assist, Audio) with instant answer validation, feedback banners, and error handling.

04

Authentication & Global Leaderboards

Integrated Clerk Auth for secure user management, synchronized user profiles with PostgreSQL, and built real-time global leaderboard rankings.

Key Architectural Decisions

Serverless PostgreSQL with Drizzle ORM

Provided lightning-fast query execution at the edge, automated type-safe migrations, and zero-overhead connection pooling.

Next.js Server Actions with Optimistic UI

Enabled instantaneous quiz responses without loading delays by mutating local UI state before server confirmation.

Outcomes & Results

Built a complete interactive language learning platform with structured lesson paths and unit checkpoints.

Engineered zero-latency quiz interactions with optimistic client updates and real-time feedback.

Integrated Clerk authentication, global leaderboard rankings, and persistent streak tracking.

Technical Reflection

Building Mozhi demonstrated how combining tight type-safety (Drizzle + TypeScript) with optimistic UI patterns creates a lightning-fast, delightfully responsive educational user experience.