# rachana-ht2007/skill_extractor architecture

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

- Interactive diagram: https://gitdiagram.com/rachana-ht2007/skill_extractor
- Repository: https://github.com/rachana-ht2007/skill_extractor

## Overview

Skill Extractor is a browser app for turning job descriptions into structured talent intelligence. Users enter text or attach documents, then request either single-JD skill extraction or a two-JD comparison; the React workspace sends the request to a local API handler, which validates inputs and asks Gemini for schema-constrained JSON. Results are presented in the workspace and can be exported as PDF or DOCX. The app also offers guest access, Supabase-backed authentication when configured, saved workspace behavior, sample JDs, personalization, and a 3D visual. Some workspace details are inferred only from the App excerpt and module references; their exact internal flow is not fully shown.

Main entry points: [`src/App.jsx`](https://github.com/rachana-ht2007/skill_extractor/blob/main/src/App.jsx) (Job Analysis Workspace), [`api/extract.js`](https://github.com/rachana-ht2007/skill_extractor/blob/main/api/extract.js) (Extraction API), [`src/main.jsx`](https://github.com/rachana-ht2007/skill_extractor/blob/main/src/main.jsx) (React App Entry), [`src/lib/supabase.js`](https://github.com/rachana-ht2007/skill_extractor/blob/main/src/lib/supabase.js) (Supabase Client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Workspace Experience"]
  node_entry["React App Entry<br/>[main.jsx]"]
  node_workspace["Job Analysis Workspace<br/>[App.jsx]"]
  node_sample_data["Sample Job Descriptions<br/>[sampleJds.js]"]
end

subgraph group_analysis["Extraction and Comparison"]
  node_extract_api["Extraction API<br/>[extract.js]"]
  node_schemas["Response Schemas"]
end

subgraph group_services["Persistence and Export"]
  node_supabase_client["Supabase Client<br/>[supabase.js]"]
  node_report_export["Report Export<br/>[exportReports.js]"]
end

subgraph group_visuals["Visual Presentation"]
  node_orb["3D Skill Orb<br/>[SkillOrb3D.jsx]"]
end

node_user(("Recruiter"))
node_gemini["Gemini AI"]
node_supabase_service[("Supabase")]
node_report_file["PDF or DOCX"]

node_user -->|"opens app"| node_entry
node_entry -->|"renders"| node_workspace
node_workspace -->|"uses samples"| node_sample_data
node_workspace -->|"renders"| node_orb
node_workspace -->|"posts analysis"| node_extract_api
node_extract_api -->|"selects schema"| node_schemas
node_extract_api -->|"requests JSON"| node_gemini
node_extract_api -->|"returns result"| node_workspace
node_workspace -->|"uses auth"| node_supabase_client
node_supabase_client -->|"creates client"| node_supabase_service
node_workspace -->|"exports reports"| node_report_export
node_report_export -->|"saves file"| node_report_file

click node_entry "https://github.com/rachana-ht2007/skill_extractor/blob/main/src/main.jsx"
click node_workspace "https://github.com/rachana-ht2007/skill_extractor/blob/main/src/App.jsx"
click node_sample_data "https://github.com/rachana-ht2007/skill_extractor/blob/main/src/data/sampleJds.js"
click node_orb "https://github.com/rachana-ht2007/skill_extractor/blob/main/src/components/SkillOrb3D.jsx"
click node_extract_api "https://github.com/rachana-ht2007/skill_extractor/blob/main/api/extract.js"
click node_schemas "https://github.com/rachana-ht2007/skill_extractor/blob/main/src/schemas/extractionSchemas.js"
click node_supabase_client "https://github.com/rachana-ht2007/skill_extractor/blob/main/src/lib/supabase.js"
click node_report_export "https://github.com/rachana-ht2007/skill_extractor/blob/main/src/utils/exportReports.js"

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_entry,node_workspace,node_sample_data toneBlue
class node_extract_api,node_schemas,node_supabase_service toneAmber
class node_supabase_client,node_report_export toneMint
class node_orb toneRose
class node_user,node_gemini,node_report_file toneIndigo
```

## Components

### Workspace Experience

- [React App Entry](https://github.com/rachana-ht2007/skill_extractor/blob/main/src/main.jsx): `src/main.jsx`
- [Job Analysis Workspace](https://github.com/rachana-ht2007/skill_extractor/blob/main/src/App.jsx): `src/App.jsx`
- [Sample Job Descriptions](https://github.com/rachana-ht2007/skill_extractor/blob/main/src/data/sampleJds.js): `src/data/sampleJds.js`

### Extraction and Comparison

- [Extraction API](https://github.com/rachana-ht2007/skill_extractor/blob/main/api/extract.js): `api/extract.js`
- [Response Schemas](https://github.com/rachana-ht2007/skill_extractor/blob/main/src/schemas/extractionSchemas.js): `src/schemas/extractionSchemas.js`

### Persistence and Export

- [Supabase Client](https://github.com/rachana-ht2007/skill_extractor/blob/main/src/lib/supabase.js): `src/lib/supabase.js`
- [Report Export](https://github.com/rachana-ht2007/skill_extractor/blob/main/src/utils/exportReports.js): `src/utils/exportReports.js`

### Visual Presentation

- [3D Skill Orb](https://github.com/rachana-ht2007/skill_extractor/blob/main/src/components/SkillOrb3D.jsx): `src/components/SkillOrb3D.jsx`

### Other components

- **Recruiter**
- **Gemini AI**
- **Supabase**
- **PDF or DOCX**

## Connections

- Recruiter → React App Entry: opens app (evidence: `src/main.jsx`)
- React App Entry → Job Analysis Workspace: renders (evidence: `src/main.jsx`)
- Job Analysis Workspace → Sample Job Descriptions: uses samples (evidence: `src/App.jsx`)
- Job Analysis Workspace → 3D Skill Orb: renders (evidence: `src/App.jsx`)
- Job Analysis Workspace → Extraction API: posts analysis (evidence: `README.md`)
- Extraction API → Response Schemas: selects schema (evidence: `api/extract.js`)
- Extraction API → Gemini AI: requests JSON (evidence: `api/extract.js`)
- Extraction API → Job Analysis Workspace: returns result (evidence: `README.md`)
- Job Analysis Workspace → Supabase Client: uses auth (evidence: `src/App.jsx`)
- Supabase Client → Supabase: creates client (evidence: `src/lib/supabase.js`)
- Job Analysis Workspace → Report Export: exports reports (evidence: `src/App.jsx`)
- Report Export → PDF or DOCX: saves file (evidence: `src/utils/exportReports.js`)
