# anotherearth-12/fynaptic_payrolls architecture

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

- Interactive diagram: https://gitdiagram.com/anotherearth-12/fynaptic_payrolls
- Repository: https://github.com/anotherearth-12/fynaptic_payrolls

## Overview

HR Portal is a static attendance and payroll app. HR sets up repository access, signs in, manages employees and attendance, then generates payslips and payroll exports. The README documents encrypted configuration and data, GitHub-backed saves, attendance and leave rules, salary calculations, and PDF/CSV outputs. The main app source was not provided, so feature boundaries and links below rely on README descriptions rather than inspected implementation; the only sampled source was config.js.

Main entry points: [`index.html`](https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/index.html) (HR portal app), [`setup.html`](https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/setup.html) (Setup page), [`config.js`](https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/config.js) (Connection config), [`data/hr-data.json`](https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/data/hr-data.json) (Encrypted HR data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Access and setup"]
  node_setup_page["Setup page<br/>[setup.html]"]
  node_config["Connection config<br/>[config.js]"]
end

subgraph group_hr["HR operations"]
  node_app["HR portal app<br/>[index.html]"]
  node_attendance["Attendance management<br/>[index.html]"]
  node_employees["Employee records<br/>[index.html]"]
  node_leave_rules["Leave and LOP rules<br/>[index.html]"]
  node_settings["Settings<br/>[index.html]"]
end

subgraph group_payroll["Payroll outputs"]
  node_salary_rules["Salary calculations<br/>[index.html]"]
  node_payslips["Payslip PDFs<br/>[index.html]"]
  node_payroll_csv["Payroll CSV export<br/>[index.html]"]
end

subgraph group_storage["Encrypted storage"]
  node_data_file[("Encrypted HR data<br/>[hr-data.json]")]
end

node_hr_user(("HR user"))
node_github{{"GitHub repository API"}}

node_hr_user -->|"configures access"| node_setup_page
node_setup_page -->|"creates config"| node_config
node_setup_page -->|"sends token"| node_github
node_hr_user -->|"signs in"| node_app
node_app -->|"reads settings"| node_config
node_hr_user -->|"marks attendance"| node_attendance
node_hr_user -->|"manages employees"| node_employees
node_app -->|"applies rules"| node_leave_rules
node_app -->|"calculates pay"| node_salary_rules
node_hr_user -->|"downloads PDFs"| node_payslips
node_hr_user -->|"exports summary"| node_payroll_csv
node_hr_user -->|"changes settings"| node_settings
node_app -->|"reads and saves"| node_github
node_github -->|"stores encrypted data"| node_data_file

click node_setup_page "https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/setup.html"
click node_app "https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/index.html"
click node_attendance "https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/index.html"
click node_employees "https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/index.html"
click node_leave_rules "https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/index.html"
click node_salary_rules "https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/index.html"
click node_payslips "https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/index.html"
click node_payroll_csv "https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/index.html"
click node_settings "https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/index.html"
click node_config "https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/config.js"
click node_data_file "https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/data/hr-data.json"

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_setup_page,node_config,node_hr_user toneBlue
class node_app,node_attendance,node_employees,node_leave_rules,node_settings toneAmber
class node_salary_rules,node_payslips,node_payroll_csv,node_github toneMint
class node_data_file toneRose
```

## Components

### Access and setup

- [Setup page](https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/setup.html): `setup.html`
- [Connection config](https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/config.js): `config.js`

### HR operations

- [HR portal app](https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/index.html): `index.html`
- [Attendance management](https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/index.html): `index.html`
- [Employee records](https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/index.html): `index.html`
- [Leave and LOP rules](https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/index.html): `index.html`
- [Settings](https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/index.html): `index.html`

### Payroll outputs

- [Salary calculations](https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/index.html): `index.html`
- [Payslip PDFs](https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/index.html): `index.html`
- [Payroll CSV export](https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/index.html): `index.html`

### Encrypted storage

- [Encrypted HR data](https://github.com/anotherearth-12/fynaptic_payrolls/blob/main/data/hr-data.json): `data/hr-data.json`

### Other components

- **HR user**
- **GitHub repository API**

## Connections

- HR user → Setup page: configures access (evidence: `README.md`)
- Setup page → Connection config: creates config (evidence: `README.md`)
- Setup page → GitHub repository API: sends token (evidence: `README.md`)
- HR user → HR portal app: signs in (evidence: `README.md`)
- HR portal app → Connection config: reads settings (evidence: `README.md`)
- HR user → Attendance management: marks attendance (evidence: `README.md`)
- HR user → Employee records: manages employees (evidence: `README.md`)
- HR portal app → Leave and LOP rules: applies rules (evidence: `README.md`)
- HR portal app → Salary calculations: calculates pay (evidence: `README.md`)
- HR user → Payslip PDFs: downloads PDFs (evidence: `README.md`)
- HR user → Payroll CSV export: exports summary (evidence: `README.md`)
- HR user → Settings: changes settings (evidence: `README.md`)
- HR portal app → GitHub repository API: reads and saves (evidence: `README.md`)
- GitHub repository API → Encrypted HR data: stores encrypted data (evidence: `README.md`)
