# begindtheseen/seen architecture

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

- Interactive diagram: https://gitdiagram.com/begindtheseen/seen
- Repository: https://github.com/begindtheseen/seen
- Video tour (about a minute): https://gitdiagram.com/begindtheseen/seen/video

## Overview

SeenJobs combines job discovery, résumé/application analysis, application-outcome tracking, and employer tools. A seeker can search listings, analyze a résumé against a role, and track applications and outcomes; employers have separate listing, analytics, notification, and reputation surfaces. The evidence shows several client-to-API and store relationships, but the README provides no product detail and most server handlers were not sampled, so links between those server-side subsystems are intentionally omitted.

Main entry points: [`app/tracker/page.tsx`](https://github.com/begindtheseen/seen/blob/next-migration/app/tracker/page.tsx) (Application tracker), [`app/resume/page.tsx`](https://github.com/begindtheseen/seen/blob/next-migration/app/resume/page.tsx) (Résumé workspace), [`components/employer/EmployerHub.tsx`](https://github.com/begindtheseen/seen/blob/next-migration/components/employer/EmployerHub.tsx) (Employer portal), [`lib/auth.tsx`](https://github.com/begindtheseen/seen/blob/next-migration/lib/auth.tsx) (Authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Job discovery"]
  node_search["Job search<br/>[useJobSearch.ts]"]
  node_job_api["Job search API<br/>[jobs.js]"]
  node_job_discovery["Job sourcing<br/>[discovery.js]"]
end

subgraph group_career["Career intelligence"]
  node_resume_page["Résumé workspace<br/>[page.tsx]"]
  node_optimizer_api["Optimizer API<br/>[optimizer.js]"]
  node_optimizer["Résumé-job optimizer<br/>[index.js]"]
  node_resume_intel["Match analysis<br/>[engine.js]"]
  node_application_intel["Application intelligence"]
  node_humanizer["HumanProof writing<br/>[index.js]"]
  node_profile["Profile and résumé<br/>[page.tsx]"]
  node_resume_survey["Résumé survey"]
end

subgraph group_tracking["Application tracking"]
  node_tracker["Application tracker<br/>[page.tsx]"]
  node_outcome["Outcome capture<br/>[OutcomeCard.tsx]"]
  node_application_store["Application store<br/>[AppStore.ts]"]
  node_event_store["Hiring-event store<br/>[EventStore.ts]"]
  node_survey["Survey<br/>[SurveyModal.tsx]"]
end

subgraph group_employer["Employer tools"]
  node_employer_portal["Employer portal<br/>[EmployerHub.tsx]"]
  node_employer_listings["Listing management"]
  node_employer_analytics["Employer analytics"]
  node_employer_claims["Company claims<br/>[employerClaims.js]"]
end

subgraph group_platform["Identity and data"]
  node_auth["Authentication<br/>[auth.tsx]"]
  node_ai_headers["API credentials<br/>[aiHeaders.ts]"]
  node_sync["Account sync<br/>[sync.ts]"]
  node_supabase[("Supabase<br/>[supabase.ts]")]
end

node_seeker(("Job seeker"))

node_seeker -->|"searches"| node_search
node_search -->|"requests jobs"| node_job_api
node_resume_page -->|"requests analysis"| node_optimizer_api
node_resume_page -->|"renders analysis"| node_resume_intel
node_resume_page -.->|"uses résumé"| node_profile
node_resume_page -->|"builds headers"| node_ai_headers
node_optimizer -.->|"returns match analysis"| node_resume_intel
node_humanizer -->|"extracts résumé facts"| node_optimizer
node_application_intel -.->|"supports analysis"| node_resume_page
node_seeker -->|"tracks applications"| node_tracker
node_tracker -->|"loads applications"| node_application_store
node_tracker -->|"records events"| node_event_store
node_tracker -->|"shows outcome form"| node_outcome
node_tracker -->|"shows survey"| node_survey
node_application_store -->|"syncs account data"| node_sync
node_application_store -->|"uses client"| node_supabase
node_auth -->|"authenticates"| node_supabase
node_auth -->|"loads profile"| node_sync
node_auth -->|"resolves claims"| node_employer_claims
node_ai_headers -->|"gets session token"| node_supabase
node_seeker -->|"manages profile"| node_profile
node_employer_portal -.->|"manages listings"| node_employer_listings
node_employer_portal -.->|"views metrics"| node_employer_analytics
node_employer_portal -.->|"claims company"| node_employer_claims
node_seeker -.->|"completes survey"| node_resume_survey

click node_search "https://github.com/begindtheseen/seen/blob/next-migration/lib/hooks/useJobSearch.ts"
click node_job_api "https://github.com/begindtheseen/seen/blob/next-migration/api/jobs.js"
click node_job_discovery "https://github.com/begindtheseen/seen/blob/next-migration/lib/jobs/discovery.js"
click node_resume_page "https://github.com/begindtheseen/seen/blob/next-migration/app/resume/page.tsx"
click node_optimizer_api "https://github.com/begindtheseen/seen/blob/next-migration/api/optimizer.js"
click node_optimizer "https://github.com/begindtheseen/seen/blob/next-migration/lib/optimizer/index.js"
click node_resume_intel "https://github.com/begindtheseen/seen/blob/next-migration/lib/resume-intelligence/engine.js"
click node_application_intel "https://github.com/begindtheseen/seen/tree/next-migration/lib/application-intelligence"
click node_humanizer "https://github.com/begindtheseen/seen/blob/next-migration/lib/humanizer/index.js"
click node_profile "https://github.com/begindtheseen/seen/blob/next-migration/app/profile/page.tsx"
click node_tracker "https://github.com/begindtheseen/seen/blob/next-migration/app/tracker/page.tsx"
click node_outcome "https://github.com/begindtheseen/seen/blob/next-migration/components/OutcomeCard.tsx"
click node_application_store "https://github.com/begindtheseen/seen/blob/next-migration/lib/stores/AppStore.ts"
click node_event_store "https://github.com/begindtheseen/seen/blob/next-migration/lib/stores/EventStore.ts"
click node_employer_portal "https://github.com/begindtheseen/seen/blob/next-migration/components/employer/EmployerHub.tsx"
click node_employer_listings "https://github.com/begindtheseen/seen/blob/next-migration/components/employer/EmployerListingsManager.tsx"
click node_employer_analytics "https://github.com/begindtheseen/seen/blob/next-migration/lib/server/employerAnalytics.js"
click node_employer_claims "https://github.com/begindtheseen/seen/blob/next-migration/lib/server/employerClaims.js"
click node_auth "https://github.com/begindtheseen/seen/blob/next-migration/lib/auth.tsx"
click node_ai_headers "https://github.com/begindtheseen/seen/blob/next-migration/lib/aiHeaders.ts"
click node_sync "https://github.com/begindtheseen/seen/blob/next-migration/lib/sync.ts"
click node_supabase "https://github.com/begindtheseen/seen/blob/next-migration/lib/supabase.ts"
click node_resume_survey "https://github.com/begindtheseen/seen/blob/next-migration/components/ResumeSurveyModal.tsx"
click node_survey "https://github.com/begindtheseen/seen/blob/next-migration/components/SurveyModal.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_search,node_job_api,node_job_discovery toneBlue
class node_resume_page,node_optimizer_api,node_optimizer,node_resume_intel,node_application_intel,node_humanizer,node_profile,node_resume_survey toneAmber
class node_tracker,node_outcome,node_application_store,node_event_store,node_survey toneMint
class node_employer_portal,node_employer_listings,node_employer_analytics,node_employer_claims toneRose
class node_auth,node_ai_headers,node_sync,node_supabase,node_seeker toneIndigo
```

## Components

### Job discovery

- [Job search](https://github.com/begindtheseen/seen/blob/next-migration/lib/hooks/useJobSearch.ts): `lib/hooks/useJobSearch.ts`
- [Job search API](https://github.com/begindtheseen/seen/blob/next-migration/api/jobs.js): `api/jobs.js`
- [Job sourcing](https://github.com/begindtheseen/seen/blob/next-migration/lib/jobs/discovery.js): `lib/jobs/discovery.js`

### Career intelligence

- [Résumé workspace](https://github.com/begindtheseen/seen/blob/next-migration/app/resume/page.tsx): `app/resume/page.tsx`
- [Optimizer API](https://github.com/begindtheseen/seen/blob/next-migration/api/optimizer.js): `api/optimizer.js`
- [Résumé-job optimizer](https://github.com/begindtheseen/seen/blob/next-migration/lib/optimizer/index.js): `lib/optimizer/index.js`
- [Match analysis](https://github.com/begindtheseen/seen/blob/next-migration/lib/resume-intelligence/engine.js): `lib/resume-intelligence/engine.js`
- [Application intelligence](https://github.com/begindtheseen/seen/tree/next-migration/lib/application-intelligence): `lib/application-intelligence`
- [HumanProof writing](https://github.com/begindtheseen/seen/blob/next-migration/lib/humanizer/index.js): `lib/humanizer/index.js`
- [Profile and résumé](https://github.com/begindtheseen/seen/blob/next-migration/app/profile/page.tsx): `app/profile/page.tsx`
- [Résumé survey](https://github.com/begindtheseen/seen/blob/next-migration/components/ResumeSurveyModal.tsx): `components/ResumeSurveyModal.tsx`

### Application tracking

- [Application tracker](https://github.com/begindtheseen/seen/blob/next-migration/app/tracker/page.tsx): `app/tracker/page.tsx`
- [Outcome capture](https://github.com/begindtheseen/seen/blob/next-migration/components/OutcomeCard.tsx): `components/OutcomeCard.tsx`
- [Application store](https://github.com/begindtheseen/seen/blob/next-migration/lib/stores/AppStore.ts): `lib/stores/AppStore.ts`
- [Hiring-event store](https://github.com/begindtheseen/seen/blob/next-migration/lib/stores/EventStore.ts): `lib/stores/EventStore.ts`
- [Survey](https://github.com/begindtheseen/seen/blob/next-migration/components/SurveyModal.tsx): `components/SurveyModal.tsx`

### Employer tools

- [Employer portal](https://github.com/begindtheseen/seen/blob/next-migration/components/employer/EmployerHub.tsx): `components/employer/EmployerHub.tsx`
- [Listing management](https://github.com/begindtheseen/seen/blob/next-migration/components/employer/EmployerListingsManager.tsx): `components/employer/EmployerListingsManager.tsx`
- [Employer analytics](https://github.com/begindtheseen/seen/blob/next-migration/lib/server/employerAnalytics.js): `lib/server/employerAnalytics.js`
- [Company claims](https://github.com/begindtheseen/seen/blob/next-migration/lib/server/employerClaims.js): `lib/server/employerClaims.js`

### Identity and data

- [Authentication](https://github.com/begindtheseen/seen/blob/next-migration/lib/auth.tsx): `lib/auth.tsx`
- [API credentials](https://github.com/begindtheseen/seen/blob/next-migration/lib/aiHeaders.ts): `lib/aiHeaders.ts`
- [Account sync](https://github.com/begindtheseen/seen/blob/next-migration/lib/sync.ts): `lib/sync.ts`
- [Supabase](https://github.com/begindtheseen/seen/blob/next-migration/lib/supabase.ts): `lib/supabase.ts`

### Other components

- **Job seeker**

## Connections

- Job seeker → Job search: searches
- Job search → Job search API: requests jobs (evidence: `lib/hooks/useJobSearch.ts`)
- Résumé workspace → Optimizer API: requests analysis (evidence: `app/resume/page.tsx`)
- Résumé workspace → Match analysis: renders analysis (evidence: `app/resume/page.tsx`)
- Résumé workspace → Profile and résumé: uses résumé
- Résumé workspace → API credentials: builds headers (evidence: `app/resume/page.tsx`)
- Résumé-job optimizer → Match analysis: returns match analysis
- HumanProof writing → Résumé-job optimizer: extracts résumé facts (evidence: `lib/humanizer/index.js`)
- Application intelligence → Résumé workspace: supports analysis
- Job seeker → Application tracker: tracks applications
- Application tracker → Application store: loads applications (evidence: `app/tracker/page.tsx`)
- Application tracker → Hiring-event store: records events (evidence: `app/tracker/page.tsx`)
- Application tracker → Outcome capture: shows outcome form (evidence: `app/tracker/page.tsx`)
- Application tracker → Survey: shows survey (evidence: `app/tracker/page.tsx`)
- Application store → Account sync: syncs account data (evidence: `lib/stores/AppStore.ts`)
- Application store → Supabase: uses client (evidence: `lib/stores/AppStore.ts`)
- Authentication → Supabase: authenticates (evidence: `lib/auth.tsx`)
- Authentication → Account sync: loads profile (evidence: `lib/auth.tsx`)
- Authentication → Company claims: resolves claims (evidence: `lib/auth.tsx`)
- API credentials → Supabase: gets session token (evidence: `lib/aiHeaders.ts`)
- Job seeker → Profile and résumé: manages profile
- Employer portal → Listing management: manages listings
- Employer portal → Employer analytics: views metrics
- Employer portal → Company claims: claims company
- Job seeker → Résumé survey: completes survey
