# it126sig-hash/sigapp architecture

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

- Interactive diagram: https://gitdiagram.com/it126sig-hash/sigapp
- Repository: https://github.com/it126sig-hash/sigapp

## Overview

The README describes a generic CodeIgniter starter, while the application tree indicates a real-estate and housing operations system: users manage projects and lots, production, finance, documents, and notifications through web and API endpoints. The diagram emphasizes those domain areas and the sampled controller-to-service flows. Several capabilities are evident in the tree but their runtime wiring was not sampled, so they are represented without speculative connections.

Main entry points: [`app/Config/Routes.php`](https://github.com/it126sig-hash/sigapp/blob/master/app/Config/Routes.php) (Route Configuration), [`app/Controllers/Proyek.php`](https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/Proyek.php) (Project Management), [`app/Repositories/DeviceSessionRepository.php`](https://github.com/it126sig-hash/sigapp/blob/master/app/Repositories/DeviceSessionRepository.php) (Session Repository), [`app/Controllers/Api/ProduksiController.php`](https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/Api/ProduksiController.php) (Production API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web and API"]
  node_routes["Route Configuration<br/>[Routes.php]"]
  node_api_base["API Response Base"]
end

subgraph group_projects["Projects and Lots"]
  node_project_web["Project Management<br/>[Proyek.php]"]
  node_project_api["Project API"]
  node_project_service["Project Services<br/>[ProyekService.php]"]
  node_lot_web["Lot Management<br/>[Kavling.php]"]
  node_lot_model["Lot Data<br/>[KavlingModel.php]"]
end

subgraph group_operations["Operations and Finance"]
  node_production["Production API"]
  node_production_service["Production Services"]
  node_finance["Finance Operations<br/>[Keuangan.php]"]
  node_transactions["Transaction API"]
  node_bpb_api["BPB API<br/>[BpbController.php]"]
  node_bpb_service["BPB Workflow<br/>[BpbService.php]"]
  node_bpb_repo["BPB Repository<br/>[BpbRepository.php]"]
end

subgraph group_platform["Shared Platform"]
  node_notifications["Notifications<br/>[Notif.php]"]
  node_notification_service["Notification Service"]
  node_file_controller["File Delivery<br/>[FileController.php]"]
  node_file_access["File Access"]
  node_device_auth["Device Login"]
  node_device_service["Device Sessions"]
  node_device_repo["Session Repository"]
  node_session_model["Session Records"]
end

node_users(("Users"))
node_database[("Application Database")]

node_users -->|"send requests"| node_routes
node_routes -->|"routes to"| node_project_web
node_routes -->|"routes to"| node_project_api
node_routes -->|"routes to"| node_bpb_api
node_project_web -->|"calls"| node_project_service
node_project_api -->|"calls"| node_project_service
node_project_web -->|"returns project data"| node_users
node_lot_web -->|"uses"| node_lot_model
node_production -->|"calls"| node_production_service
node_production -->|"updates lot"| node_lot_model
node_transactions -->|"extends"| node_api_base
node_bpb_api -->|"calls"| node_bpb_service
node_bpb_service -->|"uses"| node_bpb_repo
node_finance -->|"resolves files"| node_file_access
node_notifications -->|"uses"| node_notification_service
node_file_controller -->|"resolves files"| node_file_access
node_device_auth -->|"manages sessions"| node_device_service
node_device_service -->|"queries"| node_device_repo
node_device_repo -->|"constructs"| node_session_model
node_device_repo -->|"reads and writes"| node_database

click node_routes "https://github.com/it126sig-hash/sigapp/blob/master/app/Config/Routes.php"
click node_api_base "https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/Api/BaseApiController.php"
click node_project_web "https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/Proyek.php"
click node_project_api "https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/Api/Proyek/ProyekController.php"
click node_project_service "https://github.com/it126sig-hash/sigapp/blob/master/app/Services/ProyekService.php"
click node_lot_web "https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/Kavling.php"
click node_lot_model "https://github.com/it126sig-hash/sigapp/blob/master/app/Models/KavlingModel.php"
click node_production "https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/Api/ProduksiController.php"
click node_production_service "https://github.com/it126sig-hash/sigapp/blob/master/app/Services/ProduksiService.php"
click node_finance "https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/Keuangan.php"
click node_transactions "https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/Api/TransaksiController.php"
click node_bpb_api "https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/Api/Bpb/BpbController.php"
click node_bpb_service "https://github.com/it126sig-hash/sigapp/blob/master/app/Services/Bpb/BpbService.php"
click node_bpb_repo "https://github.com/it126sig-hash/sigapp/blob/master/app/Repositories/Bpb/BpbRepository.php"
click node_notifications "https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/Notif.php"
click node_notification_service "https://github.com/it126sig-hash/sigapp/blob/master/app/Services/NotifikasiService.php"
click node_file_controller "https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/FileController.php"
click node_file_access "https://github.com/it126sig-hash/sigapp/blob/master/app/Services/FileAccessService.php"
click node_device_auth "https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/Web/DeviceAuthController.php"
click node_device_service "https://github.com/it126sig-hash/sigapp/blob/master/app/Services/DeviceSessionService.php"
click node_device_repo "https://github.com/it126sig-hash/sigapp/blob/master/app/Repositories/DeviceSessionRepository.php"
click node_session_model "https://github.com/it126sig-hash/sigapp/blob/master/app/Models/DeviceSessionModel.php"

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_routes,node_api_base,node_users toneBlue
class node_project_web,node_project_api,node_project_service,node_lot_web,node_lot_model,node_database toneAmber
class node_production,node_production_service,node_finance,node_transactions,node_bpb_api,node_bpb_service,node_bpb_repo toneMint
class node_notifications,node_notification_service,node_file_controller,node_file_access,node_device_auth,node_device_service,node_device_repo,node_session_model toneRose
```

## Components

### Web and API

- [Route Configuration](https://github.com/it126sig-hash/sigapp/blob/master/app/Config/Routes.php): `app/Config/Routes.php`
- [API Response Base](https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/Api/BaseApiController.php): `app/Controllers/Api/BaseApiController.php`

### Projects and Lots

- [Project Management](https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/Proyek.php): `app/Controllers/Proyek.php`
- [Project API](https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/Api/Proyek/ProyekController.php): `app/Controllers/Api/Proyek/ProyekController.php`
- [Project Services](https://github.com/it126sig-hash/sigapp/blob/master/app/Services/ProyekService.php): `app/Services/ProyekService.php`
- [Lot Management](https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/Kavling.php): `app/Controllers/Kavling.php`
- [Lot Data](https://github.com/it126sig-hash/sigapp/blob/master/app/Models/KavlingModel.php): `app/Models/KavlingModel.php`

### Operations and Finance

- [Production API](https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/Api/ProduksiController.php): `app/Controllers/Api/ProduksiController.php`
- [Production Services](https://github.com/it126sig-hash/sigapp/blob/master/app/Services/ProduksiService.php): `app/Services/ProduksiService.php`
- [Finance Operations](https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/Keuangan.php): `app/Controllers/Keuangan.php`
- [Transaction API](https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/Api/TransaksiController.php): `app/Controllers/Api/TransaksiController.php`
- [BPB API](https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/Api/Bpb/BpbController.php): `app/Controllers/Api/Bpb/BpbController.php`
- [BPB Workflow](https://github.com/it126sig-hash/sigapp/blob/master/app/Services/Bpb/BpbService.php): `app/Services/Bpb/BpbService.php`
- [BPB Repository](https://github.com/it126sig-hash/sigapp/blob/master/app/Repositories/Bpb/BpbRepository.php): `app/Repositories/Bpb/BpbRepository.php`

### Shared Platform

- [Notifications](https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/Notif.php): `app/Controllers/Notif.php`
- [Notification Service](https://github.com/it126sig-hash/sigapp/blob/master/app/Services/NotifikasiService.php): `app/Services/NotifikasiService.php`
- [File Delivery](https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/FileController.php): `app/Controllers/FileController.php`
- [File Access](https://github.com/it126sig-hash/sigapp/blob/master/app/Services/FileAccessService.php): `app/Services/FileAccessService.php`
- [Device Login](https://github.com/it126sig-hash/sigapp/blob/master/app/Controllers/Web/DeviceAuthController.php): `app/Controllers/Web/DeviceAuthController.php`
- [Device Sessions](https://github.com/it126sig-hash/sigapp/blob/master/app/Services/DeviceSessionService.php): `app/Services/DeviceSessionService.php`
- [Session Repository](https://github.com/it126sig-hash/sigapp/blob/master/app/Repositories/DeviceSessionRepository.php): `app/Repositories/DeviceSessionRepository.php`
- [Session Records](https://github.com/it126sig-hash/sigapp/blob/master/app/Models/DeviceSessionModel.php): `app/Models/DeviceSessionModel.php`

### Other components

- **Users**
- **Application Database**

## Connections

- Users → Route Configuration: send requests (evidence: `app/Config/Routes.php`)
- Route Configuration → Project Management: routes to (evidence: `app/Config/Routes.php`)
- Route Configuration → Project API: routes to (evidence: `app/Config/Routes.php`)
- Route Configuration → BPB API: routes to (evidence: `app/Config/Routes.php`)
- Project Management → Project Services: calls (evidence: `app/Controllers/Proyek.php`)
- Project API → Project Services: calls (evidence: `app/Controllers/Api/Proyek/ProyekController.php`)
- Project Management → Users: returns project data (evidence: `app/Controllers/Proyek.php`)
- Lot Management → Lot Data: uses (evidence: `app/Controllers/Kavling.php`)
- Production API → Production Services: calls (evidence: `app/Controllers/Api/ProduksiController.php`)
- Production API → Lot Data: updates lot (evidence: `app/Controllers/Api/ProduksiController.php`)
- Transaction API → API Response Base: extends (evidence: `app/Controllers/Api/TransaksiController.php`)
- BPB API → BPB Workflow: calls (evidence: `app/Controllers/Api/Bpb/BpbController.php`)
- BPB Workflow → BPB Repository: uses (evidence: `app/Services/Bpb/BpbService.php`)
- Finance Operations → File Access: resolves files (evidence: `app/Controllers/Keuangan.php`)
- Notifications → Notification Service: uses (evidence: `app/Controllers/Notif.php`)
- File Delivery → File Access: resolves files (evidence: `app/Controllers/FileController.php`)
- Device Login → Device Sessions: manages sessions (evidence: `app/Controllers/Web/DeviceAuthController.php`)
- Device Sessions → Session Repository: queries (evidence: `app/Services/DeviceSessionService.php`)
- Session Repository → Session Records: constructs (evidence: `app/Repositories/DeviceSessionRepository.php`)
- Session Repository → Application Database: reads and writes (evidence: `app/Repositories/DeviceSessionRepository.php`)
