# prajwal2867/hiring-accelerator architecture

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

- Interactive diagram: https://gitdiagram.com/prajwal2867/hiring-accelerator
- Repository: https://github.com/prajwal2867/hiring-accelerator

## Overview

Hiring Accelerator is a job-search outreach app: users sign in, search a demo prospect catalog, and create outreach campaigns, with AI-assisted email generation and dashboard tools for managing campaigns, messages, profiles, and performance. Firebase provides authentication and Firestore persistence. The sampled prospect page connects company search and campaign creation, while the email API delegates to Gemini. Some dashboard pages and the Gemini implementation were not excerpted, so their detailed behavior and any additional integrations are not inferred.

Main entry points: [`src/context/AuthContext.tsx`](https://github.com/prajwal2867/hiring-accelerator/blob/main/src/context/AuthContext.tsx) (Auth context), [`src/lib/db.ts`](https://github.com/prajwal2867/hiring-accelerator/blob/main/src/lib/db.ts) (Firestore data), [`src/app/dashboard/prospect/page.tsx`](https://github.com/prajwal2867/hiring-accelerator/blob/main/src/app/dashboard/prospect/page.tsx) (Prospect search), [`src/app/dashboard/page.tsx`](https://github.com/prajwal2867/hiring-accelerator/blob/main/src/app/dashboard/page.tsx) (Dashboard overview)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and identity"]
  node_landing["Landing page<br/>[page.tsx]"]
  node_auth["Auth context<br/>[AuthContext.tsx]"]
end

subgraph group_outreach["Prospecting and outreach"]
  node_prospect["Prospect search<br/>[page.tsx]"]
  node_catalog["Demo company catalog<br/>[mockData.ts]"]
  node_emailapi["Email generation API<br/>[route.ts]"]
  node_gemini["Gemini email generation<br/>[gemini.ts]"]
end

subgraph group_workspace["Campaign workspace"]
  node_dashboard["Dashboard overview<br/>[page.tsx]"]
  node_campaigns["Campaign management<br/>[page.tsx]"]
  node_messages["Messages<br/>[page.tsx]"]
  node_analytics["Outreach analytics<br/>[page.tsx]"]
  node_profile["Candidate profile<br/>[page.tsx]"]
end

subgraph group_platform["Application services"]
  node_firebase["Firebase services<br/>[firebase.ts]"]
  node_firestore[("Firestore data<br/>[db.ts]")]
end

node_applicant(("Job seeker"))
node_google["Google sign-in"]

node_applicant -->|"opens"| node_landing
node_landing -->|"uses identity"| node_auth
node_auth -->|"authenticates"| node_firebase
node_auth -->|"syncs profile"| node_firestore
node_auth -->|"signs in with"| node_google
node_applicant -.->|"searches prospects"| node_prospect
node_prospect -->|"searches"| node_catalog
node_prospect -->|"creates campaigns"| node_firestore
node_applicant -.->|"requests email"| node_emailapi
node_emailapi -->|"generates email"| node_gemini
node_dashboard -->|"checks identity"| node_auth
node_dashboard -->|"subscribes campaigns"| node_firestore
node_campaigns -->|"checks identity"| node_auth
node_campaigns -->|"manages campaigns"| node_firestore
node_messages -->|"uses identity"| node_auth
node_messages -->|"uses data helpers"| node_firestore
node_analytics -->|"checks identity"| node_auth
node_analytics -->|"reads campaigns"| node_firestore
node_profile -->|"checks identity"| node_auth
node_profile -->|"reads and saves profile"| node_firestore

click node_landing "https://github.com/prajwal2867/hiring-accelerator/blob/main/src/app/page.tsx"
click node_auth "https://github.com/prajwal2867/hiring-accelerator/blob/main/src/context/AuthContext.tsx"
click node_firebase "https://github.com/prajwal2867/hiring-accelerator/blob/main/src/lib/firebase.ts"
click node_firestore "https://github.com/prajwal2867/hiring-accelerator/blob/main/src/lib/db.ts"
click node_dashboard "https://github.com/prajwal2867/hiring-accelerator/blob/main/src/app/dashboard/page.tsx"
click node_prospect "https://github.com/prajwal2867/hiring-accelerator/blob/main/src/app/dashboard/prospect/page.tsx"
click node_catalog "https://github.com/prajwal2867/hiring-accelerator/blob/main/src/lib/mockData.ts"
click node_emailapi "https://github.com/prajwal2867/hiring-accelerator/blob/main/src/app/api/generate-email/route.ts"
click node_gemini "https://github.com/prajwal2867/hiring-accelerator/blob/main/src/lib/gemini.ts"
click node_campaigns "https://github.com/prajwal2867/hiring-accelerator/blob/main/src/app/dashboard/campaigns/page.tsx"
click node_messages "https://github.com/prajwal2867/hiring-accelerator/blob/main/src/app/dashboard/messages/page.tsx"
click node_analytics "https://github.com/prajwal2867/hiring-accelerator/blob/main/src/app/dashboard/analytics/page.tsx"
click node_profile "https://github.com/prajwal2867/hiring-accelerator/blob/main/src/app/dashboard/profile/page.tsx"

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_auth toneBlue
class node_prospect,node_catalog,node_emailapi,node_gemini toneAmber
class node_dashboard,node_campaigns,node_messages,node_analytics,node_profile toneMint
class node_firebase,node_firestore toneRose
class node_applicant,node_google toneIndigo
```

## Components

### Entry and identity

- [Landing page](https://github.com/prajwal2867/hiring-accelerator/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Auth context](https://github.com/prajwal2867/hiring-accelerator/blob/main/src/context/AuthContext.tsx): `src/context/AuthContext.tsx`

### Prospecting and outreach

- [Prospect search](https://github.com/prajwal2867/hiring-accelerator/blob/main/src/app/dashboard/prospect/page.tsx): `src/app/dashboard/prospect/page.tsx`
- [Demo company catalog](https://github.com/prajwal2867/hiring-accelerator/blob/main/src/lib/mockData.ts): `src/lib/mockData.ts`
- [Email generation API](https://github.com/prajwal2867/hiring-accelerator/blob/main/src/app/api/generate-email/route.ts): `src/app/api/generate-email/route.ts`
- [Gemini email generation](https://github.com/prajwal2867/hiring-accelerator/blob/main/src/lib/gemini.ts): `src/lib/gemini.ts`

### Campaign workspace

- [Dashboard overview](https://github.com/prajwal2867/hiring-accelerator/blob/main/src/app/dashboard/page.tsx): `src/app/dashboard/page.tsx`
- [Campaign management](https://github.com/prajwal2867/hiring-accelerator/blob/main/src/app/dashboard/campaigns/page.tsx): `src/app/dashboard/campaigns/page.tsx`
- [Messages](https://github.com/prajwal2867/hiring-accelerator/blob/main/src/app/dashboard/messages/page.tsx): `src/app/dashboard/messages/page.tsx`
- [Outreach analytics](https://github.com/prajwal2867/hiring-accelerator/blob/main/src/app/dashboard/analytics/page.tsx): `src/app/dashboard/analytics/page.tsx`
- [Candidate profile](https://github.com/prajwal2867/hiring-accelerator/blob/main/src/app/dashboard/profile/page.tsx): `src/app/dashboard/profile/page.tsx`

### Application services

- [Firebase services](https://github.com/prajwal2867/hiring-accelerator/blob/main/src/lib/firebase.ts): `src/lib/firebase.ts`
- [Firestore data](https://github.com/prajwal2867/hiring-accelerator/blob/main/src/lib/db.ts): `src/lib/db.ts`

### Other components

- **Job seeker**
- **Google sign-in**

## Connections

- Job seeker → Landing page: opens (evidence: `src/app/page.tsx`)
- Landing page → Auth context: uses identity (evidence: `src/app/page.tsx`)
- Auth context → Firebase services: authenticates (evidence: `src/context/AuthContext.tsx`)
- Auth context → Firestore data: syncs profile (evidence: `src/context/AuthContext.tsx`)
- Auth context → Google sign-in: signs in with (evidence: `src/context/AuthContext.tsx`)
- Job seeker → Prospect search: searches prospects
- Prospect search → Demo company catalog: searches (evidence: `src/app/dashboard/prospect/page.tsx`)
- Prospect search → Firestore data: creates campaigns (evidence: `src/app/dashboard/prospect/page.tsx`)
- Job seeker → Email generation API: requests email
- Email generation API → Gemini email generation: generates email (evidence: `src/app/api/generate-email/route.ts`)
- Dashboard overview → Auth context: checks identity (evidence: `src/app/dashboard/page.tsx`)
- Dashboard overview → Firestore data: subscribes campaigns (evidence: `src/app/dashboard/page.tsx`)
- Campaign management → Auth context: checks identity (evidence: `src/app/dashboard/campaigns/page.tsx`)
- Campaign management → Firestore data: manages campaigns (evidence: `src/app/dashboard/campaigns/page.tsx`)
- Messages → Auth context: uses identity (evidence: `src/app/dashboard/messages/page.tsx`)
- Messages → Firestore data: uses data helpers (evidence: `src/app/dashboard/messages/page.tsx`)
- Outreach analytics → Auth context: checks identity (evidence: `src/app/dashboard/analytics/page.tsx`)
- Outreach analytics → Firestore data: reads campaigns (evidence: `src/app/dashboard/analytics/page.tsx`)
- Candidate profile → Auth context: checks identity (evidence: `src/app/dashboard/profile/page.tsx`)
- Candidate profile → Firestore data: reads and saves profile (evidence: `src/app/dashboard/profile/page.tsx`)
