How aryanpandya0/replexity works
Replexity accepts a repository or local/ZIP source, analyzes supported files, and presents project health, file risks, dependencies, and refactoring guidance; users can also compare and export results. The backend separates source acquisition, analysis orchestration, specialized detectors, API/persistence, and the React experience. The README documents several capabilities whose individual implementations were not sampled; those are represented without asserting unverified internal calls. Edges reflect excerpts, SOURCE INDEX references, or README statements.
Main entry points: pipeline.py Analysis pipeline · analyze.py Analysis API · DashboardPage.tsx Analysis dashboard · api.ts API client
Components 30
Source intake
- Repository manager
backend/analysis_engine/repo_manager.py
Analysis engine
- Analysis pipeline
backend/api/pipeline.py - Tree-sitter parser
backend/analysis_engine/code_parser.py - Complexity metrics
backend/analysis_engine/complexity_analyzer.py - Smell detection
backend/analysis_engine/smell_detector.py - Risk scoring
backend/analysis_engine/risk_model.py - Bug prediction
backend/analysis_engine/bug_predictor.py - Clone detection
backend/analysis_engine/clone_detector.py - Linter service
backend/analysis_engine/linter_service.py - Refactor suggestions
backend/analysis_engine/refactor_engine.py - AI review
backend/analysis_engine/ai_reviewer.py - Health score
backend/analysis_engine/health_score.py
API and state
- Analysis API
backend/api/analyze.py - API router
backend/api/routes.py - Result schemas
backend/api/schemas.py - Authentication
backend/api/auth.py - Usage quotas
backend/api/quotas.py - Analysis database
backend/database/models.py - Export API
backend/api/export.py
User experience
- Analysis input
frontend/src/pages/AnalysisInputPage.tsx - API client
frontend/src/api.ts - Analysis dashboard
frontend/src/pages/DashboardPage.tsx - File detail
frontend/src/pages/FileDetailPage.tsx - Dependency graph view
frontend/src/components/DependencyGraph.tsx - Export and reports
frontend/src/pages/ExportPage.tsx - Auth context
frontend/src/context/AuthContext.tsx - Comparison view
frontend/src/pages/ComparisonPage.tsx
Other components
- Developer
- GitHub / GitLab
- Firebase Auth
Connections 32
- Developer → Analysis input: submits source
- Analysis input → API client: requests analysis
frontend/src/pages/AnalysisInputPage.tsx - API client → Analysis API: sends request
- GitHub / GitLab → Repository manager: provides repository
- Analysis API → Repository manager: collects source
backend/api/analyze.py - Analysis API → Analysis pipeline: starts analysis
backend/api/analyze.py - Analysis pipeline → Tree-sitter parser: parses files
backend/api/pipeline.py - Analysis pipeline → Complexity metrics: measures complexity
backend/api/pipeline.py - Analysis pipeline → Smell detection: detects smells
backend/api/pipeline.py - Analysis pipeline → Risk scoring: scores risk
backend/api/pipeline.py - Analysis pipeline → Bug prediction: predicts hotspots
backend/api/pipeline.py - Analysis pipeline → Clone detection: finds clones
backend/api/pipeline.py - Analysis pipeline → Linter service: runs linters
backend/api/pipeline.py - Analysis pipeline → Refactor suggestions: generates suggestions
backend/api/pipeline.py - Analysis pipeline → Health score: calculates health
backend/api/pipeline.py - Analysis pipeline → AI review: requests review
- Analysis pipeline → Result schemas: builds result
backend/api/pipeline.py - API router → Analysis API: routes analysis
backend/api/routes.py - API router → Export API: routes exports
backend/api/routes.py - Analysis API → Authentication: checks identity
backend/api/analyze.py - Analysis API → Usage quotas: checks usage
backend/api/analyze.py - Analysis API → Analysis database: persists runs
backend/api/analyze.py - Analysis dashboard → API client: loads results
frontend/src/pages/DashboardPage.tsx - Analysis dashboard → Dependency graph view: renders dependencies
frontend/src/pages/DashboardPage.tsx - Developer → Analysis dashboard: views results
- Developer → File detail: inspects file
- Developer → Comparison view: compares analyses
- Developer → Export and reports: requests report
- Export and reports → Export API: requests export
- Developer → Auth context: signs in
frontend/src/context/AuthContext.tsx - Auth context → Firebase Auth: authenticates with
frontend/src/context/AuthContext.tsx - Analysis API → Developer: returns result