This project is fully generated by Copilot; 0 human, 100% AI.
English | ็ฎไฝไธญๆ
AIReview is an enterprise-grade AI-powered code review platform that transforms the code review process through intelligent automation. Built with a modern microservices-inspired architecture, it combines multi-LLM support, real-time collaboration, and sophisticated analysis capabilities to deliver actionable insights and significantly improve code quality.
Vision: Empower development teams to deliver high-quality code faster by augmenting human review with AI-driven intelligence.
AIReview follows a layered clean architecture with clear separation of concerns:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Frontend Layer (React) โ
โ โข React 19 + TypeScript + Vite โ
โ โข Real-time updates via SignalR โ
โ โข State management with React Query โ
โโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ REST API / SignalR
โโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ API Layer (ASP.NET Core Web API) โ
โ โข Controllers (Authentication, Projects, Reviews) โ
โ โข SignalR Hubs (Real-time notifications) โ
โ โข Middleware (Auth, Error handling, Logging) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Core Business Logic Layer โ
โ โข Domain Entities (Project, Review, User, Prompt, etc.) โ
โ โข Service Interfaces (AI, Git, Project, Analysis) โ
โ โข Business Services (Orchestration & Domain logic) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Infrastructure Layer โ
โ โข Data Access (EF Core + Repository Pattern) โ
โ โข External Services (Multi-LLM providers, Git) โ
โ โข Background Jobs (Async analysis via Hangfire) โ
โ โข Caching & Session Management (Redis) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโดโโโโโโโ
โ Database โ
โ (SQLite/PG) โ
โโโโโโโโโโโโโโโโ
-
Separation of Concerns: Each layer has distinct responsibilities
- API layer handles HTTP/SignalR communication
- Core layer contains pure business logic
- Infrastructure layer manages external dependencies
-
Dependency Inversion: Core logic depends on abstractions (interfaces), not implementations
-
Repository & Unit of Work Pattern: Consistent data access with transaction support
-
Async Processing: Background jobs handle long-running AI analysis tasks
-
Real-time Communication: SignalR enables push notifications for review updates
| Module | Responsibility | Key Components |
|---|---|---|
| AIReview.API | Entry point, request handling, real-time hubs | Controllers, SignalR Hubs, Middleware |
| AIReview.Core | Business rules, domain models, service contracts | Entities, Interfaces, Domain Services |
| AIReview.Infrastructure | Data persistence, external integrations, background jobs | Repositories, EF Core, Hangfire, LLM clients |
| AIReview.Shared | Cross-cutting concerns, DTOs | Data Transfer Objects, Enums |
| AIReview.Tests | Quality assurance | Unit tests, Integration tests |
| aireviewer-frontend | User interface, client-side logic | React components, API clients |
For detailed architecture documentation, see:
- Multi-dimensional Analysis: Quality, security, performance, maintainability assessments
- Risk Scoring System: Automated risk evaluation across multiple dimensions
- Complexity analysis (cyclomatic complexity, nesting depth)
- Security vulnerability detection
- Performance bottleneck identification
- Maintainability metrics
- Contextual Suggestions: AI generates targeted improvement recommendations
- Multi-LLM Support: Configurable providers (OpenAI, Azure OpenAI, custom models)
- Async Processing: Background jobs ensure responsive UX for large codebases
- 3-Tier Template System: Built-in โ User-level โ Project-level overrides
- Template Types:
- Code Review templates
- Risk Analysis templates
- Pull Request Summary templates
- Improvement Suggestion templates
- Flexible Placeholders: {{CONTEXT}}, {{DIFF}}, {{FILE_NAME}}, etc.
- UI Management: Intuitive web interface for template CRUD operations
- Intelligent Change Summaries: AI-generated PR descriptions with impact analysis
- Change Type Classification: Feature, Bug Fix, Refactoring, Documentation, etc.
- Impact Assessment:
- Business impact evaluation
- Technical debt analysis
- Breaking change detection
- Test Recommendations: Auto-generated testing focus areas
- Deployment Notes: Risk assessments and rollback considerations
- Categorized Suggestions: Code quality, performance, security, architecture, etc.
- Priority Scoring: Automated prioritization based on impact and effort
- User Feedback Loop: Accept/Ignore tracking for continuous improvement
- Historical Tracking: Monitor suggestion acceptance rates over time
- Repository Import: Clone and analyze existing Git repositories
- Diff Analysis: Intelligent parsing of code changes
- Commit History: Track review history alongside Git commits
- Branch Support: Work with multiple branches seamlessly
- Project Organization: Create and manage multiple review projects
- Role-Based Access Control: Owner, Reviewer, Developer roles
- Member Management: Invite team members with granular permissions
- Project Settings: Per-project configurations and preferences
- Live Notifications: SignalR-powered instant updates
- Review Comments: Threaded discussions on code changes
- Status Tracking: Real-time review workflow status updates
- Activity Feed: Team activity visibility
- Review Request Management: Create, assign, and track reviews
- Approval Process: Approve, reject, or request changes
- Status Lifecycle: Pending โ In Review โ Approved/Rejected
- Comment System: Line-by-line and general feedback
- AIReview.API: ASP.NET Core Web API backend with controllers, hubs, and service configuration
- AIReview.Core: Core business logic with entity models, service interfaces, and business services
- AIReview.Infrastructure: Infrastructure layer with EF Core data access, repository pattern, and background jobs
- AIReview.Shared: Shared Data Transfer Objects (DTOs) and enums
- AIReview.Tests: Unit tests and integration tests
- aireviewer-frontend: React + TypeScript frontend application built with Vite
- docs: Project documentation and design specifications
- .NET 8.0: Latest cross-platform framework with performance improvements
- ASP.NET Core Web API: RESTful API with OpenAPI/Swagger documentation
- Entity Framework Core: Code-first ORM with migration support
- ASP.NET Core Identity: JWT-based authentication and authorization
- SignalR: WebSocket-based real-time bidirectional communication
- Hangfire: Background job processing for async AI analysis
- SQLite/PostgreSQL: Flexible database options (dev/production)
- Redis: Distributed caching and session management (optional)
- React 19: Latest React with concurrent features
- TypeScript: Type-safe development with full IntelliSense
- Vite: Lightning-fast HMR and optimized production builds
- TailwindCSS: Utility-first CSS with custom design system
- React Query (@tanstack/react-query): Powerful server state management
- React Router v6: Declarative client-side routing
- Axios: Promise-based HTTP client with interceptors
- Heroicons: Beautiful hand-crafted SVG icons
- Docker: Containerization for consistent environments
- Docker Compose: Multi-container orchestration for local dev
- GitHub Actions: CI/CD pipelines (planned)
- Kubernetes: Production orchestration (planned)
AIReview/
โโโ AIReview.API/ # Web API entry point
โ โโโ Controllers/ # REST API endpoints
โ โโโ Hubs/ # SignalR real-time hubs
โ โโโ Services/ # API-layer services
โ โโโ Program.cs # App configuration & DI
โ
โโโ AIReview.Core/ # Domain & business logic
โ โโโ Entities/ # Domain models (EF Core entities)
โ โโโ Interfaces/ # Service contracts & abstractions
โ โโโ Services/ # Business logic implementations
โ
โโโ AIReview.Infrastructure/ # External dependencies
โ โโโ Data/ # EF Core DbContext & configurations
โ โโโ Repositories/ # Data access implementations
โ โโโ Services/ # External service integrations
โ โโโ BackgroundJobs/ # Hangfire job definitions
โ โโโ Migrations/ # EF Core database migrations
โ
โโโ AIReview.Shared/ # Cross-cutting concerns
โ โโโ DTOs/ # Data transfer objects
โ โโโ Enums/ # Shared enumerations
โ
โโโ AIReview.Tests/ # Test suite
โ โโโ Services/ # Unit & integration tests
โ
โโโ aireviewer-frontend/ # React frontend
โ โโโ src/
โ โ โโโ components/ # Reusable UI components
โ โ โโโ pages/ # Route-level page components
โ โ โโโ services/ # API client services
โ โ โโโ types/ # TypeScript type definitions
โ โ โโโ App.tsx # Root component & routing
โ โโโ vite.config.ts # Vite build configuration
โ
โโโ docs/ # Documentation
โโโ design.md # Architecture design (ไธญๆ)
โโโ design.en-us.md # Architecture design (English)
โโโ features/ # Feature-specific docs
- .NET SDK 8.0+: Download
- Node.js 18+ and npm/pnpm: Download
- SQLite (default) or PostgreSQL 14+ (optional for production)
- Redis (optional, for distributed caching): Download
- Docker Desktop (optional, for containerized development): Download
-
Clone the Repository:
git clone https://github.com/wosledon/AIReview.git cd AIReview -
Configure Application Settings: Edit
AIReview.API/appsettings.Development.json:{ "ConnectionStrings": { "DefaultConnection": "Data Source=aireviewer.db", // SQLite "Redis": "localhost:6379" }, "Jwt": { "Secret": "YourJWTSecretKey(AtLeast32Characters)", "Issuer": "AIReview", "Audience": "AIReview" } } -
Apply Database Migrations:
cd AIReview.API dotnet ef database update -
Start API Service:
dotnet run # API will be available at http://localhost:5000 # Swagger UI: http://localhost:5000/swagger
-
Install Dependencies:
cd aireviewer-frontend npm install -
Configure Environment Variables: Create
.envfile:VITE_API_BASE_URL=http://localhost:5000/api/v1
-
Start Development Server:
npm run dev # Frontend will be available at http://localhost:5173
cd AIReview.Tests
dotnet test --verbosity normalcd aireviewer-frontend
npm run test # Configure Vitest/Jest as needed-
Build Docker Images:
# Backend docker build -t aireviewer-api -f AIReview.API/Dockerfile . # Frontend docker build -t aireviewer-frontend -f aireviewer-frontend/Dockerfile .
-
Run with Docker Compose:
docker-compose up -d
- Use PostgreSQL instead of SQLite for production
- Configure Redis for distributed caching and session management
- Set up HTTPS with reverse proxy (Nginx/Traefik)
- Enable CORS only for trusted origins
- Use environment variables for secrets (never commit credentials)
- Configure logging and monitoring (Application Insights, Serilog, etc.)
- Set up backup strategies for database
- Authentication: JWT-based with refresh token support
- Authorization: Role-based access control (RBAC)
- Data Protection: ASP.NET Core Data Protection for sensitive data
- Input Validation: Model validation and sanitization
- Rate Limiting: API throttling to prevent abuse
- HTTPS: Enforce TLS 1.2+ in production
- CORS: Restricted to allowed origins
- SQL Injection: Parameterized queries via EF Core
- Advanced Code Fix Suggestions: AI-generated code patches with diff preview
- Multi-Model Ensemble: Combine multiple LLM responses for higher accuracy
- Context-Aware Analysis: Learning from historical reviews to improve suggestions
- Custom AI Model Fine-tuning: Support for organization-specific model training
- GitHub/GitLab Webhooks: Automatic review triggers on PR creation
- VS Code Extension: Inline code review and suggestions in IDE
- Slack/Teams Notifications: Integration with team communication tools
- CI/CD Pipeline Integration: Quality gates based on AI review scores
- Review Analytics Dashboard: Team productivity and code quality metrics
- Trend Analysis: Track quality improvements over time
- Custom Reports: Exportable reports for management
- Developer Performance Insights: Individual contribution quality metrics
- Team Coding Standards Learning: AI learns from accepted/rejected suggestions
- Custom Rule Engine: Define organization-specific coding standards
- Review Template Library: Shared templates across teams
- Automated Style Guide Enforcement: Enforce team conventions automatically
- Incremental Analysis: Only analyze changed portions of large files
- Batch Review Processing: Efficient handling of multiple PRs
- Distributed Processing: Horizontal scaling for analysis workloads
- Caching Optimization: Reduce redundant AI calls
- Code Security Scanning: Deep security vulnerability analysis
- License Compliance Checker: Detect licensing issues in dependencies
- Architecture Violation Detection: Enforce architectural patterns
- Technical Debt Tracker: Quantify and prioritize technical debt
- Multi-tenant Architecture: Full SaaS support with data isolation
- Enterprise SSO: SAML, OAuth, LDAP integration
- Audit Logging: Comprehensive compliance and audit trails
- Advanced Access Control: Fine-grained permissions and policies
- On-premise Deployment: Air-gapped enterprise deployment options
- Automated Code Refactoring: AI suggests and applies refactorings
- Predictive Bug Detection: ML models predict bug-prone code
- Test Generation: Auto-generate unit tests for reviewed code
- Documentation Generation: AI-written inline documentation
- Mobile Applications: iOS and Android apps for on-the-go reviews
- API Marketplace: Third-party integrations and extensions
- Community Plugin System: Open ecosystem for custom analyzers
- Multi-language Support: Localization for global teams
- Continuous Model Improvement: Learn from user feedback at scale
- Custom Model Marketplace: Share and download specialized models
- Transfer Learning: Adapt pre-trained models to specific domains
- Explainable AI: Transparency in AI decision-making
- ๐ฏ Accuracy: Multi-LLM support and customizable prompts ensure relevant suggestions
- โก Speed: Async processing and caching make reviews fast
- ๐ง Flexibility: Extensive customization at user and project levels
- ๐ฅ Collaboration: Real-time updates keep teams in sync
- ๐ Scalability: Built on proven enterprise technologies (.NET, React)
- ๐ Security: Role-based access control and secure authentication
- ๐ Open Source: MIT license encourages community contributions
We welcome contributions! Please see our Contributing Guidelines (coming soon) for details on:
- Code of Conduct
- Development workflow
- Pull request process
- Coding standards
This project is licensed under the MIT License - see the LICENSE file for details.
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Built with โค๏ธ using modern open-source technologies. Special thanks to the .NET, React, and AI communities.
Star โญ this repository if you find it useful!

