How dwisha-01/codebase-onboarder works
Codebase Onboarder is a repository-analysis and developer-onboarding platform. A developer submits a GitHub repository, receives structural and technology analysis, then explores its architecture, searches code semantically, or asks evidence-grounded questions. The API’s scanner, chunking, indexing, and investigation services support these distinct stages; the frontend presents analysis and graph views. The README documents several capabilities whose exact wiring is not shown in the excerpts, so those links are marked unverified. The mockup preview sandbox is separate from this product workflow.
Main entry points: vector-index-service.ts Vector indexing · repository-investigation-workflow.ts Investigation workflow · analysis-store.ts Analysis records · repository-scanner.ts Repository scanner
Components 23
Onboarding interface
- Repository entry
artifacts/codebase-onboarder/src/pages/home.tsx - Analysis explorer
artifacts/codebase-onboarder/src/pages/analysis.tsx - Graph explorer
artifacts/codebase-onboarder/src/components/repository-graph.tsx - UI router
artifacts/codebase-onboarder/src/App.tsx
Analysis API
- Repository routes
artifacts/api-server/src/routes/repositories.ts - Ask route
artifacts/api-server/src/routes/repository-ask-route.ts
Repository understanding
- Repository scanner
artifacts/api-server/src/services/repository-scanner.ts - Manifest parsers
artifacts/api-server/src/services/manifest-parser-registry.ts - Technology detection
artifacts/api-server/src/services/detection-registry.ts - Retained file content
artifacts/api-server/src/services/repository-content-store.ts - Analysis records
artifacts/api-server/src/services/analysis-store.ts - Code-aware chunking
artifacts/api-server/src/services/code-chunk-service.ts - Architecture analysis
artifacts/api-server/src/services/architecture-service.ts - Dependency graph
artifacts/api-server/src/services/graph-service.ts
Evidence and answers
- Vector indexing
artifacts/api-server/src/services/vector-index-service.ts - Local embeddings
artifacts/api-server/src/services/embedding-provider.ts - Vector index store
artifacts/api-server/src/services/local-vector-store.ts - Evidence context
artifacts/api-server/src/services/repository-context-service.ts - Repository Q&A
artifacts/api-server/src/services/repository-ask-service.ts - Investigation workflow
artifacts/api-server/src/services/repository-investigation-workflow.ts - Generation provider
artifacts/api-server/src/services/generation-provider.ts - Local generation
artifacts/api-server/src/services/local-generation-provider.ts
Other components
- Developer
Connections 36
- Developer → Repository entry: submits repository
- Developer → Analysis explorer: explores results
- Repository entry → UI router: routes through
artifacts/codebase-onboarder/src/App.tsx - Analysis explorer → UI router: routes through
artifacts/codebase-onboarder/src/App.tsx - Analysis explorer → Graph explorer: shows relationships
- Repository entry → Repository routes: requests analysis
- Analysis explorer → Ask route: asks question
- Ask route → Analysis records: checks analysis
artifacts/api-server/src/routes/repository-ask-route.ts - Ask route → Repository Q&A: delegates question
artifacts/api-server/src/routes/repository-ask-route.ts - Repository routes → Repository scanner: starts analysis
- Repository scanner → Manifest parsers: parses manifests
artifacts/api-server/src/services/repository-scanner.ts - Repository scanner → Technology detection: detects technologies
artifacts/api-server/src/services/repository-scanner.ts - Repository scanner → Retained file content: retains content
artifacts/api-server/src/services/repository-scanner.ts - Repository scanner → Analysis records: persists analysis
- Code-aware chunking → Analysis records: loads analysis
artifacts/api-server/src/services/code-chunk-service.ts - Code-aware chunking → Retained file content: reads retained files
artifacts/api-server/src/services/code-chunk-service.ts - Code-aware chunking → Repository scanner: filters generated files
artifacts/api-server/src/services/code-chunk-service.ts - Architecture analysis → Analysis records: uses analysis types
artifacts/api-server/src/services/architecture-service.ts - Dependency graph → Analysis records: uses analysis types
artifacts/api-server/src/services/graph-service.ts - Vector indexing → Code-aware chunking: loads chunks
artifacts/api-server/src/services/vector-index-service.ts - Vector indexing → Analysis records: checks analysis
artifacts/api-server/src/services/vector-index-service.ts - Vector indexing → Local embeddings: embeds chunks
artifacts/api-server/src/services/vector-index-service.ts - Vector indexing → Vector index store: reads and writes
artifacts/api-server/src/services/vector-index-service.ts - Evidence context → Code-aware chunking: checks stored chunks
artifacts/api-server/src/services/repository-context-service.ts - Evidence context → Vector indexing: retrieves similar chunks
artifacts/api-server/src/services/repository-context-service.ts - Evidence context → Generation provider: counts tokens
artifacts/api-server/src/services/repository-context-service.ts - Repository Q&A → Evidence context: builds evidence context
artifacts/api-server/src/services/repository-ask-service.ts - Repository Q&A → Vector indexing: retrieves evidence
artifacts/api-server/src/services/repository-ask-service.ts - Repository Q&A → Generation provider: generates answer
artifacts/api-server/src/services/repository-ask-service.ts - Local generation → Generation provider: implements provider
artifacts/api-server/src/services/local-generation-provider.ts - Investigation workflow → Architecture analysis: investigates structure
artifacts/api-server/src/services/repository-investigation-workflow.ts - Investigation workflow → Dependency graph: investigates dependencies
artifacts/api-server/src/services/repository-investigation-workflow.ts - Investigation workflow → Analysis records: loads analysis
artifacts/api-server/src/services/repository-investigation-workflow.ts - Investigation workflow → Code-aware chunking: looks up code
artifacts/api-server/src/services/repository-investigation-workflow.ts - Investigation workflow → Vector indexing: retrieves evidence
artifacts/api-server/src/services/repository-investigation-workflow.ts - Investigation workflow → Repository Q&A: generates response
artifacts/api-server/src/services/repository-investigation-workflow.ts