How 403errors/repomind works
RepoMind is a browser-first platform for understanding GitHub repositories and developer profiles through AI chat, architecture visualization, and security scanning. The main repo-chat path accepts a repository query, selects and fetches relevant files, generates a streamed answer, and uses caching; profile chat is a parallel capability. Security scanning produces verification-focused reports, while dashboards expose scan history and repository activity. The README documents these stages, but several service implementations were not sampled, so some subsystem links are omitted or marked unverified.
Main entry points: security-service.ts Scan Orchestration · query-pipeline.ts Query Pipeline · scan-storage.ts Scan History · route.ts Profile Chat API
Components 23
Discovery
- Repo Discovery
src/app/explore/page.tsx - Repository Search
src/lib/search-engine.ts - Trending Repositories
src/components/TrendingClient.tsx
Repository and Profile Chat
- Repo Chat API
src/app/api/chat/repo/route.ts - Profile Chat API
src/app/api/chat/profile/route.ts - Query Pipeline
src/lib/services/query-pipeline.ts - Profile Query Processing
src/app/actions.ts - AI Selection and Tools
src/lib/gemini.ts
Security Scanning
- Security Scan Entry
src/app/actions.ts - Scan Orchestration
src/lib/services/security-service.ts - Security Engine
src/lib/security-scanner.ts - Finding Verification
src/lib/services/security-verification.ts - Dependency Advisories
src/lib/services/dependency-advisory.ts - Scan Reports
src/lib/services/report-service.ts
Accounts and Dashboard
- Scan History
src/lib/services/scan-storage.ts - Dashboard APIs
src/app/api/dashboard/scans/route.ts - Authentication
src/lib/auth.ts
Shared Platform
- Gemini Client
src/lib/ai-client.ts - GitHub API
src/lib/github.ts - Cache and Budgets
src/lib/cache.ts - Application Database
src/lib/db.ts
Other components
- Developer
- OSV Vulnerability API
Connections 27
- Developer → Repo Discovery: explores repos
README.md - Repo Discovery → Repository Search: searches repos
- Developer → Trending Repositories: discovers trends
README.md - Developer → Repo Chat API: asks repo
README.md - Repo Chat API → Query Pipeline: starts stream
src/app/api/chat/repo/route.ts - Query Pipeline → AI Selection and Tools: selects and answers
src/lib/services/query-pipeline.ts - Query Pipeline → GitHub API: fetches files
src/lib/services/query-pipeline.ts - Query Pipeline → Cache and Budgets: reads and caches
src/lib/services/query-pipeline.ts - AI Selection and Tools → Gemini Client: gets model client
src/lib/gemini.ts - AI Selection and Tools → GitHub API: uses repo tools
src/lib/gemini.ts - Developer → Profile Chat API: asks profile
README.md - Profile Chat API → Profile Query Processing: processes query
src/app/api/chat/profile/route.ts - Profile Chat API → Cache and Budgets: checks tool budget
src/app/api/chat/profile/route.ts - Developer → Security Scan Entry: starts scan
README.md - Security Scan Entry → Scan Orchestration: orchestrates scan
src/app/actions.ts - Scan Orchestration → Security Engine: runs checks
- Scan Orchestration → Dependency Advisories: checks dependencies
- Dependency Advisories → OSV Vulnerability API: queries advisories
README.md - Scan Orchestration → Finding Verification: verifies findings
- Scan Orchestration → Scan History: stores results
- Scan Reports → Security Engine: uses findings
src/lib/services/report-service.ts - Scan Reports → Scan History: reads scan data
src/lib/services/report-service.ts - Developer → Dashboard APIs: views history
README.md - Dashboard APIs → Scan History: loads scans
src/app/api/dashboard/scans/route.ts - Scan History → Application Database: reads and writes
src/lib/services/scan-storage.ts - Developer → Authentication: signs in
src/lib/auth.ts - Authentication → Application Database: uses adapter
src/lib/auth.ts