# haidarakmalr/web-jetis architecture

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

- Interactive diagram: https://gitdiagram.com/haidarakmalr/web-jetis
- Repository: https://github.com/haidarakmalr/web-jetis

## Overview

Dusun Jetis is a static village information website. Visitors use its page to view population summaries and charts, village boundaries and location markers, and page navigation effects. Population and map data are fetched from local JSON and GeoJSON files; the map also requests OpenStreetMap tiles. The source excerpts show these data flows and runtime integrations, but not how the HTML loads the scripts, so that connection is left out.

Main entry points: [`js/script.js`](https://github.com/haidarakmalr/web-jetis/blob/main/js/script.js) (Navigation effects), [`js/chart-init.js`](https://github.com/haidarakmalr/web-jetis/blob/main/js/chart-init.js) (Population stats and charts), [`js/map-init.js`](https://github.com/haidarakmalr/web-jetis/blob/main/js/map-init.js) (Map and markers), [`index.html`](https://github.com/haidarakmalr/web-jetis/blob/main/index.html) (Village page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Website"]
  node_page["Village page<br/>[index.html]"]
  node_navigation["Navigation effects<br/>[script.js]"]
end

subgraph group_population["Population"]
  node_population_ui["Population stats and charts<br/>[chart-init.js]"]
  node_population_data["Population data<br/>[penduduk.json]"]
end

subgraph group_mapping["Village map"]
  node_map_ui["Map and markers<br/>[map-init.js]"]
  node_boundary_data["Boundary GeoJSON"]
end

node_visitor(("Visitor"))
node_aos["AOS library"]
node_bootstrap["Bootstrap Collapse"]
node_chartjs["Chart.js"]
node_osm["OpenStreetMap tiles"]

node_visitor -.->|"views"| node_page
node_navigation -->|"initializes"| node_aos
node_navigation -->|"collapses menu"| node_bootstrap
node_population_ui -->|"fetches"| node_population_data
node_population_ui -->|"renders charts"| node_chartjs
node_map_ui -->|"fetches"| node_boundary_data
node_map_ui -->|"loads tiles"| node_osm

click node_page "https://github.com/haidarakmalr/web-jetis/blob/main/index.html"
click node_navigation "https://github.com/haidarakmalr/web-jetis/blob/main/js/script.js"
click node_population_ui "https://github.com/haidarakmalr/web-jetis/blob/main/js/chart-init.js"
click node_population_data "https://github.com/haidarakmalr/web-jetis/blob/main/data/penduduk.json"
click node_map_ui "https://github.com/haidarakmalr/web-jetis/blob/main/js/map-init.js"
click node_boundary_data "https://github.com/haidarakmalr/web-jetis/blob/main/data/batas-wilayah.geojson"

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_page,node_navigation toneBlue
class node_population_ui,node_population_data toneAmber
class node_map_ui,node_boundary_data toneMint
class node_visitor,node_aos,node_bootstrap,node_chartjs,node_osm toneIndigo
```

## Components

### Website

- [Village page](https://github.com/haidarakmalr/web-jetis/blob/main/index.html): `index.html`
- [Navigation effects](https://github.com/haidarakmalr/web-jetis/blob/main/js/script.js): `js/script.js`

### Population

- [Population stats and charts](https://github.com/haidarakmalr/web-jetis/blob/main/js/chart-init.js): `js/chart-init.js`
- [Population data](https://github.com/haidarakmalr/web-jetis/blob/main/data/penduduk.json): `data/penduduk.json`

### Village map

- [Map and markers](https://github.com/haidarakmalr/web-jetis/blob/main/js/map-init.js): `js/map-init.js`
- [Boundary GeoJSON](https://github.com/haidarakmalr/web-jetis/blob/main/data/batas-wilayah.geojson): `data/batas-wilayah.geojson`

### Other components

- **Visitor**
- **AOS library**
- **Bootstrap Collapse**
- **Chart.js**
- **OpenStreetMap tiles**

## Connections

- Visitor → Village page: views
- Navigation effects → AOS library: initializes (evidence: `js/script.js`)
- Navigation effects → Bootstrap Collapse: collapses menu (evidence: `js/script.js`)
- Population stats and charts → Population data: fetches (evidence: `js/chart-init.js`)
- Population stats and charts → Chart.js: renders charts (evidence: `js/chart-init.js`)
- Map and markers → Boundary GeoJSON: fetches (evidence: `js/map-init.js`)
- Map and markers → OpenStreetMap tiles: loads tiles (evidence: `js/map-init.js`)
