# j-lab-mdg/jlearn-pack architecture

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

- Interactive diagram: https://gitdiagram.com/j-lab-mdg/jlearn-pack
- Repository: https://github.com/j-lab-mdg/jlearn-pack

## Overview

This tree contains educational-content authoring and document-generation code, while the README describes an illustration pack distributed through jsDelivr. The graph covers the evidenced generation workflows and separately notes the documented pack-consumption workflow; the pack manifest and image assets are not present in the supplied tree. Source evidence shows the SVT builder/data links and shared T7 library references; other generator relationships are not established here.

Main entry points: [`svt-9e/src`](https://github.com/j-lab-mdg/jlearn-pack/tree/main/svt-9e/src) (SVT lesson content), [`scripts/t7`](https://github.com/j-lab-mdg/jlearn-pack/tree/main/scripts/t7) (T7 lesson units), [`svt-9e/src/build_b1.py`](https://github.com/j-lab-mdg/jlearn-pack/blob/main/svt-9e/src/build_b1.py) (Bimestre 1 builder), [`svt-9e/src/build_b2.py`](https://github.com/j-lab-mdg/jlearn-pack/blob/main/svt-9e/src/build_b2.py) (Bimestre 2 builder)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_math["Maths manuals"]
  node_math6["T6 unit generators"]
  node_math7["T7 unit generators"]
  node_t7content["T7 lesson units"]
  node_t7lib["DOCX rendering helpers<br/>[lib.js]"]
end

subgraph group_svt["SVT manuals"]
  node_svtdata["SVT lesson content"]
  node_svtb1["Bimestre 1 builder<br/>[build_b1.py]"]
  node_svtb2["Bimestre 2 builder<br/>[build_b2.py]"]
  node_svtb3["Bimestre 3 builder<br/>[build_b3.py]"]
  node_svtb4["Bimestre 4 builder<br/>[build_b4.py]"]
  node_svtb5["Bimestre 5 builder<br/>[build_b5.py]"]
  node_svtannual["Annual manual builder<br/>[build_annuel.py]"]
  node_finalassembly["Final document assembly<br/>[assemble_final.py]"]
end

subgraph group_pack["Illustration distribution"]
  node_illustrations["Illustration pack"]
end

node_cdn(("jsDelivr CDN"))
node_jlearn(("J-Learn app"))
node_phonecache[("Offline phone storage")]

node_t7content -->|"uses helpers"| node_t7lib
node_svtb1 -->|"reads lessons"| node_svtdata
node_svtb2 -->|"reads lessons"| node_svtdata
node_svtb3 -->|"reads lessons"| node_svtdata
node_svtb4 -->|"reads lessons"| node_svtdata
node_svtb5 -->|"reads lessons"| node_svtdata
node_svtannual -->|"reads all bimesters"| node_svtdata
node_illustrations -->|"distributed via"| node_cdn
node_jlearn -->|"downloads images"| node_cdn
node_jlearn -->|"stores offline"| node_phonecache

click node_math6 "https://github.com/j-lab-mdg/jlearn-pack/tree/main/scripts"
click node_math7 "https://github.com/j-lab-mdg/jlearn-pack/tree/main/scripts"
click node_t7content "https://github.com/j-lab-mdg/jlearn-pack/tree/main/scripts/t7"
click node_t7lib "https://github.com/j-lab-mdg/jlearn-pack/blob/main/scripts/t7/lib.js"
click node_svtdata "https://github.com/j-lab-mdg/jlearn-pack/tree/main/svt-9e/src"
click node_svtb1 "https://github.com/j-lab-mdg/jlearn-pack/blob/main/svt-9e/src/build_b1.py"
click node_svtb2 "https://github.com/j-lab-mdg/jlearn-pack/blob/main/svt-9e/src/build_b2.py"
click node_svtb3 "https://github.com/j-lab-mdg/jlearn-pack/blob/main/svt-9e/src/build_b3.py"
click node_svtb4 "https://github.com/j-lab-mdg/jlearn-pack/blob/main/svt-9e/src/build_b4.py"
click node_svtb5 "https://github.com/j-lab-mdg/jlearn-pack/blob/main/svt-9e/src/build_b5.py"
click node_svtannual "https://github.com/j-lab-mdg/jlearn-pack/blob/main/svt-9e/src/build_annuel.py"
click node_finalassembly "https://github.com/j-lab-mdg/jlearn-pack/blob/main/assemble_final.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_math6,node_math7,node_t7content,node_t7lib toneBlue
class node_svtdata,node_svtb1,node_svtb2,node_svtb3,node_svtb4,node_svtb5,node_svtannual,node_finalassembly,node_phonecache toneAmber
class node_illustrations toneMint
class node_cdn,node_jlearn toneIndigo
```

## Components

### Maths manuals

- [T6 unit generators](https://github.com/j-lab-mdg/jlearn-pack/tree/main/scripts): `scripts`
- [T7 unit generators](https://github.com/j-lab-mdg/jlearn-pack/tree/main/scripts): `scripts`
- [T7 lesson units](https://github.com/j-lab-mdg/jlearn-pack/tree/main/scripts/t7): `scripts/t7`
- [DOCX rendering helpers](https://github.com/j-lab-mdg/jlearn-pack/blob/main/scripts/t7/lib.js): `scripts/t7/lib.js`

### SVT manuals

- [SVT lesson content](https://github.com/j-lab-mdg/jlearn-pack/tree/main/svt-9e/src): `svt-9e/src`
- [Bimestre 1 builder](https://github.com/j-lab-mdg/jlearn-pack/blob/main/svt-9e/src/build_b1.py): `svt-9e/src/build_b1.py`
- [Bimestre 2 builder](https://github.com/j-lab-mdg/jlearn-pack/blob/main/svt-9e/src/build_b2.py): `svt-9e/src/build_b2.py`
- [Bimestre 3 builder](https://github.com/j-lab-mdg/jlearn-pack/blob/main/svt-9e/src/build_b3.py): `svt-9e/src/build_b3.py`
- [Bimestre 4 builder](https://github.com/j-lab-mdg/jlearn-pack/blob/main/svt-9e/src/build_b4.py): `svt-9e/src/build_b4.py`
- [Bimestre 5 builder](https://github.com/j-lab-mdg/jlearn-pack/blob/main/svt-9e/src/build_b5.py): `svt-9e/src/build_b5.py`
- [Annual manual builder](https://github.com/j-lab-mdg/jlearn-pack/blob/main/svt-9e/src/build_annuel.py): `svt-9e/src/build_annuel.py`
- [Final document assembly](https://github.com/j-lab-mdg/jlearn-pack/blob/main/assemble_final.py): `assemble_final.py`

### Illustration distribution

- **Illustration pack**

### Other components

- **jsDelivr CDN**
- **J-Learn app**
- **Offline phone storage**

## Connections

- T7 lesson units → DOCX rendering helpers: uses helpers (evidence: `scripts/t7/u2.js`)
- Bimestre 1 builder → SVT lesson content: reads lessons (evidence: `svt-9e/src/build_b1.py`)
- Bimestre 2 builder → SVT lesson content: reads lessons (evidence: `svt-9e/src/build_b2.py`)
- Bimestre 3 builder → SVT lesson content: reads lessons (evidence: `svt-9e/src/build_b3.py`)
- Bimestre 4 builder → SVT lesson content: reads lessons (evidence: `svt-9e/src/build_b4.py`)
- Bimestre 5 builder → SVT lesson content: reads lessons (evidence: `svt-9e/src/build_b5.py`)
- Annual manual builder → SVT lesson content: reads all bimesters (evidence: `svt-9e/src/build_annuel.py`)
- Illustration pack → jsDelivr CDN: distributed via (evidence: `README.md`)
- J-Learn app → jsDelivr CDN: downloads images (evidence: `README.md`)
- J-Learn app → Offline phone storage: stores offline (evidence: `README.md`)
