How cataragamihai/orar works
Orar turns the faculty’s published eOra timetable into group-specific schedules: students choose a group and electives, then view classes adjusted for week parity, holidays and one-off sessions. A scraper refreshes the static JSON data; the browser app uses shared scheduling logic to render the timetable and offer calendar and notification features. The app shell also supports offline use. The README documents scraping and offline behavior; calendar and morning-push components are supported by the sampled source. Some wiring for calendar delivery and push subscription is not shown, so those links are marked unverified.
Main entry points: app.js Browser app · data Published timetable data · core.js Schedule logic · sw.js Service worker
Components 13
Data ingestion
- eOra scraper
scripts/scrape.mjs - Published timetable data
public/data - Academic year calendar
academic-year.json
Timetable app
- Browser app
public/app.js - Schedule logic
public/core.js
Calendar and alerts
- Calendar files
scripts/build-cal.mjs - Morning summaries
scripts/morning.mjs
Offline delivery
- Service worker
public/sw.js - Browser cache
Other components
- Student
- Faculty eOra
- Calendar client
- Push service
Connections 17
- Student → Browser app: chooses group
public/app.js - Browser app → Published timetable data: loads timetable
public/app.js - Browser app → Schedule logic: uses scheduling
public/app.js - Schedule logic → Browser app: returns lessons
public/core.js - Faculty eOra → eOra scraper: provides pages
scripts/scrape.mjs - eOra scraper → Published timetable data: writes JSON
scripts/scrape.mjs - Academic year calendar → Published timetable data: adds term dates
- Published timetable data → Calendar files: builds calendars
scripts/build-cal.mjs - Schedule logic → Calendar files: formats events
scripts/build-cal.mjs - Calendar client → Calendar files: subscribes
- Published timetable data → Morning summaries: reads group data
scripts/morning.mjs - Schedule logic → Morning summaries: selects classes
scripts/morning.mjs - Morning summaries → Push service: sends alerts
scripts/morning.mjs - Browser app → Push service: registers subscription
- Browser app → Service worker: registers worker
public/app.js - Service worker → Browser cache: caches responses
public/sw.js - Service worker → Browser app: serves offline
public/sw.js