# kanugurajesh/career-guide architecture

> Architecture diagram of the GitHub repository kanugurajesh/career-guide, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kanugurajesh/career-guide
- Repository: https://github.com/kanugurajesh/career-guide

## Overview

Career Aid is a Next.js career-guidance platform: students choose a career, can request AI-generated guidance, and can evaluate their knowledge through a career-specific quiz. Separate features provide an AI chat and an image-generation workflow, with contact-email handling as another capability. The graph follows visible page-to-route calls and documented product intent; unsampled API implementations and integrations are shown only where supported or marked unverified.

Main entry points: [`components/RiveHero.tsx`](https://github.com/kanugurajesh/career-guide/blob/main/components/RiveHero.tsx) (Rive Hero), [`app/Career/page.tsx`](https://github.com/kanugurajesh/career-guide/blob/main/app/Career/page.tsx) (Career Selection), [`app/Imagine/page.tsx`](https://github.com/kanugurajesh/career-guide/blob/main/app/Imagine/page.tsx) (Avatar Creator), [`app/Career/GetGuidance/[name]/page.tsx`](https://github.com/kanugurajesh/career-guide/blob/main/app/Career/GetGuidance/%5Bname%5D/page.tsx) (Career Guidance)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_career["Career Guidance"]
  node_career_page["Career Selection<br/>[page.tsx]"]
  node_career_data["Career Descriptions<br/>[career.d.ts]"]
  node_guidance_page["Career Guidance<br/>[page.tsx]"]
  node_quiz_page["Career Quiz<br/>[page.tsx]"]
  node_quiz_data["Quiz Content"]
  node_imagen_api["Career Image API<br/>[route.ts]"]
end

subgraph group_ai["AI Experiences"]
  node_chat_page["AI Council<br/>[page.tsx]"]
  node_chat_api["Chat API<br/>[route.ts]"]
end

subgraph group_image["Image Generation"]
  node_image_page["Avatar Creator<br/>[page.tsx]"]
  node_upload_client["Upload Client<br/>[uploadthing.ts]"]
  node_upload_api["Upload Endpoint<br/>[route.ts]"]
  node_upload_core["Upload Handler<br/>[core.ts]"]
  node_generate_api["Image Generation API<br/>[route.ts]"]
end

subgraph group_services["Application Services"]
  node_contact_page["Contact Form<br/>[page.tsx]"]
  node_contact_api["Contact API<br/>[route.ts]"]
  node_send_api["Email API<br/>[route.ts]"]
  node_email_template["Email Template<br/>[email-template.tsx]"]
  node_landing["Interactive Landing<br/>[page.tsx]"]
  node_hero["Rive Hero<br/>[RiveHero.tsx]"]
  node_rive_button["Rive Button<br/>[RiveButton.tsx]"]
  node_media_query["Media Query Hook"]
  node_motion_hook["Reduced Motion Hook"]
  node_throttle["Throttle Helper<br/>[throttle.ts]"]
end

node_student(("Student"))
node_resend["Resend Email"]

node_student -->|"chooses career"| node_career_page
node_career_page -->|"loads description"| node_career_data
node_career_page -->|"opens guidance"| node_guidance_page
node_career_page -->|"opens evaluation"| node_quiz_page
node_quiz_page -.->|"loads questions"| node_quiz_data
node_student -->|"asks questions"| node_chat_page
node_chat_page -->|"sends prompt"| node_chat_api
node_student -->|"creates avatar"| node_image_page
node_image_page -->|"uploads picture"| node_upload_client
node_upload_client -->|"calls upload endpoint"| node_upload_api
node_upload_api -->|"routes handler"| node_upload_core
node_image_page -->|"requests generation"| node_generate_api
node_image_page -->|"requests email"| node_send_api
node_guidance_page -->|"requests career advice"| node_chat_api
node_guidance_page -->|"requests career image"| node_imagen_api
node_student -->|"sends message"| node_contact_page
node_contact_page -.->|"submits message"| node_contact_api
node_contact_api -->|"renders email"| node_email_template
node_send_api -->|"uses template"| node_email_template
node_contact_api -->|"sends email"| node_resend
node_send_api -.->|"sends email"| node_resend
node_landing -->|"renders hero"| node_hero
node_hero -->|"renders button"| node_rive_button
node_hero -->|"checks viewport"| node_media_query
node_hero -->|"checks motion preference"| node_motion_hook
node_hero -->|"throttles resize"| node_throttle

click node_career_page "https://github.com/kanugurajesh/career-guide/blob/main/app/Career/page.tsx"
click node_career_data "https://github.com/kanugurajesh/career-guide/blob/main/data/career.d.ts"
click node_guidance_page "https://github.com/kanugurajesh/career-guide/blob/main/app/Career/GetGuidance/%5Bname%5D/page.tsx"
click node_quiz_page "https://github.com/kanugurajesh/career-guide/blob/main/app/Courses/%5Bname%5D/page.tsx"
click node_quiz_data "https://github.com/kanugurajesh/career-guide/tree/main/data"
click node_chat_page "https://github.com/kanugurajesh/career-guide/blob/main/app/Chat/page.tsx"
click node_chat_api "https://github.com/kanugurajesh/career-guide/blob/main/app/api/chat/route.ts"
click node_image_page "https://github.com/kanugurajesh/career-guide/blob/main/app/Imagine/page.tsx"
click node_upload_client "https://github.com/kanugurajesh/career-guide/blob/main/utils/uploadthing.ts"
click node_upload_api "https://github.com/kanugurajesh/career-guide/blob/main/app/api/uploadthing/route.ts"
click node_upload_core "https://github.com/kanugurajesh/career-guide/blob/main/app/api/uploadthing/core.ts"
click node_generate_api "https://github.com/kanugurajesh/career-guide/blob/main/app/api/generate/route.ts"
click node_imagen_api "https://github.com/kanugurajesh/career-guide/blob/main/app/api/imagen/route.ts"
click node_contact_page "https://github.com/kanugurajesh/career-guide/blob/main/app/Contact/page.tsx"
click node_contact_api "https://github.com/kanugurajesh/career-guide/blob/main/app/api/contact/route.ts"
click node_send_api "https://github.com/kanugurajesh/career-guide/blob/main/app/api/send/route.ts"
click node_email_template "https://github.com/kanugurajesh/career-guide/blob/main/components/email-template.tsx"
click node_landing "https://github.com/kanugurajesh/career-guide/blob/main/app/page.tsx"
click node_hero "https://github.com/kanugurajesh/career-guide/blob/main/components/RiveHero.tsx"
click node_rive_button "https://github.com/kanugurajesh/career-guide/blob/main/components/RiveButton.tsx"
click node_media_query "https://github.com/kanugurajesh/career-guide/blob/main/utils/useMediaBreakpoint.ts"
click node_motion_hook "https://github.com/kanugurajesh/career-guide/blob/main/utils/usePrefersReducedMotion.ts"
click node_throttle "https://github.com/kanugurajesh/career-guide/blob/main/utils/throttle.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_career_page,node_career_data,node_guidance_page,node_quiz_page,node_quiz_data,node_imagen_api toneBlue
class node_chat_page,node_chat_api toneAmber
class node_image_page,node_upload_client,node_upload_api,node_upload_core,node_generate_api toneMint
class node_contact_page,node_contact_api,node_send_api,node_email_template,node_landing,node_hero,node_rive_button,node_media_query,node_motion_hook,node_throttle toneRose
class node_student,node_resend toneIndigo
```

## Components

### Career Guidance

- [Career Selection](https://github.com/kanugurajesh/career-guide/blob/main/app/Career/page.tsx): `app/Career/page.tsx`
- [Career Descriptions](https://github.com/kanugurajesh/career-guide/blob/main/data/career.d.ts): `data/career.d.ts`
- [Career Guidance](https://github.com/kanugurajesh/career-guide/blob/main/app/Career/GetGuidance/%5Bname%5D/page.tsx): `app/Career/GetGuidance/[name]/page.tsx`
- [Career Quiz](https://github.com/kanugurajesh/career-guide/blob/main/app/Courses/%5Bname%5D/page.tsx): `app/Courses/[name]/page.tsx`
- [Quiz Content](https://github.com/kanugurajesh/career-guide/tree/main/data): `data`
- [Career Image API](https://github.com/kanugurajesh/career-guide/blob/main/app/api/imagen/route.ts): `app/api/imagen/route.ts`

### AI Experiences

- [AI Council](https://github.com/kanugurajesh/career-guide/blob/main/app/Chat/page.tsx): `app/Chat/page.tsx`
- [Chat API](https://github.com/kanugurajesh/career-guide/blob/main/app/api/chat/route.ts): `app/api/chat/route.ts`

### Image Generation

- [Avatar Creator](https://github.com/kanugurajesh/career-guide/blob/main/app/Imagine/page.tsx): `app/Imagine/page.tsx`
- [Upload Client](https://github.com/kanugurajesh/career-guide/blob/main/utils/uploadthing.ts): `utils/uploadthing.ts`
- [Upload Endpoint](https://github.com/kanugurajesh/career-guide/blob/main/app/api/uploadthing/route.ts): `app/api/uploadthing/route.ts`
- [Upload Handler](https://github.com/kanugurajesh/career-guide/blob/main/app/api/uploadthing/core.ts): `app/api/uploadthing/core.ts`
- [Image Generation API](https://github.com/kanugurajesh/career-guide/blob/main/app/api/generate/route.ts): `app/api/generate/route.ts`

### Application Services

- [Contact Form](https://github.com/kanugurajesh/career-guide/blob/main/app/Contact/page.tsx): `app/Contact/page.tsx`
- [Contact API](https://github.com/kanugurajesh/career-guide/blob/main/app/api/contact/route.ts): `app/api/contact/route.ts`
- [Email API](https://github.com/kanugurajesh/career-guide/blob/main/app/api/send/route.ts): `app/api/send/route.ts`
- [Email Template](https://github.com/kanugurajesh/career-guide/blob/main/components/email-template.tsx): `components/email-template.tsx`
- [Interactive Landing](https://github.com/kanugurajesh/career-guide/blob/main/app/page.tsx): `app/page.tsx`
- [Rive Hero](https://github.com/kanugurajesh/career-guide/blob/main/components/RiveHero.tsx): `components/RiveHero.tsx`
- [Rive Button](https://github.com/kanugurajesh/career-guide/blob/main/components/RiveButton.tsx): `components/RiveButton.tsx`
- [Media Query Hook](https://github.com/kanugurajesh/career-guide/blob/main/utils/useMediaBreakpoint.ts): `utils/useMediaBreakpoint.ts`
- [Reduced Motion Hook](https://github.com/kanugurajesh/career-guide/blob/main/utils/usePrefersReducedMotion.ts): `utils/usePrefersReducedMotion.ts`
- [Throttle Helper](https://github.com/kanugurajesh/career-guide/blob/main/utils/throttle.ts): `utils/throttle.ts`

### Other components

- **Student**
- **Resend Email**

## Connections

- Student → Career Selection: chooses career (evidence: `README.md`)
- Career Selection → Career Descriptions: loads description (evidence: `app/Career/page.tsx`)
- Career Selection → Career Guidance: opens guidance (evidence: `app/Career/page.tsx`)
- Career Selection → Career Quiz: opens evaluation (evidence: `app/Career/page.tsx`)
- Career Quiz → Quiz Content: loads questions
- Student → AI Council: asks questions (evidence: `README.md`)
- AI Council → Chat API: sends prompt (evidence: `app/Chat/page.tsx`)
- Student → Avatar Creator: creates avatar (evidence: `app/Imagine/page.tsx`)
- Avatar Creator → Upload Client: uploads picture (evidence: `app/Imagine/page.tsx`)
- Upload Client → Upload Endpoint: calls upload endpoint (evidence: `utils/uploadthing.ts`)
- Upload Endpoint → Upload Handler: routes handler (evidence: `app/api/uploadthing/route.ts`)
- Avatar Creator → Image Generation API: requests generation (evidence: `app/Imagine/page.tsx`)
- Avatar Creator → Email API: requests email (evidence: `app/Imagine/page.tsx`)
- Career Guidance → Chat API: requests career advice (evidence: `app/Career/GetGuidance/[name]/page.tsx`)
- Career Guidance → Career Image API: requests career image (evidence: `app/Career/GetGuidance/[name]/page.tsx`)
- Student → Contact Form: sends message (evidence: `README.md`)
- Contact Form → Contact API: submits message
- Contact API → Email Template: renders email (evidence: `app/api/contact/route.ts`)
- Email API → Email Template: uses template (evidence: `app/api/send/route.ts`)
- Contact API → Resend Email: sends email (evidence: `app/api/contact/route.ts`)
- Email API → Resend Email: sends email
- Interactive Landing → Rive Hero: renders hero (evidence: `app/page.tsx`)
- Rive Hero → Rive Button: renders button (evidence: `components/RiveHero.tsx`)
- Rive Hero → Media Query Hook: checks viewport (evidence: `components/RiveHero.tsx`)
- Rive Hero → Reduced Motion Hook: checks motion preference (evidence: `components/RiveHero.tsx`)
- Rive Hero → Throttle Helper: throttles resize (evidence: `components/RiveHero.tsx`)
