Quiz-first app that passively detects micro-slips and triggers autonomous micro-interventions before students visibly fail.
- Next.js (App Router) + TypeScript + Tailwind
- MongoDB + Mongoose
- Firebase Auth (Google sign-in + server token verification)
- Rule-based drift scoring + intervention orchestration
- Passive signal tracking (
IDLE_SPIKE,RAPID_GUESS,HINT_OVERUSE) - Timetable + non-skippable obligations
- Schedule adherence-based off-track detection
- Drift scoring (
LOW/MEDIUM/HIGH) with reason tags - Autonomous intervention timeline (cooldown-aware)
npm install
npm run devCopy .env.example to .env.local, fill MongoDB and Firebase values, then run.
Open http://localhost:3000, then click Initialize Demo Data on home.
/dashboard/quizzes/schedule/checkin/interventions/admin/at-risk
POST /api/bootstrapGET/POST /api/quizzesPOST /api/quizzes/:id/attemptPOST /api/events/passivePOST /api/checkinsGET/POST /api/schedule/blocksPOST /api/schedule/adherenceGET/POST /api/obligationsPOST /api/interventions/evaluateGET /api/dashboard/meGET /api/admin/at-risk-students
The UI intentionally uses a flat visual style with solid colors only (no gradients).
Production build passes with:
npm run build