Made byBobr AI

MedhaSpark AI: Personalized Learning with AI-Powered Tutoring

Discover MedhaSpark AI, an open-source platform for personalized learning roadmaps, spaced repetition flashcards, and AI-powered educational content.

#ai-tutoring#personalized-learning#educational-technology#open-source#spaced-repetition#fastapi#artificial-intelligence
Watch
Pitch
VERSION 3.0 | POWERED BY CEREBRAS AI
Logo

MedhaSpark AI

Supercharge Your Learning Journey with an AI-Powered Personalized Tutor

🧠 Personalized Roadmaps
⚑ Spaced Repetition
πŸ€– Multi-AI Fallback
MIT Licensed β€’ Open Source
Made byBobr AI
THE PROBLEM

The Learning Crisis

❌ Students lack personalized learning paths
⚠️ Generic courses ignore individual pace & gaps
❌ Information overload with no structured progression
⚠️ No smart repetition β†’ knowledge fades quickly
❌ Traditional education is one-size-fits-all
Frustrated Student
Made byBobr AI
MedhaSpark Logo
THE SOLUTION

MedhaSpark AI

Your Personal AI Tutor

MedhaSpark AI generates personalized learning roadmaps, spaced-repetition flashcards, AI-powered quizzes, and intelligent content analysis for ANY topic β€” adapting dynamically to YOUR unique learning style, pace, and knowledge gaps.

πŸ—ΊοΈ Personalized Roadmaps
πŸƒ Smart Flashcards
🧩 Adaptive Quizzes
πŸ”¬ AI Content Analysis
Made byBobr AI
CORE FEATURES

7 Powerful Features

πŸ—ΊοΈ
01
AI Learning Roadmaps
πŸƒ
02
Spaced Repetition Flashcards
🧩
03
AI-Powered Quizzes
πŸ”¬
04
AI Studio
πŸ•ΈοΈ
05
Conceptual Weaver
🧠
06
Cognitive Load Modulator
πŸ”
07
Secure Multi-Auth System
Made byBobr AI
FEATURE 01

AI-Generated Learning Roadmaps

Input any topic β†’ get a structured hierarchical learning path
Create from syllabus text or upload files (.txt, .pdf, .docx)
Auto-generates explanations, YouTube videos & exercises per subtopic
Web-enhanced: enriches content with live search results
Track progress: Not Started β†’ In Progress β†’ Completed
AI Roadmap Diagram
Made byBobr AI
ROADMAP FLOW

How Roadmaps Work

πŸ“
Topic Input
πŸ€–
AI Structure Generation
πŸ“š
Subtopic Content
Explanations + Videos + Exercises
🌐
Web Enhancement
Optional live search enrichment
πŸ“Š
Progress Tracking
Not Started β†’ In Progress β†’ Done
Powered by Cerebras AI (2100 tok/s)
Made byBobr AI
FEATURE 02

Spaced Repetition Flashcards

Create manually or AI-generate from any text
SM-2 algorithm optimizes review intervals for maximum retention
Quality ratings (0–5) dynamically adjust ease factor & scheduling
Due date management ensures reviews happen at the right time
Linked to roadmap items and topics for learning context
f(x)
EF' = EF + (0.1 - (5-q)(0.08 + (5-q)Γ—0.02))
Back
Front
?
Made byBobr AI
FEATURE 03

AI-Powered Quizzes

🎯

Two modes: Multiple-Choice (4 options) & Fill-in-the-Blank

πŸ€–

Generated from YOUR learning content for maximum relevance

βœ…

Automatic grading with detailed score tracking

πŸ“š

Full question history stored for later review

⚑

Powered by Cerebras AI at 2100 tokens/second

Quiz Interface
Score: 85%
QUESTION 4

Which of the following neural network architectures is primarily used for sequence-to-sequence tasks like language translation?

A
Convolutional Neural Networks (CNN)
B
Transformer Networks
βœ“
C
Generative Adversarial Networks (GAN)
D
Multilayer Perceptrons (MLP)
Next Question βž”
Made byBobr AI
FEATURE 04

AI Studio

Comprehensive Text Analysis

πŸ”¬
Paste any text β†’ get instant summary & key concept extraction
πŸ§’
ELI5 mode: Explain Like I'm 5 for instant simplification
πŸ’‘
Analogy generation for complex & abstract topics
πŸ“Š
Mermaid diagram generation for visual learners
πŸ’¬
Context-aware Q&A on your analyzed content
AI Studio β€” Analytical Engine
Input Source
Analyzing...
Machine learning systems rely heavily on massive datasets to fine-tune billions of parameters. The goal is to accurately translate complex multidimensional patterns derived from input into generalized rules logic without explicit programming commands. Over time, error rates minimize through backpropagation...

πŸ“ AI Summary

πŸ”‘ Extracted Concepts

Datasets Parameters Backpropagation

πŸ“ˆ Complexity Rating

Advanced
Beginner Expert

πŸ“Š Structure Map

Data
β†’
Model
β†’
Rules
Made byBobr AI
Knowledge Graph
FEATURE 05

Conceptual Weaver

Connect New to Known

πŸ•ΈοΈ
Analyzes new text and maps concepts to YOUR existing knowledge
πŸ“š
Pulls context from your personal roadmaps and flashcards
πŸŒ‰
Generates 'knowledge bridges' explaining new β†’ known connections
πŸ—ΊοΈ
Builds a personalized knowledge graph over time
πŸ”„
The more you learn, the smarter the connections become
Made byBobr AI
Funnel Breaking Down Content
FEATURE 06

Cognitive Load Modulator

Adaptive Learning Made Easy

🧩
Breaks complex content into bite-sized digestible chunks
πŸ‘€
Simplifies for different audience levels: Beginner β†’ Expert
πŸ”
Dynamically identifies prerequisite concepts
πŸ’­
Adds reflection prompts, summaries & visual diagrams
🎬
Suggests video topics for visual reinforcement
Made byBobr AI
TECH ARCHITECTURE

System Architecture

πŸ’» HTML/CSS/JS + Jinja2 Templates
↓
⚑ FastAPI (Async Python)
↓
πŸ€– AI Providers: Cerebras / Groq / Gemini
External APIs: YouTube + Serper + Tavily
↓
πŸ—„οΈ SQLAlchemy Async ORM β†’ PostgreSQL (prod) / SQLite (dev)
↓
πŸ”’ Firebase Admin SDK + Google OAuth + JWT
FastAPI
FastAPI
SQLAlchemy
SQLAlchemy
PostgreSQL
PostgreSQL
Firebase
Firebase
Cerebras
Cerebras AI
Made byBobr AI
AI PROVIDER SYSTEM

Multi-AI Fallback Architecture

API Request
PRIMARY 2100 tok/s
πŸš€ Cerebras AI
FAILOVER
FALLBACK ⚑ Groq
FAILOVER
FALLBACK πŸ€– Gemini
βœ… Response
⏱️ Auto-failover on rate limits
🧠 In-memory cooldown tracking
πŸ”Œ OpenAI-compatible API format
πŸ“¦ Cerebras SDK + HTTP fallback
Made byBobr AI
TECH STACK

Technology Stack

βš™οΈ Backend
Python 3.10+ FastAPI SQLAlchemy 2.0 (async) PostgreSQL SQLite
πŸ” Auth & Security
Firebase Admin SDK Google OAuth JWT (python-jose) bcrypt
πŸš€ Infrastructure
Render.com Gunicorn Uvicorn Health Checks
πŸ€– AI / ML
Cerebras AI Groq Gemini httpx cerebras_cloud_sdk
🧰 Utilities & Extras
BeautifulSoup4 pypdf python-docx Mermaid.js YouTube API Serper API Tavily API
Made byBobr AI
DATABASE DESIGN

Data Models

πŸ‘€ User
> id > email > firebase_uid > profile
πŸ—ΊοΈ LearningRoadmap
> topic > json_structure > content
πŸƒ Flashcard
> ease_factor > interval_days > due_at
πŸ“ QuizAttempt
> quiz_data > score > timestamp
πŸ“Œ Topic
> title > description > user_id
πŸ’Ύ SavedResource
> url > type > topic_id
πŸ’‘ CodingSuggestion
> code > language > context
πŸ“Š UserActivityLog
> action > timestamp > metadata
πŸ““ UserNote
> content > roadmap_id > created_at
9
Core Models
✦ Async SQLAlchemy 2.0
Made byBobr AI
SECURITY

Security & Best Practices

XSS, clickjacking & MIME sniffing prevention headers
SSRF protection: URL validation + private IP blocking
CORS restricted to known origins β€” no wildcard + credentials
JWT with configurable expiration + bcrypt password hashing
Environment validation at startup with clear error reporting
Security headers middleware applied on every single response
Security Shield
Made byBobr AI
DEPLOYMENT

Production Deployment

πŸš€ Deployed on Render.com (Python runtime)
βš™οΈ Gunicorn + Uvicorn workers for async production serving
🐘 PostgreSQL via Aiven with SSL certificate support
πŸ’š Health check endpoint at /health
πŸ”§ Environment-based config: development vs production
πŸ“– Auto-generated API docs at /docs (dev only)
🌐 Internet
☁️
Render.com Hosting Platform
βš™οΈ
Gunicorn + Uvicorn Process Manager
⚑
FastAPI App Application Core
🐘
Aiven PostgreSQL Managed Database
Made byBobr AI
API REFERENCE

RESTful API β€” 25+ Endpoints

πŸ” AUTH ENDPOINTS
POST /register
POST /token
POST /auth/google
POST /auth/firebase/token
πŸ‘€ USERS ENDPOINTS
GET /users/me
GET /users/me/focus
GET /users/me/stats
πŸ—ΊοΈ ROADMAPS ENDPOINTS
POST /roadmaps
POST /roadmaps/from-syllabus
POST /roadmaps/from-file
GET PATCH DELETE /roadmaps/{id}
πŸƒ FLASHCARDS ENDPOINTS
POST GET DELETE /flashcards
POST /flashcards/review
GET /flashcards/due
GET /flashcards/count
πŸ€– AI ENDPOINTS
POST /ai/explain-topic
POST /ai/generate-flashcards
POST /ai/generate-quiz
πŸ”¬ ADVANCED AI ENDPOINTS
POST /ai-studio/analyze
POST /conceptual-weaver/analyze
POST /cognitive-modulator/analyze
25+ endpoints β€’ Full OpenAPI docs β€’ JWT authenticated
Made byBobr AI
PROJECT STRUCTURE
Modular Codebase
Clean separation of concerns
πŸ“ medhaspark-ai/
β”œβ”€β”€ πŸ“ config/ β†’ Settings & env config
β”œβ”€β”€ πŸ“ core/ β†’ Database, auth, security
β”œβ”€β”€ πŸ“ routes/ β†’ API endpoint handlers
β”œβ”€β”€ πŸ“ services/ β†’ Business logic layer
β”œβ”€β”€ πŸ“ utils/ β†’ Helper functions
β”œβ”€β”€ πŸ“ html_pages/ β†’ Jinja2 templates
β”œβ”€β”€ πŸ“ static/ β†’ CSS, JS, images
β”œβ”€β”€ πŸ“„ main.py β†’ App entry point
└── πŸ“„ requirements.txt
πŸ—οΈ
Layered Architecture
Clear separation between routing, logic, and data access layers.
πŸ”Œ
Dependency Injection
Enhances testability and promotes loose coupling between components.
⚑
Async First
Leverages non-blocking I/O for high-performance concurrent processing.
πŸ”’
Security by Default
Built-in protection against vulnerabilities with strict validation guidelines.
πŸ“
Type-Safe APIs
Ensures strictly typed data exchange with comprehensive schemas.
πŸ§ͺ
Environment Aware
Seamless configuration management across local, dev, and production.
Made byBobr AI
v3.0
Logo

MedhaSpark AI

Learn Smarter, Not Harder

Built with ❀️ for learners everywhere

7
AI Features
25+
API Endpoints
9
Data Models
3
AI Providers
MIT
Licensed
πŸ”— github.com/yourusername/Medha-Spark-AI
⭐ Contributions Welcome!
Made byBobr AI
Bobr AI

DESIGNER-MADE
PRESENTATION,
GENERATED FROM
YOUR PROMPT

Create your own professional slide deck with real images, data charts, and unique design in under a minute.

Generate For Free

MedhaSpark AI: Personalized Learning with AI-Powered Tutoring

Discover MedhaSpark AI, an open-source platform for personalized learning roadmaps, spaced repetition flashcards, and AI-powered educational content.

VERSION 3.0 | POWERED BY CEREBRAS AI

MedhaSpark AI

Supercharge Your Learning Journey with an AI-Powered Personalized Tutor

Personalized Roadmaps

Spaced Repetition

Multi-AI Fallback

MIT Licensed β€’ Open Source

THE PROBLEM

The Learning Crisis

❌

Students lack personalized learning paths

⚠️

Generic courses ignore individual pace & gaps

❌

Information overload with no structured progression

⚠️

No smart repetition β†’ knowledge fades quickly

❌

Traditional education is one-size-fits-all

THE SOLUTION

MedhaSpark AI

Your Personal AI Tutor

MedhaSpark AI generates personalized learning roadmaps, spaced-repetition flashcards, AI-powered quizzes, and intelligent content analysis for ANY topic β€” adapting dynamically to YOUR unique learning style, pace, and knowledge gaps.

πŸ—ΊοΈ

Personalized Roadmaps

πŸƒ

Smart Flashcards

🧩

Adaptive Quizzes

πŸ”¬

AI Content Analysis

CORE FEATURES

7 Powerful Features

πŸ—ΊοΈ

#3776AB

AI Learning Roadmaps

πŸƒ

#7C3AED

Spaced Repetition Flashcards

🧩

#06B6D4

AI-Powered Quizzes

πŸ”¬

#4F46E5

AI Studio

πŸ•ΈοΈ

#8B5CF6

Conceptual Weaver

🧠

#3776AB

Cognitive Load Modulator

πŸ”

#475569

Secure Multi-Auth System

FEATURE 01

AI-Generated Learning Roadmaps

Input any topic β†’ get a structured hierarchical learning path

Create from syllabus text or upload files (.txt, .pdf, .docx)

Auto-generates explanations, YouTube videos & exercises per subtopic

Web-enhanced: enriches content with live search results

Track progress: Not Started β†’ In Progress β†’ Completed

ROADMAP FLOW

How Roadmaps Work

πŸ“

Topic Input

πŸ€–

AI Structure Generation

πŸ“š

Subtopic Content

Explanations + Videos + Exercises

🌐

Web Enhancement

Optional live search enrichment

πŸ“Š

Progress Tracking

Not Started β†’ In Progress β†’ Done

Powered by Cerebras AI (2100 tok/s)

FEATURE 02

Spaced Repetition Flashcards

Create manually or AI-generate from any text

SM-2 algorithm optimizes review intervals for maximum retention

Quality ratings (0–5) dynamically adjust ease factor & scheduling

Due date management ensures reviews happen at the right time

Linked to roadmap items and topics for learning context

EF' = EF + (0.1 - (5-q)(0.08 + (5-q)Γ—0.02))

FEATURE 03

AI-Powered Quizzes

Two modes: Multiple-Choice (4 options) & Fill-in-the-Blank

Generated from YOUR learning content for maximum relevance

Automatic grading with detailed score tracking

Full question history stored for later review

Powered by Cerebras AI at 2100 tokens/second

🎯

πŸ€–

βœ…

πŸ“š

⚑

Which of the following neural network architectures is primarily used for sequence-to-sequence tasks like language translation?

Convolutional Neural Networks (CNN)

Transformer Networks

Generative Adversarial Networks (GAN)

Multilayer Perceptrons (MLP)

FEATURE 04

AI Studio

Comprehensive Text Analysis

Paste any text β†’ get instant summary & key concept extraction

ELI5 mode: Explain Like I'm 5 for instant simplification

Analogy generation for complex & abstract topics

Mermaid diagram generation for visual learners

Context-aware Q&A on your analyzed content

FEATURE 05

Conceptual Weaver

Connect New to Known

πŸ•ΈοΈ

Analyzes new text and maps concepts to YOUR existing knowledge

πŸ“š

Pulls context from your personal roadmaps and flashcards

πŸŒ‰

Generates 'knowledge bridges' explaining new β†’ known connections

πŸ—ΊοΈ

Builds a personalized knowledge graph over time

πŸ”„

The more you learn, the smarter the connections become

FEATURE 06

Cognitive Load Modulator

Adaptive Learning Made Easy

Breaks complex content into bite-sized digestible chunks

Simplifies for different audience levels: Beginner β†’ Expert

Dynamically identifies prerequisite concepts

Adds reflection prompts, summaries & visual diagrams

Suggests video topics for visual reinforcement

System Architecture

TECH ARCHITECTURE

HTML/CSS/JS + Jinja2 Templates

FastAPI (Async Python)

AI Providers: Cerebras / Groq / Gemini

External APIs: YouTube + Serper + Tavily

SQLAlchemy Async ORM β†’ PostgreSQL (prod) / SQLite (dev)

Firebase Admin SDK + Google OAuth + JWT

AI PROVIDER SYSTEM

Multi-AI Fallback Architecture

API Request

πŸš€ Cerebras AI

PRIMARY

2100 tok/s

⚑ Groq

FALLBACK

πŸ€– Gemini

FALLBACK

βœ… Response

FAILOVER

⏱️

Auto-failover on rate limits

🧠

In-memory cooldown tracking

πŸ”Œ

OpenAI-compatible API format

πŸ“¦

Cerebras SDK + HTTP fallback

TECH STACK

Technology Stack

βš™οΈ Backend

πŸ” Auth & Security

πŸš€ Infrastructure

πŸ€– AI / ML

🧰 Utilities & Extras

Python 3.10+

FastAPI

SQLAlchemy 2.0 (async)

PostgreSQL

SQLite

Firebase Admin SDK

Google OAuth

JWT (python-jose)

bcrypt

Render.com

Gunicorn

Uvicorn

Health Checks

Cerebras AI

Groq

Gemini

httpx

cerebras_cloud_sdk

BeautifulSoup4

pypdf

python-docx

Mermaid.js

YouTube API

Serper API

Tavily API

DATABASE DESIGN

Data Models

πŸ‘€

User

> id > email > firebase_uid > profile

πŸ—ΊοΈ

LearningRoadmap

> topic > json_structure > content

πŸƒ

Flashcard

> ease_factor > interval_days > due_at

πŸ“

QuizAttempt

> quiz_data > score > timestamp

πŸ“Œ

Topic

> title > description > user_id

πŸ’Ύ

SavedResource

> url > type > topic_id

πŸ’‘

CodingSuggestion

> code > language > context

πŸ“Š

UserActivityLog

> action > timestamp > metadata

πŸ““

UserNote

> content > roadmap_id > created_at

9

Core Models

Async SQLAlchemy 2.0

SECURITY

Security & Best Practices

XSS, clickjacking & MIME sniffing prevention headers

SSRF protection: URL validation + private IP blocking

CORS restricted to known origins β€” no wildcard + credentials

JWT with configurable expiration + bcrypt password hashing

Environment validation at startup with clear error reporting

Security headers middleware applied on every single response

DEPLOYMENT

Production Deployment

Deployed on Render.com (Python runtime)

Gunicorn + Uvicorn workers for async production serving

PostgreSQL via Aiven with SSL certificate support

Health check endpoint at /health

Environment-based config: development vs production

Auto-generated API docs at /docs (dev only)

Internet

Render.com

Gunicorn + Uvicorn

FastAPI App

Aiven PostgreSQL

API REFERENCE

RESTful API β€” 25+ Endpoints

πŸ” AUTH ENDPOINTS

/register

/token

/auth/google

/auth/firebase/token

πŸ‘€ USERS ENDPOINTS

/users/me

/users/me/focus

/users/me/stats

πŸ—ΊοΈ ROADMAPS ENDPOINTS

/roadmaps

/roadmaps/from-syllabus

/roadmaps/from-file

/roadmaps/{id}

πŸƒ FLASHCARDS ENDPOINTS

/flashcards

/flashcards/review

/flashcards/due

/flashcards/count

πŸ€– AI ENDPOINTS

/ai/explain-topic

/ai/generate-flashcards

/ai/generate-quiz

πŸ”¬ ADVANCED AI ENDPOINTS

/ai-studio/analyze

/conceptual-weaver/analyze

/cognitive-modulator/analyze

25+ endpoints β€’ Full OpenAPI docs β€’ JWT authenticated

PROJECT STRUCTURE

Modular Codebase

Clean separation of concerns

medhaspark-ai/

Settings & env config

Database, auth, security

API endpoint handlers

Business logic layer

Helper functions

Jinja2 templates

CSS, JS, images

App entry point

πŸ—οΈ

Layered Architecture

Clear separation between routing, logic, and data access layers.

πŸ”Œ

Dependency Injection

Enhances testability and promotes loose coupling between components.

⚑

Async First

Leverages non-blocking I/O for high-performance concurrent processing.

πŸ”’

Security by Default

Built-in protection against vulnerabilities with strict validation guidelines.

πŸ“

Type-Safe APIs

Ensures strictly typed data exchange with comprehensive schemas.

πŸ§ͺ

Environment Aware

Seamless configuration management across local, dev, and production.

MedhaSpark AI

Learn Smarter, Not Harder

Built with ❀️ for learners everywhere

7

AI Features

25+

API Endpoints

9

Data Models

3

AI Providers

MIT

Licensed

github.com/yourusername/Medha-Spark-AI

⭐ Contributions Welcome!

v3.0