# syahfry17/rekapdata architecture

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

- Interactive diagram: https://gitdiagram.com/syahfry17/rekapdata
- Repository: https://github.com/syahfry17/rekapdata

## Overview

This is a browser-based field-management dashboard for an Indonesian election effort: team accounts, administrative regions and polling stations, voter-ID (KTP) collection, and TPS vote reporting. Users enter through the site’s HTML pages; the sampled modules implement the operational workflows and use a shared Supabase client for persistence. The excerpts show report review, locking/deletion, and print views, plus Google Drive upload endpoints. The README is empty, and the HTML entry points and some module sections were not sampled, so their wiring is not asserted.

Main entry points: [`js/config.js`](https://github.com/syahfry17/rekapdata/blob/main/js/config.js) (Supabase client), [`js/modules/ktp-manager.js`](https://github.com/syahfry17/rekapdata/blob/main/js/modules/ktp-manager.js) (KTP collection), [`js/modules/suara-tps.js`](https://github.com/syahfry17/rekapdata/blob/main/js/modules/suara-tps.js) (Vote entry), [`js/modules/admin-akun.js`](https://github.com/syahfry17/rekapdata/blob/main/js/modules/admin-akun.js) (Team accounts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web entry"]
  node_login["Login page<br/>[login.html]"]
  node_dashboard["Dashboard page<br/>[dashboard.html]"]
  node_home["Home page<br/>[index.html]"]
end

subgraph group_operations["Field operations"]
  node_account_admin["Team accounts<br/>[admin-akun.js]"]
  node_region_admin["Regions and TPS<br/>[admin-wilayah.js]"]
  node_ktp_intake["KTP collection<br/>[ktp-manager.js]"]
  node_ktp_review["KTP review and print<br/>[ktp-manager.js]"]
end

subgraph group_election["Election data"]
  node_vote_entry["Vote entry<br/>[suara-tps.js]"]
  node_vote_review["Vote review and lock<br/>[suara-tps.js]"]
  node_vote_detail["TPS vote detail<br/>[admin-wilayah.js]"]
end

subgraph group_services["External services"]
  node_supabase_config["Supabase client<br/>[config.js]"]
  node_supabase[("Supabase backend")]
  node_drive["Google Drive upload"]
end

node_field_user(("Field user"))

node_field_user -.->|"opens"| node_login
node_field_user -.->|"uses"| node_dashboard
node_field_user -.->|"opens"| node_home
node_account_admin -->|"uses client"| node_supabase_config
node_region_admin -->|"uses client"| node_supabase_config
node_ktp_intake -->|"uses client"| node_supabase_config
node_ktp_review -->|"uses client"| node_supabase_config
node_vote_entry -->|"uses client"| node_supabase_config
node_vote_review -->|"uses client"| node_supabase_config
node_vote_detail -->|"uses client"| node_supabase_config
node_supabase_config -->|"creates client"| node_supabase
node_account_admin -->|"reads and writes"| node_supabase
node_region_admin -->|"reads and writes"| node_supabase
node_ktp_intake -->|"reads and writes"| node_supabase
node_ktp_review -->|"queries records"| node_supabase
node_vote_entry -->|"reads and writes"| node_supabase
node_vote_review -->|"updates reports"| node_supabase
node_vote_detail -.->|"loads reports"| node_supabase
node_ktp_intake -.->|"uploads images"| node_drive
node_vote_entry -.->|"uploads photos"| node_drive

click node_login "https://github.com/syahfry17/rekapdata/blob/main/login.html"
click node_dashboard "https://github.com/syahfry17/rekapdata/blob/main/dashboard.html"
click node_home "https://github.com/syahfry17/rekapdata/blob/main/index.html"
click node_supabase_config "https://github.com/syahfry17/rekapdata/blob/main/js/config.js"
click node_account_admin "https://github.com/syahfry17/rekapdata/blob/main/js/modules/admin-akun.js"
click node_region_admin "https://github.com/syahfry17/rekapdata/blob/main/js/modules/admin-wilayah.js"
click node_ktp_intake "https://github.com/syahfry17/rekapdata/blob/main/js/modules/ktp-manager.js"
click node_ktp_review "https://github.com/syahfry17/rekapdata/blob/main/js/modules/ktp-manager.js"
click node_vote_entry "https://github.com/syahfry17/rekapdata/blob/main/js/modules/suara-tps.js"
click node_vote_review "https://github.com/syahfry17/rekapdata/blob/main/js/modules/suara-tps.js"
click node_vote_detail "https://github.com/syahfry17/rekapdata/blob/main/js/modules/admin-wilayah.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,node_dashboard,node_home,node_field_user toneBlue
class node_account_admin,node_region_admin,node_ktp_intake,node_ktp_review toneAmber
class node_vote_entry,node_vote_review,node_vote_detail toneMint
class node_supabase_config,node_supabase,node_drive toneRose
```

## Components

### Web entry

- [Login page](https://github.com/syahfry17/rekapdata/blob/main/login.html): `login.html`
- [Dashboard page](https://github.com/syahfry17/rekapdata/blob/main/dashboard.html): `dashboard.html`
- [Home page](https://github.com/syahfry17/rekapdata/blob/main/index.html): `index.html`

### Field operations

- [Team accounts](https://github.com/syahfry17/rekapdata/blob/main/js/modules/admin-akun.js): `js/modules/admin-akun.js`
- [Regions and TPS](https://github.com/syahfry17/rekapdata/blob/main/js/modules/admin-wilayah.js): `js/modules/admin-wilayah.js`
- [KTP collection](https://github.com/syahfry17/rekapdata/blob/main/js/modules/ktp-manager.js): `js/modules/ktp-manager.js`
- [KTP review and print](https://github.com/syahfry17/rekapdata/blob/main/js/modules/ktp-manager.js): `js/modules/ktp-manager.js`

### Election data

- [Vote entry](https://github.com/syahfry17/rekapdata/blob/main/js/modules/suara-tps.js): `js/modules/suara-tps.js`
- [Vote review and lock](https://github.com/syahfry17/rekapdata/blob/main/js/modules/suara-tps.js): `js/modules/suara-tps.js`
- [TPS vote detail](https://github.com/syahfry17/rekapdata/blob/main/js/modules/admin-wilayah.js): `js/modules/admin-wilayah.js`

### External services

- [Supabase client](https://github.com/syahfry17/rekapdata/blob/main/js/config.js): `js/config.js`
- **Supabase backend**
- **Google Drive upload**

### Other components

- **Field user**

## Connections

- Field user → Login page: opens
- Field user → Dashboard page: uses
- Field user → Home page: opens
- Team accounts → Supabase client: uses client (evidence: `js/modules/admin-akun.js`)
- Regions and TPS → Supabase client: uses client (evidence: `js/modules/admin-wilayah.js`)
- KTP collection → Supabase client: uses client (evidence: `js/modules/ktp-manager.js`)
- KTP review and print → Supabase client: uses client (evidence: `js/modules/ktp-manager.js`)
- Vote entry → Supabase client: uses client (evidence: `js/modules/suara-tps.js`)
- Vote review and lock → Supabase client: uses client (evidence: `js/modules/suara-tps.js`)
- TPS vote detail → Supabase client: uses client (evidence: `js/modules/admin-wilayah.js`)
- Supabase client → Supabase backend: creates client (evidence: `js/config.js`)
- Team accounts → Supabase backend: reads and writes (evidence: `js/modules/admin-akun.js`)
- Regions and TPS → Supabase backend: reads and writes (evidence: `js/modules/admin-wilayah.js`)
- KTP collection → Supabase backend: reads and writes (evidence: `js/modules/ktp-manager.js`)
- KTP review and print → Supabase backend: queries records (evidence: `js/modules/ktp-manager.js`)
- Vote entry → Supabase backend: reads and writes (evidence: `js/modules/suara-tps.js`)
- Vote review and lock → Supabase backend: updates reports (evidence: `js/modules/suara-tps.js`)
- TPS vote detail → Supabase backend: loads reports
- KTP collection → Google Drive upload: uploads images
- Vote entry → Google Drive upload: uploads photos
