# vatz88/ffcsonthego architecture

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

- Interactive diagram: https://gitdiagram.com/vatz88/ffcsonthego
- Repository: https://github.com/vatz88/ffcsonthego

## Overview

FFCS On The Go is a browser app for VIT students to assemble and visualize course-registration timetables. Students choose a campus, select courses and time slots, then see the course list and timetable update; the app also handles slot clashes, saved tables, quick visualization, and timetable image export. The graph follows the sampled JavaScript call sites and README description. Campus schedule files are referenced by the timetable module, but their contents and the separate course-data files are not shown, so their detailed roles are not expanded.

Main entry points: [`src/js/timetable.js`](https://github.com/vatz88/ffcsonthego/blob/master/src/js/timetable.js) (Timetable view), [`src/js/main.js`](https://github.com/vatz88/ffcsonthego/blob/master/src/js/main.js) (App entry), [`src/js/course-panel.js`](https://github.com/vatz88/ffcsonthego/blob/master/src/js/course-panel.js) (Course panel), [`src/js/course-list.js`](https://github.com/vatz88/ffcsonthego/blob/master/src/js/course-list.js) (Course list)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and campus"]
  node_app_entry["App entry<br/>[main.js]"]
  node_shared_bindings["Shared bindings<br/>[attacher.js]"]
  node_campus_schedules["Campus schedules"]
  node_browser_storage[("Browser storage")]
  node_utility_helpers["Utility helpers<br/>[utils.js]"]
end

subgraph group_courses["Course registration"]
  node_course_panel["Course panel<br/>[course-panel.js]"]
  node_course_data["Course data<br/>[course-panel.js]"]
  node_course_list["Course list<br/>[course-list.js]"]
end

subgraph group_timetable["Timetable"]
  node_timetable_view["Timetable view<br/>[timetable.js]"]
  node_slot_conflicts["Slot conflicts<br/>[timetable.js]"]
  node_quick_visualization["Quick visualization<br/>[timetable.js]"]
  node_saved_tables["Saved tables<br/>[timetable.js]"]
  node_image_export["Image export<br/>[timetable.js]"]
end

node_student(("Student"))

node_student -->|"uses"| node_app_entry
node_app_entry -->|"imports"| node_shared_bindings
node_app_entry -->|"loads"| node_course_panel
node_app_entry -->|"loads"| node_course_list
node_app_entry -->|"loads"| node_timetable_view
node_app_entry -->|"calls"| node_utility_helpers
node_app_entry -->|"reads campus"| node_browser_storage
node_app_entry -->|"saves campus"| node_browser_storage
node_app_entry -->|"loads courses"| node_course_panel
node_app_entry -->|"initializes"| node_timetable_view
node_course_panel -->|"loads campus data"| node_course_data
node_course_panel -->|"adds course"| node_course_list
node_course_panel -->|"adds course"| node_timetable_view
node_course_list -->|"removes course"| node_timetable_view
node_timetable_view -->|"reads schedules"| node_campus_schedules
node_timetable_view -->|"fills course list"| node_course_list
node_timetable_view -->|"checks clashes"| node_slot_conflicts
node_timetable_view -->|"highlights slots"| node_quick_visualization
node_timetable_view -->|"switches tables"| node_saved_tables
node_timetable_view -->|"persists tables"| node_browser_storage
node_timetable_view -->|"renders image"| node_image_export

click node_app_entry "https://github.com/vatz88/ffcsonthego/blob/master/src/js/main.js"
click node_shared_bindings "https://github.com/vatz88/ffcsonthego/blob/master/src/js/attacher.js"
click node_campus_schedules "https://github.com/vatz88/ffcsonthego/tree/master/src/schemas"
click node_course_panel "https://github.com/vatz88/ffcsonthego/blob/master/src/js/course-panel.js"
click node_course_data "https://github.com/vatz88/ffcsonthego/blob/master/src/js/course-panel.js"
click node_course_list "https://github.com/vatz88/ffcsonthego/blob/master/src/js/course-list.js"
click node_timetable_view "https://github.com/vatz88/ffcsonthego/blob/master/src/js/timetable.js"
click node_slot_conflicts "https://github.com/vatz88/ffcsonthego/blob/master/src/js/timetable.js"
click node_quick_visualization "https://github.com/vatz88/ffcsonthego/blob/master/src/js/timetable.js"
click node_saved_tables "https://github.com/vatz88/ffcsonthego/blob/master/src/js/timetable.js"
click node_image_export "https://github.com/vatz88/ffcsonthego/blob/master/src/js/timetable.js"
click node_utility_helpers "https://github.com/vatz88/ffcsonthego/blob/master/src/js/utils.js"

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_entry,node_shared_bindings,node_campus_schedules,node_browser_storage,node_utility_helpers toneBlue
class node_course_panel,node_course_data,node_course_list toneAmber
class node_timetable_view,node_slot_conflicts,node_quick_visualization,node_saved_tables,node_image_export toneMint
class node_student toneIndigo
```

## Components

### App and campus

- [App entry](https://github.com/vatz88/ffcsonthego/blob/master/src/js/main.js): `src/js/main.js`
- [Shared bindings](https://github.com/vatz88/ffcsonthego/blob/master/src/js/attacher.js): `src/js/attacher.js`
- [Campus schedules](https://github.com/vatz88/ffcsonthego/tree/master/src/schemas): `src/schemas`
- **Browser storage**
- [Utility helpers](https://github.com/vatz88/ffcsonthego/blob/master/src/js/utils.js): `src/js/utils.js`

### Course registration

- [Course panel](https://github.com/vatz88/ffcsonthego/blob/master/src/js/course-panel.js): `src/js/course-panel.js`
- [Course data](https://github.com/vatz88/ffcsonthego/blob/master/src/js/course-panel.js): `src/js/course-panel.js`
- [Course list](https://github.com/vatz88/ffcsonthego/blob/master/src/js/course-list.js): `src/js/course-list.js`

### Timetable

- [Timetable view](https://github.com/vatz88/ffcsonthego/blob/master/src/js/timetable.js): `src/js/timetable.js`
- [Slot conflicts](https://github.com/vatz88/ffcsonthego/blob/master/src/js/timetable.js): `src/js/timetable.js`
- [Quick visualization](https://github.com/vatz88/ffcsonthego/blob/master/src/js/timetable.js): `src/js/timetable.js`
- [Saved tables](https://github.com/vatz88/ffcsonthego/blob/master/src/js/timetable.js): `src/js/timetable.js`
- [Image export](https://github.com/vatz88/ffcsonthego/blob/master/src/js/timetable.js): `src/js/timetable.js`

### Other components

- **Student**

## Connections

- Student → App entry: uses (evidence: `README.md`)
- App entry → Shared bindings: imports (evidence: `src/js/main.js`)
- App entry → Course panel: loads (evidence: `src/js/main.js`)
- App entry → Course list: loads (evidence: `src/js/main.js`)
- App entry → Timetable view: loads (evidence: `src/js/main.js`)
- App entry → Utility helpers: calls (evidence: `src/js/main.js`)
- App entry → Browser storage: reads campus (evidence: `src/js/main.js`)
- App entry → Browser storage: saves campus (evidence: `src/js/main.js`)
- App entry → Course panel: loads courses (evidence: `src/js/main.js`)
- App entry → Timetable view: initializes (evidence: `src/js/main.js`)
- Course panel → Course data: loads campus data (evidence: `src/js/course-panel.js`)
- Course panel → Course list: adds course (evidence: `src/js/course-panel.js`)
- Course panel → Timetable view: adds course (evidence: `src/js/course-panel.js`)
- Course list → Timetable view: removes course (evidence: `src/js/course-list.js`)
- Timetable view → Campus schedules: reads schedules (evidence: `src/js/timetable.js`)
- Timetable view → Course list: fills course list (evidence: `src/js/timetable.js`)
- Timetable view → Slot conflicts: checks clashes (evidence: `src/js/timetable.js`)
- Timetable view → Quick visualization: highlights slots (evidence: `src/js/timetable.js`)
- Timetable view → Saved tables: switches tables (evidence: `src/js/timetable.js`)
- Timetable view → Browser storage: persists tables (evidence: `src/js/timetable.js`)
- Timetable view → Image export: renders image (evidence: `src/js/timetable.js`)
