# guzmanjoseph/offerly architecture

> Architecture diagram of the GitHub repository guzmanjoseph/offerly, 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/guzmanjoseph/offerly
- Repository: https://github.com/guzmanjoseph/offerly

## Overview

Offerly helps job seekers collect and manage applications, monitor progress, and coordinate interviews and networking. The main workflow is authentication into a protected workspace, adding or importing applications, storing them in Supabase, and reviewing analytics and upcoming actions. Separate branches cover Gmail status synchronization, calendar integration, networking contacts, and one-click job capture from the browser extension. Several page and backend implementations are unsampled; those capabilities and links are retained only where the README or SOURCE INDEX supports them.

Main entry points: [`src/App.jsx`](https://github.com/guzmanjoseph/offerly/blob/main/src/App.jsx) (App Router), [`src/lib/supabaseClient.js`](https://github.com/guzmanjoseph/offerly/blob/main/src/lib/supabaseClient.js) (Supabase Client), [`src/pages/Dashboard.jsx`](https://github.com/guzmanjoseph/offerly/blob/main/src/pages/Dashboard.jsx) (Dashboard), [`src/pages/Applications.jsx`](https://github.com/guzmanjoseph/offerly/blob/main/src/pages/Applications.jsx) (Application Manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Workspace"]
  node_app["App Router<br/>[App.jsx]"]
  node_home["Home Page<br/>[Home.jsx]"]
  node_networking["Networking Tracker<br/>[Networking.jsx]"]
  node_settings["Account Settings<br/>[Settings.jsx]"]
end

subgraph group_application["Application Tracking"]
  node_applications["Application Manager<br/>[Applications.jsx]"]
  node_application_ui["Application Forms"]
end

subgraph group_insights["Insights and Planning"]
  node_calendar_page["Calendar<br/>[Calendar.jsx]"]
  node_dashboard["Dashboard<br/>[Dashboard.jsx]"]
  node_analytics["Application Analytics"]
  node_stats["Application Statistics"]
end

subgraph group_integrations["External Integrations"]
  node_gmail_import["Gmail Import<br/>[ImportGmail.jsx]"]
  node_gmail_sync["Gmail Sync Function<br/>[index.ts]"]
  node_gmail_processor["Email Classification<br/>[sync-account.ts]"]
  node_gmail_matching["Application Status Update<br/>[applications.ts]"]
  node_gmail_api["Gmail API"]
  node_extension["Browser Extension<br/>[popup.js]"]
  node_job_extraction["Job Extraction<br/>[index.ts]"]
  node_calendar_api["Google Calendar Function<br/>[index.ts]"]
  node_google_oauth["Google OAuth"]
end

subgraph group_identity["Identity and Storage"]
  node_auth["Authentication<br/>[Auth.jsx]"]
  node_supabase_client["Supabase Client<br/>[supabaseClient.js]"]
  node_database[("Supabase Database")]
end

node_job_seeker(("Job Seeker"))

node_job_seeker -->|"opens"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_auth
node_app -->|"protects route"| node_applications
node_app -->|"protects route"| node_gmail_import
node_app -->|"protects route"| node_calendar_page
node_app -->|"protects route"| node_networking
node_app -->|"protects route"| node_dashboard
node_app -->|"protects route"| node_settings
node_auth -->|"authenticates with"| node_supabase_client
node_auth -->|"starts sign-in"| node_google_oauth
node_applications -->|"renders"| node_application_ui
node_applications -->|"reads and writes"| node_supabase_client
node_supabase_client -->|"connects to"| node_database
node_gmail_import -->|"requests import"| node_gmail_sync
node_gmail_sync -->|"delegates sync"| node_gmail_processor
node_gmail_processor -->|"fetches messages"| node_gmail_api
node_gmail_processor -->|"updates matching status"| node_gmail_matching
node_gmail_matching -->|"updates applications"| node_database
node_extension -->|"saves job"| node_applications
node_extension -.->|"submits job details"| node_job_extraction
node_calendar_page -.->|"uses calendar integration"| node_calendar_api
node_calendar_api -->|"authorizes access"| node_google_oauth
node_dashboard -->|"renders trend chart"| node_analytics
node_dashboard -->|"calculates metrics"| node_stats
node_dashboard -->|"loads applications"| node_supabase_client
node_dashboard -->|"lists calendar events"| node_calendar_api
node_networking -->|"manages contacts"| node_supabase_client
node_settings -->|"manages account"| node_supabase_client

click node_app "https://github.com/guzmanjoseph/offerly/blob/main/src/App.jsx"
click node_home "https://github.com/guzmanjoseph/offerly/blob/main/src/pages/Home.jsx"
click node_auth "https://github.com/guzmanjoseph/offerly/blob/main/src/pages/Auth.jsx"
click node_supabase_client "https://github.com/guzmanjoseph/offerly/blob/main/src/lib/supabaseClient.js"
click node_applications "https://github.com/guzmanjoseph/offerly/blob/main/src/pages/Applications.jsx"
click node_application_ui "https://github.com/guzmanjoseph/offerly/blob/main/src/applications/ApplicationModal.jsx"
click node_gmail_import "https://github.com/guzmanjoseph/offerly/blob/main/src/pages/ImportGmail.jsx"
click node_gmail_sync "https://github.com/guzmanjoseph/offerly/blob/main/supabase/functions/scan-gmail/index.ts"
click node_gmail_processor "https://github.com/guzmanjoseph/offerly/blob/main/supabase/functions/scan-gmail/sync-account.ts"
click node_gmail_matching "https://github.com/guzmanjoseph/offerly/blob/main/supabase/functions/scan-gmail/applications.ts"
click node_extension "https://github.com/guzmanjoseph/offerly/blob/main/src/offerly-extension/popup.js"
click node_job_extraction "https://github.com/guzmanjoseph/offerly/blob/main/supabase/functions/extract-job/index.ts"
click node_calendar_page "https://github.com/guzmanjoseph/offerly/blob/main/src/pages/Calendar.jsx"
click node_calendar_api "https://github.com/guzmanjoseph/offerly/blob/main/supabase/functions/google-calendar/index.ts"
click node_networking "https://github.com/guzmanjoseph/offerly/blob/main/src/pages/Networking.jsx"
click node_dashboard "https://github.com/guzmanjoseph/offerly/blob/main/src/pages/Dashboard.jsx"
click node_analytics "https://github.com/guzmanjoseph/offerly/blob/main/src/dashboard/ApplicationsOverTime.jsx"
click node_stats "https://github.com/guzmanjoseph/offerly/blob/main/src/utils/applicationStats.js"
click node_settings "https://github.com/guzmanjoseph/offerly/blob/main/src/pages/Settings.jsx"

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_app,node_home,node_networking,node_settings toneBlue
class node_applications,node_application_ui toneAmber
class node_calendar_page,node_dashboard,node_analytics,node_stats toneMint
class node_gmail_import,node_gmail_sync,node_gmail_processor,node_gmail_matching,node_gmail_api,node_extension,node_job_extraction,node_calendar_api,node_google_oauth toneRose
class node_auth,node_supabase_client,node_database,node_job_seeker toneIndigo
```

## Components

### Workspace

- [App Router](https://github.com/guzmanjoseph/offerly/blob/main/src/App.jsx): `src/App.jsx`
- [Home Page](https://github.com/guzmanjoseph/offerly/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`
- [Networking Tracker](https://github.com/guzmanjoseph/offerly/blob/main/src/pages/Networking.jsx): `src/pages/Networking.jsx`
- [Account Settings](https://github.com/guzmanjoseph/offerly/blob/main/src/pages/Settings.jsx): `src/pages/Settings.jsx`

### Application Tracking

- [Application Manager](https://github.com/guzmanjoseph/offerly/blob/main/src/pages/Applications.jsx): `src/pages/Applications.jsx`
- [Application Forms](https://github.com/guzmanjoseph/offerly/blob/main/src/applications/ApplicationModal.jsx): `src/applications/ApplicationModal.jsx`

### Insights and Planning

- [Calendar](https://github.com/guzmanjoseph/offerly/blob/main/src/pages/Calendar.jsx): `src/pages/Calendar.jsx`
- [Dashboard](https://github.com/guzmanjoseph/offerly/blob/main/src/pages/Dashboard.jsx): `src/pages/Dashboard.jsx`
- [Application Analytics](https://github.com/guzmanjoseph/offerly/blob/main/src/dashboard/ApplicationsOverTime.jsx): `src/dashboard/ApplicationsOverTime.jsx`
- [Application Statistics](https://github.com/guzmanjoseph/offerly/blob/main/src/utils/applicationStats.js): `src/utils/applicationStats.js`

### External Integrations

- [Gmail Import](https://github.com/guzmanjoseph/offerly/blob/main/src/pages/ImportGmail.jsx): `src/pages/ImportGmail.jsx`
- [Gmail Sync Function](https://github.com/guzmanjoseph/offerly/blob/main/supabase/functions/scan-gmail/index.ts): `supabase/functions/scan-gmail/index.ts`
- [Email Classification](https://github.com/guzmanjoseph/offerly/blob/main/supabase/functions/scan-gmail/sync-account.ts): `supabase/functions/scan-gmail/sync-account.ts`
- [Application Status Update](https://github.com/guzmanjoseph/offerly/blob/main/supabase/functions/scan-gmail/applications.ts): `supabase/functions/scan-gmail/applications.ts`
- **Gmail API**
- [Browser Extension](https://github.com/guzmanjoseph/offerly/blob/main/src/offerly-extension/popup.js): `src/offerly-extension/popup.js`
- [Job Extraction](https://github.com/guzmanjoseph/offerly/blob/main/supabase/functions/extract-job/index.ts): `supabase/functions/extract-job/index.ts`
- [Google Calendar Function](https://github.com/guzmanjoseph/offerly/blob/main/supabase/functions/google-calendar/index.ts): `supabase/functions/google-calendar/index.ts`
- **Google OAuth**

### Identity and Storage

- [Authentication](https://github.com/guzmanjoseph/offerly/blob/main/src/pages/Auth.jsx): `src/pages/Auth.jsx`
- [Supabase Client](https://github.com/guzmanjoseph/offerly/blob/main/src/lib/supabaseClient.js): `src/lib/supabaseClient.js`
- **Supabase Database**

### Other components

- **Job Seeker**

## Connections

- Job Seeker → App Router: opens
- App Router → Home Page: routes to (evidence: `src/App.jsx`)
- App Router → Authentication: routes to (evidence: `src/App.jsx`)
- App Router → Application Manager: protects route (evidence: `src/App.jsx`)
- App Router → Gmail Import: protects route (evidence: `src/App.jsx`)
- App Router → Calendar: protects route (evidence: `src/App.jsx`)
- App Router → Networking Tracker: protects route (evidence: `src/App.jsx`)
- App Router → Dashboard: protects route (evidence: `src/App.jsx`)
- App Router → Account Settings: protects route (evidence: `src/App.jsx`)
- Authentication → Supabase Client: authenticates with (evidence: `src/pages/Auth.jsx`)
- Authentication → Google OAuth: starts sign-in
- Application Manager → Application Forms: renders (evidence: `src/pages/Applications.jsx`)
- Application Manager → Supabase Client: reads and writes (evidence: `src/pages/Applications.jsx`)
- Supabase Client → Supabase Database: connects to
- Gmail Import → Gmail Sync Function: requests import
- Gmail Sync Function → Email Classification: delegates sync (evidence: `supabase/functions/scan-gmail/index.ts`)
- Email Classification → Gmail API: fetches messages
- Email Classification → Application Status Update: updates matching status (evidence: `supabase/functions/scan-gmail/sync-account.ts`)
- Application Status Update → Supabase Database: updates applications (evidence: `supabase/functions/scan-gmail/applications.ts`)
- Browser Extension → Application Manager: saves job
- Browser Extension → Job Extraction: submits job details
- Calendar → Google Calendar Function: uses calendar integration
- Google Calendar Function → Google OAuth: authorizes access
- Dashboard → Application Analytics: renders trend chart (evidence: `src/pages/Dashboard.jsx`)
- Dashboard → Application Statistics: calculates metrics (evidence: `src/pages/Dashboard.jsx`)
- Dashboard → Supabase Client: loads applications (evidence: `src/pages/Dashboard.jsx`)
- Dashboard → Google Calendar Function: lists calendar events (evidence: `src/pages/Dashboard.jsx`)
- Networking Tracker → Supabase Client: manages contacts (evidence: `src/pages/Networking.jsx`)
- Account Settings → Supabase Client: manages account (evidence: `src/pages/Settings.jsx`)
