# rdtrprojo123-glitch/sintaru_studio2 architecture

> Architecture diagram of the GitHub repository rdtrprojo123-glitch/sintaru_studio2, 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/rdtrprojo123-glitch/sintaru_studio2
- Repository: https://github.com/rdtrprojo123-glitch/sintaru_studio2

## Overview

SinTaru is a browser-based spatial-planning information system. The main user journey is to browse zoning information, open the interactive GIS or ITR page, inspect a location or parcel, and use the KKPR calculator to assess a proposed activity. The repository also contains planning data, spatial rules, and shared domain types. The README identifies the product only briefly; source excerpts establish the application wiring, while some component internals remain unsampled.

Main entry points: [`src/App.tsx`](https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/App.tsx) (Application shell), [`src/utils/spatialRules.ts`](https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/utils/spatialRules.ts) (Spatial rule engine), [`src/components/InteractiveGisSimulator.tsx`](https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/components/InteractiveGisSimulator.tsx) (GIS simulator), [`src/components/MkHorizontalScroll.tsx`](https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/components/MkHorizontalScroll.tsx) (Zone browser)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application and discovery"]
  node_application["Application shell<br/>[App.tsx]"]
  node_zone_browser["Zone browser"]
  node_zone_details["Zone details"]
  node_audio_effects["Audio effects<br/>[audio.ts]"]
  node_root_mount["Browser entry point<br/>[main.tsx]"]
end

subgraph group_maps["Spatial exploration"]
  node_itr_page["ITR map page<br/>[CekItrPage.tsx]"]
  node_gis_modal["GIS map modal<br/>[GisMapModal.tsx]"]
  node_gis_simulator["GIS simulator"]
end

subgraph group_assessment["Planning assessment"]
  node_spatial_rules["Spatial rule engine<br/>[spatialRules.ts]"]
  node_kkpr_calculator["KKPR calculator"]
end

subgraph group_domain["Spatial domain"]
  node_district_data["District spatial data"]
  node_zoning_catalog["Zoning catalog<br/>[zoningData.ts]"]
  node_spatial_types["Spatial data types<br/>[spatial.ts]"]
end

node_visitor(("Site visitor"))

node_visitor -->|"uses"| node_application
node_root_mount -->|"renders"| node_application
node_application -->|"renders"| node_zone_browser
node_application -->|"renders"| node_itr_page
node_application -->|"opens"| node_gis_modal
node_application -->|"opens"| node_kkpr_calculator
node_application -->|"opens"| node_zone_details
node_zone_browser -->|"reads"| node_zoning_catalog
node_zone_browser -->|"selects zone"| node_zone_details
node_gis_modal -->|"renders"| node_gis_simulator
node_itr_page -->|"reads"| node_district_data
node_itr_page -->|"uses rules"| node_spatial_rules
node_gis_simulator -->|"reads"| node_zoning_catalog
node_gis_simulator -->|"uses rules"| node_spatial_rules
node_gis_simulator -->|"uses types"| node_spatial_types
node_kkpr_calculator -->|"calculates with"| node_spatial_rules
node_kkpr_calculator -->|"reads"| node_zoning_catalog
node_spatial_rules -->|"reads"| node_district_data
node_spatial_rules -->|"uses types"| node_spatial_types

click node_application "https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/App.tsx"
click node_zone_browser "https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/components/MkHorizontalScroll.tsx"
click node_zone_details "https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/components/ZoneDetailModal.tsx"
click node_itr_page "https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/components/CekItrPage.tsx"
click node_gis_modal "https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/components/GisMapModal.tsx"
click node_gis_simulator "https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/components/InteractiveGisSimulator.tsx"
click node_district_data "https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/data/boneBolangoKecamatan.ts"
click node_zoning_catalog "https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/data/zoningData.ts"
click node_spatial_types "https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/types/spatial.ts"
click node_spatial_rules "https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/utils/spatialRules.ts"
click node_kkpr_calculator "https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/components/KkprCalculatorModal.tsx"
click node_audio_effects "https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/utils/audio.ts"
click node_root_mount "https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/main.tsx"

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_application,node_zone_browser,node_zone_details,node_audio_effects,node_root_mount toneBlue
class node_itr_page,node_gis_modal,node_gis_simulator toneAmber
class node_spatial_rules,node_kkpr_calculator toneMint
class node_district_data,node_zoning_catalog,node_spatial_types toneRose
class node_visitor toneIndigo
```

## Components

### Application and discovery

- [Application shell](https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/App.tsx): `src/App.tsx`
- [Zone browser](https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/components/MkHorizontalScroll.tsx): `src/components/MkHorizontalScroll.tsx`
- [Zone details](https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/components/ZoneDetailModal.tsx): `src/components/ZoneDetailModal.tsx`
- [Audio effects](https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/utils/audio.ts): `src/utils/audio.ts`
- [Browser entry point](https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/main.tsx): `src/main.tsx`

### Spatial exploration

- [ITR map page](https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/components/CekItrPage.tsx): `src/components/CekItrPage.tsx`
- [GIS map modal](https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/components/GisMapModal.tsx): `src/components/GisMapModal.tsx`
- [GIS simulator](https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/components/InteractiveGisSimulator.tsx): `src/components/InteractiveGisSimulator.tsx`

### Planning assessment

- [Spatial rule engine](https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/utils/spatialRules.ts): `src/utils/spatialRules.ts`
- [KKPR calculator](https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/components/KkprCalculatorModal.tsx): `src/components/KkprCalculatorModal.tsx`

### Spatial domain

- [District spatial data](https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/data/boneBolangoKecamatan.ts): `src/data/boneBolangoKecamatan.ts`
- [Zoning catalog](https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/data/zoningData.ts): `src/data/zoningData.ts`
- [Spatial data types](https://github.com/rdtrprojo123-glitch/sintaru_studio2/blob/main/src/types/spatial.ts): `src/types/spatial.ts`

### Other components

- **Site visitor**

## Connections

- Site visitor → Application shell: uses
- Browser entry point → Application shell: renders (evidence: `src/main.tsx`)
- Application shell → Zone browser: renders (evidence: `src/App.tsx`)
- Application shell → ITR map page: renders (evidence: `src/App.tsx`)
- Application shell → GIS map modal: opens (evidence: `src/App.tsx`)
- Application shell → KKPR calculator: opens (evidence: `src/App.tsx`)
- Application shell → Zone details: opens (evidence: `src/App.tsx`)
- Zone browser → Zoning catalog: reads (evidence: `src/components/MkHorizontalScroll.tsx`)
- Zone browser → Zone details: selects zone (evidence: `src/components/MkHorizontalScroll.tsx`)
- GIS map modal → GIS simulator: renders (evidence: `src/components/GisMapModal.tsx`)
- ITR map page → District spatial data: reads (evidence: `src/components/CekItrPage.tsx`)
- ITR map page → Spatial rule engine: uses rules (evidence: `src/components/CekItrPage.tsx`)
- GIS simulator → Zoning catalog: reads (evidence: `src/components/InteractiveGisSimulator.tsx`)
- GIS simulator → Spatial rule engine: uses rules (evidence: `src/components/InteractiveGisSimulator.tsx`)
- GIS simulator → Spatial data types: uses types (evidence: `src/components/InteractiveGisSimulator.tsx`)
- KKPR calculator → Spatial rule engine: calculates with (evidence: `src/components/KkprCalculatorModal.tsx`)
- KKPR calculator → Zoning catalog: reads (evidence: `src/components/KkprCalculatorModal.tsx`)
- Spatial rule engine → District spatial data: reads (evidence: `src/utils/spatialRules.ts`)
- Spatial rule engine → Spatial data types: uses types (evidence: `src/utils/spatialRules.ts`)
