# adamf0/unpaksiamidav2 architecture

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

- Interactive diagram: https://gitdiagram.com/adamf0/unpaksiamidav2
- Repository: https://github.com/adamf0/unpaksiamidav2

## Overview

UnpakSiamida is a Go backend for institutional strategic planning and work-program management. Its domain modules cover indicators and IKU budgets, programs and activities, supporting documents, schedules, risk, and monitoring. A typical request is handled by an application query/command handler that delegates to a domain repository; the sampled dashboard handler then assembles repository data into a summarized result. The tree also shows account, document-generation, and schedule-sync capabilities. No README or HTTP wiring was provided, so routing and unsampled integrations are not asserted.

Main entry points: [`modules/beritaacara`](https://github.com/adamf0/unpaksiamidav2/tree/main/modules/beritaacara) (Meeting records), [`modules/indikatorrenstra/application/GetDashboardIkuAnggaran/GetDashboardIkuAnggaranQueryHandler.go`](https://github.com/adamf0/unpaksiamidav2/blob/main/modules/indikatorrenstra/application/GetDashboardIkuAnggaran/GetDashboardIkuAnggaranQueryHandler.go) (IKU budget dashboard), [`common/infrastructure`](https://github.com/adamf0/unpaksiamidav2/tree/main/common/infrastructure) (Events and outbox), [`modules/indikatorrenstra`](https://github.com/adamf0/unpaksiamidav2/tree/main/modules/indikatorrenstra) (Indicators and IKU)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_strategy["Strategic planning"]
  node_indicator["Indicators and IKU"]
  node_preview["Template preview"]
  node_mataprogram["Program planning"]
  node_renstra["Renstra generation"]
end

subgraph group_work["Work programs"]
  node_proker["Work-program activities"]
  node_activityv2["Activity timelines"]
  node_documents["Program documents"]
  node_extra_docs["Additional documents"]
  node_minutes["Meeting records"]
end

subgraph group_insight["Reporting and risk"]
  node_dashboard["IKU budget dashboard"]
  node_monitoring["Monitoring reports"]
  node_risk["Risk assessment"]
end

subgraph group_platform["Shared platform"]
  node_account["Accounts and login"]
  node_user["User directory"]
  node_shared["Shared domain types"]
  node_events["Events and outbox"]
  node_redis[("Redis store<br/>[RedisStore.go]")]
  node_pdf["PDF generation<br/>[PdfGenerator.go]"]
  node_telegram["Telegram integration<br/>[TelegramClient.go]"]
end

node_dashboard -->|"loads dashboard data"| node_indicator
node_preview -->|"loads indicator tree"| node_indicator
node_minutes -->|"looks up PIC"| node_user
node_dashboard -.->|"returns paged results"| node_shared
node_events -.->|"stores messages"| node_redis
node_minutes -.->|"generates records"| node_pdf
node_events -.->|"sends notifications"| node_telegram

click node_dashboard "https://github.com/adamf0/unpaksiamidav2/blob/main/modules/indikatorrenstra/application/GetDashboardIkuAnggaran/GetDashboardIkuAnggaranQueryHandler.go"
click node_indicator "https://github.com/adamf0/unpaksiamidav2/tree/main/modules/indikatorrenstra"
click node_preview "https://github.com/adamf0/unpaksiamidav2/tree/main/modules/previewtemplate"
click node_mataprogram "https://github.com/adamf0/unpaksiamidav2/tree/main/modules/mataprogramv2"
click node_renstra "https://github.com/adamf0/unpaksiamidav2/tree/main/modules/generaterenstra"
click node_proker "https://github.com/adamf0/unpaksiamidav2/tree/main/modules/aktivitasproker"
click node_activityv2 "https://github.com/adamf0/unpaksiamidav2/tree/main/modules/aktivitasv2"
click node_documents "https://github.com/adamf0/unpaksiamidav2/tree/main/modules/dokumenproker"
click node_extra_docs "https://github.com/adamf0/unpaksiamidav2/tree/main/modules/dokumentambahan"
click node_minutes "https://github.com/adamf0/unpaksiamidav2/tree/main/modules/beritaacara"
click node_monitoring "https://github.com/adamf0/unpaksiamidav2/tree/main/modules/laporan"
click node_risk "https://github.com/adamf0/unpaksiamidav2/tree/main/modules/riskassessment"
click node_account "https://github.com/adamf0/unpaksiamidav2/tree/main/modules/account"
click node_user "https://github.com/adamf0/unpaksiamidav2/tree/main/modules/user"
click node_shared "https://github.com/adamf0/unpaksiamidav2/tree/main/common/domain"
click node_events "https://github.com/adamf0/unpaksiamidav2/tree/main/common/infrastructure"
click node_redis "https://github.com/adamf0/unpaksiamidav2/blob/main/common/infrastructure/RedisStore.go"
click node_pdf "https://github.com/adamf0/unpaksiamidav2/blob/main/common/infrastructure/PdfGenerator.go"
click node_telegram "https://github.com/adamf0/unpaksiamidav2/blob/main/common/infrastructure/TelegramClient.go"

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_indicator,node_preview,node_mataprogram,node_renstra toneBlue
class node_proker,node_activityv2,node_documents,node_extra_docs,node_minutes toneAmber
class node_dashboard,node_monitoring,node_risk toneMint
class node_account,node_user,node_shared,node_events,node_redis,node_pdf,node_telegram toneRose
```

## Components

### Strategic planning

- [Indicators and IKU](https://github.com/adamf0/unpaksiamidav2/tree/main/modules/indikatorrenstra): `modules/indikatorrenstra`
- [Template preview](https://github.com/adamf0/unpaksiamidav2/tree/main/modules/previewtemplate): `modules/previewtemplate`
- [Program planning](https://github.com/adamf0/unpaksiamidav2/tree/main/modules/mataprogramv2): `modules/mataprogramv2`
- [Renstra generation](https://github.com/adamf0/unpaksiamidav2/tree/main/modules/generaterenstra): `modules/generaterenstra`

### Work programs

- [Work-program activities](https://github.com/adamf0/unpaksiamidav2/tree/main/modules/aktivitasproker): `modules/aktivitasproker`
- [Activity timelines](https://github.com/adamf0/unpaksiamidav2/tree/main/modules/aktivitasv2): `modules/aktivitasv2`
- [Program documents](https://github.com/adamf0/unpaksiamidav2/tree/main/modules/dokumenproker): `modules/dokumenproker`
- [Additional documents](https://github.com/adamf0/unpaksiamidav2/tree/main/modules/dokumentambahan): `modules/dokumentambahan`
- [Meeting records](https://github.com/adamf0/unpaksiamidav2/tree/main/modules/beritaacara): `modules/beritaacara`

### Reporting and risk

- [IKU budget dashboard](https://github.com/adamf0/unpaksiamidav2/blob/main/modules/indikatorrenstra/application/GetDashboardIkuAnggaran/GetDashboardIkuAnggaranQueryHandler.go): `modules/indikatorrenstra/application/GetDashboardIkuAnggaran/GetDashboardIkuAnggaranQueryHandler.go`
- [Monitoring reports](https://github.com/adamf0/unpaksiamidav2/tree/main/modules/laporan): `modules/laporan`
- [Risk assessment](https://github.com/adamf0/unpaksiamidav2/tree/main/modules/riskassessment): `modules/riskassessment`

### Shared platform

- [Accounts and login](https://github.com/adamf0/unpaksiamidav2/tree/main/modules/account): `modules/account`
- [User directory](https://github.com/adamf0/unpaksiamidav2/tree/main/modules/user): `modules/user`
- [Shared domain types](https://github.com/adamf0/unpaksiamidav2/tree/main/common/domain): `common/domain`
- [Events and outbox](https://github.com/adamf0/unpaksiamidav2/tree/main/common/infrastructure): `common/infrastructure`
- [Redis store](https://github.com/adamf0/unpaksiamidav2/blob/main/common/infrastructure/RedisStore.go): `common/infrastructure/RedisStore.go`
- [PDF generation](https://github.com/adamf0/unpaksiamidav2/blob/main/common/infrastructure/PdfGenerator.go): `common/infrastructure/PdfGenerator.go`
- [Telegram integration](https://github.com/adamf0/unpaksiamidav2/blob/main/common/infrastructure/TelegramClient.go): `common/infrastructure/TelegramClient.go`

## Connections

- IKU budget dashboard → Indicators and IKU: loads dashboard data (evidence: `modules/indikatorrenstra/application/GetDashboardIkuAnggaran/GetDashboardIkuAnggaranQueryHandler.go`)
- Template preview → Indicators and IKU: loads indicator tree (evidence: `modules/previewtemplate/application/GetPreviewTemplate/GetPreviewTemplateByTahunFakultasUnitQueryHandler.go`)
- Meeting records → User directory: looks up PIC (evidence: `modules/beritaacara/application/GetAllBeritaAcaras/GetAllBeritaAcarasQueryHandler.go`)
- IKU budget dashboard → Shared domain types: returns paged results
- Events and outbox → Redis store: stores messages
- Meeting records → PDF generation: generates records
- Events and outbox → Telegram integration: sends notifications
