This document describes the high-level system architecture for DevScope.
- Built with Next.js App Router
- Server Components used for data-heavy pages
- Client Components used only where interactivity is required
- Implemented using Next.js Route Handlers (
/app/api) - Integrates with GitHub REST and GraphQL APIs
- Uses Prisma ORM for database access
- Route handlers are responsible for authentication, GitHub API orchestration, and database writes
- PostgreSQL
- Stores cached GitHub data to avoid refetching on every page load
- GitHub OAuth via NextAuth
- OAuth tokens stored securely on the server
- No direct client-side access to tokens
- Deployed on Vercel
- Frontend and backend hosted together