Studying from raw notes is slow: the chapter is long, the exam is close, and turning text into flashcards and practice questions by hand takes longer than learning from them.

StudySpark turns any pasted study text into a complete study set in one click:

  • A one-paragraph summary (80–120 words) for last-minute revision
  • Six flashcards you can flip through
  • A five-question quiz with instant scoring and explanations

Every AI call goes through Firebase AI Logic — and StudySpark is built around the feature this hackathon is about: hybrid inference. Using InferenceMode.PREFER_ON_DEVICE, the Firebase AI Logic web SDK serves requests with Gemini Nano on-device (Chrome desktop, via the Prompt API) whenever it's available — private, fast, and offline-capable — and seamlessly falls back to cloud Gemini 3.5 Flash-Lite (set via inCloudParams) when it isn't. Same code path, no embedded API key.

To make the hybrid behaviour tangible, StudySpark includes an inference-mode selector: judges can switch between prefer-on-device, prefer-cloud, on-device-only, and cloud-only and regenerate the same study set each way.

The app is deliberately dependency-light: plain HTML/CSS/JS, no build step, hosted as static files. It stores nothing — no accounts, no database — so student text lives only in the page (and, on the on-device path, never leaves the machine at all).

Honest note on the demo: the public demo link runs with a real Firebase project config, so all output is generated live from whatever text you paste. The shipped config values are Firebase's public-by-design web identifiers, protected by App Check (Fraud Defense / reCAPTCHA Enterprise) and Firebase rules. If you swap in placeholder config values, the app drops into an unmistakable demo mode (banner + "Sample output" labels + canned photosynthesis study set) so anyone can explore the UI before connecting Firebase — no fake AI anywhere.

Try it: open the live demo, click "Load sample text" (or paste your own notes), keep the default Hybrid mode, click "Generate study set", flip the flashcards, take the quiz, then try the mode selector to force each inference path.

Built With

Share this project:

Updates

Submission history