The web app at gradesim.uplb.tools: a UPLB GWA calculator, Latin honors simulator and course planner that runs entirely in the browser. It is the companion to the GradeSim browser extension, which reads grades from AMIS.
Built with SvelteKit (Svelte 5, TypeScript) and prerendered to static files, plus one Vercel Function for checklist fixes. Grades are kept in the browser's local storage under the gradesim:v1 key and never sent anywhere.
npm install
npm run devnpm run check # svelte-check
npm run lint # eslint
npm test # vitest: scheduler, curriculum, GWA, importers, planner, xlsx
npm run build # static site in build/
npm run test:e2e # Playwright against the built sitesrc/routes/+page.svelteis the app (Grades, What if, Planner, Wrapped).about,install,curricula,privacyandtermsare the pages around it.src/lib/*.tsholds the logic ported from the extension as pure functions:scheduler.ts,curriculum.ts,catalog.ts,grades.ts,planner.ts,requirements.ts,xlsx.ts,wrapped.ts, andimporters.tsfor backups, plan files and manual entry.src/lib/data/*.jsonis generated from the extension'scurriculum.jsandcatalog.jsbynode scripts/sync-extension-data.mjs <path to extension/src>. Fix curriculum data in the extension repo, then run it.src/lib/bridge.tsasks an installed extension for its grades (externally_connectable on Chromium browsers, a window message answered by a content script on Firefox).src/service-worker/precaches the build so the app works offline./program-courses.jsonlists each program's name, checklist course codes, elective subjects and specialization courses for other UPLB Tools apps. It's prerendered fromprograms.jsonand served with an open CORS header.api/fix.tsis the one server function. It files a student's checklist fix as an issue onuplbtools/gradesim, and it answers 503 untilGRADESIM_FIX_TOKENis set on Vercel, so the app opens a prefilled GitHub issue instead.
Vercel builds main (vercel.json sets the static output in build/).