How anusha0100/lexilens works
LexiLens is a Flutter reading-accessibility app with an Express/MongoDB backend. The apparent user journey is to sign in, scan or upload a document, process its text, then read it with accessibility aids; users can also manage documents and preferences. The tree supports these product areas, but the README is only a Flutter starter template and most Flutter source was not sampled, so client-side flow and client-to-backend links are not verified. Backend route-to-model links shown here are supported by the source index or excerpts.
Main entry points: server.js Express API · users.js Account data routes · screens Authentication screens · reading_screen.dart Reading experience
Components 27
Flutter client
- App entry
lib/main.dart - Authentication screens
lib/screens - Authentication service
lib/services/auth_service.dart
Document reading
- Scan documents
lib/screens/scanner_screen.dart - PDF upload
lib/screens/upload_pdf_screen.dart - OCR processing
lib/services/ocr_service.dart - Document library
lib/screens/documents_screen.dart - Reading experience
lib/screens/reading_screen.dart - Reading aids
lib/widgets - Text-to-speech
lib/services/tts_service.dart
Backend API
- Express API
backend/server.js - Auth and sessions
backend/routes/auth.js - Session routes
backend/routes/sessions.js - Document routes
backend/routes/documents.js - OCR cache routes
backend/routes/ocrcache.js - Settings routes
backend/routes/settings.js - Tags and dictionary
backend/routes - Account data routes
backend/routes/users.js
Persistence
- Session records
backend/models/UserSession.js - Document records
backend/models/Document.js - OCR cache records
backend/models/OcrCache.js - Preference records
backend/models/UserPreferences.js - App settings
backend/models/AppSetting.js - Document tags
backend/models/DocumentTag.js - Word dictionary
backend/models/WordDictionary.js
Other components
- App user
- MongoDB
Connections 32
- App user → App entry: opens
- App entry → Authentication screens: presents
- Authentication screens → Authentication service: uses
- App user → Scan documents: scans
- App user → PDF upload: uploads
- Scan documents → OCR processing: processes with
- PDF upload → OCR processing: processes with
- App user → Document library: browses
- App user → Reading experience: reads
- Reading experience → Reading aids: uses
- Reading experience → Text-to-speech: uses
- Authentication screens → Express API: calls
- Document library → Express API: calls
- Express API → Auth and sessions: mounts
backend/server.js - Express API → Session routes: mounts
backend/server.js - Express API → Document routes: mounts
backend/server.js - Express API → OCR cache routes: mounts
backend/server.js - Express API → Settings routes: mounts
backend/server.js - Express API → Tags and dictionary: mounts
backend/server.js - Express API → Account data routes: mounts
backend/server.js - Session routes → Session records: reads and writes
backend/routes/sessions.js - Document routes → Document records: uses
backend/routes/documents.js - OCR cache routes → OCR cache records: uses
backend/routes/ocrcache.js - Settings routes → Preference records: reads and writes
backend/routes/settings.js - Settings routes → App settings: reads and writes
backend/routes/settings.js - Tags and dictionary → Document tags: uses
backend/routes/tags.js - Tags and dictionary → Word dictionary: uses
backend/routes/dictionary.js - Account data routes → Document records: deletes
backend/routes/users.js - Account data routes → Document tags: deletes
backend/routes/users.js - Account data routes → Session records: deletes
backend/routes/users.js - Account data routes → App settings: deletes
backend/routes/users.js - Express API → MongoDB: connects
backend/server.js