Home / use case

Baad Mein: Gemma 4 in a browser tab sorts the WhatsApp chat you keep with yourself

At a glance
Hardware
Chrome or Edge on a laptop; tested on an 8 GB MacBook
Models & engines
Gemma 4 E2B running in the tab through MediaPipe's LLM Inference on WebGPU, about a 2 GB one-time download
Key gotcha
Gemma once wrote "who=""" instead of "who":"", which made a whole batch unparseable; the reader now repairs that slip before parsing.

What they built

Many people in India keep a WhatsApp chat with themselves for links to watch later, shopping notes, money owed, reminders, addresses, wifi passwords and old OTPs. Baad Mein ("later") reads an export of that chat slowly, inside the browser tab, and produces one morning card.

The card has sections for what's due today and this week, money owed in either direction, a merged shopping list from the last three weeks, notes it refuses to guess about, secrets to delete (OTPs, card numbers, Aadhaar, PAN and passwords, masked), and a Let go list of stale links and dead to-dos. Tapping any line shows the original note word for word.

Once the model is downloaded, reading the chat makes no network calls: nothing is uploaded, there's no account and no server.

Setup

  • Gemma 4 E2B running in the tab through MediaPipe's LLM Inference on WebGPU, about a 2 GB one-time download
  • Chrome or Edge on a laptop; tested on an 8 GB MacBook
  • IndexedDB to save every answer as it arrives
  • Greedy decoding (top-k 1, temperature 0) so the same chat gives the same card

How it works

  1. Plain code runs first and catches secrets with checksums (Luhn for cards, Verhoeff for Aadhaar, the PAN pattern, password and PIN words), so those notes never reach the model.
  2. Gemma reads eight notes at a time and labels each as todo, buy, money, read, keep, done or noise, copying the words that matter for what, when and who.
  3. Code checks that every copied word is really in the note, works out dates from words like kal, parso or 12 tarikh relative to the day the note was written, and reads money direction from verbs in Hindi, Bengali and English.
  4. Because each batch is saved to IndexedDB, a closed tab or a sleeping laptop just resumes where it stopped.

Results & numbers

  • On a 100-note held-out set run once with a frozen prompt, it got the kind of note right 95 of 100 times, due dates 16 of 19 (2 marked not sure, 1 wrong), money direction 9 of 9, and caught 7 of 7 secrets before Gemma.
  • The 100 notes took 49 seconds; on the 8 GB MacBook it's about 5 seconds per eight notes.
  • Asked to write due dates itself, Gemma got only 8 of 19 right and eight of its answers weren't valid dates, which is why code does the dates.
  • A first real user who lives in WhatsApp said it helped them keep track of the daily things they'd parked there.

Gotchas

  • Gemma once wrote "who=""" instead of "who":"", which made a whole batch unparseable; the reader now repairs that slip before parsing.
  • A link check for x.com also matched netflix.com until a word boundary fixed it.
  • It once read "pay credit card bill 22nd" as already done, which would hide a real bill.
  • "End of month" isn't understood as a date yet, and plans sometimes get filed as to-dos.
“Most of what's in a "later" pile doesn't need doing. It needs someone to tell you it's okay to stop carrying it.”— Rohit Purkait

Do it yourself

  1. Export a WhatsApp chat as text from the chat's menu.
  2. Load a small model such as Gemma 4 E2B in the browser with MediaPipe LLM Inference on WebGPU, or point the same idea at a local runtime.
  3. Before calling the model, scan each note with plain code for OTPs, card numbers and passwords and move those to a delete list.
  4. Send notes to the model in small batches with a prompt that asks only for a category and copied words, and save each reply as it arrives so the job can resume.
  5. Verify the copied words against the note, then resolve dates and amounts in code, and mark anything uncertain as not sure.
Source: Rohit Purkait (DEV Community) · Published 2026-10-24 · Added 2026-10-26. This write-up summarizes the original source; see it for full details.

Similar setups

rip: a local Gemma 2 2B writes epitaphs and revival ideas for your abandoned side projects

A Hacktoberfest CLI scans your folders for dormant projects and has Gemma 2 2B on Ollama write a witty obituary and a suggestion to revive each one, sending only metadata, never code.

razorbill (DEV Community) · 2026-11-03

Séance: local Whisper and Gemma 4 turn a grandmother's Malayalam voice notes into a searchable family archive

Clivin John built Séance, which transcribes and translates his grandmother's voice notes on his laptop, has Gemma 4 write memory cards, and answers questions only with her exact, verified words.

Clivin John (DEV Community) · 2026-10-31

Bookmark Buddy: Gemma 2 2B in the browser sorted 722 bookmarks into folders

Tanya Mott built Bookmark Buddy, a Chrome and Edge extension that runs Gemma 2 2B on the GPU through WebLLM to suggest folders, sort every bookmark and file new ones, without the bookmarks ever leaving the device.

Tanya Mott (DEV Community) · 2026-10-27

LectureAI: local Whisper and Gemma turn lecture recordings into notes

Aman Kumar built LectureAI, which transcribes Hindi, English or Hinglish lecture recordings with local Whisper and has Gemma in Ollama produce a summary, topic timeline, likely exam topics, notes, flashcards and deadlines.

Aman Kumar (DEV Community) · 2026-10-27