AI-powered multi-repo intelligence for GitHub organizations.
Next.js 15 + GitHub GraphQL + CrewAI + Supabase + OpenAI
# Install dependencies
pnpm install
# Start Docker services (PostgreSQL & Redis)
docker-compose up -d
# Start development servers
pnpm turbo devThen:
- Visit http://localhost:3000
- Click "Start Scanning"
- Enter organization name:
stephdl - See repositories instantly!
Dashboard: http://localhost:3000 | API: http://localhost:3001
For production OAuth authentication, see apps/api/GITHUB_APP_SETUP.md
Demo Mode: The app works without GitHub OAuth setup using mock data. Perfect for testing the UI!
- ✅ Multi-Repo Scanner: Scan entire GitHub organizations
- ✅ GraphQL Integration: Fast, efficient repository queries
- ✅ File Tree Viewer: Browse repository structure
- ✅ Demo Mode: Works without authentication
- ✅ AI Vulnerability Detection: Scans code for SQL injection, XSS, secrets, auth bypasses
- ✅ Cross-Repo Patterns: Finds duplicated code and shared vulnerabilities
- ✅ Auto-Fix PRs: AI generates secure code fixes and creates GitHub Pull Requests
- ✅ Real-Time Analysis: Streams vulnerability detection progress
org-code-ai/
├── apps/
│ ├── dashboard/ # Next.js 15 frontend
│ └── api/ # Express API server
├── packages/
│ ├── ai-agents/ # CrewAI agents (Phase 2)
│ ├── graphql-client/ # GitHub GraphQL client
│ └── types/ # Shared TypeScript types
└── docker-compose.yml # PostgreSQL & Redis
# Run all apps in development mode
pnpm turbo dev
# Build all apps
pnpm turbo build
# Lint all apps
pnpm turbo lintScans code for:
- SQL injection risks
- XSS vulnerabilities
- Hardcoded secrets/API keys
- Insecure dependencies
- Authentication bypasses
- CSRF vulnerabilities
- Path traversal issues
Finds:
- Duplicated logic across repositories
- Similar vulnerability patterns
- Inconsistent implementations
- Shared dependencies with vulnerabilities
AI generates:
- Secure code fixes for detected vulnerabilities
- GitHub Pull Requests with fixes
- Detailed PR descriptions and commit messages
Copy .env.example to .env.local and configure:
GITHUB_CLIENT_ID- GitHub App Client ID (optional for demo)GITHUB_CLIENT_SECRET- GitHub App Client Secret (optional for demo)SESSION_SECRET- Random secret for sessionsOPENAI_API_KEY- Required for AI analysis (get from https://platform.openai.com/api-keys)ANTHROPIC_API_KEY- Optional, for Claude modelsDATABASE_URL- PostgreSQL connection string
See .env.example for all available variables.
- Visit http://localhost:3000
- Click "Start Scanning"
- Enter organization:
stephdl - Click any repo → "Analyze with AI"
- See vulnerabilities detected in seconds
- Click "Auto-Generate Fix PR" → PR content generated automatically
MIT