Overview
What it is
SUcore is a deployed academic planner for Sabancı University students, built by the two of us. Its rules engine checks credit, ECTS and degree requirements for every major, double major and minor against completed and planned courses. Courses fill requirement pools in a fixed order (university, required, core, area, free), and a surplus in one pool counts toward the next. There is no application server: the static site talks to Supabase, and row-level security decides every read and write. We rewrote it in TypeScript with React and Supabase, recording the old behaviour as golden tests first. The catalog and the weekly schedule can be browsed as a guest; sign-in is limited to Sabancı e-mail domains.
Numbers
- 486
- Unit tests
- 97.9%
- Domain line coverage
- 14 / 17
- Majors / minors
- 6,076
- Sections synced
- 36
- Golden scenarios
- Live
- Deployed
Story
Why I built it
Sabancı gives students a lot of freedom in choosing courses, but that freedom comes with complexity. Every major has its own mixed set of graduation requirements, there are many different credit types, and minors and double majors add their own rules on top. Working all of that out by hand is hard and confusing, especially for students doing a minor or double major, or students at risk of having to stay an extra semester.
My friend Ali Efe and I built SUcore to solve that. Course contents and credits, along with the requirements for every major, minor and double major, are all publicly available. SUcore pulls that data from the web and turns it into an interface where you can plan your degree easily, and it tells you whether your completed and planned courses actually add up to graduation.
Scrolls sideways →
- Fixed order
- University, required, any programme-specific pools, then core, area and free. A course counts once, in the first pool that takes it.
- Overflow
- Core counts up to its target; whatever is left over is added to area. Area's surplus goes on to free.
- Two runs
- Completed and projected progress go through the same engine, on different sets of courses.
Features
From transcript to timetable
Onboarding can start from a SUIS transcript PDF. We parse it in the browser, so the file is never uploaded and storage is disabled. Text fragments are grouped into lines by baseline within 5 px, and a line state machine turns them into term headers and course rows with grades. A confirmation dialog lists what will be imported, then one transaction writes the transcript, profile and plan. The result is a locked "Mevcut durum" (current state) plan: every past term with its grades is read-only, next to graduation bars, CGPA and SU/ECTS totals. From there you add courses to future terms, drag them between terms, and see prerequisite chips, "this term is not offered" flags and a warning above 20 SU in a Fall or Spring term (8 in Summer).
One PDF, one plan
Scrolls sideways →
Timetables
When no schedule exists
"Planımdan oluştur" (build from my plan) picks one section of every component, lecture, recitation or lab, for each planned course so that no two meetings overlap. The solver is a plain depth-first backtracking search over the courses in order. Each course contributes up to 300 section combinations, a candidate that overlaps what is already placed is skipped, and a dead end backs up one level. Times that only touch are not a conflict. When nothing fits, the page doesn't stop at "no": it tests every pair of courses on its own and lists the pairs with no compatible combination, plus up to 6 sample conflicts. In the fall 2026 data, CS 300 and CS 301 both have a lecture on Friday 14:40–16:30, so those two can never share a week.
Scrolls sideways →
Screens
In the browser
- sucore.coShot 4 · Weekly calendar: Planımdan oluştur (build from my plan) places blocks, then a clashing section highlights · 8 s recording
Draft: a screen recording goes here. - sucore.coShot 3 · Graduation page: switch Anadal (main programme) to Yandal (minor), open a requirement card · 6 s recording
Draft: a screen recording goes here.
Friends
Weekly schedule and friends
Beyond degree planning, SUcore has a weekly schedule you can view and edit, plus friends. Search by name or e-mail (at least 3 characters, at most 10 results), send a request, and the other person accepts. Friends then see each other's current and future calendar selections and mutual courses, and can propose a shared set of sections. Privacy lives in the database, since there is no app server to enforce it: requests and friendships can only change through 13 security-definer RPCs, and the schedule one returns holds only a name, an e-mail and calendar selections from the current term on. Plans, grades and profile fields never leave. A pgTAP test checks every function against a closed allowlist, and an unknown function fails it.
Scrolls sideways →
Data
Refresh without regressions
Section times change often, so they live in Supabase, and a GitHub Actions job scheduled every three hours refreshes them from SUIS, which has no API and is scraped. Each term has an interval: 3 h while a registration window of the academic calendar is open, otherwise 24 h, with a 20-minute grace so run-time drift doesn't skip a tick. The job prefers doing nothing to replacing good data with less of it: an empty fetch is refused, and so is one with fewer than 75 % of the stored sections. The write goes through a transactional admin RPC, and a failed run leaves the stored term untouched for the next tick to retry. The committed snapshot holds 5 terms, 2,226 course offerings and 6,076 sections.
Scrolls sideways →
Registration windows of the fall 2026 calendar: DERS KAYITLARI (course registration) Sep 23–25, DERS EKLEME-BIRAKMA (add/drop) Oct 8–9, Exchange Ders Ekleme-Bırakma (exchange add/drop) Oct 13–14. Section counts are the committed snapshot; the ticks and the two fetches are an illustration, slowed down.
Autosave
Saving without races
Plans save automatically, so edits can race: an old response arriving after a newer edit, two tabs, a sign-out mid-save. Each edit bumps a revision and restarts a 450 ms debounce. Writes go through one promise chain so they run in order, and a result only updates the status if its revision is still the latest, so an old acknowledgement can't mark a newer edit as saved. If a write fails, the latest payload is kept for retry. The server checks the revision too: a write against a stale one comes back as a conflict and opens a conflict dialog.
Scrolls sideways →
Testing
Rules you can trust
The rules engine is plain TypeScript in domain/, with no React, DOM or Supabase imports; ESLint enforces it. Before we rewrote anything, we recorded the old planner's behaviour as a golden master: 36 scenarios and 79 probe comparisons, frozen and then compared against the new code. On top sit 486 unit and component tests with Vitest, a gate of 90 % line coverage on domain/ (measured: 97.87 %), 273 pgTAP assertions on the schema, row-level security and function privileges, and Playwright flows and visual tests that run locally in Docker. Static guards ban any, literal UI strings in components and literal colours in CSS, and a build check fails the deploy if it finds a secret key.
Scrolls sideways →
- 486
- unit and component tests
- Vitest, 74 files
- 273
- pgTAP assertions
- schema, RLS, function privileges
- 26
- browser flows
- Playwright, run locally in Docker
- 45
- visual tests
- Playwright, 3 viewports