How pranavi1605/echoinsight works
Echo-Insight is a research-paper assistant with a React client and an Express API. A signed-in user uploads a PDF; the server extracts and stores its text, which can then drive podcast generation, highlights, Q&A, and quizzes. The client also provides saved-file, voice, and account/settings experiences. The graph includes the documented route wiring and sampled controller/service calls; API-client transport details and several unsampled feature implementations are not shown, so their internal links are omitted.
Main entry points: App.jsx Client router · authMiddleware.js JWT protection · app.js Express app · api.js API client
Components 33
Client experience
- Client router
client/src/App.jsx - Home
client/src/pages/Home.jsx - Dashboard
client/src/pages/Dashboard.jsx - Paper library
client/src/pages/MyFiles.jsx - Podcast studio
client/src/pages/PodcastPage.jsx - Highlights
client/src/pages/HighlightsPage.jsx - Paper Q&A
client/src/pages/QAPage.jsx - Voice lab
client/src/pages/VoiceLab.jsx - Settings
client/src/pages/Settings.jsx - API client
client/src/services/api.js
Identity and access
- Auth state
client/src/context/AuthContext.jsx - Auth service
client/src/services/authService.js - Protected routes
client/src/routes/ProtectedRoute.jsx - JWT protection
server/middleware/authMiddleware.js
API and processing
- Express app
server/app.js - PDF routes
server/routes/pdfRoutes.js - PDF handling
server/controllers/pdfController.js - PDF extraction
server/services/pdfService.js - Podcast routes
server/routes/podcastRoutes.js - Podcast generation
server/controllers/podcastController.js - Highlight routes
server/routes/highlightRoutes.js - Highlight generation
server/controllers/highlightController.js - Q&A routes
server/routes/qaRoutes.js - Q&A handling
server/controllers/qaController.js - Quiz routes
server/routes/quizRoutes.js - Quiz generation
server/controllers/quizController.js
Data and integrations
- AI service
server/services/aiService.js - Quiz service
server/services/quizService.js - Paper records
server/models/Paper.js - Podcast records
server/models/Podcast.js - User records
server/models/User.js
Other components
- User
- Groq API
Connections 46
- User → Client router: uses
- Client router → Auth state: provides auth
client/src/App.jsx - Client router → Protected routes: guards pages
client/src/App.jsx - Client router → Home: routes to
client/src/App.jsx - Client router → Dashboard: routes to
client/src/App.jsx - Client router → Paper library: routes to
client/src/App.jsx - Client router → Podcast studio: routes to
client/src/App.jsx - Client router → Highlights: routes to
client/src/App.jsx - Client router → Paper Q&A: routes to
client/src/App.jsx - Client router → Voice lab: routes to
client/src/App.jsx - Client router → Settings: routes to
client/src/App.jsx - Auth state → Auth service: calls
client/src/context/AuthContext.jsx - Auth service → API client: uses
client/src/services/authService.js - Paper library → API client: requests data
client/src/pages/MyFiles.jsx - Podcast studio → API client: requests generation
client/src/pages/PodcastPage.jsx - Highlights → API client: requests highlights
client/src/pages/HighlightsPage.jsx - Paper Q&A → API client: requests answers
client/src/pages/QAPage.jsx - Express app → PDF routes: mounts routes
server/app.js - Express app → Podcast routes: mounts routes
server/app.js - Express app → Highlight routes: mounts routes
server/app.js - Express app → Q&A routes: mounts routes
server/app.js - Express app → Quiz routes: mounts routes
server/app.js - PDF routes → PDF handling: dispatches
server/routes/pdfRoutes.js - PDF handling → PDF extraction: extracts text
server/controllers/pdfController.js - PDF handling → Paper records: creates and reads
server/controllers/pdfController.js - Podcast routes → Podcast generation: dispatches
server/routes/podcastRoutes.js - Podcast routes → Podcast records: lists records
server/routes/podcastRoutes.js - Podcast generation → Paper records: loads paper
server/controllers/podcastController.js - Podcast generation → AI service: generates script
server/controllers/podcastController.js - Podcast generation → Podcast records: creates record
server/controllers/podcastController.js - Highlight routes → Highlight generation: dispatches
server/routes/highlightRoutes.js - Highlight generation → Paper records: loads paper
server/controllers/highlightController.js - Highlight generation → AI service: generates highlights
server/controllers/highlightController.js - Q&A routes → Q&A handling: dispatches
server/routes/qaRoutes.js - Q&A handling → Paper records: loads paper
server/controllers/qaController.js - Q&A handling → AI service: answers question
server/controllers/qaController.js - Quiz routes → Quiz generation: dispatches
server/routes/quizRoutes.js - Quiz generation → Paper records: loads paper
server/controllers/quizController.js - Quiz generation → Quiz service: generates quiz
server/controllers/quizController.js - AI service → Groq API: calls model
server/services/aiService.js - JWT protection → User records: loads user
server/middleware/authMiddleware.js - PDF routes → JWT protection: protects upload
server/routes/pdfRoutes.js - Podcast routes → JWT protection: protects endpoints
server/routes/podcastRoutes.js - Highlight routes → JWT protection: protects endpoints
server/routes/highlightRoutes.js - Q&A routes → JWT protection: protects endpoints
server/routes/qaRoutes.js - Quiz routes → JWT protection: protects endpoints
server/routes/quizRoutes.js