# lets-learn-il/lets-learn-il.github.io architecture

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

- Interactive diagram: https://gitdiagram.com/lets-learn-il/lets-learn-il.github.io
- Repository: https://github.com/lets-learn-il/lets-learn-il.github.io

## Overview

This is a static Afeka degree-planning web app. Students choose a program and term, enter their progress and preferences, then search for ranked, conflict-free schedules; they can also improve an existing schedule. The app applies degree rules, supports friends and imported records, and offers schedule, progress-map, registration-list, calendar, sharing, and adviser-PDF views. Public bulletin data is collected into datasets for the browser app. Relationships below rely on the README and shown source/index references; unsampled feature links are omitted where their caller was not established.

Main entry points: [`web/app.js`](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/app.js) (App state and startup), [`web/solver-core.js`](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/solver-core.js) (Schedule solver), [`web/rules.js`](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/rules.js) (Degree requirements), [`web/edit-search.js`](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/edit-search.js) (Edit proposal search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_planning["Planning interface"]
  node_app["App state and startup<br/>[app.js]"]
  node_routes["Mode and tool routes<br/>[shell-routes.js]"]
  node_ui["Shared UI state<br/>[ui-common.js]"]
  node_searchui["Schedule search controls<br/>[ui-search.js]"]
  node_board["Schedule board<br/>[ui-view.js]"]
  node_editui["Existing schedule editor<br/>[ui-edit.js]"]
end

subgraph group_engine["Rules and search"]
  node_rules["Degree requirements<br/>[rules.js]"]
  node_solver["Schedule solver<br/>[solver-core.js]"]
  node_editsearch["Edit proposal search<br/>[edit-search.js]"]
  node_worker["Search worker<br/>[solver-worker.js]"]
end

subgraph group_personal["Personal inputs"]
  node_friends["Friend schedules<br/>[friend-schedule.js]"]
  node_friendimport["Friend import and scan<br/>[friend-import.js]"]
  node_grades["Grade import<br/>[grade-import.js]"]
  node_profile["Student settings<br/>[settings.js]"]
end

subgraph group_outputs["Plans and outputs"]
  node_progress["Degree progress map<br/>[map-render.js]"]
  node_calendar["Calendar export<br/>[ics.js]"]
  node_sharing["Backup and share links<br/>[share.js]"]
  node_adviser["Adviser PDF summary<br/>[advisor-pdf.js]"]
end

subgraph group_catalog["Catalog data"]
  node_dataset[("Published course datasets<br/>[scrape.mjs]")]
  node_parser["Bulletin parser<br/>[parse.mjs]"]
end

node_student(("Student"))
node_bulletin[("Public course bulletin")]
node_browserstore[("Browser-local storage")]

node_student -->|"uses planner"| node_app
node_app -->|"loads datasets"| node_dataset
node_app -->|"saves state"| node_browserstore
node_app -->|"cleans profile"| node_rules
node_app -->|"reads backup links"| node_sharing
node_routes -->|"routes via"| node_app
node_searchui -->|"requests search"| node_solver
node_solver -->|"checks requirements"| node_rules
node_editui -->|"requests proposals"| node_editsearch
node_editsearch -->|"searches alternatives"| node_solver
node_editsearch -->|"classifies courses"| node_rules
node_worker -->|"runs solver"| node_solver
node_ui -->|"uses requirement helpers"| node_rules
node_board -->|"saves plan"| node_browserstore
node_student -->|"imports grades"| node_grades
node_student -->|"imports friend schedule"| node_friendimport
node_student -->|"plans with friends"| node_friends
node_student -->|"sets preferences"| node_profile
node_student -->|"improves schedule"| node_editui
node_student -->|"views progress"| node_progress
node_student -->|"exports calendar"| node_calendar
node_student -->|"shares backup"| node_sharing
node_student -->|"exports summary"| node_adviser
node_bulletin -->|"provides pages"| node_parser
node_parser -->|"parses course data"| node_dataset
node_dataset -->|"supplies planning data"| node_app

click node_app "https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/app.js"
click node_routes "https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/shell-routes.js"
click node_ui "https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/ui-common.js"
click node_searchui "https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/ui-search.js"
click node_board "https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/ui-view.js"
click node_editui "https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/ui-edit.js"
click node_rules "https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/rules.js"
click node_solver "https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/solver-core.js"
click node_editsearch "https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/edit-search.js"
click node_worker "https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/solver-worker.js"
click node_friends "https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/friend-schedule.js"
click node_friendimport "https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/friend-import.js"
click node_grades "https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/grade-import.js"
click node_profile "https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/settings.js"
click node_progress "https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/map-render.js"
click node_calendar "https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/ics.js"
click node_sharing "https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/share.js"
click node_adviser "https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/advisor-pdf.js"
click node_dataset "https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/scripts/scrape.mjs"
click node_parser "https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/scripts/parse.mjs"

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_app,node_routes,node_ui,node_searchui,node_board,node_editui toneBlue
class node_rules,node_solver,node_editsearch,node_worker,node_bulletin,node_browserstore toneAmber
class node_friends,node_friendimport,node_grades,node_profile toneMint
class node_progress,node_calendar,node_sharing,node_adviser toneRose
class node_dataset,node_parser,node_student toneIndigo
```

## Components

### Planning interface

- [App state and startup](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/app.js): `web/app.js`
- [Mode and tool routes](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/shell-routes.js): `web/shell-routes.js`
- [Shared UI state](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/ui-common.js): `web/ui-common.js`
- [Schedule search controls](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/ui-search.js): `web/ui-search.js`
- [Schedule board](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/ui-view.js): `web/ui-view.js`
- [Existing schedule editor](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/ui-edit.js): `web/ui-edit.js`

### Rules and search

- [Degree requirements](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/rules.js): `web/rules.js`
- [Schedule solver](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/solver-core.js): `web/solver-core.js`
- [Edit proposal search](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/edit-search.js): `web/edit-search.js`
- [Search worker](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/solver-worker.js): `web/solver-worker.js`

### Personal inputs

- [Friend schedules](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/friend-schedule.js): `web/friend-schedule.js`
- [Friend import and scan](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/friend-import.js): `web/friend-import.js`
- [Grade import](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/grade-import.js): `web/grade-import.js`
- [Student settings](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/settings.js): `web/settings.js`

### Plans and outputs

- [Degree progress map](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/map-render.js): `web/map-render.js`
- [Calendar export](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/ics.js): `web/ics.js`
- [Backup and share links](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/share.js): `web/share.js`
- [Adviser PDF summary](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/web/advisor-pdf.js): `web/advisor-pdf.js`

### Catalog data

- [Published course datasets](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/scripts/scrape.mjs): `scripts/scrape.mjs`
- [Bulletin parser](https://github.com/lets-learn-il/lets-learn-il.github.io/blob/main/scripts/parse.mjs): `scripts/parse.mjs`

### Other components

- **Student**
- **Public course bulletin**
- **Browser-local storage**

## Connections

- Student → App state and startup: uses planner (evidence: `README.md`)
- App state and startup → Published course datasets: loads datasets (evidence: `README.md`)
- App state and startup → Browser-local storage: saves state (evidence: `README.md`)
- App state and startup → Degree requirements: cleans profile (evidence: `web/app.js`)
- App state and startup → Backup and share links: reads backup links (evidence: `web/app.js`)
- Mode and tool routes → App state and startup: routes via (evidence: `web/shell-routes.js`)
- Schedule search controls → Schedule solver: requests search (evidence: `web/ui-search.js`)
- Schedule solver → Degree requirements: checks requirements (evidence: `web/solver-core.js`)
- Existing schedule editor → Edit proposal search: requests proposals (evidence: `web/ui-edit.js`)
- Edit proposal search → Schedule solver: searches alternatives (evidence: `web/edit-search.js`)
- Edit proposal search → Degree requirements: classifies courses (evidence: `web/edit-search.js`)
- Search worker → Schedule solver: runs solver (evidence: `web/solver-worker.js`)
- Shared UI state → Degree requirements: uses requirement helpers (evidence: `web/ui-common.js`)
- Schedule board → Browser-local storage: saves plan (evidence: `web/ui-view.js`)
- Student → Grade import: imports grades (evidence: `README.md`)
- Student → Friend import and scan: imports friend schedule (evidence: `README.md`)
- Student → Friend schedules: plans with friends (evidence: `README.md`)
- Student → Student settings: sets preferences (evidence: `README.md`)
- Student → Existing schedule editor: improves schedule (evidence: `README.md`)
- Student → Degree progress map: views progress (evidence: `README.md`)
- Student → Calendar export: exports calendar (evidence: `README.md`)
- Student → Backup and share links: shares backup (evidence: `README.md`)
- Student → Adviser PDF summary: exports summary (evidence: `README.md`)
- Public course bulletin → Bulletin parser: provides pages (evidence: `README.md`)
- Bulletin parser → Published course datasets: parses course data (evidence: `scripts/scrape.mjs`)
- Published course datasets → App state and startup: supplies planning data (evidence: `README.md`)
