How anshjain1489/aicodereviewer works
This is a web-based AI code-review platform. Developers submit code or GitHub pull requests, receive static and AI findings with scores, then inspect explanations and proposed fixes; PR feedback is posted only after developer approval. The main path runs from the React workspace through the REST API and review pipeline to Firestore, with separate authentication, GitHub, and analytics capabilities. The review orchestration and its analysis/scoring layers are shown distinctly. Some feature branches are documented in the README but their source was not sampled, so those relationships are marked unverified.
Main entry points: reviewService.js Review orchestration · api.js REST client · PRReview.jsx PR review · reviewController.js Review controller
Components 20
Developer workspace
- Review workspace
frontend/src/pages/NewReview.jsx - Findings and fixes
frontend/src/pages/ReviewResult.jsx - PR review
frontend/src/pages/PRReview.jsx - Dashboard and analytics
frontend/src/pages/Dashboard.jsx - REST client
frontend/src/services/api.js
API and identity
- Express application
backend/src/app.js - Review routes
backend/src/routes/reviewRoutes.js - Review controller
backend/src/controllers/reviewController.js - Authentication
backend/src/services/authService.js
Review analysis
- Review orchestration
backend/src/services/reviewService.js - Static analyzers
backend/src/analyzers - AI analysis
backend/src/services/aiService.js - Scoring engine
backend/src/services/scoringService.js
External integrations
- GitHub integration
backend/src/services/githubService.js - GitHub API
- AI providers
backend/src/integrations/ai
Persistence
- Issue repository
backend/src/repositories/issueRepository.js - Review repository
backend/src/repositories/reviewRepository.js - Firestore
backend/src/config/firebase.js
Other components
- Developer
Connections 25
- Developer → Review workspace: submits code
README.md - Review workspace → REST client: sends review
frontend/src/pages/NewReview.jsx - Findings and fixes → REST client: requests results
frontend/src/pages/ReviewResult.jsx - PR review → REST client: requests PR review
frontend/src/pages/PRReview.jsx - Dashboard and analytics → REST client: loads analytics
- REST client → Express application: calls REST API
README.md - Express application → Review routes: mounts routes
backend/src/app.js - Review routes → Review controller: dispatches requests
backend/src/routes/reviewRoutes.js - Review controller → Review orchestration: starts review
backend/src/controllers/reviewController.js - Review orchestration → Review repository: stores review
backend/src/services/reviewService.js - Review orchestration → Static analyzers: runs static analysis
backend/src/services/reviewService.js - Review orchestration → AI analysis: requests AI analysis
backend/src/services/reviewService.js - Review orchestration → Issue repository: saves findings
backend/src/services/reviewService.js - Review orchestration → Scoring engine: calculates scores
backend/src/services/reviewService.js - Review controller → Issue repository: loads findings
backend/src/controllers/reviewController.js - AI analysis → AI providers: selects provider
backend/src/services/aiService.js - Review repository → Firestore: reads and writes
backend/src/repositories/reviewRepository.js - Issue repository → Firestore: reads and writes
backend/src/repositories/issueRepository.js - Authentication → Firestore: persists users
- GitHub integration → GitHub API: integrates repositories
- Developer → PR review: reviews pull request
README.md - PR review → GitHub integration: requests PR analysis
- GitHub integration → GitHub API: posts approved feedback
README.md - Developer → Authentication: authenticates
- Developer → Dashboard and analytics: views metrics
README.md