How yashksaini-coder/pair-pal works
Project type and purpose
• This is a full-stack web application built on Next.js (React), designed as a matchmaking/chat system.
• It supports user authentication via NextAuth (GitHub OAuth), user profiles, swipe-style matching, messaging, and profile syncing with GitHub.
File structure
• src/app – UI routes and pages (React components rendered server/client).
– app/api – Next.js API route handlers grouped by feature: auth, github, matches, messages, profiles, swipe.
– app/auth, app/chat, app/matches, app/swipe, app/profile – pages and layouts for each feature.
• src/components – shared React components and UI primitives (Tailwind, custom UI kit).
• src/lib – core business logic and integrations:
– db.ts – database connection/ORM (Prisma? or similar)
– github.ts – GitHub API wrappers
– matching.ts – match-making algorithm
– utils.ts, extractUrls.ts – helpers
• src/models – TypeScript models/entities for User, Match, Message, Swipe.
• src/hooks – client hooks (useMobile).
• Configuration: next.config.ts, postcss.config.mjs, pnpm-workspace.yaml, tsconfig.json.
README for additional insights
• Standard Next.js boilerplate, uses next/font, deploys to Vercel.