# mungnv212894/learning architecture

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

- Interactive diagram: https://gitdiagram.com/mungnv212894/learning
- Repository: https://github.com/mungnv212894/learning

## Overview

JLPT N3 Master is an offline-capable exam-practice app for two collections: 26 comprehensive tests and 50 grammar tests. The documented learner flow is choosing a collection, answering timed or practice questions, receiving scores and review history, then using vocabulary, mistake-review, drills, flashcards, or search to continue studying. The provided tree omits the README-described frontend, so its internal runtime links cannot be verified; the graph shows documented capabilities without assigning them invented source paths. The sampled server confirms local HTTP access, and the sampled compiler confirms the grammar dataset inputs and outputs.

Main entry points: [`scripts/build_full_50_database.py`](https://github.com/mungnv212894/learning/blob/main/scripts/build_full_50_database.py) (Grammar data compiler), [`server.py`](https://github.com/mungnv212894/learning/blob/main/server.py) (Wi-Fi HTTP server), [`data/grammar_50_data.js`](https://github.com/mungnv212894/learning/blob/main/data/grammar_50_data.js) (50-test collection), [`data/tests_data.js`](https://github.com/mungnv212894/learning/blob/main/data/tests_data.js) (26-test collection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Study experience"]
  node_practice["Exam practice"]
  node_scoring["Scoring and history"]
  node_mistakes["Mistake bank"]
  node_drills["Mondai drills"]
  node_vocabulary["Vocabulary tools"]
  node_flashcards["Vocabulary flashcards"]
  node_search["Global search"]
end

subgraph group_content["Test content"]
  node_tests26["26-test collection<br/>[tests_data.js]"]
  node_grammar50["50-test collection<br/>[grammar_50_data.js]"]
  node_compiler["Grammar data compiler"]
  node_batch1["Tests batch 1<br/>[tests_batch_1.py]"]
  node_batch2["Tests 11–50"]
end

subgraph group_access["Local access"]
  node_localserver["Wi-Fi HTTP server<br/>[server.py]"]
end

node_learner(("Learner"))
node_browser(("Web browser"))

node_learner -->|"answers questions"| node_practice
node_practice -->|"uses collection"| node_tests26
node_practice -->|"uses collection"| node_grammar50
node_practice -->|"submits answers"| node_scoring
node_scoring -->|"records errors"| node_mistakes
node_learner -->|"practices by type"| node_drills
node_learner -->|"looks up words"| node_vocabulary
node_vocabulary -->|"reviews saved words"| node_flashcards
node_learner -->|"searches tests"| node_search
node_compiler -->|"loads tests"| node_batch1
node_compiler -->|"builds tests"| node_batch2
node_compiler -->|"writes dataset"| node_grammar50
node_browser -->|"requests app"| node_localserver
node_localserver -->|"serves HTTP"| node_browser

click node_tests26 "https://github.com/mungnv212894/learning/blob/main/data/tests_data.js"
click node_grammar50 "https://github.com/mungnv212894/learning/blob/main/data/grammar_50_data.js"
click node_compiler "https://github.com/mungnv212894/learning/blob/main/scripts/build_full_50_database.py"
click node_batch1 "https://github.com/mungnv212894/learning/blob/main/scripts/tests_batch_1.py"
click node_batch2 "https://github.com/mungnv212894/learning/blob/main/scripts/build_tests_11_to_50.py"
click node_localserver "https://github.com/mungnv212894/learning/blob/main/server.py"

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_practice,node_scoring,node_mistakes,node_drills,node_vocabulary,node_flashcards,node_search,node_browser toneBlue
class node_tests26,node_grammar50,node_compiler,node_batch1,node_batch2 toneAmber
class node_localserver toneMint
class node_learner toneIndigo
```

## Components

### Study experience

- **Exam practice**
- **Scoring and history**
- **Mistake bank**
- **Mondai drills**
- **Vocabulary tools**
- **Vocabulary flashcards**
- **Global search**

### Test content

- [26-test collection](https://github.com/mungnv212894/learning/blob/main/data/tests_data.js): `data/tests_data.js`
- [50-test collection](https://github.com/mungnv212894/learning/blob/main/data/grammar_50_data.js): `data/grammar_50_data.js`
- [Grammar data compiler](https://github.com/mungnv212894/learning/blob/main/scripts/build_full_50_database.py): `scripts/build_full_50_database.py`
- [Tests batch 1](https://github.com/mungnv212894/learning/blob/main/scripts/tests_batch_1.py): `scripts/tests_batch_1.py`
- [Tests 11–50](https://github.com/mungnv212894/learning/blob/main/scripts/build_tests_11_to_50.py): `scripts/build_tests_11_to_50.py`

### Local access

- [Wi-Fi HTTP server](https://github.com/mungnv212894/learning/blob/main/server.py): `server.py`

### Other components

- **Learner**
- **Web browser**

## Connections

- Learner → Exam practice: answers questions (evidence: `README.md`)
- Exam practice → 26-test collection: uses collection (evidence: `README.md`)
- Exam practice → 50-test collection: uses collection (evidence: `README.md`)
- Exam practice → Scoring and history: submits answers (evidence: `README.md`)
- Scoring and history → Mistake bank: records errors (evidence: `README.md`)
- Learner → Mondai drills: practices by type (evidence: `README.md`)
- Learner → Vocabulary tools: looks up words (evidence: `README.md`)
- Vocabulary tools → Vocabulary flashcards: reviews saved words (evidence: `README.md`)
- Learner → Global search: searches tests (evidence: `README.md`)
- Grammar data compiler → Tests batch 1: loads tests (evidence: `scripts/build_full_50_database.py`)
- Grammar data compiler → Tests 11–50: builds tests (evidence: `scripts/build_full_50_database.py`)
- Grammar data compiler → 50-test collection: writes dataset (evidence: `scripts/build_full_50_database.py`)
- Web browser → Wi-Fi HTTP server: requests app (evidence: `README.md`)
- Wi-Fi HTTP server → Web browser: serves HTTP (evidence: `server.py`)
