# nikhil-69/naukri-auto-resume-update architecture

> Architecture diagram of the GitHub repository nikhil-69/naukri-auto-resume-update, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nikhil-69/naukri-auto-resume-update
- Repository: https://github.com/nikhil-69/naukri-auto-resume-update

## Overview

This repository automates Naukri resume updates: a user creates a saved browser login state, optionally minimizes it, then a cron or manual run uses that state to upload the current resume and confirm the result. The graph distinguishes setup, state preparation, and the upload flow, with configuration shared by each command. README documents an optional GitHub Actions route, but its workflow implementation was not sampled; links to it are therefore omitted. The runtime edges shown are supported by the sampled source and README.

Main entry points: [`src/update-resume.js`](https://github.com/nikhil-69/naukri-auto-resume-update/blob/master/src/update-resume.js) (Upload runner), [`src/login.js`](https://github.com/nikhil-69/naukri-auto-resume-update/blob/master/src/login.js) (Browser login), [`src/minimize-state.js`](https://github.com/nikhil-69/naukri-auto-resume-update/blob/master/src/minimize-state.js) (Cookie minimizer), [`src/config.js`](https://github.com/nikhil-69/naukri-auto-resume-update/blob/master/src/config.js) (Runtime settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Login setup"]
  node_login["Browser login<br/>[login.js]"]
end

subgraph group_state["Session state"]
  node_saved_state["Saved login state<br/>[login.js]"]
  node_minimize["Cookie minimizer<br/>[minimize-state.js]"]
  node_minimal_state["Minimal state file<br/>[minimize-state.js]"]
end

subgraph group_upload["Resume update"]
  node_update["Upload runner<br/>[update-resume.js]"]
  node_status["Upload confirmation<br/>[update-resume.js]"]
end

subgraph group_config["Shared configuration"]
  node_config["Runtime settings<br/>[config.js]"]
end

node_user(("Operator"))
node_naukri_login{{"Naukri login"}}
node_resume["Current resume"]
node_naukri_profile{{"Naukri profile"}}

node_user -->|"starts login"| node_login
node_login -->|"reads settings"| node_config
node_login -->|"opens login"| node_naukri_login
node_naukri_login -->|"provides session"| node_login
node_login -->|"writes state"| node_saved_state
node_user -->|"runs optional"| node_minimize
node_minimize -->|"reads state path"| node_config
node_minimize -->|"reads cookies"| node_saved_state
node_minimize -->|"writes cookies"| node_minimal_state
node_user -->|"starts update"| node_update
node_update -->|"reads settings"| node_config
node_update -->|"loads state"| node_saved_state
node_update -->|"uploads file"| node_resume
node_update -->|"opens profile"| node_naukri_profile
node_naukri_profile -->|"returns upload response"| node_update
node_update -->|"checks timestamp"| node_status

click node_login "https://github.com/nikhil-69/naukri-auto-resume-update/blob/master/src/login.js"
click node_saved_state "https://github.com/nikhil-69/naukri-auto-resume-update/blob/master/src/login.js"
click node_minimize "https://github.com/nikhil-69/naukri-auto-resume-update/blob/master/src/minimize-state.js"
click node_minimal_state "https://github.com/nikhil-69/naukri-auto-resume-update/blob/master/src/minimize-state.js"
click node_config "https://github.com/nikhil-69/naukri-auto-resume-update/blob/master/src/config.js"
click node_resume "https://github.com/nikhil-69/naukri-auto-resume-update/tree/master/resumes"
click node_update "https://github.com/nikhil-69/naukri-auto-resume-update/blob/master/src/update-resume.js"
click node_status "https://github.com/nikhil-69/naukri-auto-resume-update/blob/master/src/update-resume.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_login toneBlue
class node_saved_state,node_minimize,node_minimal_state toneAmber
class node_update,node_status toneMint
class node_config toneRose
class node_user,node_naukri_login,node_naukri_profile toneIndigo
class node_resume toneTeal
```

## Components

### Login setup

- [Browser login](https://github.com/nikhil-69/naukri-auto-resume-update/blob/master/src/login.js): `src/login.js`

### Session state

- [Saved login state](https://github.com/nikhil-69/naukri-auto-resume-update/blob/master/src/login.js): `src/login.js`
- [Cookie minimizer](https://github.com/nikhil-69/naukri-auto-resume-update/blob/master/src/minimize-state.js): `src/minimize-state.js`
- [Minimal state file](https://github.com/nikhil-69/naukri-auto-resume-update/blob/master/src/minimize-state.js): `src/minimize-state.js`

### Resume update

- [Upload runner](https://github.com/nikhil-69/naukri-auto-resume-update/blob/master/src/update-resume.js): `src/update-resume.js`
- [Upload confirmation](https://github.com/nikhil-69/naukri-auto-resume-update/blob/master/src/update-resume.js): `src/update-resume.js`

### Shared configuration

- [Runtime settings](https://github.com/nikhil-69/naukri-auto-resume-update/blob/master/src/config.js): `src/config.js`

### Other components

- **Operator**
- **Naukri login**
- [Current resume](https://github.com/nikhil-69/naukri-auto-resume-update/tree/master/resumes): `resumes`
- **Naukri profile**

## Connections

- Operator → Browser login: starts login (evidence: `README.md`)
- Browser login → Runtime settings: reads settings (evidence: `src/login.js`)
- Browser login → Naukri login: opens login (evidence: `src/login.js`)
- Naukri login → Browser login: provides session (evidence: `src/login.js`)
- Browser login → Saved login state: writes state (evidence: `src/login.js`)
- Operator → Cookie minimizer: runs optional (evidence: `README.md`)
- Cookie minimizer → Runtime settings: reads state path (evidence: `src/minimize-state.js`)
- Cookie minimizer → Saved login state: reads cookies (evidence: `src/minimize-state.js`)
- Cookie minimizer → Minimal state file: writes cookies (evidence: `src/minimize-state.js`)
- Operator → Upload runner: starts update (evidence: `README.md`)
- Upload runner → Runtime settings: reads settings (evidence: `src/update-resume.js`)
- Upload runner → Saved login state: loads state (evidence: `src/update-resume.js`)
- Upload runner → Current resume: uploads file (evidence: `src/update-resume.js`)
- Upload runner → Naukri profile: opens profile (evidence: `src/update-resume.js`)
- Naukri profile → Upload runner: returns upload response (evidence: `src/update-resume.js`)
- Upload runner → Upload confirmation: checks timestamp (evidence: `src/update-resume.js`)
