How sumit12c/notesnap works
NoteSnap turns study-session screen captures into editable OCR text, Gemini-organized revision notes, and downloadable documents. The principal workflow is coordinated by the React application; settings, live capture management, progress, statistics, and export are presented through dedicated UI components. The Express backend handles Gemini processing, and the DOCX utility formats the generated notes. The README documents capture, OCR, notifications, auto-pause, and session recovery; sampled excerpts do not expose all corresponding implementation details, so those links are documented rather than inferred from unsampled code.
Main entry points: App.tsx Session coordinator · server.ts Session processing API · types.ts Session data · DownloadsModal.tsx Export options
Components 17
Study workflow
- Session coordinator
src/App.tsx - Screen capture
src/App.tsx - OCR extraction
src/App.tsx - Session data
src/types.ts
Session interface
- Session settings
src/components/SettingsModal.tsx - Capture status
src/components/CaptureStatusIndicator.tsx - Session analytics
src/components/SessionStatsPanel.tsx - Live captures
src/components/LiveCapturesList.tsx - Processing progress
src/components/ProcessingOverlay.tsx - Export options
src/components/DownloadsModal.tsx
AI and export
- Session processing API
server.ts - Google Gemini
- Structured notes
server.ts - DOCX generation
src/utils/docxExporter.ts
Application runtime
- Browser runtime
- React entry point
src/main.tsx
Other components
- Study user
Connections 19
- Study user → Session coordinator: starts session
README.md - React entry point → Session coordinator: renders
src/main.tsx - Browser runtime → Screen capture: provides screen
README.md - Session coordinator → Screen capture: coordinates
README.md - Screen capture → OCR extraction: extracts text
README.md - OCR extraction → Session data: records captures
README.md - Session coordinator → Session data: manages
src/App.tsx - Session coordinator → Session settings: renders
src/App.tsx - Session coordinator → Capture status: renders
src/App.tsx - Session coordinator → Session analytics: renders
src/App.tsx - Session coordinator → Live captures: renders
src/App.tsx - Session coordinator → Processing progress: renders
src/App.tsx - Session coordinator → Export options: renders
src/App.tsx - Session coordinator → Session processing API: submits session
README.md - Session processing API → Google Gemini: generates notes
server.ts - Google Gemini → Structured notes: returns markdown
server.ts - Session coordinator → DOCX generation: generates document
src/App.tsx - Structured notes → DOCX generation: formats notes
README.md - Session coordinator → Export options: offers exports
README.md