Syllabus Sync is an independent student platform for academic planning and university-life management.
The current web app helps students track units, class times, assignments, exams, deadlines and events, with campus information and map features. It is developed and validated around Macquarie University. The longer-term vision connects academic planning, campus information, navigation through a companion app, and AI-assisted study through Sylla in one student experience.
It is not officially affiliated with Macquarie University. Institution-specific data adapters, support for other universities, and a multi-institution architecture are future directions. Australia-wide expansion is an aspiration, not an announced rollout.
Live App · Project Info · Docs · Security · Contributing
University tools are often fragmented — timetables, deadlines, campus maps, and support resources scattered across separate portals with clunky UX. Syllabus Sync brings the pieces students actually check daily into one place:
- Unified Academic Management: Enrolled units, class times, and assessment deadlines in a single dashboard and calendar.
- Basic Campus Support: A Leaflet-based campus map with building search and an embedded Google Maps view — location context, not turn-by-turn wayfinding.
- Security-Focused Architecture: WebAuthn (passkeys), TOTP-based MFA, route-level API authentication, rate limiting, and PostgreSQL Row-Level Security.
- Engagement Mechanics: XP and streak tracking to nudge consistent use, backed by anti-abuse rate limiting.
- Contributor Checks: The repository provides commands for secrets, formatting, types, lint, tests, and builds; see the validation section for the current CI scope.
These screenshots show selected interfaces; the product is still being developed and validated.
╔══════════════════════════════════════════════════════════════════════╗
║ 🗓 Unit tracking, class schedule, and assessment deadline manager ║
║ ☀️ Weather-aware planning via Open-Meteo / Google Weather ║
║ 🗺 Basic campus map: Leaflet + Google Maps Embed, building search ║
║ 🔐 WebAuthn passkeys, TOTP MFA, RLS, origin checks, rate limiting ║
║ 🌍 35 locale dictionaries · RTL layout support ║
║ 🎮 XP and streak tracking (leaderboard/achievements: backend only) ║
║ 🔔 Push + in-app notifications (email reminders: not yet wired) ║
║ ⚡ GitHub Actions validation · Vitest · Playwright · Cloudflare ║
╚══════════════════════════════════════════════════════════════════════╝
| Layer | Technology |
|---|---|
| Framework | Next.js 16 (App Router), middleware.ts entrypoint for lib/proxy.ts |
| UI | React 19, Tailwind CSS 4, Radix UI primitives, Framer Motion |
| State | Zustand (persisted stores), TanStack Query |
| Database & Auth | Supabase PostgreSQL with Row-Level Security, Supabase Auth |
| Infrastructure | Cloudflare Workers with the OpenNext adapter |
| Rate Limiting | Upstash Redis or a Postgres counter, fail-closed on auth-critical routes |
| Error Tracking | Sentry (client, server, edge configs) |
| Testing | Vitest + Testing Library + Playwright E2E |
- Intentional
middleware.tsEntrypoint: the runtime entry file staysmiddleware.tsbecause this Cloudflare/OpenNext setup expects the framework convention there; the actual request logic lives inlib/proxy.ts. - Fail-Closed Rate Limiting:
lib/services/rateLimitService.tsdenies requests to security-critical endpoints (login, signup, password reset) if the rate-limit store is unavailable in production, rather than silently allowing traffic through. - API Auth: Each protected
/api/*route must use a shared auth helper or a reviewed inlinegetUser()check. Adding a route does not automatically protect it. - Single-Provider-Per-Account: A user who signs up with email/password can't sign in with Google on the same account, even if Supabase auto-links identities — enforced via
lib/auth/providerGuard.ts. - Runtime-Specific IP Trust: client IP handling depends on the deployment runtime. On Cloudflare,
CF-Connecting-IPis the reviewed trusted source; do not assume the same trust model on other proxies or local Node servers.
Deep Dive: Technical Explanation | Architecture Reference
- Authentication: WebAuthn passkeys (
@simplewebauthn) and TOTP MFA; see the route tests and security evidence for current coverage. - Authorisation: PostgreSQL Row-Level Security enforced across Supabase tables.
- Transport & Policy: Nonce-based Content Security Policy, an origin check on state-changing requests (
lib/security/csrf.ts), HSTS. - Rate Limiting: Shared-store counters (Upstash Redis or Postgres), fail-closed on auth-critical routes.
- Audit Logging: An append-only (for application roles) log of sensitive auth/session operations (
lib/security/audit.ts). It is not tamper-evident. - Not in force: request signing, IP anomaly detection, device fingerprinting, MFA backup codes and Subresource Integrity exist as modules in
lib/security/that no route uses. See the security posture document. - Secret Scanning: Custom
check:secretsscript runs in CI for pushes and pull requests targetingmainordevelop. - Header Scanner Boundary: the authenticated header scanner is intentionally restricted to
https://www.syllabus-sync.app/andhttps://info.syllabus-sync.app/; it is not a general-purpose arbitrary-host scanner.
Accessibility is treated as a linting concern, not a certified standard: the codebase uses eslint-plugin-jsx-a11y and supports RTL layouts across 35 locales, but there is no formal WCAG audit in this repo — don't take that as a compliance claim.
For Security Reviewers: Security Posture | Security Evidence Index
Released under the MIT License.
The repository is public and accepts focused contributions. Start with the contributing guide, which covers local setup, tests, security boundaries and review expectations. Useful areas include accessibility, reliable tests, documentation, translation review, and carefully validated campus or academic data improvements. Report vulnerabilities privately by following the process in SECURITY.md; do not include exploit details in public issues.
The current app is Macquarie-focused. Institution-specific adapters and broader university support are design goals, not shipped integrations. Contributions toward that direction should begin with a small design discussion and avoid assuming another institution's data or endorsement.
- Syllabus extraction pipeline: Parsing syllabus PDFs into structured deadlines (OCR/LLM) — planned, no code exists yet.
- Email reminder delivery: Settings toggles exist and persist, but no cron job dispatches reminder emails yet (push and in-app notifications are fully wired).
- Gamification UI: A
mv_xp_leaderboardmaterialized view exists in the database, but there is no leaderboard or achievements UI surfaced to users yet. - Campus Navigation integration: A separate Flutter mobile wayfinding companion with destination-based deep linking from Syllabus Sync. Further integration and navigation capabilities remain under active development.
- Institution-specific academic and campus data adapters and support for other universities.
- Federated identity via institution SSO (SAML/OIDC) — aspirational, not scheduled.
- Documentation accuracy, broken links, and setup clarity
- Translation review for the non-English fallback gaps
- Targeted test reliability improvements in Vitest or Playwright
- Campus/reference data fixes that can be verified from public sources
- Security hardening that preserves existing controls and least privilege
This repository is Raouf Abedini's copy of the shared project. The upstream that the team deploys from is leoalavi/syllabus-sync, which is why issue, security-report and clone links below point there. This copy carries the July–August 2026 backend security work (security test suites, migrations and audit records) merged onto the October 2026 trunk.
| Name | Role |
|---|---|
| Leo Alavi | Co-maintainer — frontend, product, integration & infrastructure |
| Raouf Abedini | Co-maintainer — backend & security |
| Name | Relationship | Current status |
|---|---|---|
| Syllabus Sync | Core academic planning and student-experience platform | Macquarie-focused web app under active development and validation |
| Sylla | Connected AI-assisted study layer | Separate app; optional configured link and shared-login setup |
| Campus Navigation | Connected mobile wayfinding companion | Separate Flutter app with deep-link integration; under active development |
| Astronomy Open Night 2026 | Separate event project by the same team | Not a Syllabus Sync product |
See the public project information site for the broader vision. Current features and future directions are deliberately separated in this README.
app/ Next.js routes, layouts, and API handlers
components/ Shared UI and layout components
config/ ESLint, Next, Prettier, Sentry, Tailwind, TS, Vitest, Lighthouse
data/ Static academic data (unit catalogue, building maps)
docs/ Architecture, operations, API, policy, security, reference docs
features/ Feature-first client modules (home, calendar, map, settings, auth, gamification)
infra/ Docker assets
lib/ Stores, hooks, services, security, utilities, Supabase clients
locales/ Locale dictionaries and RTL copy
public/ Static assets, icons, map tiles, overlays, service worker
supabase/ Migration history and configuration
tests/ Vitest test suites
tools/ Repo utilities (i18n checks, secret scanning, exports)
Full Inventory: Repository Inventory
University-specific data boundary: the current Macquarie-focused catalogue, map overlays, and other reference data live in
data/,public/maps/, and reviewed Supabase migrations/seeds. Future multi-university work should add explicit institution-specific adapters or datasets there instead of hard-coding another institution into shared UI logic.
- Node.js
>=22 <23 - npm
>=10 - A Supabase project (required for auth and data — the app doesn't run meaningfully without one)
- An Upstash Redis instance (optional locally — rate limiting falls back to in-memory outside production)
# Clone and install
git clone https://github.com/leoalavi/syllabus-sync.git
cd syllabus-sync
npm ci
# Configure environment
cp .env.example .env.local
# Fill in Supabase URL/keys at minimum — see Environment Variables below
# Start development
npm run devUse a dedicated local or test Supabase project. Review migration files before linking and applying them; db push changes the selected project's schema:
npx supabase link --project-ref <your-project-ref>
npx supabase db pushnpm run check
# Runs: secrets scan → format check → typecheck → lint → tests → buildIndividual steps are also available:
npm run format:check
npm run lint
npm run typecheck
npm test
npm run build
npm run cf:build
npm run cf:verify-output
npm run test:e2eFor Cloudflare packaging, run npm run cf:build and npm run cf:verify-output after configuring the required build variables. These commands build locally; neither deploys.
- Use a dedicated local or test Supabase project — never production credentials.
npm run buildandnpm run cf:buildcan run with dummy public values forNEXT_PUBLIC_APP_URL,NEXT_PUBLIC_SUPABASE_URL, andNEXT_PUBLIC_SUPABASE_ANON_KEY.npm run test:e2eusesconfig/playwright.config.ts, starts a local dev server with dummy public Supabase values whenE2E_BASE_URLis unset, and does not require secrets for anonymous flows.- Authenticated Playwright specs are intentionally skipped unless you provide
E2E_EMAILandE2E_PASSWORDfor a disposable test account. The account must be email-verified, have no MFA enrolled, and live in the Supabase project your.env.localpoints to (an authenticated run loads it automatically).E2E_BASE_URLis optional when you want to point at an already running non-production environment.
npm audit --omit=dev --audit-level highis the production-focused gate and should stay clean.- On 17 November 2026 the full
npm audit(development dependencies included) reported no high or critical advisory: 22 moderate and 1 low, of which 5 moderate are in production dependencies. See Development dependency advisories.
See .env.example for the full list. Key groups:
| Variable | Required | Purpose |
|---|---|---|
NEXT_PUBLIC_SUPABASE_URL / NEXT_PUBLIC_SUPABASE_ANON_KEY |
Yes | Supabase client config |
SUPABASE_SERVICE_ROLE_KEY |
Feature-dependent (server) | Privileged flows and production tasks; bypasses RLS |
WEBAUTHN_RP_ID / WEBAUTHN_ORIGIN |
Passkeys | Passkey registration/auth — must match the app origin |
VERIFICATION_EMAIL_FROM / Resend key |
Email flows | Auth/verification emails via Resend |
UPSTASH_REDIS_REST_URL / UPSTASH_REDIS_REST_TOKEN |
Production option | Distributed rate limiting; see the backend alternatives in the architecture guide |
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY |
Optional | Enables the Google Maps embed view on /map |
SENTRY_* |
Optional | Error tracking |
NEXT_PUBLIC_AUTH_COOKIE_DOMAIN |
Prod only | Shares the Supabase session across *.syllabus-sync.app subdomains (applied only when NODE_ENV=production) |
NEXT_PUBLIC_TRUSTED_ORIGINS / NEXT_PUBLIC_SYLLA_URL |
Optional | Sylla companion app: explicit CSRF + redirect allowlist, and the sidebar entry point |
Full setup notes: Environment Setup.
Ecosystem note: Syllabus Sync can share its Supabase login with the sibling Sylla study-assistant app via a parent-domain auth cookie and an explicit trusted-origin allowlist (no open redirects). See the Sylla Shared Authentication section of the deployment checklist. Sylla itself is a separate application.
| Document | Path |
|---|---|
| Architecture | docs/architecture/ARCHITECTURE.md |
| Technical Explanation | TECHNICAL_EXPLANATION.md |
| API Reference | docs/api/API_REFERENCE.md |
| Environment Setup | docs/setup/ENVIRONMENT_SETUP.md |
| Deployment Checklist | docs/operations/deployment-checklist.md |
| Docs Index | docs/README.md |
| Security Policy | SECURITY.md |
| Contributing | CONTRIBUTING.md |
- English is the reviewed source locale.
- Each non-English locale currently falls back to English for 12 campus/Sylla keys until reviewed translations are added.
- Run
npm run check:i18nbefore changing locale files, and see the translation fallback policy for the current gap list and expectations.
- Supabase — Open-source backend with RLS.
- Cloudflare Workers — Current production runtime through OpenNext.
- Translation fallback policy — documents the 12 current non-English fallback keys that intentionally resolve to English until reviewed translations land.
- Development dependency advisories — explains the remaining dev-only
npm auditchain (eslint-config-next→@next/eslint-plugin-next→fast-glob→micromatch) and why the suggested downgrade is not applied.


