# gvardhan97/jobify- architecture

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

- Interactive diagram: https://gitdiagram.com/gvardhan97/jobify-
- Repository: https://github.com/gvardhan97/jobify-

## Overview

Jobify is a Next.js job-application tracker. Users enter the dashboard, create or manage applications, and review status counts and monthly trends. Server actions authenticate requests and perform per-user job queries and mutations through Prisma; dashboard pages prefetch data for the client UI. The README also describes Clerk protection, search/filter/pagination, themes, and feedback. Some component implementations were not sampled, so those relationships are included only where the source index or README documents them.

Main entry points: [`utils/actions.ts`](https://github.com/gvardhan97/jobify-/blob/main/utils/actions.ts) (Server actions), [`components/CreateJobForm.tsx`](https://github.com/gvardhan97/jobify-/blob/main/components/CreateJobForm.tsx) (Create job form), [`components/EditJobForm.tsx`](https://github.com/gvardhan97/jobify-/blob/main/components/EditJobForm.tsx) (Edit job form), [`components/JobsList.tsx`](https://github.com/gvardhan97/jobify-/blob/main/components/JobsList.tsx) (Jobs list)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application routes"]
  node_landing["Public landing<br/>[page.tsx]"]
  node_dashboard["Dashboard layout<br/>[layout.tsx]"]
  node_middleware["Route protection<br/>[middleware.ts]"]
  node_addroute["Add job route<br/>[page.tsx]"]
  node_jobsroute["Jobs route<br/>[page.tsx]"]
  node_editroute["Job detail route<br/>[page.tsx]"]
  node_statsroute["Stats route<br/>[page.tsx]"]
end

subgraph group_jobs["Job workflows"]
  node_createform["Create job form<br/>[CreateJobForm.tsx]"]
  node_editform["Edit job form<br/>[EditJobForm.tsx]"]
  node_jobslist["Jobs list<br/>[JobsList.tsx]"]
  node_search["Search and filter<br/>[SearchForm.tsx]"]
  node_jobcard["Job card<br/>[JobCard.tsx]"]
  node_jobactions["Job actions"]
end

subgraph group_insights["Analytics"]
  node_statscontainer["Status summaries<br/>[StatsContainer.tsx]"]
  node_statscard["Status card<br/>[StatsCard.tsx]"]
  node_charts["Monthly charts"]
end

subgraph group_platform["Data and interface"]
  node_actions["Server actions<br/>[actions.ts]"]
  node_database[("Prisma job store<br/>[db.ts]")]
  node_types["Job schema and types<br/>[types.ts]"]
  node_navigation["Dashboard navigation<br/>[Navbar.tsx]"]
  node_theme["Theme toggle<br/>[ThemeToggle.tsx]"]
  node_toasts["Toast feedback<br/>[use-toast.ts]"]
end

node_user(("Job seeker"))
node_clerk{{"Clerk identity"}}
node_postgres[("PostgreSQL")]

node_user -->|"opens"| node_landing
node_user -->|"uses"| node_dashboard
node_middleware -->|"authenticates"| node_clerk
node_addroute -->|"renders"| node_createform
node_jobsroute -->|"prefetches jobs"| node_actions
node_jobsroute -->|"renders"| node_jobslist
node_jobsroute -->|"renders"| node_search
node_editroute -->|"renders"| node_editform
node_editroute -->|"loads job"| node_actions
node_statsroute -->|"prefetches metrics"| node_actions
node_statsroute -->|"renders"| node_statscontainer
node_statsroute -->|"renders"| node_charts
node_createform -->|"creates job"| node_actions
node_editform -->|"updates job"| node_actions
node_createform -->|"validates with"| node_types
node_editform -->|"validates with"| node_types
node_createform -->|"shows feedback"| node_toasts
node_editform -->|"shows feedback"| node_toasts
node_jobslist -->|"renders"| node_jobcard
node_jobslist -->|"uses"| node_jobactions
node_jobslist -->|"loads jobs"| node_actions
node_statscontainer -->|"renders"| node_statscard
node_statscontainer -->|"loads counts"| node_actions
node_charts -->|"loads trends"| node_actions
node_actions -->|"checks identity"| node_clerk
node_actions -->|"queries and mutates"| node_database
node_database -.->|"persists jobs"| node_postgres
node_dashboard -->|"renders"| node_navigation
node_navigation -->|"includes toggle"| node_theme
node_user -.->|"requests dashboard"| node_middleware

click node_landing "https://github.com/gvardhan97/jobify-/blob/main/app/page.tsx"
click node_dashboard "https://github.com/gvardhan97/jobify-/blob/main/app/(dashboard)/layout.tsx"
click node_middleware "https://github.com/gvardhan97/jobify-/blob/main/middleware.ts"
click node_addroute "https://github.com/gvardhan97/jobify-/blob/main/app/(dashboard)/add-job/page.tsx"
click node_jobsroute "https://github.com/gvardhan97/jobify-/blob/main/app/(dashboard)/jobs/page.tsx"
click node_editroute "https://github.com/gvardhan97/jobify-/blob/main/app/(dashboard)/jobs/%5Bid%5D/page.tsx"
click node_statsroute "https://github.com/gvardhan97/jobify-/blob/main/app/(dashboard)/stats/page.tsx"
click node_createform "https://github.com/gvardhan97/jobify-/blob/main/components/CreateJobForm.tsx"
click node_editform "https://github.com/gvardhan97/jobify-/blob/main/components/EditJobForm.tsx"
click node_jobslist "https://github.com/gvardhan97/jobify-/blob/main/components/JobsList.tsx"
click node_search "https://github.com/gvardhan97/jobify-/blob/main/components/SearchForm.tsx"
click node_jobcard "https://github.com/gvardhan97/jobify-/blob/main/components/JobCard.tsx"
click node_jobactions "https://github.com/gvardhan97/jobify-/blob/main/components/ComplexButtonContainer.tsx"
click node_statscontainer "https://github.com/gvardhan97/jobify-/blob/main/components/StatsContainer.tsx"
click node_statscard "https://github.com/gvardhan97/jobify-/blob/main/components/StatsCard.tsx"
click node_charts "https://github.com/gvardhan97/jobify-/blob/main/components/ChartsContainer.tsx"
click node_actions "https://github.com/gvardhan97/jobify-/blob/main/utils/actions.ts"
click node_database "https://github.com/gvardhan97/jobify-/blob/main/utils/db.ts"
click node_types "https://github.com/gvardhan97/jobify-/blob/main/utils/types.ts"
click node_navigation "https://github.com/gvardhan97/jobify-/blob/main/components/Navbar.tsx"
click node_theme "https://github.com/gvardhan97/jobify-/blob/main/components/ThemeToggle.tsx"
click node_toasts "https://github.com/gvardhan97/jobify-/blob/main/components/ui/use-toast.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_landing,node_dashboard,node_middleware,node_addroute,node_jobsroute,node_editroute,node_statsroute toneBlue
class node_createform,node_editform,node_jobslist,node_search,node_jobcard,node_jobactions,node_postgres toneAmber
class node_statscontainer,node_statscard,node_charts toneMint
class node_actions,node_database,node_types,node_navigation,node_theme,node_toasts toneRose
class node_user,node_clerk toneIndigo
```

## Components

### Application routes

- [Public landing](https://github.com/gvardhan97/jobify-/blob/main/app/page.tsx): `app/page.tsx`
- [Dashboard layout](https://github.com/gvardhan97/jobify-/blob/main/app/(dashboard)/layout.tsx): `app/(dashboard)/layout.tsx`
- [Route protection](https://github.com/gvardhan97/jobify-/blob/main/middleware.ts): `middleware.ts`
- [Add job route](https://github.com/gvardhan97/jobify-/blob/main/app/(dashboard)/add-job/page.tsx): `app/(dashboard)/add-job/page.tsx`
- [Jobs route](https://github.com/gvardhan97/jobify-/blob/main/app/(dashboard)/jobs/page.tsx): `app/(dashboard)/jobs/page.tsx`
- [Job detail route](https://github.com/gvardhan97/jobify-/blob/main/app/(dashboard)/jobs/%5Bid%5D/page.tsx): `app/(dashboard)/jobs/[id]/page.tsx`
- [Stats route](https://github.com/gvardhan97/jobify-/blob/main/app/(dashboard)/stats/page.tsx): `app/(dashboard)/stats/page.tsx`

### Job workflows

- [Create job form](https://github.com/gvardhan97/jobify-/blob/main/components/CreateJobForm.tsx): `components/CreateJobForm.tsx`
- [Edit job form](https://github.com/gvardhan97/jobify-/blob/main/components/EditJobForm.tsx): `components/EditJobForm.tsx`
- [Jobs list](https://github.com/gvardhan97/jobify-/blob/main/components/JobsList.tsx): `components/JobsList.tsx`
- [Search and filter](https://github.com/gvardhan97/jobify-/blob/main/components/SearchForm.tsx): `components/SearchForm.tsx`
- [Job card](https://github.com/gvardhan97/jobify-/blob/main/components/JobCard.tsx): `components/JobCard.tsx`
- [Job actions](https://github.com/gvardhan97/jobify-/blob/main/components/ComplexButtonContainer.tsx): `components/ComplexButtonContainer.tsx`

### Analytics

- [Status summaries](https://github.com/gvardhan97/jobify-/blob/main/components/StatsContainer.tsx): `components/StatsContainer.tsx`
- [Status card](https://github.com/gvardhan97/jobify-/blob/main/components/StatsCard.tsx): `components/StatsCard.tsx`
- [Monthly charts](https://github.com/gvardhan97/jobify-/blob/main/components/ChartsContainer.tsx): `components/ChartsContainer.tsx`

### Data and interface

- [Server actions](https://github.com/gvardhan97/jobify-/blob/main/utils/actions.ts): `utils/actions.ts`
- [Prisma job store](https://github.com/gvardhan97/jobify-/blob/main/utils/db.ts): `utils/db.ts`
- [Job schema and types](https://github.com/gvardhan97/jobify-/blob/main/utils/types.ts): `utils/types.ts`
- [Dashboard navigation](https://github.com/gvardhan97/jobify-/blob/main/components/Navbar.tsx): `components/Navbar.tsx`
- [Theme toggle](https://github.com/gvardhan97/jobify-/blob/main/components/ThemeToggle.tsx): `components/ThemeToggle.tsx`
- [Toast feedback](https://github.com/gvardhan97/jobify-/blob/main/components/ui/use-toast.ts): `components/ui/use-toast.ts`

### Other components

- **Job seeker**
- **Clerk identity**
- **PostgreSQL**

## Connections

- Job seeker → Public landing: opens
- Job seeker → Dashboard layout: uses
- Route protection → Clerk identity: authenticates
- Add job route → Create job form: renders (evidence: `app/(dashboard)/add-job/page.tsx`)
- Jobs route → Server actions: prefetches jobs (evidence: `app/(dashboard)/jobs/page.tsx`)
- Jobs route → Jobs list: renders (evidence: `app/(dashboard)/jobs/page.tsx`)
- Jobs route → Search and filter: renders (evidence: `app/(dashboard)/jobs/page.tsx`)
- Job detail route → Edit job form: renders (evidence: `app/(dashboard)/jobs/[id]/page.tsx`)
- Job detail route → Server actions: loads job (evidence: `app/(dashboard)/jobs/[id]/page.tsx`)
- Stats route → Server actions: prefetches metrics (evidence: `app/(dashboard)/stats/page.tsx`)
- Stats route → Status summaries: renders (evidence: `app/(dashboard)/stats/page.tsx`)
- Stats route → Monthly charts: renders (evidence: `app/(dashboard)/stats/page.tsx`)
- Create job form → Server actions: creates job (evidence: `components/CreateJobForm.tsx`)
- Edit job form → Server actions: updates job (evidence: `components/EditJobForm.tsx`)
- Create job form → Job schema and types: validates with (evidence: `components/CreateJobForm.tsx`)
- Edit job form → Job schema and types: validates with (evidence: `components/EditJobForm.tsx`)
- Create job form → Toast feedback: shows feedback (evidence: `components/CreateJobForm.tsx`)
- Edit job form → Toast feedback: shows feedback (evidence: `components/EditJobForm.tsx`)
- Jobs list → Job card: renders (evidence: `components/JobsList.tsx`)
- Jobs list → Job actions: uses (evidence: `components/JobsList.tsx`)
- Jobs list → Server actions: loads jobs (evidence: `components/JobsList.tsx`)
- Status summaries → Status card: renders (evidence: `components/StatsContainer.tsx`)
- Status summaries → Server actions: loads counts (evidence: `components/StatsContainer.tsx`)
- Monthly charts → Server actions: loads trends (evidence: `components/ChartsContainer.tsx`)
- Server actions → Clerk identity: checks identity (evidence: `utils/actions.ts`)
- Server actions → Prisma job store: queries and mutates (evidence: `utils/actions.ts`)
- Prisma job store → PostgreSQL: persists jobs
- Dashboard layout → Dashboard navigation: renders (evidence: `app/(dashboard)/layout.tsx`)
- Dashboard navigation → Theme toggle: includes toggle (evidence: `components/Navbar.tsx`)
- Job seeker → Route protection: requests dashboard
