# malikisaputra-source/absensi-karyawan architecture

> Architecture diagram of the GitHub repository malikisaputra-source/absensi-karyawan, 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/malikisaputra-source/absensi-karyawan
- Repository: https://github.com/malikisaputra-source/absensi-karyawan

## Overview

Absensi Karyawan is a static, browser-only attendance app for small teams. Employees check in or out through the attendance interface; administrators manage staff and shifts, review leave requests, and inspect attendance summaries. Data remains on the device, with employee photos stored separately in IndexedDB, and the service worker supports offline use. The README documents the major workflows; the sampled app.js excerpts show attendance recording, leave rendering, and photo storage, but not every feature’s implementation or wiring.

Main entry points: [`index.html`](https://github.com/malikisaputra-source/absensi-karyawan/blob/main/index.html) (App Interface), [`app.js`](https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js) (Check In/Out), [`sw.js`](https://github.com/malikisaputra-source/absensi-karyawan/blob/main/sw.js) (Offline Cache)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_attendance["Attendance"]
  node_attendance_action["Check In/Out<br/>[app.js]"]
  node_location_check["Location Check<br/>[app.js]"]
  node_selfie_capture["Selfie Capture<br/>[app.js]"]
  node_shift_rules["Shift Rules<br/>[app.js]"]
  node_kiosk_mode["Kiosk Mode<br/>[index.html]"]
end

subgraph group_admin["Administration"]
  node_leave_requests["Leave Requests<br/>[app.js]"]
  node_attendance_calendar["Attendance Calendar<br/>[app.js]"]
  node_monthly_summary["Monthly Summary<br/>[app.js]"]
  node_staff_management["Staff Management<br/>[app.js]"]
  node_data_settings["Settings &amp; Export<br/>[app.js]"]
end

subgraph group_device["Device Data"]
  node_local_data[("Local App Data<br/>[app.js]")]
  node_photo_store[("Photo Store<br/>[app.js]")]
end

subgraph group_experience["App Experience"]
  node_app_shell["App Interface<br/>[index.html]"]
  node_offline_cache[("Offline Cache<br/>[sw.js]")]
end

node_employee(("Employee"))
node_admin_user(("Administrator"))
node_browser(("Browser"))

node_employee -->|"uses"| node_app_shell
node_admin_user -->|"uses"| node_app_shell
node_app_shell -->|"offers"| node_attendance_action
node_attendance_action -->|"checks shifts"| node_shift_rules
node_attendance_action -->|"checks location"| node_location_check
node_attendance_action -->|"captures selfie"| node_selfie_capture
node_attendance_action -->|"saves records"| node_local_data
node_app_shell -->|"offers"| node_kiosk_mode
node_kiosk_mode -->|"records attendance"| node_attendance_action
node_app_shell -->|"offers"| node_leave_requests
node_leave_requests -->|"stores requests"| node_local_data
node_app_shell -->|"offers"| node_attendance_calendar
node_app_shell -->|"offers"| node_monthly_summary
node_app_shell -->|"offers"| node_staff_management
node_app_shell -->|"offers"| node_data_settings
node_selfie_capture -->|"stores photos"| node_photo_store
node_data_settings -->|"backs up data"| node_local_data
node_app_shell -->|"runs in"| node_browser
node_browser -->|"uses"| node_offline_cache

click node_app_shell "https://github.com/malikisaputra-source/absensi-karyawan/blob/main/index.html"
click node_attendance_action "https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js"
click node_location_check "https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js"
click node_selfie_capture "https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js"
click node_shift_rules "https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js"
click node_leave_requests "https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js"
click node_attendance_calendar "https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js"
click node_monthly_summary "https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js"
click node_staff_management "https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js"
click node_kiosk_mode "https://github.com/malikisaputra-source/absensi-karyawan/blob/main/index.html"
click node_data_settings "https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js"
click node_local_data "https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js"
click node_photo_store "https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js"
click node_offline_cache "https://github.com/malikisaputra-source/absensi-karyawan/blob/main/sw.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_attendance_action,node_location_check,node_selfie_capture,node_shift_rules,node_kiosk_mode,node_browser toneBlue
class node_leave_requests,node_attendance_calendar,node_monthly_summary,node_staff_management,node_data_settings toneAmber
class node_local_data,node_photo_store toneMint
class node_app_shell,node_offline_cache toneRose
class node_employee,node_admin_user toneIndigo
```

## Components

### Attendance

- [Check In/Out](https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js): `app.js`
- [Location Check](https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js): `app.js`
- [Selfie Capture](https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js): `app.js`
- [Shift Rules](https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js): `app.js`
- [Kiosk Mode](https://github.com/malikisaputra-source/absensi-karyawan/blob/main/index.html): `index.html`

### Administration

- [Leave Requests](https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js): `app.js`
- [Attendance Calendar](https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js): `app.js`
- [Monthly Summary](https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js): `app.js`
- [Staff Management](https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js): `app.js`
- [Settings & Export](https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js): `app.js`

### Device Data

- [Local App Data](https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js): `app.js`
- [Photo Store](https://github.com/malikisaputra-source/absensi-karyawan/blob/main/app.js): `app.js`

### App Experience

- [App Interface](https://github.com/malikisaputra-source/absensi-karyawan/blob/main/index.html): `index.html`
- [Offline Cache](https://github.com/malikisaputra-source/absensi-karyawan/blob/main/sw.js): `sw.js`

### Other components

- **Employee**
- **Administrator**
- **Browser**

## Connections

- Employee → App Interface: uses (evidence: `README.md`)
- Administrator → App Interface: uses (evidence: `README.md`)
- App Interface → Check In/Out: offers (evidence: `README.md`)
- Check In/Out → Shift Rules: checks shifts (evidence: `README.md`)
- Check In/Out → Location Check: checks location (evidence: `README.md`)
- Check In/Out → Selfie Capture: captures selfie (evidence: `README.md`)
- Check In/Out → Local App Data: saves records (evidence: `README.md`)
- App Interface → Kiosk Mode: offers (evidence: `README.md`)
- Kiosk Mode → Check In/Out: records attendance (evidence: `README.md`)
- App Interface → Leave Requests: offers (evidence: `README.md`)
- Leave Requests → Local App Data: stores requests (evidence: `README.md`)
- App Interface → Attendance Calendar: offers (evidence: `README.md`)
- App Interface → Monthly Summary: offers (evidence: `README.md`)
- App Interface → Staff Management: offers (evidence: `README.md`)
- App Interface → Settings & Export: offers (evidence: `README.md`)
- Selfie Capture → Photo Store: stores photos (evidence: `app.js`)
- Settings & Export → Local App Data: backs up data (evidence: `README.md`)
- App Interface → Browser: runs in (evidence: `README.md`)
- Browser → Offline Cache: uses (evidence: `sw.js`)
