Study Buddy is a sophisticated, AI-integrated educational platform designed to bridge the gap between assessment and improvement. Built on a modern tech stack, it provides students with a seamless coding environment, real-time performance analytics, and a "Smart Practice" engine that adapts to their unique learning curve.
- Vedam Merit Scores: Track normalized performance across Maths, Java, and Web.
- Dynamic Milestones: Hard-coded logic for Innovation Eligibility (60%) and Placement Eligibility (75%).
- Historical Trends: AI-generated reports that synthesize past performance into actionable insights.
- Monaco-Powered Editor: A premium, VS-Code style coding interface.
- Piston Integration: Real-time code execution and automated test case validation.
- AI Feedback Loop: Instant, hyper-detailed evaluation of submissions, identifying strengths, weaknesses, and optimization paths.
- Weighted Topic Probability: Our practice generator doesn't just pick random questions; it uses a weighted algorithm based on Topic Frequency (ImpTopics) and Student Weaknesses.
- On-Demand Quizzes: AI-generated MCQ quizzes for any topic, with difficulty spanning Easy to Hard.
Study Buddy utilizes a decoupled architecture where the frontend interacts with specialized micro-services via Firebase and AI layers.
graph TD
A[Student Browser] -->|Auth| B(Firebase Auth)
A -->|Data Sync| C(Cloud Firestore)
A -->|Code Execution| D(Piston API)
A -->|AI Insights| E(Gemini 2.0 AI)
subgraph Services Layer
E -->|Evaluates| F[Code Submission]
E -->|Generates| G[Custom Quizzes]
E -->|Analyzes| H[Merit Trends]
end
C -->|Stores| I[(Student Records)]
C -->|Stores| J[(Contest Library)]
C -->|Updates| K[(Topic Analytics)]
When a student submits code, a complex multi-stage process is triggered:
- Code Validation: Piston runs the code against hard test cases.
- AI Heuristics: The
evaluateCodeSubmissionservice analyzes the code structure and efficiency. - Topic Mapping: AI maps the submission to specific curriculum topics (e.g., Recursion, Arrays).
- Strength Updating:
upsertTopicAnalyticscalculates new strength ratings (Weak → Strong). - Gap Filling: AI generates 5-10 tailored practice questions to address identified weaknesses.
Study Buddy provides a powerful Admin Panel for mentors to manage contests and process bulk results efficiently.
Mentors can upload hundreds of results using our optimized JSON intake system.
{
"contestTitle": "Java Loops Mastery",
"difficulty": "medium",
"questions": [
{
"title": "Nested Triangle Pattern",
"description": "Output a triangle of height N...",
"expectedSolution": "public class Solution...",
"testCases": [{"input": "5", "expectedOutput": "*\n**..."}]
}
]
}{
"contestId": "target_id",
"submissions": [
{ "studentEmail": "student@vedamsot.org", "questionNumber": 1, "code": "..." }
]
}| Component | Technology | Role |
|---|---|---|
| Frontend | React 18 / Vite | Core framework and HMR |
| Logic | Javascript (ESM) | Complex service implementations |
| Styles | Custom Vanilla CSS | Premium dark-gold theme |
| Database | Firebase Firestore | Real-time NoSQL storage |
| Auth | Firebase Auth | Domain-restricted SSO (@vedamsot.org) |
| AI | Gemini 2.0 / CursorAI | Reasoning engine for quizes/evals |
| Editor | Monaco Editor | The core IDE experience |
- Environment Sync:
Ensure
VITE_ALLOWED_EMAIL_DOMAINis set to secure your student portal. - Service Init:
Check
src/services/firestore.jsfor base collection initialization logic. - Build Optimization:
npm install npm run build # For production assets npm run dev # For local development
- 📖 Database Structure: Every collection and index explained.
- 📖 JSON Format Guide: Master the admin data intake.
© 2026 Vedam School of Technology. All rights reserved.
