How xeinashawkat/scientific-literature-review-assistant works
AURORA turns a literature-review query into retrieved papers, a research brief, and a generated review, then exposes the run and its trace in a dashboard. The principal path is frontend → Express run API → FastAPI/LangGraph orchestrator → research and writer agents → persisted result and frontend views. The README documents RAG/MCP retrieval, metrics, logging, A2A, and MongoDB capabilities; unsampled implementations are represented at their existing directory paths. Edges are limited to README claims and shown or indexed references; the full data wiring for several dashboard and persistence features was not sampled.
Main entry points: server.js Express API · Search.jsx Query and results · orchestrator.py LangGraph controller · logger_registry.py Logger registry
Components 26
Dashboard
- React app
apps/frontend/src/App.jsx - Query and results
apps/frontend/src/pages/Search.jsx - Pipeline progress
apps/frontend/src/components/PipelineProgress.jsx - Review report
apps/frontend/src/components/Report.jsx - Run analytics
apps/frontend/src/components/AnalyticsPage.jsx - Trace fetch
apps/frontend/src/hooks/useTrace.js - Auth state
apps/frontend/src/context/AuthContext.jsx - Auth client
apps/frontend/src/services/authService.js
API and persistence
- Express API
apps/backend/src/server.js - Auth routes
apps/backend/src/routes/authRoutes.js - Auth handlers
apps/backend/src/controllers/authController.js - MongoDB
apps/backend/src/config/db.js - Run records
apps/backend/src/models - Paper results
apps/backend/src/models/paper.js - Review outputs
apps/backend/src/models/AIOutput.js - Metrics records
apps/backend/src/models/metrics.js
AI workflow
- LangGraph controller
apps/AI/graph/orchestrator.py - Research agent
apps/AI/agents/research_agent.py - Writer agent
apps/AI/agents/writer_agent.py - MCP retrieval tools
apps/AI/mcp/server.py - A2A message schema
apps/AI/a2a/schemas.py - Agent registry
apps/AI/a2a/registry.py
Run trace
- Run logging
apps/AI/utils/logger.py - Logger registry
apps/AI/utils/logger_registry.py - API metrics tracker
apps/AI/utils/api_tracker.py
Other components
- Literature reviewer
Connections 34
- Literature reviewer → React app: submits query
README.md - React app → Query and results: routes to
apps/frontend/src/App.jsx - Query and results → Express API: starts run
apps/frontend/src/pages/Search.jsx - Express API → LangGraph controller: requests pipeline
apps/backend/src/server.js - LangGraph controller → Research agent: requests research
apps/AI/graph/orchestrator.py - LangGraph controller → Writer agent: requests writing
apps/AI/graph/orchestrator.py - Research agent → MCP retrieval tools: calls tools
apps/AI/agents/research_agent.py - Research agent → A2A message schema: creates message
apps/AI/agents/research_agent.py - LangGraph controller → A2A message schema: validates message
- Writer agent → A2A message schema: consumes message
apps/AI/agents/writer_agent.py - LangGraph controller → Agent registry: reads agent cards
apps/AI/graph/orchestrator.py - LangGraph controller → Logger registry: gets logger
apps/AI/graph/orchestrator.py - Research agent → Logger registry: gets logger
apps/AI/agents/research_agent.py - Writer agent → Logger registry: gets logger
apps/AI/agents/writer_agent.py - Logger registry → Run logging: creates logger
apps/AI/utils/logger_registry.py - Writer agent → API metrics tracker: tracks API use
apps/AI/agents/writer_agent.py - API metrics tracker → Logger registry: gets logger
apps/AI/utils/api_tracker.py - Express API → Run records: writes run state
apps/backend/src/server.js - Express API → MongoDB: connects
apps/backend/src/server.js - Express API → Query and results: returns run data
- Query and results → Trace fetch: loads trace
apps/frontend/src/pages/Search.jsx - Query and results → Pipeline progress: renders status
apps/frontend/src/pages/Search.jsx - Query and results → Review report: renders report
apps/frontend/src/pages/Search.jsx - Query and results → Run analytics: renders analytics
apps/frontend/src/pages/Search.jsx - React app → Auth routes: offers auth pages
apps/frontend/src/App.jsx - Auth routes → Auth handlers: routes requests
apps/backend/src/routes/authRoutes.js - Auth client → Auth routes: posts credentials
apps/frontend/src/services/authService.js - Auth state → Auth client: stores auth result
- Express API → Paper results: persists papers
README.md - Express API → Review outputs: persists outputs
README.md - Express API → Metrics records: persists metrics
README.md - MongoDB → Paper results: stores
README.md - MongoDB → Review outputs: stores
README.md - MongoDB → Metrics records: stores
README.md