Introducing a new way to review your PRs.

Read the announcement

nusmodifications / nusmods

馃彨 Official course planning platform for National University of Singapore.

View on GitHub

20 documents 路 Updated Nov 6, 2026

overview

Knowledge Base updated: 2026-11-05

NUSMods Knowledge Base

Orientation

NUSMods is a student-facing NUS planning platform: a web application for building and viewing timetables, planning academic progress, finding campus information, and accessing supporting tools.

The browser application is primarily under website/, with Redux state, timetable and planner features, client API calls, and serverless API handlers. Academic and campus data is acquired by separate scraper applications and consumed by the web product.

Critical client state鈥攊ncluding selected modules, lesson choices, settings, undo history, and persisted preferences鈥攆lows through the website Redux store and browser storage. Operational concerns span the export renderer, serverless handlers, and deployment configuration.

flowchart TD
  User[Student browser] --> Web[website application]
  Web --> Redux[Redux state and persistence]
  Web --> Timetable[Timetable UI]
  Web --> Planner[Planner and module bank]
  Web --> Tools[Campus tools]
  Web --> API[Website API and serverless handlers]
  API --> NUS[NUS data services]
  API --> Optimiser[Timetable optimiser]
  API --> MPE[Module prerequisite explorer]
  API --> Transit[Transport, weather, GitHub services]
  Web --> Export[Timetable export service]
  NUSScraper[nus-v2 scraper] --> Data[NUS academic data]
  CPExScraper[CPE-X scraper] --> Data
  Data --> API
  Deploy[Infrastructure and hosting] --> Web
  Deploy --> Export

Glossary

  • MPE: Module Prerequisite Explorer, the authenticated tool for navigating module prerequisite relationships.
  • Module bank: The planner workspace where users organize prospective modules independently of a selected timetable.
  • Lesson choice: A selected lesson group or class choice used to construct a timetable.
  • CPE-X: External course-planning data supplied by the dedicated CPE-X scraper.
  • NUSMods export: The separate rendering flow that generates shareable or downloadable timetable output.

Codebase-wide invariants

  • Client state changes must remain compatible with persisted state and storage migrations; evidence: website/src/reducers/** and website/src/storage/**.
  • Timetable selections must preserve lesson-choice and conflict rules before rendering; evidence: website/src/actions/timetable/** and website/src/reducers/timetable/**.
  • Serverless handlers must maintain their authentication boundary when exposing external integrations; evidence: website/src/api/**.
  • Scraped academic data is produced independently of the web UI and must retain the scraper-to-published-data contract; evidence: scrapers/nus-v2/** and scrapers/cpex/**.
  • Export rendering remains a standalone service boundary rather than browser-only UI behavior; evidence: export/**.

Routing table