How harshprajapati1910/aiw-platform works
AIW is a document-management and code-review application: users authenticate, create or upload documents, then request analysis or a streamed multi-specialist review; review results can be shown in the dashboard and persisted. The Angular client calls an ASP.NET API, which owns document operations and bridges review streams to a FastAPI/LangGraph service. The AI service also exposes a separate Ollama-backed analysis endpoint. The review controller’s persistence and stream forwarding are shown; several frontend/API and storage links are not visible in the supplied excerpts, so they are omitted or marked unverified.
Main entry points: workflow.py Review workflow · DocumentsController.cs Documents API · app.routes.ts App routes · DocumentReviewController.cs Review stream API
Components 28
Angular client
- App routes
frontend/src/app/app.routes.ts - Login
frontend/src/app/features/auth/login/login.component.ts - Auth service
frontend/src/app/core/services/auth.service.ts - Document list
frontend/src/app/features/documents/pages/document-list/document-list.component.ts - Document editor
frontend/src/app/features/documents/pages/document-editor/document-editor.component.ts - Document client
frontend/src/app/features/documents/services/document.service.ts - Review dashboard
frontend/src/app/features/review-dashboard/components/review-dashboard/review-dashboard.component.ts - Review stream client
frontend/src/app/features/review-dashboard/services/review-dashboard.service.ts
ASP.NET API
- Documents API
backend/src/AIW.Api/Controllers/DocumentsController.cs - Review stream API
backend/src/AIW.Api/Controllers/DocumentReviewController.cs - Auth API
backend/src/AIW.Api/Controllers/AuthController.cs
Application services
- Document service
backend/src/AIW.Application/Documents/Services/DocumentService.cs - File extractor
backend/src/AIW.Application/Documents/Services/DocumentExtractor.cs - Agent review client
backend/src/AIW.Application/Documents/Services/AgentReviewClient.cs - Analysis client
backend/src/AIW.Application/Analysis/Services/AiServiceClient.cs
AI review service
- AI service
ai-service/app/main.py - Review stream route
ai-service/app/api/routes.py - Review workflow
ai-service/app/graph/workflow.py - Review supervisor
ai-service/app/graph/agents/supervisor_agent.py - Architecture agent
ai-service/app/graph/agents/architecture_agent.py - Security agent
ai-service/app/graph/agents/security_agent.py - Performance agent
ai-service/app/graph/agents/performance_agent.py - Report synthesis
ai-service/app/graph/agents/synthesis_agent.py - Ollama analysis
ai-service/app/services/ollama_service.py
Identity and persistence
- Application database
backend/src/AIW.Infrastructure/Persistence/ApplicationDbContext.cs - Identity service
backend/src/AIW.Infrastructure/Identity/IdentityService.cs
Other components
- User
- Ollama
Connections 27
- User → App routes: uses
frontend/src/app/app.routes.ts - App routes → Login: routes to
frontend/src/app/app.routes.ts - App routes → Document list: routes to
frontend/src/app/app.routes.ts - App routes → Document editor: routes to
frontend/src/app/app.routes.ts - Document list → Document client: uses
- Document editor → Document client: uses
- Review dashboard → Review stream client: uses
frontend/src/app/features/review-dashboard/components/review-dashboard/review-dashboard.component.ts - Review stream client → Review stream API: opens SSE stream
frontend/src/app/features/review-dashboard/services/review-dashboard.service.ts - Documents API → Document service: manages documents
backend/src/AIW.Api/Controllers/DocumentsController.cs - Documents API → File extractor: extracts uploads
backend/src/AIW.Api/Controllers/DocumentsController.cs - Documents API → Analysis client: requests analysis
backend/src/AIW.Api/Controllers/DocumentsController.cs - Documents API → Agent review client: streams review
- Review stream API → Application database: loads document
backend/src/AIW.Api/Controllers/DocumentReviewController.cs - Review stream API → Agent review client: requests review
backend/src/AIW.Api/Controllers/DocumentReviewController.cs - Review stream API → Application database: persists report
backend/src/AIW.Api/Controllers/DocumentReviewController.cs - Agent review client → Review stream route: posts review
backend/src/AIW.Application/Documents/Services/AgentReviewClient.cs - Review stream route → Review workflow: streams graph
ai-service/app/api/routes.py - Review workflow → Review supervisor: dispatches
ai-service/app/graph/workflow.py - Review workflow → Architecture agent: dispatches
ai-service/app/graph/workflow.py - Review workflow → Security agent: dispatches
ai-service/app/graph/workflow.py - Review workflow → Performance agent: dispatches
ai-service/app/graph/workflow.py - Review workflow → Report synthesis: dispatches
ai-service/app/graph/workflow.py - AI service → Review stream route: registers route
ai-service/app/main.py - AI service → Ollama analysis: serves analysis
ai-service/app/main.py - Ollama analysis → Ollama: calls inference
ai-service/app/services/ollama_service.py - Auth API → Identity service: delegates auth
- Identity service → Application database: uses identity store