CodeViva AI is a premium repository intelligence platform for students, faculty, and hiring teams. It analyzes GitHub repositories or ZIP uploads and generates deep, actionable insights across originality, quality, architecture, security, viva readiness, and interview readiness.
- AI likelihood and code originality signals
- Code quality scoring (structure, naming, reusability, performance)
- Auto-generated viva and interview questions with expected answers
- Security and architecture summaries
- Rich results dashboards and compare dashboards
- Report sharing and PDF export flow
- Email/password auth + OAuth-ready auth architecture
- Responsive UI optimized for mobile, laptop, and desktop
- Framework: Next.js 16 (App Router)
- Language: TypeScript
- UI: Tailwind CSS v4, Base UI, Framer Motion, Recharts
- Auth: Auth.js / NextAuth v5 (Prisma adapter + credentials)
- Database: PostgreSQL + Prisma ORM
- Validation: Zod
- Uploads: UploadThing
git clone https://github.com/Rounak2408/CodeViva-AI.git
cd CodeViva-AI
npm installCreate a .env file in project root:
DATABASE_URL="postgresql://USER:PASSWORD@HOST:PORT/codeviva"
DIRECT_DATABASE_URL="postgresql://USER:PASSWORD@HOST:PORT/codeviva"
AUTH_SECRET="generate-a-strong-random-secret"
NEXTAUTH_URL="http://localhost:3000"
# Optional
# GITHUB_TOKEN="ghp_xxx" # for higher GitHub API limits
# GITHUB_ID="oauth-client-id" # GitHub OAuth
# GITHUB_SECRET="oauth-client-secret"
# GOOGLE_CLIENT_ID="oauth-client-id" # Google OAuth
# GOOGLE_CLIENT_SECRET="oauth-client-secret"
# OPENAI_API_KEY="sk-..."
# UPLOADTHING_TOKEN="..."npx prisma generate
npx prisma db pushnpm run devOpen: http://localhost:3000
npm run dev- start local development servernpm run build- production buildnpm run start- run production servernpm run lint- run eslintnpm run db:push- push schema changes to DBnpm run db:migrate- create/apply Prisma migration (dev)
/- Landing page/analyzer- GitHub/ZIP analysis flow/results/[scanId]- full analysis dashboard/compare- side-by-side repository comparison/history- user scan history/team- team workspace placeholder
API:
/api/scan/api/compare/api/auth/[...nextauth]/api/report/[scanId]/pdf
- Push code to GitHub
- Import repo into Vercel
- Add all required environment variables
- Point
NEXTAUTH_URLto your Vercel domain - Run Prisma schema on production DB (
npx prisma db push) - Redeploy
Recommended production DB providers: Neon, Supabase, Railway PostgreSQL.
CodeViva AI includes:
- polished auth UX
- multi-page responsive layout
- analyzer + result pipelines
- compare intelligence dashboard
If you want to contribute, open an issue or submit a PR with a clear change summary and test notes.