How aayushasnani/github-ai-assistant works
The README describes a GitHub repository intelligence platform, but the sampled implementation is an early scaffold: the frontend is still the React/Vite starter screen, and the backend exposes a database-checking health route with user and repository models. Documented analysis capabilities are retained as product areas, not asserted as implemented or connected; their implementation was not shown. Solid edges reflect sampled calls and setup, while dashed edges mark documented-but-unverified integrations or workflow links.
Main entry points: app Code-aware RAG · main.py FastAPI app · session.py DB sessions · health.py Health route
Components 25
Client
- React entry
frontend/src/main.tsx - Starter screen
frontend/src/App.tsx
Backend foundation
- FastAPI app
backend/app/main.py - Health route
backend/app/api/v1/health.py - Settings
backend/app/core/config.py - DB sessions
backend/app/db/session.py - Auth dependencies
backend/app/core/deps.py - JWT security
backend/app/core/security.py - User model
backend/app/models/user.py - Repository model
backend/app/models/repository.py - ORM base
backend/app/models/base.py - Health schema
backend/app/schemas/health.py
Repository intelligence
- Repository upload
backend/app - GitHub integration
backend/app - Tree-sitter parsing
backend/app - Code-aware RAG
backend/app - Documentation generation
backend/app - Bug detection
backend/app - Refactoring suggestions
backend/app - Unit test generation
backend/app - Architecture visualization
backend/app
Other components
- User
- Database
- GitHub
- AI services
Connections 28
- User → React entry: opens
frontend/src/main.tsx - React entry → Starter screen: renders
frontend/src/main.tsx - FastAPI app → Health route: registers
backend/app/main.py - FastAPI app → Settings: loads
backend/app/main.py - FastAPI app → DB sessions: initializes
backend/app/main.py - FastAPI app → ORM base: creates tables
backend/app/main.py - FastAPI app → User model: loads model
backend/app/main.py - FastAPI app → Repository model: loads model
backend/app/main.py - Health route → DB sessions: gets session
backend/app/api/v1/health.py - Health route → Settings: reads version
backend/app/api/v1/health.py - Health route → Health schema: returns schema
backend/app/api/v1/health.py - DB sessions → Settings: reads config
backend/app/db/session.py - DB sessions → Database: connects
backend/app/db/session.py - Auth dependencies → DB sessions: gets session
backend/app/core/deps.py - Auth dependencies → JWT security: decodes token
backend/app/core/deps.py - Auth dependencies → User model: queries user
backend/app/core/deps.py - JWT security → Settings: reads key
backend/app/core/security.py - User model → ORM base: inherits
backend/app/models/user.py - Repository model → ORM base: inherits
backend/app/models/repository.py - Repository upload → Tree-sitter parsing: supports
README.md - GitHub integration → GitHub: integrates
README.md - Tree-sitter parsing → Code-aware RAG: feeds
- Code-aware RAG → AI services: uses
README.md - Code-aware RAG → Documentation generation: supports
README.md - Code-aware RAG → Bug detection: supports
README.md - Code-aware RAG → Refactoring suggestions: supports
README.md - Code-aware RAG → Unit test generation: supports
README.md - Code-aware RAG → Architecture visualization: supports
README.md