# nabiladilpi/perkom architecture

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

## Overview

PerKom is a browser-based learning app for permutations and combinations. Its main workflow routes learners from the home page to lesson videos, an interactive calculator, or a quiz; the calculator validates inputs, computes results, and can list small sets of outcomes, while the quiz presents questions and then results. The graph follows the sampled routes and imports. Several components are indexed but not excerpted, so their individual internal behavior is not inferred.

Main entry points: [`src/pages/Kalkulator.jsx`](https://github.com/nabiladilpi/perkom/blob/main/src/pages/Kalkulator.jsx) (Calculation workflow), [`src/pages/Kuis.jsx`](https://github.com/nabiladilpi/perkom/blob/main/src/pages/Kuis.jsx) (Quiz workflow), [`src/App.jsx`](https://github.com/nabiladilpi/perkom/blob/main/src/App.jsx) (Route dispatcher), [`src/pages/Beranda.jsx`](https://github.com/nabiladilpi/perkom/blob/main/src/pages/Beranda.jsx) (Home and overview)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and navigation"]
  node_main["App entry<br/>[main.jsx]"]
  node_router["Route dispatcher<br/>[App.jsx]"]
  node_not_found["Not found page<br/>[TidakDitemukan.jsx]"]
end

subgraph group_learning["Learning content"]
  node_home["Home and overview<br/>[Beranda.jsx]"]
  node_comparison["Interactive comparison"]
  node_formula["Formula cards<br/>[FormulaCard.jsx]"]
  node_lesson["Video lessons<br/>[Pembahasan.jsx]"]
  node_video["Video player cards<br/>[VideoCard.jsx]"]
  node_video_data["Video catalog<br/>[dataVideo.js]"]
end

subgraph group_calculator["Calculator"]
  node_calculator_page["Calculation workflow<br/>[Kalkulator.jsx]"]
  node_math["Counting algorithms<br/>[kombinatorika.js]"]
  node_steps["Worked steps<br/>[LangkahHitung.jsx]"]
  node_tiles["Outcome list<br/>[DaftarUbin.jsx]"]
end

subgraph group_quiz["Quiz"]
  node_quiz_page["Quiz workflow<br/>[Kuis.jsx]"]
  node_questions["Question panel<br/>[PertanyaanKuis.jsx]"]
  node_quiz_result["Quiz results<br/>[HasilKuis.jsx]"]
  node_quiz_data["Question bank<br/>[soalKuis.js]"]
end

subgraph group_shared["Shared presentation"]
  node_navbar["Navigation bar<br/>[Navbar.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
  node_scroll["Scroll reset<br/>[ScrollKeAtas.jsx]"]
  node_icons["Icon components<br/>[Ikon.jsx]"]
end

node_main -->|"renders"| node_router
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_lesson
node_router -->|"routes to"| node_calculator_page
node_router -->|"routes to"| node_quiz_page
node_router -->|"routes to"| node_not_found
node_home -->|"renders"| node_comparison
node_home -->|"renders"| node_formula
node_comparison -->|"uses"| node_math
node_lesson -->|"renders"| node_video
node_lesson -->|"reads"| node_video_data
node_video -->|"uses"| node_icons
node_calculator_page -->|"computes with"| node_math
node_calculator_page -->|"renders"| node_steps
node_calculator_page -->|"renders"| node_tiles
node_quiz_page -->|"reads"| node_quiz_data
node_quiz_page -->|"renders"| node_questions
node_quiz_page -->|"renders"| node_quiz_result
node_home -->|"renders"| node_navbar
node_home -->|"renders"| node_footer
node_home -->|"renders"| node_scroll
node_lesson -->|"renders"| node_navbar
node_lesson -->|"renders"| node_footer
node_lesson -->|"renders"| node_scroll
node_calculator_page -->|"renders"| node_navbar
node_calculator_page -->|"renders"| node_footer
node_calculator_page -->|"renders"| node_scroll
node_quiz_page -->|"renders"| node_navbar
node_quiz_page -->|"renders"| node_footer
node_quiz_page -->|"renders"| node_scroll

click node_main "https://github.com/nabiladilpi/perkom/blob/main/src/main.jsx"
click node_router "https://github.com/nabiladilpi/perkom/blob/main/src/App.jsx"
click node_home "https://github.com/nabiladilpi/perkom/blob/main/src/pages/Beranda.jsx"
click node_comparison "https://github.com/nabiladilpi/perkom/blob/main/src/components/PerbandinganDemo.jsx"
click node_formula "https://github.com/nabiladilpi/perkom/blob/main/src/components/FormulaCard.jsx"
click node_lesson "https://github.com/nabiladilpi/perkom/blob/main/src/pages/Pembahasan.jsx"
click node_video "https://github.com/nabiladilpi/perkom/blob/main/src/components/VideoCard.jsx"
click node_video_data "https://github.com/nabiladilpi/perkom/blob/main/src/data/dataVideo.js"
click node_calculator_page "https://github.com/nabiladilpi/perkom/blob/main/src/pages/Kalkulator.jsx"
click node_math "https://github.com/nabiladilpi/perkom/blob/main/src/utils/kombinatorika.js"
click node_steps "https://github.com/nabiladilpi/perkom/blob/main/src/components/LangkahHitung.jsx"
click node_tiles "https://github.com/nabiladilpi/perkom/blob/main/src/components/DaftarUbin.jsx"
click node_quiz_page "https://github.com/nabiladilpi/perkom/blob/main/src/pages/Kuis.jsx"
click node_questions "https://github.com/nabiladilpi/perkom/blob/main/src/components/PertanyaanKuis.jsx"
click node_quiz_result "https://github.com/nabiladilpi/perkom/blob/main/src/components/HasilKuis.jsx"
click node_quiz_data "https://github.com/nabiladilpi/perkom/blob/main/src/data/soalKuis.js"
click node_navbar "https://github.com/nabiladilpi/perkom/blob/main/src/components/Navbar.jsx"
click node_footer "https://github.com/nabiladilpi/perkom/blob/main/src/components/Footer.jsx"
click node_scroll "https://github.com/nabiladilpi/perkom/blob/main/src/components/ScrollKeAtas.jsx"
click node_icons "https://github.com/nabiladilpi/perkom/blob/main/src/components/Ikon.jsx"
click node_not_found "https://github.com/nabiladilpi/perkom/blob/main/src/pages/TidakDitemukan.jsx"

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_main,node_router,node_not_found toneBlue
class node_home,node_comparison,node_formula,node_lesson,node_video,node_video_data toneAmber
class node_calculator_page,node_math,node_steps,node_tiles toneMint
class node_quiz_page,node_questions,node_quiz_result,node_quiz_data toneRose
class node_navbar,node_footer,node_scroll,node_icons toneIndigo
```

## Components

### App and navigation

- [App entry](https://github.com/nabiladilpi/perkom/blob/main/src/main.jsx): `src/main.jsx`
- [Route dispatcher](https://github.com/nabiladilpi/perkom/blob/main/src/App.jsx): `src/App.jsx`
- [Not found page](https://github.com/nabiladilpi/perkom/blob/main/src/pages/TidakDitemukan.jsx): `src/pages/TidakDitemukan.jsx`

### Learning content

- [Home and overview](https://github.com/nabiladilpi/perkom/blob/main/src/pages/Beranda.jsx): `src/pages/Beranda.jsx`
- [Interactive comparison](https://github.com/nabiladilpi/perkom/blob/main/src/components/PerbandinganDemo.jsx): `src/components/PerbandinganDemo.jsx`
- [Formula cards](https://github.com/nabiladilpi/perkom/blob/main/src/components/FormulaCard.jsx): `src/components/FormulaCard.jsx`
- [Video lessons](https://github.com/nabiladilpi/perkom/blob/main/src/pages/Pembahasan.jsx): `src/pages/Pembahasan.jsx`
- [Video player cards](https://github.com/nabiladilpi/perkom/blob/main/src/components/VideoCard.jsx): `src/components/VideoCard.jsx`
- [Video catalog](https://github.com/nabiladilpi/perkom/blob/main/src/data/dataVideo.js): `src/data/dataVideo.js`

### Calculator

- [Calculation workflow](https://github.com/nabiladilpi/perkom/blob/main/src/pages/Kalkulator.jsx): `src/pages/Kalkulator.jsx`
- [Counting algorithms](https://github.com/nabiladilpi/perkom/blob/main/src/utils/kombinatorika.js): `src/utils/kombinatorika.js`
- [Worked steps](https://github.com/nabiladilpi/perkom/blob/main/src/components/LangkahHitung.jsx): `src/components/LangkahHitung.jsx`
- [Outcome list](https://github.com/nabiladilpi/perkom/blob/main/src/components/DaftarUbin.jsx): `src/components/DaftarUbin.jsx`

### Quiz

- [Quiz workflow](https://github.com/nabiladilpi/perkom/blob/main/src/pages/Kuis.jsx): `src/pages/Kuis.jsx`
- [Question panel](https://github.com/nabiladilpi/perkom/blob/main/src/components/PertanyaanKuis.jsx): `src/components/PertanyaanKuis.jsx`
- [Quiz results](https://github.com/nabiladilpi/perkom/blob/main/src/components/HasilKuis.jsx): `src/components/HasilKuis.jsx`
- [Question bank](https://github.com/nabiladilpi/perkom/blob/main/src/data/soalKuis.js): `src/data/soalKuis.js`

### Shared presentation

- [Navigation bar](https://github.com/nabiladilpi/perkom/blob/main/src/components/Navbar.jsx): `src/components/Navbar.jsx`
- [Footer](https://github.com/nabiladilpi/perkom/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`
- [Scroll reset](https://github.com/nabiladilpi/perkom/blob/main/src/components/ScrollKeAtas.jsx): `src/components/ScrollKeAtas.jsx`
- [Icon components](https://github.com/nabiladilpi/perkom/blob/main/src/components/Ikon.jsx): `src/components/Ikon.jsx`

## Connections

- App entry → Route dispatcher: renders (evidence: `src/main.jsx`)
- Route dispatcher → Home and overview: routes to (evidence: `src/App.jsx`)
- Route dispatcher → Video lessons: routes to (evidence: `src/App.jsx`)
- Route dispatcher → Calculation workflow: routes to (evidence: `src/App.jsx`)
- Route dispatcher → Quiz workflow: routes to (evidence: `src/App.jsx`)
- Route dispatcher → Not found page: routes to (evidence: `src/App.jsx`)
- Home and overview → Interactive comparison: renders (evidence: `src/pages/Beranda.jsx`)
- Home and overview → Formula cards: renders (evidence: `src/pages/Beranda.jsx`)
- Interactive comparison → Counting algorithms: uses (evidence: `src/components/PerbandinganDemo.jsx`)
- Video lessons → Video player cards: renders (evidence: `src/pages/Pembahasan.jsx`)
- Video lessons → Video catalog: reads (evidence: `src/pages/Pembahasan.jsx`)
- Video player cards → Icon components: uses (evidence: `src/components/VideoCard.jsx`)
- Calculation workflow → Counting algorithms: computes with (evidence: `src/pages/Kalkulator.jsx`)
- Calculation workflow → Worked steps: renders (evidence: `src/pages/Kalkulator.jsx`)
- Calculation workflow → Outcome list: renders (evidence: `src/pages/Kalkulator.jsx`)
- Quiz workflow → Question bank: reads (evidence: `src/pages/Kuis.jsx`)
- Quiz workflow → Question panel: renders (evidence: `src/pages/Kuis.jsx`)
- Quiz workflow → Quiz results: renders (evidence: `src/pages/Kuis.jsx`)
- Home and overview → Navigation bar: renders (evidence: `src/pages/Beranda.jsx`)
- Home and overview → Footer: renders (evidence: `src/pages/Beranda.jsx`)
- Home and overview → Scroll reset: renders (evidence: `src/pages/Beranda.jsx`)
- Video lessons → Navigation bar: renders (evidence: `src/pages/Pembahasan.jsx`)
- Video lessons → Footer: renders (evidence: `src/pages/Pembahasan.jsx`)
- Video lessons → Scroll reset: renders (evidence: `src/pages/Pembahasan.jsx`)
- Calculation workflow → Navigation bar: renders (evidence: `src/pages/Kalkulator.jsx`)
- Calculation workflow → Footer: renders (evidence: `src/pages/Kalkulator.jsx`)
- Calculation workflow → Scroll reset: renders (evidence: `src/pages/Kalkulator.jsx`)
- Quiz workflow → Navigation bar: renders (evidence: `src/pages/Kuis.jsx`)
- Quiz workflow → Footer: renders (evidence: `src/pages/Kuis.jsx`)
- Quiz workflow → Scroll reset: renders (evidence: `src/pages/Kuis.jsx`)
