How manohark98/synthenote works
Main Components
a. Frontend (React SPA)
• Runs in the user’s browser
• Components: PDFUploader, TextEditor, SavedTexts
b. Backend (Python service)
• Exposes HTTP endpoints (e.g., /upload, /summarize, /notes)
• Implements business logic in app.py/main.py
c. Persistence Layer
• Local file storage (backend/saved_texts/*.txt)
d. External AI Service
• OpenAI (or similar) API for text summarization
Relationships & Data Flows
• Browser → Frontend SPA
• User clicks “Upload PDF” in PDFUploader
• Frontend → Backend (HTTP)
• POST PDF → /upload
• POST text → /summarize
• GET/POST notes → /notes
• Backend → External AI Service
• Sends paper text, receives summary
• Backend → Persistence
• Saves/reads .txt files in saved_texts
Architectural Patterns
• Full‐stack, client‐server (SPA + REST API)
• Single Node process for backend (monolithic microservice)
• File‐system storage (can swap in a database later)
• Third-party dependency for AI (external service integration)