How rehan0018/edufeedia works
Edufeedia is a student learning platform for ages 10–17. Students authenticate, receive a personalized study feed, explore lessons, ask a Socratic tutor, and complete quizzes and revision; teachers and guardians have separate oversight workflows. Content is verified and screened before it can enter the learning catalog. The graph combines documented product stages with source-index relationships and excerpted calls. Several router implementations and learning subsystems were not sampled, so their internal connections are omitted or shown only where the README documents them.
Main entry points: main.py FastAPI gateway · App.jsx Learning app · pipeline.py Content ingestion · api.js API client
Components 32
Student and staff client
- Learning app
frontend/src/App.jsx - Authentication UI
frontend/src/components/AuthScreen.jsx - Study interfaces
frontend/src/components/DailyPlanFeed.jsx - Tutor chat
frontend/src/components/SocraticTutorChat.jsx - Teacher dashboard
frontend/src/components/TeacherDashboard.jsx
API and access
- API client
frontend/src/services/api.js - FastAPI gateway
backend/app/main.py - Authentication routes
backend/app/routers/auth.py - Learning routes
backend/app/routers/student.py - Quiz and recall routes
backend/app/routers/quiz.py - Tutor routes
backend/app/routers/tutor.py - Ingestion routes
backend/app/routers/ingestion.py - Teacher routes
backend/app/routers/teacher.py - Application database
backend/app/models/models.py
Content lifecycle
- Content ingestion
backend/app/ingestion/pipeline.py - Source verification
backend/app/ingestion/source_verifier.py - Metadata extraction
backend/app/ingestion/metadata_extractor.py - Content embeddings
backend/app/embeddings/embedder.py
Learning and personalization
- Hybrid RAG
backend/app/ai/rag_engine.py - Model gateway
backend/app/ai/llm_client.py - Socratic policy
backend/app/ai/socratic_policy.py - Mastery and SM-2
backend/app/core/mastery_engine.py - Feed recommender
backend/app/recommender/hybrid.py
Safety and oversight
- Safety engine
backend/app/safety/engine.py - Ingestion screening
backend/app/safety/ingestion_pipeline.py - Privacy routes
backend/app/routers/privacy.py - Guardian consent
backend/app/core/consent_service.py - Redis sessions
backend/app/core/redis_client.py
Other components
- Student
- Teacher
- Guardian
- AI providers
Connections 43
- Student → Learning app: uses
- Teacher → Teacher dashboard: reviews class
- Guardian → Learning app: uses
- Learning app → Authentication UI: renders
frontend/src/App.jsx - Learning app → Study interfaces: renders
frontend/src/App.jsx - Learning app → Tutor chat: renders
frontend/src/App.jsx - Learning app → Teacher dashboard: renders
frontend/src/App.jsx - Learning app → API client: fetches feed
frontend/src/App.jsx - Authentication UI → API client: authenticates
frontend/src/components/AuthScreen.jsx - Study interfaces → API client: loads study data
frontend/src/services/api.js - Tutor chat → API client: sends questions
frontend/src/services/api.js - Teacher dashboard → API client: loads analytics
frontend/src/services/api.js - API client → FastAPI gateway: calls API
frontend/src/services/api.js - FastAPI gateway → Authentication routes: mounts routes
backend/app/main.py - FastAPI gateway → Learning routes: mounts routes
backend/app/main.py - FastAPI gateway → Quiz and recall routes: mounts routes
backend/app/main.py - FastAPI gateway → Tutor routes: mounts routes
backend/app/main.py - FastAPI gateway → Ingestion routes: mounts routes
backend/app/main.py - FastAPI gateway → Teacher routes: mounts routes
backend/app/main.py - FastAPI gateway → Privacy routes: mounts routes
backend/app/main.py - Ingestion routes → Content ingestion: invokes pipeline
backend/app/routers/ingestion.py - Content ingestion → Source verification: verifies source
backend/app/ingestion/pipeline.py - Content ingestion → Metadata extraction: extracts metadata
backend/app/ingestion/pipeline.py - Content ingestion → Safety engine: screens content
backend/app/ingestion/pipeline.py - Content ingestion → Content embeddings: creates embeddings
backend/app/ingestion/pipeline.py - Content ingestion → Application database: persists content
backend/app/ingestion/pipeline.py - Ingestion screening → Safety engine: audits content
backend/app/safety/ingestion_pipeline.py - Hybrid RAG → Content embeddings: embeds chunks
backend/app/ai/rag_engine.py - Hybrid RAG → Application database: retrieves chunks
backend/app/ai/rag_engine.py - Hybrid RAG → Model gateway: requests guidance
backend/app/ai/rag_engine.py - Hybrid RAG → Socratic policy: audits response
backend/app/ai/rag_engine.py - Model gateway → Safety engine: audits output
backend/app/ai/llm_client.py - Model gateway → AI providers: queries providers
- Tutor routes → Hybrid RAG: serves tutoring
- Quiz and recall routes → Mastery and SM-2: updates repetition
- Learning routes → Feed recommender: serves study feed
- Feed recommender → Application database: reads learning data
backend/app/recommender/hybrid.py - Feed recommender → Safety engine: checks candidates
backend/app/recommender/hybrid.py - Teacher routes → Application database: reads class data
- Privacy routes → Guardian consent: handles consent
- Authentication routes → Redis sessions: revokes sessions
backend/app/routers/auth.py - Authentication routes → Application database: reads and writes users
backend/app/routers/auth.py - Mastery and SM-2 → Application database: persists mastery
backend/app/core/mastery_engine.py