Overview
StudySprint is a web app for university students facing a final exam. Paste your course syllabus or study material, tell it how many days you have and how many hours per day you can study, and it generates two things: (1) A day-by-day study plan — one card per day with a focus topic, key topics, a concrete task checklist, and estimated study time. Checking off every task in a day marks the day complete and fills a progress bar. (2) An interactive review quiz — multiple-choice questions generated from your own material, with immediate feedback, the correct answer highlighted, an explanation, a running score and a final result. A built-in demo mode (sample syllabus "Introduction to Data Structures and Algorithms", with a real 14-day plan and 8-question quiz pre-generated by Gemini) lets anyone explore the full flow in one click, with no API key.
Problem and Solution
When an exam is two weeks away, most students know what the course covered but not how to distribute the work. A syllabus is a list of topics, not a plan: students cram, over-study topics they already like, or re-read instead of testing themselves. StudySprint converts the syllabus you already have into that plan automatically — the AI reads the whole syllabus at once, weights heavily-tested topics, sequences foundations before advanced topics, and schedules spaced review plus a mock-exam day. It then turns the same material into an active-recall quiz, because testing yourself beats re-reading. Built by a current university student from his own exam-season workflow.
AI Implementation
Model: Google Gemini (gemini-4-hydrogen by default; the model field is editable). API: Gemini API generateContent endpoint, called directly from the browser with the user's own API key in the x-goog-api-key header. Two structured-generation tasks: plan generation (strict JSON study plan, shape-validated before rendering) and quiz generation (strict JSON quiz: questions, four choices, answer index, explanation, topic). Invalid or incomplete model output is rejected with a friendly error instead of being rendered. The demo's plan and quiz are genuine Gemini output for the bundled sample syllabus, generated 2026-11-30 with the same model and JSON schemas, and are labelled in the UI as pre-generated demo content. Development disclosure: this project was designed and directed by the author; the code was written with the help of an AI coding agent (Codex), and all behaviour was independently verified by the author (automated browser tests of the demo flow, quiz scoring, and error handling).
Responsible AI & Privacy
Bring your own key — the app ships with no API key; in live mode the user pastes their own Gemini API key, kept in tab memory only (never stored; no localStorage/cookies), and the page's Content Security Policy allows network connections to Google's Gemini endpoint only. The UI carries a visible "Responsible AI" note: AI-generated plans and quiz answers can contain mistakes and should be verified against official course materials. Pre-generated demo output is labelled as such wherever it appears.
Built With
HTML, CSS, vanilla JavaScript (zero build step, zero dependencies), Google Gemini API (generateContent), GitHub Pages.
Try It
1) Open https://starwingmaxx.github.io/studysprint/ 2) Click "Try the demo — no API key needed". 3) For live mode: get a free Gemini API key at https://aistudio.google.com/apikey, paste it in the app, paste your syllabus, set days/hours, and generate.
Built With
- api
- css
- gemini
- github
- html
- javascript
- pages