How ab3lt/research-paper-assistant-rag-frontend works
This is a React research-paper assistant frontend: users register or sign in, upload and manage papers, then view AI analysis or ask questions about a selected paper. The app routes and protects pages, while hooks hold paper, analysis, and chat state and delegate API operations to a shared HTTP client. The backend is external to this repository. The README is only a Vite template; capabilities and connections below are based on sampled UI/source references, not inspected backend behavior.
Main entry points: App.jsx Routes and guards · PaperDetail.jsx Paper detail page · Dashboard.jsx Paper dashboard · api.js HTTP API client
Components 15
App and navigation
- Routes and guards
src/App.jsx - Page layout
src/components/Layout.jsx - Navigation bar
src/components/Navbar.jsx - HTTP API client
src/services/api.js
Account access
- Login and register
src/pages - Authentication state
src/context/AuthContext.jsx
Paper management
- Paper dashboard
src/pages/Dashboard.jsx - File upload
src/components/FileUpload.jsx - Paper cards
src/components/PaperCard.jsx - Paper data hooks
src/hooks/usePapers.js
Analysis and chat
- Paper detail page
src/pages/PaperDetail.jsx - Analysis display
src/components/AnalysisView.jsx - Paper Q&A
src/components/ChatInterface.jsx
Other components
- Researcher
- Research API
Connections 18
- Researcher → Routes and guards: opens app
- Routes and guards → Login and register: routes to
src/App.jsx - Routes and guards → Page layout: renders
src/App.jsx - Routes and guards → Paper dashboard: routes to
src/App.jsx - Routes and guards → Paper detail page: routes to
src/App.jsx - Login and register → Authentication state: uses auth
src/pages/Register.jsx - Authentication state → HTTP API client: requests auth
src/context/AuthContext.jsx - Page layout → Navigation bar: renders
src/components/Layout.jsx - Navigation bar → Authentication state: uses auth
src/components/Navbar.jsx - Paper dashboard → Paper data hooks: loads papers
src/pages/Dashboard.jsx - Paper dashboard → File upload: renders
src/pages/Dashboard.jsx - Paper dashboard → Paper cards: renders
src/pages/Dashboard.jsx - Paper data hooks → HTTP API client: requests papers
src/hooks/usePapers.js - Paper detail page → Paper data hooks: loads paper data
src/pages/PaperDetail.jsx - Paper detail page → Analysis display: renders
src/pages/PaperDetail.jsx - Paper detail page → Paper Q&A: renders
src/pages/PaperDetail.jsx - Paper detail page → HTTP API client: deletes paper
src/pages/PaperDetail.jsx - HTTP API client → Research API: sends HTTP requests
src/services/api.js