Architecture Overview¶
Technology Stack¶
- Framework: Next.js 15 with App Router and Turbopack
- Database: Neon Postgres (EU region)
- Authentication: NextAuth.js with GitHub OAuth
- Payments: Stripe (production)
- Analytics: PostHog (EU servers) + Vercel Analytics
- Storage: Vercel KV (Redis)
- Hosting: Vercel
Key Components¶
Frontend (src/app/)¶
- Main analysis UI with Monaco Editor
- Dashboard for team management
- Settings pages (billing, members, security)
Backend (src/lib/)¶
- Analyzers: JavaScript, Python, Java security scanners
- GitHub Integration: Webhook handlers, PR analysis
- Billing: Stripe integration, usage tracking
- Database: Drizzle ORM with Postgres
API (src/app/api/)¶
- Teams API (create, manage, delete)
- Members API (invite, roles, limits)
- Billing API (checkout, webhooks, portal)
- GitHub Webhooks (PR events)
See Technical Guides for detailed documentation.