How 13eyal/course-schedule-optimizer works
CarpedIO is a local university timetable optimizer with a separate GPA calculator. The main workflow is to import or enter course offerings, choose courses and constraints, run a bounded search, and review ranked schedules in the planner. The graph also preserves manual-course entry, Excel handling, and GPA import/export. Some routes and UI wiring are documented or indexed but not fully excerpted, so only documented or directly referenced links are shown.
Main entry points: web_server.py HTTP API and jobs · app.js App orchestration · api.js API client · search.py Top-K constraint search
Components 20
Web interface
- App orchestration
web/scripts/app.js - API client
web/scripts/api.js - Search controls
web/scripts/search-controls.js - Manual course form
web/scripts/manual-course.js - Planner views
web/scripts/planner.js - Language and theme
web/scripts/shell.js
HTTP service
- HTTP API and jobs
web_server.py - In-memory course data
web_server.py
Course input
- Excel course import
src/data_loader.py - Manual course validation
src/course_parser.py - Course and schedule models
src/models.py
Schedule engine
- Optimization constraints
src/optimization_service.py - Search preparation
src/search_model.py - Time grid encoding
src/bitmasks.py - Top-K constraint search
src/search.py - Schedule scoring
src/scoring.py
GPA calculator
- GPA page
web/scripts/grades.js - GPA calculations
web/scripts/grade-math.js - Grade workbook I/O
src/grades_io.py
Other components
- Student
Connections 27
- Student → App orchestration: uses
README.md - App orchestration → API client: calls
web/scripts/app.js - App orchestration → Search controls: uses
web/scripts/app.js - App orchestration → Manual course form: uses
web/scripts/app.js - App orchestration → Planner views: uses
web/scripts/app.js - App orchestration → Language and theme: uses
web/scripts/app.js - Manual course form → API client: submits course
web/scripts/manual-course.js - Search controls → API client: requests search
web/scripts/search-controls.js - Planner views → API client: requests data
web/scripts/planner.js - API client → HTTP API and jobs: sends HTTP requests
web/scripts/api.js - HTTP API and jobs → In-memory course data: stores and reads
web_server.py - HTTP API and jobs → Excel course import: parses uploads
web_server.py - HTTP API and jobs → Manual course validation: parses manual input
web_server.py - Excel course import → Course and schedule models: builds models
src/data_loader.py - Manual course validation → Course and schedule models: builds models
src/course_parser.py - HTTP API and jobs → Optimization constraints: validates requests
web_server.py - Optimization constraints → Search preparation: uses limits and constraints
src/optimization_service.py - HTTP API and jobs → Search preparation: prepares search input
web_server.py - Search preparation → Time grid encoding: encodes meetings
src/search_model.py - HTTP API and jobs → Top-K constraint search: runs search jobs
web_server.py - Top-K constraint search → Search preparation: searches prepared problem
src/search.py - Top-K constraint search → Time grid encoding: checks time conflicts
src/search.py - Top-K constraint search → Schedule scoring: scores candidates
src/search.py - Top-K constraint search → Planner views: returns ranked results
README.md - GPA page → API client: imports and exports
web/scripts/grades.js - GPA page → GPA calculations: calculates GPA
web/scripts/grades.js - HTTP API and jobs → Grade workbook I/O: handles workbook requests
web_server.py