# anilcetinel/detsis-mevzuat-paneli architecture

> Architecture diagram of the GitHub repository anilcetinel/detsis-mevzuat-paneli, 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/anilcetinel/detsis-mevzuat-paneli
- Repository: https://github.com/anilcetinel/detsis-mevzuat-paneli

## Overview

DETSİS Mevzuat Paneli scrapes Sakarya University’s regulations, validates and enriches records, stores JSON/CSV snapshots, and presents them in a static searchable panel. The main workflow is scraper to published data to browser display; scheduled local updates and archival/error tracking are documented supporting capabilities. Source excerpts show only parts of the scraper and frontend, so unsampled subsystem details and relationships are limited to explicit README evidence.

Main entry points: [`scraper.py`](https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/scraper.py) (Regulation scraper), [`app.js`](https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/app.js) (Panel application), [`index.html`](https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/index.html) (Static panel page), [`scripts`](https://github.com/anilcetinel/detsis-mevzuat-paneli/tree/main/scripts) (Local scheduled update)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collection["Collection and validation"]
  node_scraper["Regulation scraper<br/>[scraper.py]"]
  node_validation["Integrity checks<br/>[scraper.py]"]
  node_change_dates["Change-date enrichment<br/>[scraper.py]"]
end

subgraph group_records["Record storage"]
  node_json[("Regulations JSON<br/>[mevzuatlar.json]")]
  node_csv[("Regulations CSV<br/>[mevzuatlar.csv]")]
  node_archive[("JSON snapshots")]
end

subgraph group_panel["Static panel"]
  node_static_page["Static panel page<br/>[index.html]"]
  node_frontend["Panel application<br/>[app.js]"]
  node_search_filter["Search and filters<br/>[app.js]"]
  node_summary["Summary and latest<br/>[app.js]"]
  node_record_list["Regulation list<br/>[app.js]"]
end

subgraph group_operations["Update operations"]
  node_local_update["Local scheduled update"]
  node_error_log["Error and change logs"]
end

node_visitor(("Panel visitor"))
node_detsis["DETSİS source"]
node_github_pages["GitHub Pages"]

node_scraper -->|"fetches records"| node_detsis
node_scraper -->|"validates records"| node_validation
node_scraper -->|"enriches dates"| node_change_dates
node_scraper -->|"writes JSON"| node_json
node_scraper -->|"writes CSV"| node_csv
node_scraper -->|"backs up JSON"| node_archive
node_scraper -->|"logs failures"| node_error_log
node_visitor -->|"opens panel"| node_static_page
node_static_page -.->|"loads application"| node_frontend
node_frontend -->|"fetches data"| node_json
node_frontend -->|"renders summary"| node_summary
node_frontend -->|"renders records"| node_record_list
node_search_filter -->|"filters records"| node_record_list
node_frontend -->|"handles input"| node_search_filter
node_local_update -->|"runs scraper"| node_scraper
node_local_update -->|"triggers publish"| node_github_pages
node_github_pages -->|"publishes panel"| node_static_page

click node_scraper "https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/scraper.py"
click node_validation "https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/scraper.py"
click node_change_dates "https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/scraper.py"
click node_json "https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/data/mevzuatlar.json"
click node_csv "https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/data/mevzuatlar.csv"
click node_archive "https://github.com/anilcetinel/detsis-mevzuat-paneli/tree/main/data/archive"
click node_static_page "https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/index.html"
click node_frontend "https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/app.js"
click node_search_filter "https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/app.js"
click node_summary "https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/app.js"
click node_record_list "https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/app.js"
click node_local_update "https://github.com/anilcetinel/detsis-mevzuat-paneli/tree/main/scripts"
click node_error_log "https://github.com/anilcetinel/detsis-mevzuat-paneli/tree/main/logs"

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_scraper,node_validation,node_change_dates toneBlue
class node_json,node_csv,node_archive toneAmber
class node_static_page,node_frontend,node_search_filter,node_summary,node_record_list toneMint
class node_local_update,node_error_log toneRose
class node_visitor,node_detsis,node_github_pages toneIndigo
```

## Components

### Collection and validation

- [Regulation scraper](https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/scraper.py): `scraper.py`
- [Integrity checks](https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/scraper.py): `scraper.py`
- [Change-date enrichment](https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/scraper.py): `scraper.py`

### Record storage

- [Regulations JSON](https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/data/mevzuatlar.json): `data/mevzuatlar.json`
- [Regulations CSV](https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/data/mevzuatlar.csv): `data/mevzuatlar.csv`
- [JSON snapshots](https://github.com/anilcetinel/detsis-mevzuat-paneli/tree/main/data/archive): `data/archive`

### Static panel

- [Static panel page](https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/index.html): `index.html`
- [Panel application](https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/app.js): `app.js`
- [Search and filters](https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/app.js): `app.js`
- [Summary and latest](https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/app.js): `app.js`
- [Regulation list](https://github.com/anilcetinel/detsis-mevzuat-paneli/blob/main/app.js): `app.js`

### Update operations

- [Local scheduled update](https://github.com/anilcetinel/detsis-mevzuat-paneli/tree/main/scripts): `scripts`
- [Error and change logs](https://github.com/anilcetinel/detsis-mevzuat-paneli/tree/main/logs): `logs`

### Other components

- **Panel visitor**
- **DETSİS source**
- **GitHub Pages**

## Connections

- Regulation scraper → DETSİS source: fetches records (evidence: `scraper.py`)
- Regulation scraper → Integrity checks: validates records (evidence: `README.md`)
- Regulation scraper → Change-date enrichment: enriches dates (evidence: `scraper.py`)
- Regulation scraper → Regulations JSON: writes JSON (evidence: `README.md`)
- Regulation scraper → Regulations CSV: writes CSV (evidence: `README.md`)
- Regulation scraper → JSON snapshots: backs up JSON (evidence: `README.md`)
- Regulation scraper → Error and change logs: logs failures (evidence: `README.md`)
- Panel visitor → Static panel page: opens panel (evidence: `README.md`)
- Static panel page → Panel application: loads application
- Panel application → Regulations JSON: fetches data (evidence: `app.js`)
- Panel application → Summary and latest: renders summary (evidence: `app.js`)
- Panel application → Regulation list: renders records (evidence: `app.js`)
- Search and filters → Regulation list: filters records (evidence: `app.js`)
- Panel application → Search and filters: handles input (evidence: `app.js`)
- Local scheduled update → Regulation scraper: runs scraper (evidence: `README.md`)
- Local scheduled update → GitHub Pages: triggers publish (evidence: `README.md`)
- GitHub Pages → Static panel page: publishes panel (evidence: `README.md`)
