How balamanikantatirunagaram-lgtm/docmind-ai works
DOCMIND AI turns uploaded documents into searchable, organized knowledge, with AI-assisted extraction, chat, reports, and a knowledge graph. The primary flow runs from document upload in the React app through authenticated API routes and document processing to database and file storage; users then browse or edit results and invoke AI features. The graph also preserves authentication, folders, and the documented NVIDIA integration. Some frontend and backend wiring is inferred from endpoint usage and documented architecture rather than sampled end-to-end, so those links are marked unverified.
Main entry points: api.ts API client · App.tsx App routes · DocumentService.ts Document processing · documents.routes.ts Document routes
Components 26
Web application
- App routes
frontend/src/App.tsx - Document workspace
frontend/src/pages/Documents.tsx - Folder views
frontend/src/pages/Folders.tsx - Dashboard
frontend/src/pages/Dashboard.tsx - AI chat
frontend/src/pages/Chat.tsx - Knowledge graph
frontend/src/pages/KnowledgeGraph.tsx - AI reports
frontend/src/pages/AIReport.tsx - Sign in/up
frontend/src/pages/Login.tsx - API client
frontend/src/services/api.ts
Backend API
- Document routes
backend/src/routes/documents.routes.ts - Folder routes
backend/src/routes/folders.routes.ts - AI routes
backend/src/routes/ai.routes.ts - Auth routes
backend/src/routes/auth.routes.ts - Document handlers
backend/src/controllers/DocumentController.ts - AI handlers
backend/src/controllers/AIController.ts - Auth handlers
backend/src/controllers/AuthController.ts - Folder handlers
backend/src/controllers/FolderController.ts - JWT authentication
backend/src/middleware/auth.ts
Domain services
- Document processing
backend/src/services/DocumentService.ts - AI capabilities
backend/src/services/AIService.ts - Identity service
backend/src/services/AuthService.ts - File storage
backend/src/services/StorageService.ts
Persistence
- Supabase PostgreSQL
backend/src/lib/prisma.ts
Other components
- User
- NVIDIA AI API
- Supabase Storage
Connections 36
- User → App routes: uses
frontend/src/App.tsx - App routes → Document workspace: routes to
frontend/src/App.tsx - App routes → Folder views: routes to
frontend/src/App.tsx - App routes → Dashboard: routes to
frontend/src/App.tsx - App routes → AI chat: routes to
frontend/src/App.tsx - App routes → Knowledge graph: routes to
frontend/src/App.tsx - App routes → AI reports: routes to
frontend/src/App.tsx - App routes → Sign in/up: routes to
frontend/src/App.tsx - Document workspace → API client: calls
frontend/src/pages/Documents.tsx - Folder views → API client: calls
frontend/src/pages/Folders.tsx - Dashboard → API client: calls
frontend/src/pages/Dashboard.tsx - AI chat → API client: calls
frontend/src/pages/Chat.tsx - Knowledge graph → API client: calls
frontend/src/pages/KnowledgeGraph.tsx - AI reports → API client: calls
frontend/src/pages/AIReport.tsx - Sign in/up → API client: calls
frontend/src/pages/Login.tsx - API client → Document routes: requests
- API client → Folder routes: requests
- API client → AI routes: requests
- API client → Auth routes: requests
- Document routes → Document handlers: dispatches
backend/src/routes/documents.routes.ts - Folder routes → Folder handlers: dispatches
backend/src/routes/folders.routes.ts - AI routes → AI handlers: dispatches
backend/src/routes/ai.routes.ts - Auth routes → Auth handlers: dispatches
backend/src/routes/auth.routes.ts - Document routes → JWT authentication: authenticates
backend/src/routes/documents.routes.ts - Folder routes → JWT authentication: authenticates
backend/src/routes/folders.routes.ts - AI routes → JWT authentication: authenticates
backend/src/routes/ai.routes.ts - Document handlers → Document processing: delegates
backend/src/controllers/DocumentController.ts - AI handlers → AI capabilities: calls
backend/src/controllers/AIController.ts - Auth handlers → Identity service: delegates
backend/src/controllers/AuthController.ts - Document processing → File storage: stores files
backend/src/services/DocumentService.ts - Document processing → AI capabilities: processes with
backend/src/services/DocumentService.ts - Document processing → Supabase PostgreSQL: reads/writes
backend/src/services/DocumentService.ts - Identity service → Supabase PostgreSQL: reads/writes
backend/src/services/AuthService.ts - AI handlers → Supabase PostgreSQL: reads/writes
backend/src/controllers/AIController.ts - File storage → Supabase Storage: uploads/deletes
backend/src/services/StorageService.ts - AI capabilities → NVIDIA AI API: AI requests
README.md