How afreen707/github-repo-analyzer works
GitInsight AI accepts a public GitHub repository URL, gathers repository metadata, and returns AI-generated analysis and follow-up answers for a dashboard. The sampled server implements commit, branch, contributor, pull-request, and repository summaries plus Q&A; its prompt also requests conflict-risk and codebase explanations. The README describes broader product capabilities, but sampled code does not establish every one. The frontend-to-API link follows the README’s high-level architecture; the standalone GitHub route helper and Anthropic service have no shown connection to the active server flow.
Main entry points: server.js Analyze endpoint · page.jsx Analyzer dashboard
Components 14
Web experience
- Analyzer dashboard
frontend/app/page.jsx - Insights and chat UI
frontend/app/page.jsx
API workflows
- Analyze endpoint
backend/server.js - Q&A endpoint
backend/server.js
Repository analysis
- Repository data fetch
backend/server.js - Analysis prompt
backend/server.js - Repository insights
backend/server.js - Question context
backend/server.js - AI answer
backend/server.js - Commit helper
backend/routes/github.js - Anthropic analysis helper
backend/services/ai.js
External services
- GitHub API
- Groq LLM
Other components
- Repository user
Connections 13
- Repository user → Analyzer dashboard: submits repository
README.md - Analyzer dashboard → Analyze endpoint: requests analysis
README.md - Analyzer dashboard → Q&A endpoint: asks question
README.md - Analyze endpoint → Repository data fetch: fetches repository data
backend/server.js - Repository data fetch → GitHub API: requests metadata
backend/server.js - Analyze endpoint → Analysis prompt: builds prompt
backend/server.js - Analysis prompt → Groq LLM: provides analysis prompt
backend/server.js - Analyze endpoint → Repository insights: returns analysis
backend/server.js - Q&A endpoint → Repository data fetch: fetches repository data
backend/server.js - Q&A endpoint → Question context: builds context
backend/server.js - Question context → Groq LLM: sends conversation
backend/server.js - Q&A endpoint → AI answer: returns answer
backend/server.js - Insights and chat UI → Analyzer dashboard: displays results
frontend/app/page.jsx