AI-Powered Aptitude Training. Track Every Improvement.
AptifyAI is a production-grade, full-stack MERN web application built for Pakistani students preparing for NTS, GAT, MDCAT, and CSS/PMS exams.
Unlike static question banks that repeat the same MCQs, AptifyAI uses OpenRouter AI to generate completely fresh, unique aptitude questions every single session. After each exam, AI evaluates your answers, explains every mistake in detail, detects your weak topics, and visualizes your improvement arc over time โ so you always know exactly where you stand and what to fix next.
Pakistani students preparing for NTS, GAT, MDCAT and CSS/PMS face four core problems:
- Repeated question banks โ every platform recycles the same MCQs
- No feedback โ you see your score but never understand why you got it wrong
- No progress tracking โ no way to know if you're actually improving session by session
- API abuse & unfair usage โ most free tools get abused by bots and heavy users, degrading experience for genuine students. AptifyAI enforces smart rate limiting so every real student gets a fair, consistent experience
AptifyAI solves all four with AI-generated questions, detailed AI explanations, and a full analytics dashboard that tracks your growth arc.
---
| Feature | Description |
|---|---|
| ๐ง AI Live Question Generation | Fresh unique MCQs every session โ never repeated, powered by OpenRouter |
| โฑ๏ธ Custom Duration Selection | Pick 5, 10, 15, 20, or 30 minutes โ question count adjusts automatically |
| ๐ Progress Analytics Dashboard | Visual improvement arc across all sessions with bar charts and trend graphs |
| โก Real-Time Answer Scoring | Clarity, depth, confidence and accuracy scored after every session |
| ๐ฏ Weak Topic Detection | AI analyzes patterns across sessions and flags exactly what to study next |
| ๐ Streak & Session History | Daily streak tracking + full breakdown of every past session |
| ๐ Dark & Light Mode | Full theme support โ persisted in localStorage, zero hardcoded colors |
| ๐ JWT Authentication | Secure register and login with bcrypt password hashing |
| Exam | Topics Covered |
|---|---|
| NTS | Maths, English, Analytical, GK, IQ |
| GAT | Verbal, Quantitative, Analytical |
| MDCAT | Biology, Chemistry, Physics, English |
| CSS/PMS | Current Affairs, English, General Knowledge, Pakistan Affairs |
Frontend
- React 18 + Vite
- React Router v6
- Axios
- Custom CSS with CSS variables (no Tailwind, no Bootstrap)
- Fonts: Syne + DM Sans + Space Mono
Backend
- Node.js + Express.js
- MongoDB Atlas + Mongoose
- JWT Authentication
- bcrypt password hashing
- express-rate-limit
AI
- OpenRouter API โ
meta-llama/llama-3.3-70b-instruct - Live question generation + answer evaluation + weak topic detection
All endpoints are rate-limited to prevent API abuse:
| Scope | Limit | Status |
|---|---|---|
All /api routes |
100 requests per 15 min | 429 |
/api/auth |
10 requests per 15 min | 429 |
/api/exam/generate |
10 requests per hour | 429 |
- Node.js 18+
- MongoDB Atlas account (free tier works)
- OpenRouter API key (free tier available)
git clone https://github.com/muhammadkhuzaima25/aptifyai.git
cd aptifyaicd server
npm installCreate server/.env:
PORT=5000
MONGO_URI=mongodb+srv://...
JWT_SECRET=your_long_random_secret
OPENROUTER_API_KEY=sk-or-...
OPENROUTER_MODEL=meta-llama/llama-3.3-70b-instruct:free
CLIENT_URL=http://localhost:5173Start backend:
npm run devcd client
npm installCreate client/.env:
VITE_API_URL=http://localhost:5000/apiStart frontend:
npm run devOpen http://localhost:5173 in your browser.
AptifyAI/
โโโ client/ # React + Vite Frontend
โ โโโ public/
โ โโโ src/
โ โ โโโ components/ # Navbar, Footer, Sidebar, ThemeToggle, etc.
โ โ โโโ context/ # AuthContext, ThemeContext, ToastContext
โ โ โโโ hooks/ # useAnimations, useScrollReveal
โ โ โโโ pages/ # Landing, Dashboard, StartExam, ExamRoom, Results, Progress, History, Profile
โ โ โโโ utils/ # api.js, helpers.js
โ โ โโโ index.css # Design system + CSS variables
โ โ โโโ App.jsx
โ โโโ vite.config.js
โ
โโโ server/ # Node + Express Backend
โโโ controllers/ # authController, examController, progressController
โโโ middleware/ # authMiddleware, errorMiddleware
โโโ models/ # User, Session, Progress
โโโ routes/ # authRoutes, examRoutes, progressRoutes
โโโ utils/ # openai.js, examHelpers.js, generateToken.js
โโโ server.js
| Method | Path | Description |
|---|---|---|
| POST | /register | Create new account |
| POST | /login | Login, returns JWT |
| GET | /me | Get current user (protected) |
| PUT | /profile | Update name / target exam |
| PUT | /password | Change password |
| DELETE | /profile | Delete account + all sessions |
| Method | Path | Description |
|---|---|---|
| POST | /generate | Generate fresh AI MCQs |
| POST | /submit | Submit answers, get scores + explanations |
| GET | /history | List all sessions |
| GET | /history/:id | Get single session breakdown |
| Method | Path | Description |
|---|---|---|
| GET | /dashboard | Stats, chart, weak topics, recent sessions |
| GET | /streak | Current streak data |
| GET | /full | Full analytics โ calendar, AI insight, topic performance |
- Voice answer support โ speak your answers instead of typing
- Resume upload โ personalized exam questions based on your CV
- Leaderboard โ compete with other students
- PDF result export โ share your progress report
- Multi-language support โ Urdu interface
- Mobile app โ React Native version
NTS preparation online ยท GAT practice test ยท MDCAT MCQs AI ยท CSS PMS preparation ยท aptitude test Pakistan ยท AI generated MCQs ยท NTS test preparation app ยท GAT test online practice ยท MDCAT biology questions ยท CSS general knowledge MCQs ยท Pakistani exam preparation ยท aptitude test trainer ยท AI quiz generator Pakistan ยท MERN stack AI project ยท progress tracking exam app ยท weak topic detection AI ยท OpenRouter AI app ยท React exam app ยท Node.js quiz API ยท MongoDB exam history ยท Pakistani student app ยท free aptitude test online ยท AI powered MCQ generator ยท NTS GAT MDCAT CSS practice ยท exam improvement tracker
Muhammad Khuzaima
Graphic Designer ยท Logo & Brand Identity Expert ยท UI/UX Designer ยท MERN Stack Developer
All Rights Reserved. Copyright ยฉ 2026 Muhammad Khuzaima.
This project is for viewing and evaluation only. See LICENSE for full terms.
โญ If AptifyAI helped your exam prep or impressed you โ please leave a star!
Built from scratch with real debugging, designing, and grinding.
A star costs nothing but means everything. ๐
