← Back to ClassCast

About ClassCast ☔

When do I leave, which route, and what do I bring?

Inspiration

Students juggle back-to-back classes across campus, and rain or snow changes how long the walk takes. I wanted one link to answer: when do I leave, which route, and what do I bring?

What it does

Paste up to 5 calendar links (like LionPATH and Canvas), or drag in .ics files. ClassCast reads each event’s location, checks the weather, and gives you:

How we built it

Stack
Next.js on Vercel, with code in GitHub.
UI
shadcn/ui on Base UI, Inter, and a red-orange and cyan theme. Works in light, dark, and print.
Data
The calendar link supplies the locations. Open-Meteo gives the forecast. OpenRouteService gives routes. OpenStreetMap gives geocoding and map tiles.
AI
Gemini, Groq or Claude writes the bring list and brief, whichever key works first. With no key, built-in rules write them instead. The code does the time math, so the AI can't invent leave times.

Leave-by formula

tleave=tclass−ttravel−tbuffer−tweather

With a 5 minute buffer, plus 15% more travel time in rain and 25% in snow.

Challenges

What we learned

  1. Keep API keys server-side.
  2. Treat user URLs and calendar text as hostile input.
  3. Let code do the math and AI do the language.
  4. Real calendar feeds are messier than the spec: test with the shapes people actually use.