How ludovicmoyo/open-source-project-analyzer works
Open-Source Project Analyzer turns a public GitHub repository URL into a persisted, combined health report. The principal workflow is URL submission, GitHub metadata and README retrieval, deterministic scoring, structured Gemini review, then report assembly. The frontend progress stages and chained API calls are documented in the README; source excerpts show backend route ownership and data access. The frontend page and some backend handlers were not excerpted, so undocumented call relationships are omitted.
Main entry points: routes.rs API routes · ai_handlers.rs Gemini review · migrations PostgreSQL · handlers.rs Repository endpoints
Components 15
User experience
- Analysis UI
frontend/app/page.tsx
API workflow
- API routes
src/routes.rs - Repository endpoints
src/handlers.rs - Repository data models
src/models.rs - Shared app state
src/state.rs - Axum server
src/main.rs
Analysis
- Rule-based scoring
src/scoring.rs - Gemini review
src/ai_handlers.rs - Typed AI analysis
src/ai_models.rs - Report assembly
src/report_handlers.rs - Report response
src/report_models.rs
Persistence
- PostgreSQL
migrations
Other components
- Repository analyst
- GitHub REST API
- Gemini API
Connections 16
- Repository analyst → Analysis UI: submits URL
README.md - Analysis UI → API routes: chains API calls
README.md - Axum server → API routes: mounts routes
src/main.rs - API routes → Repository endpoints: routes repository requests
src/routes.rs - API routes → Rule-based scoring: routes score requests
src/routes.rs - API routes → Gemini review: routes AI requests
src/routes.rs - API routes → Report assembly: routes report requests
src/routes.rs - Repository endpoints → GitHub REST API: fetches repository data
src/handlers.rs - Repository endpoints → PostgreSQL: upserts and reads
src/handlers.rs - Rule-based scoring → PostgreSQL: reads and saves scores
src/scoring.rs - Gemini review → PostgreSQL: reads repository; saves analysis
src/ai_handlers.rs - Gemini review → Gemini API: requests structured review
src/ai_handlers.rs - Gemini review → Typed AI analysis: extracts typed result
src/ai_handlers.rs - Report assembly → PostgreSQL: reads report inputs
src/report_handlers.rs - Report assembly → Report response: builds response
src/report_handlers.rs - Axum server → Shared app state: provides shared state
src/main.rs