DEV Community

Ahan Ghosh
Ahan Ghosh

Posted on

StudyPulse AI: An Offline-First Open-Weight Study Companion Built for my Classmate

Hacktoberfest Weekend Challenge: Build for a Friend Submission 🀝

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend

What I Built

I built StudyPulse AI for my 3rd-semester computer science classmate and friend, Aarav.

Like many engineering students, Aarav is constantly buried under dense lecture notes in subjects like Operating Systems (semaphores, Coffman deadlock conditions, CPU scheduling), Data Structures & Algorithms (AVL tree rotations, Red-Black balance invariants), and Database Management Systems (ACID properties, BCNF normalization).

Whenever exams and midterms approach, Aarav struggles with:

  1. Passive re-reading β€” highlighting slides over and over without active recall or self-testing.
  2. Expensive API barriers β€” not wanting to pay $20/month for proprietary cloud AI subscriptions just to summarize homework notes.
  3. Spotty campus internet β€” living in a university hostel where Wi-Fi drops constantly during study sessions.
  4. Data privacy β€” not wanting course material, professor slide drafts, and private notes uploaded to corporate cloud silos.

StudyPulse AI is a lightweight, private, offline-first study companion that runs directly with local open-weight models (Google's Gemma 2, Llama 3.2, or Mistral via Ollama). It takes raw lecture notes and instantly converts them into:

  • πŸ—‚οΈ Active-Recall 3D Flip Flashcards with intuitive everyday analogies
  • 🎯 Interactive Exam Practice Quizzes with instant feedback and grading
  • πŸ’‘ ELI5 (Explain Like I'm 5) breakdowns
  • πŸ“Œ High-Yield Exam Cheatsheets
  • πŸ“₯ One-click Anki TSV and Markdown exports for long-term spaced repetition

What My Friend Thought

I shared the working build with Aarav over the weekend while we were studying for our upcoming Operating Systems evaluation:

"The fact that this runs completely offline on my laptop without requiring an internet connection or an API subscription is a lifesaver for studying in the library basement where our campus Wi-Fi always disconnects.

The killer feature for me is the everyday analogies on the back of the flashcards. I kept confusing the four Coffman deadlock conditions during revision, and the 4-way stop-sign intersection analogy made it immediately click. Also, being able to export the whole deck into Anki in one click saves me hours of formatting cards by hand."

Bonus points earned: I actually handed it over, and he's already using it for our midterms! πŸŽ‰

Demo

πŸ”— Live Website: https://studypulse-ai-psi.vercel.app/

Try it out β€” paste any lecture notes, click Generate, and flip through the 3D flashcards! Features you can test right now:

  • 3D Flip Flashcards β€” click a card or press Space to flip, Arrow keys to navigate
  • Exam Quiz Mode β€” switch to quiz mode for interactive MCQs with instant scoring
  • ELI5 Analogies β€” every answer comes with a real-world analogy that makes concepts stick
  • Quick Samples β€” click "OS: Deadlocks", "Data Structures: Trees", or "DBMS: ACID & Normalization" to see it in action instantly
  • Export β€” download your deck as Anki-ready TSV or clean Markdown notes

Code

⚑ StudyPulse AI

Private Open-Weight Note-to-Flashcard & Exam Prep Assistant
Built for a classmate for the Hacktoberfest 2026 Weekend Challenge: "Build for a Friend"

StudyPulse Banner License AI


🌟 Overview

StudyPulse AI is an offline-first, privacy-respecting study companion that transforms dense semester lecture notes, textbook passages, and slides into active-recall flashcards, practice quizzes, intuitive everyday analogies, and Anki-ready decks using local open-weight AI models.

Built specifically for engineering and CS students tackling tough 3rd-semester subjects like Operating Systems, Data Structures & Algorithms, and Database Management Systems.


✨ Features

  • πŸ—‚οΈ 3D Active-Recall Flashcards: Spatial card flips with keyboard shortcuts (Space to flip, Arrow keys to navigate) and mastery tracking.
  • 🎯 Exam Practice Quiz: Auto-generated multiple-choice questions with instant rationale and scoring.
  • πŸ’‘ ELI5 & Intuitive Analogies: Translates complex system concepts into relatable mental models.
  • πŸ”’ 100% Offline & Private: Connects locally to Ollama (gemma2:2b, llama3.2:3b, mistral) or any local…

Tech Stack:

  • Frontend: Semantic HTML5, Vanilla CSS3 (glassmorphism, 3D perspective card flip animations, responsive grid), Vanilla JavaScript
  • AI Core: Direct integration with Ollama (gemma2:2b, llama3.2:3b) and any OpenAI-compatible local inference server, backed by an offline heuristic parsing engine
  • Exports: Anki (.tsv) spaced repetition exporter and Markdown generator
  • Deployment: Vercel (static)

How I Built It

  1. Prompt Engineering for Open-Weight Models:
    Open-weight models like gemma2:2b or llama3.2:3b are efficient and run smoothly on modest student laptops. I structured strict JSON-schema system prompts requiring the model to extract:

    • A core question testing causal understanding (not simple rote memorization)
    • A concise, high-yield exam answer
    • A relatable, real-world everyday analogy (e.g., explaining Coffman deadlock conditions like a 4-way stop sign intersection, or ACID atomicity like an ATM cash withdrawal)
  2. Resilient Local Architecture:
    The app communicates with http://localhost:11434/api/generate via browser fetch with configurable model and endpoint options. If the student hasn't started their local Ollama daemon, StudyPulse seamlessly falls back to its built-in heuristic semantic parser β€” guaranteeing 100% uptime whether online or offline.

  3. Active Recall & Spaced Repetition Design:
    Instead of overwhelming students with walls of text, StudyPulse focuses on atomic cards, self-evaluations ("Mastered" vs "Needs Review"), mastery progress tracking, and Anki export compatibility for long-term retention.

Why Does Open Innovation Matter?

Open innovation is what made StudyPulse possible:

  1. Zero Cost for Students: College students shouldn't need monthly subscriptions to generate flashcards from their own notes. Open-weight models like Gemma and Llama bring state-of-the-art reasoning to personal computers for free.
  2. Complete Privacy: Course notes, university research, and student drafts never leave the device. No telemetry, no cloud training on user data, zero data leakage.
  3. True Offline Independence: Open-source AI doesn't depend on cloud server status pages, rate limits, or campus Wi-Fi drops. It runs reliably on an airplane, in a library basement, or in a dorm room with no internet.
  4. Customizability: Students can fine-tune small open-weight models on their own department's curriculum or swap models freely β€” no vendor lock-in.

A closed API couldn't do any of this: it would cost money every month, require constant internet, upload private academic notes to remote servers, and stop working the moment the provider's rate limit kicks in or the Wi-Fi drops.

My Agent Session

This project was built pair-programming with Google Antigravity and saved via DevRelay. The session captures how we planned the open-weight offline architecture, structured the 3D CSS flip animations, and designed the active-recall study heuristics.

Session 2026-10-04 07:45
You

I want to participate in the Hacktoberfest Weekend Challenge: Build for a Friend. Let's build a Classmate Semester Study Assistant / Note-to-Flashcard generator.

Agent

Designed and built StudyPulse AI, an offline-first study companion tailored for a 3rd-semester engineering classmate tackling Operating Systems, Data Structures, and DBMS. Implemented 3D active-recall flashcards, practice exam quizzes with instant scoring, mental model analogies, Anki TSV/Markdown exports, and direct integration with local open-weight models via Ollama with zero cloud dependencies.

πŸ”— Session Transcript: https://dev.to/agent_sessions/session-2026-10-04-0745-4fphv3

Prize Categories

  • Best Use of Gemma β€” StudyPulse AI is built to run with Google's Gemma 2 open-weight model (gemma2:2b) locally via Ollama, generating active-recall flashcards, practice quizzes, and intuitive analogies 100% offline with zero subscription cost.

Top comments (0)