# vijaydhannarapu/career-bridge architecture

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

- Interactive diagram: https://gitdiagram.com/vijaydhannarapu/career-bridge
- Repository: https://github.com/vijaydhannarapu/career-bridge

## Overview

This is a Next.js job portal with job seekers browsing and applying for jobs, and recruiters creating listings, managing visibility, reviewing applications, and updating statuses. Its internal server actions connect those flows to Prisma-backed records and Cloudinary uploads. The graph follows relationships visible in sampled source and the SOURCE INDEX; unsampled route behavior is not inferred.

Main entry points: [`src/app/recruiter/actions/actions.ts`](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/recruiter/actions/actions.ts) (Recruiter Actions), [`src/lib/prisma.ts`](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/lib/prisma.ts) (PostgreSQL Data), [`src/app/user/action/action.ts`](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/user/action/action.ts) (Seeker Actions), [`src/app/components/actions/action.ts`](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/components/actions/action.ts) (Job Actions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_jobseeker["Job Seeker"]
  node_home["Job Discovery<br/>[page.tsx]"]
  node_listing["Job Listings<br/>[JobListing.tsx]"]
  node_applybtn["Apply Control<br/>[ApplyBtn.tsx]"]
  node_profile["Seeker Profile<br/>[page.tsx]"]
  node_applications["Applied Jobs<br/>[page.tsx]"]
  node_withdraw["Withdraw Control<br/>[Withdraw.tsx]"]
end

subgraph group_recruiter["Recruiter Workspace"]
  node_jobform["Create Listing<br/>[page.tsx]"]
  node_manage["Manage Listings<br/>[page.tsx]"]
  node_visibility["Visibility Control"]
  node_review["Review Applications<br/>[page.tsx]"]
  node_status["Application Status<br/>[JobStatus.tsx]"]
  node_edit["Edit Listing<br/>[editForm.tsx]"]
  node_recruiter_onboard["Recruiter Onboarding<br/>[page.tsx]"]
end

subgraph group_services["Server Actions"]
  node_job_actions["Job Actions<br/>[action.ts]"]
  node_recruiter_actions["Recruiter Actions<br/>[actions.ts]"]
  node_seeker_actions["Seeker Actions<br/>[action.ts]"]
  node_webhook["Clerk Webhook<br/>[route.ts]"]
end

subgraph group_infrastructure["Data and Integrations"]
  node_database[("PostgreSQL Data<br/>[prisma.ts]")]
  node_cloudinary["Cloudinary<br/>[cloudinary.ts]"]
end

node_visitor(("Job Seeker"))
node_recruiter(("Recruiter"))
node_clerk["Clerk Identity"]

node_visitor -->|"browses"| node_home
node_home -->|"renders"| node_listing
node_listing -->|"renders"| node_applybtn
node_listing -->|"loads listings"| node_job_actions
node_applybtn -->|"submits application"| node_job_actions
node_jobform -->|"posts listing"| node_job_actions
node_jobform -.->|"loads categories"| node_database
node_jobform -->|"saves listing"| node_database
node_jobform -.->|"onboards recruiter"| node_recruiter_actions
node_manage -->|"renders control"| node_visibility
node_manage -.->|"loads listings"| node_database
node_visibility -->|"changes visibility"| node_recruiter_actions
node_review -->|"loads applications"| node_recruiter_actions
node_review -->|"renders control"| node_status
node_status -->|"updates status"| node_recruiter_actions
node_edit -->|"updates listing"| node_job_actions
node_recruiter_onboard -->|"creates profile"| node_recruiter_actions
node_profile -->|"saves profile"| node_seeker_actions
node_profile -->|"loads profile"| node_database
node_applications -->|"loads applications"| node_seeker_actions
node_applications -->|"renders control"| node_withdraw
node_withdraw -->|"withdraws application"| node_seeker_actions
node_job_actions -->|"reads and writes"| node_database
node_recruiter_actions -->|"reads and writes"| node_database
node_seeker_actions -->|"reads and writes"| node_database
node_seeker_actions -->|"uploads resume"| node_cloudinary
node_recruiter_actions -->|"uploads image"| node_cloudinary
node_webhook -->|"creates user"| node_database
node_clerk -.->|"sends events"| node_webhook
node_profile -->|"authenticates"| node_clerk
node_job_actions -->|"checks identity"| node_clerk
node_seeker_actions -->|"checks identity"| node_clerk
node_recruiter_actions -->|"checks identity"| node_clerk

click node_home "https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/user/page.tsx"
click node_listing "https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/components/JobListing.tsx"
click node_applybtn "https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/components/ApplyBtn.tsx"
click node_profile "https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/user/onboarding/page.tsx"
click node_applications "https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/user/appliedJobs/page.tsx"
click node_withdraw "https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/user/appliedJobs/Withdraw.tsx"
click node_jobform "https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/recruiter/addJob/page.tsx"
click node_manage "https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/recruiter/manageJob/page.tsx"
click node_visibility "https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/recruiter/manageJob/JobVisibilityControl.tsx"
click node_review "https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/recruiter/applications/page.tsx"
click node_status "https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/recruiter/applications/JobStatus.tsx"
click node_edit "https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/recruiter/editJob/editForm.tsx"
click node_recruiter_onboard "https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/recruiter/onboarding/page.tsx"
click node_job_actions "https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/components/actions/action.ts"
click node_recruiter_actions "https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/recruiter/actions/actions.ts"
click node_seeker_actions "https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/user/action/action.ts"
click node_webhook "https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/api/webhooks/clerk/route.ts"
click node_database "https://github.com/vijaydhannarapu/career-bridge/blob/main/src/lib/prisma.ts"
click node_cloudinary "https://github.com/vijaydhannarapu/career-bridge/blob/main/src/lib/cloudinary.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_home,node_listing,node_applybtn,node_profile,node_applications,node_withdraw toneBlue
class node_jobform,node_manage,node_visibility,node_review,node_status,node_edit,node_recruiter_onboard toneAmber
class node_job_actions,node_recruiter_actions,node_seeker_actions,node_webhook toneMint
class node_database,node_cloudinary toneRose
class node_visitor,node_recruiter,node_clerk toneIndigo
```

## Components

### Job Seeker

- [Job Discovery](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/user/page.tsx): `src/app/user/page.tsx`
- [Job Listings](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/components/JobListing.tsx): `src/app/components/JobListing.tsx`
- [Apply Control](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/components/ApplyBtn.tsx): `src/app/components/ApplyBtn.tsx`
- [Seeker Profile](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/user/onboarding/page.tsx): `src/app/user/onboarding/page.tsx`
- [Applied Jobs](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/user/appliedJobs/page.tsx): `src/app/user/appliedJobs/page.tsx`
- [Withdraw Control](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/user/appliedJobs/Withdraw.tsx): `src/app/user/appliedJobs/Withdraw.tsx`

### Recruiter Workspace

- [Create Listing](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/recruiter/addJob/page.tsx): `src/app/recruiter/addJob/page.tsx`
- [Manage Listings](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/recruiter/manageJob/page.tsx): `src/app/recruiter/manageJob/page.tsx`
- [Visibility Control](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/recruiter/manageJob/JobVisibilityControl.tsx): `src/app/recruiter/manageJob/JobVisibilityControl.tsx`
- [Review Applications](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/recruiter/applications/page.tsx): `src/app/recruiter/applications/page.tsx`
- [Application Status](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/recruiter/applications/JobStatus.tsx): `src/app/recruiter/applications/JobStatus.tsx`
- [Edit Listing](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/recruiter/editJob/editForm.tsx): `src/app/recruiter/editJob/editForm.tsx`
- [Recruiter Onboarding](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/recruiter/onboarding/page.tsx): `src/app/recruiter/onboarding/page.tsx`

### Server Actions

- [Job Actions](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/components/actions/action.ts): `src/app/components/actions/action.ts`
- [Recruiter Actions](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/recruiter/actions/actions.ts): `src/app/recruiter/actions/actions.ts`
- [Seeker Actions](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/user/action/action.ts): `src/app/user/action/action.ts`
- [Clerk Webhook](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/app/api/webhooks/clerk/route.ts): `src/app/api/webhooks/clerk/route.ts`

### Data and Integrations

- [PostgreSQL Data](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/lib/prisma.ts): `src/lib/prisma.ts`
- [Cloudinary](https://github.com/vijaydhannarapu/career-bridge/blob/main/src/lib/cloudinary.ts): `src/lib/cloudinary.ts`

### Other components

- **Job Seeker**
- **Recruiter**
- **Clerk Identity**

## Connections

- Job Seeker → Job Discovery: browses (evidence: `src/app/user/page.tsx`)
- Job Discovery → Job Listings: renders (evidence: `src/app/user/page.tsx`)
- Job Listings → Apply Control: renders (evidence: `src/app/components/JobListing.tsx`)
- Job Listings → Job Actions: loads listings (evidence: `src/app/components/JobListing.tsx`)
- Apply Control → Job Actions: submits application (evidence: `src/app/components/ApplyBtn.tsx`)
- Create Listing → Job Actions: posts listing (evidence: `src/app/recruiter/addJob/page.tsx`)
- Create Listing → PostgreSQL Data: loads categories
- Create Listing → PostgreSQL Data: saves listing
- Create Listing → Recruiter Actions: onboards recruiter
- Manage Listings → Visibility Control: renders control (evidence: `src/app/recruiter/manageJob/page.tsx`)
- Manage Listings → PostgreSQL Data: loads listings
- Visibility Control → Recruiter Actions: changes visibility (evidence: `src/app/recruiter/manageJob/JobVisibilityControl.tsx`)
- Review Applications → Recruiter Actions: loads applications (evidence: `src/app/recruiter/applications/page.tsx`)
- Review Applications → Application Status: renders control (evidence: `src/app/recruiter/applications/page.tsx`)
- Application Status → Recruiter Actions: updates status (evidence: `src/app/recruiter/applications/JobStatus.tsx`)
- Edit Listing → Job Actions: updates listing (evidence: `src/app/recruiter/editJob/editForm.tsx`)
- Recruiter Onboarding → Recruiter Actions: creates profile (evidence: `src/app/recruiter/onboarding/page.tsx`)
- Seeker Profile → Seeker Actions: saves profile (evidence: `src/app/user/onboarding/page.tsx`)
- Seeker Profile → PostgreSQL Data: loads profile (evidence: `src/app/user/onboarding/page.tsx`)
- Applied Jobs → Seeker Actions: loads applications (evidence: `src/app/user/appliedJobs/page.tsx`)
- Applied Jobs → Withdraw Control: renders control (evidence: `src/app/user/appliedJobs/page.tsx`)
- Withdraw Control → Seeker Actions: withdraws application (evidence: `src/app/user/appliedJobs/Withdraw.tsx`)
- Job Actions → PostgreSQL Data: reads and writes (evidence: `src/app/components/actions/action.ts`)
- Recruiter Actions → PostgreSQL Data: reads and writes (evidence: `src/app/recruiter/actions/actions.ts`)
- Seeker Actions → PostgreSQL Data: reads and writes (evidence: `src/app/user/action/action.ts`)
- Seeker Actions → Cloudinary: uploads resume (evidence: `src/app/user/action/action.ts`)
- Recruiter Actions → Cloudinary: uploads image (evidence: `src/app/recruiter/actions/actions.ts`)
- Clerk Webhook → PostgreSQL Data: creates user (evidence: `src/app/api/webhooks/clerk/route.ts`)
- Clerk Identity → Clerk Webhook: sends events
- Seeker Profile → Clerk Identity: authenticates (evidence: `src/app/user/onboarding/page.tsx`)
- Job Actions → Clerk Identity: checks identity (evidence: `src/app/components/actions/action.ts`)
- Seeker Actions → Clerk Identity: checks identity (evidence: `src/app/user/action/action.ts`)
- Recruiter Actions → Clerk Identity: checks identity (evidence: `src/app/recruiter/actions/actions.ts`)
