How aryan-rajawat/proguide works
1. Overall shape
- This is a Next.js App Router application for AI-assisted career guidance, deployed on Vercel and kept in sync from v0.dev.
- The repo is organized around a frontend app, a small set of server API routes, and a Supabase-backed data layer.
2. Primary user-facing surfaces
- The main product pages live under app/: dashboard, jobs, mock-interview, resume-generator, resume-manager, career-insights, profile, and settings.
- app/page.tsx is the entry point/landing page, while app/dashboard/layout.tsx defines the authenticated app shell for the core experience.
3. Authentication boundary
- Authentication is split into dedicated pages under app/auth/signin, signup, and forgot-password.
- This suggests a clear boundary between public access, auth flows, and the protected dashboard area.
4. AI/backend service layer
- The app/api directory contains three route handlers:
- generate-resume
- generate-interview-questions
- career-insights
- These are the main server-side integration points for AI-driven or computed outputs, and they separate client UI from backend generation logic.
5. Data and persistence
- lib/supabase.ts centralizes Supabase access, indicating Supabase is the main backend service for auth and/or database storage.
- The scripts/create-database.sql and scripts/seed-sample-data.sql files show the app expects a real database schema plus seeded sample content.
6. Scheduled/automated processing
- scripts/weekly-insights-cron.js implies an automated job that periodically generates or refreshes career insights.
- That creates a second data flow besides user-triggered API calls: a background batch process that updates insight data on a schedule.
7. Feature-level flows
- Resume generation: resume-generator likely collects user profile inputs, calls generate-resume, and presents generated resume output.
- Mock interview: mock-interview likely uses generate-interview-questions to produce role-specific questions.
- Career insights: career-insights likely reads stored/generated insights and may also call the career-insights API route.
- Jobs: jobs/page.tsx plus jobs/jobs-content.tsx and jobs/loading.tsx indicate a data-driven listing page with a loading state.
8. Dashboard and account management
- app/dashboard/page.tsx, profile/page.tsx, and settings/page.tsx form the post-login control center.
- These pages likely consume the same user identity and stored career data to present personalized status, preferences, and progress.
9. Shared UI system
- components/ui/* contains a shadcn-style component library: buttons, cards, tabs, inputs, select, dropdowns, etc.
- components/theme-provider.tsx and app/globals.css/styles/globals.css indicate a centralized theming and global styling layer.
- tailwind.config.ts, postcss.config.mjs, and components.json reinforce that the UI stack is Tailwind-centric with prebuilt primitives.
10. Static assets and legacy artifacts
- The root-level .html, .js, and .css files (index.html, dashboard.html, auth.html, career-insights.html, mock-interview.html, resume-generator.html, script.js, styles.css) look like older static prototypes or exported artifacts.
- They are separate from the App Router structure and are likely not the primary runtime path, but they matter if an architecture diagram needs to show historical/static entry points.
11. Runtime/deployment model
- The app is designed to run as a server-rendered Next.js app with serverless route handlers on Vercel.
- Client pages, API routes, Supabase, and the cron script form the main execution boundaries: browser UI → Next.js server routes → Supabase/database/background jobs.
12. What to draw in an architecture diagram
- A good diagram would show:
- Browser/UI pages in app/*
- Shared component library and theme layer
- Next.js API routes as the backend service boundary
- Supabase as the persistence/auth layer
- Scheduled cron script feeding career insights
- Static legacy HTML files as an optional side branch, not the core path
Main entry points: layout.tsx App shell · button.tsx UI kit · supabase.ts Supabase · page.tsx Landing
Components 24
App UI
Next.js App Router pages and shared frontend shell.
- Landing · Public entry page for the product.
app/page.tsx - Sign in · Authentication entry page.
app/auth/signin/page.tsx - Sign up · Account creation page.
app/auth/signup/page.tsx - Reset password · Password recovery page.
app/auth/forgot-password/page.tsx - App shell · Authenticated layout wrapping core app experiences.
app/dashboard/layout.tsx - Dashboard · Primary logged-in overview.
app/dashboard/page.tsx - Jobs · Job browsing experience with loading state.
app/jobs/page.tsx - Resume builder · User-facing resume generation flow.
app/resume-generator/page.tsx - Resume manager · Resume management and storage surface.
app/resume-manager/page.tsx - Mock interview · Interview practice experience.
app/mock-interview/page.tsx - Career insights · Insights viewing surface.
app/career-insights/page.tsx - Profile · User profile and identity settings.
app/profile/page.tsx - Settings · User preferences and app settings.
app/settings/page.tsx
Backend
Server route handlers and scheduled processing.
- Generate resume · Server endpoint for AI-assisted resume generation.
app/api/generate-resume/route.ts - Interview questions · Server endpoint for mock interview question generation.
app/api/generate-interview-questions/route.ts - Insights API · Server endpoint for career insight computation.
app/api/career-insights/route.ts - Weekly cron · Scheduled script that refreshes or precomputes insights.
scripts/weekly-insights-cron.js
Data Layer
Supabase access and database setup.
Shared UI
Reusable component and styling system.
- Theme · Shared theme provider for the app.
components/theme-provider.tsx - UI kit · Reusable shadcn-style UI primitives.
components/ui/button.tsx - Global styles · App-wide CSS and Tailwind integration.
app/globals.css
Legacy Artifacts
Static prototype files kept outside the main app runtime.
- Static pages · Older standalone HTML prototypes outside the App Router runtime.
index.html
Connections 29
- Landing → Sign in: start auth · Public users move into sign-in flow.
- Landing → Sign up: create account · Public users can register.
- Sign in → App shell: enter app · Successful auth lands in protected shell.
- Sign up → App shell: enter app · New accounts flow into the protected area.
- Reset password → Sign in: recover · Password reset returns users to sign in.
- App shell → Dashboard: wraps · Layout provides shared authenticated chrome.
- App shell → Jobs: navigates · Core app shell hosts feature pages.
- App shell → Resume builder: navigates · Core app shell hosts feature pages.
- App shell → Resume manager: navigates · Core app shell hosts feature pages.
- App shell → Mock interview: navigates · Core app shell hosts feature pages.
- App shell → Career insights: navigates · Core app shell hosts feature pages.
- App shell → Profile: navigates · Core app shell hosts feature pages.
- App shell → Settings: navigates · Core app shell hosts feature pages.
- Resume builder → Generate resume: calls · Resume page requests generated output.
- Mock interview → Interview questions: calls · Interview page requests generated questions.
- Career insights → Insights API: calls · Insights page requests computed or generated insights.
- Generate resume → Supabase: reads/writes · Backend route uses Supabase for persistence or auth context.
- Interview questions → Supabase: reads/writes · Backend route uses Supabase for persistence or auth context.
- Insights API → Supabase: reads/writes · Backend route uses Supabase for persistence or auth context.
- Weekly cron → Insights API: refreshes · Scheduled job feeds the insights pipeline.
- Supabase → Schema: defined by · Schema setup describes the backing data model.
- Supabase → Seed data: seeded by · Sample data populates the database for development.
- Theme → UI kit: uses · Theme layer supports shared UI primitives.
- Global styles → Theme: styles · Global styling underpins the theme provider.
- UI kit → Jobs: renders · Feature pages consume shared primitives.
- UI kit → Resume builder: renders · Feature pages consume shared primitives.
- UI kit → Mock interview: renders · Feature pages consume shared primitives.
- UI kit → Career insights: renders · Feature pages consume shared primitives.
- Static pages → Landing: prototype · Static artifacts parallel the main app entry point.