Live demo: https://chithi-teal.vercel.app. Pick a language, then tap a sample photo. Built for the DEV Hacktoberfest Weekend Challenge: Build for a Friend. MIT licensed.
A pocket reader for my mom and grandparents, who read Bengali but not English.
Point the phone at any bill, bank letter, medicine strip, or WhatsApp forward. Chithi reads it with Gemma (an open-weight model running on the family laptop), then says out loud, in your language:
- what it is,
- what you need to do (amount, due date),
- whether it's a scam, with one big button to call me.
Photos never leave the house. There's no cloud API, no account, and no monthly bill.
phone (PWA, camera) ──Wi-Fi──▶ laptop: Bun server ──▶ Ollama + Gemma (vision)
▲ │
└── speech in your language └── scam rule layer (can only raise risk, never lower it)
(phone's offline voice)
server.tsserves the app and sends each photo to Ollama with a JSON schema, so the reply is always structured.scam.tsholds deterministic checks for OTP, KYC, "account blocked", prize, short-link, and remote-access-app patterns. A 4B model shouldn't be the only thing between my mom and a scammer.public/languages.jshas every language's labels, fixed safety text, voice codes, and script.public/is the PWA: giant buttons, a language picker, per-script fonts, right-to-left layout for Urdu, Kashmiri, and Sindhi, and speech throughspeechSynthesis.
All 22 languages of India's Eighth Schedule, plus English. On first launch you pick a language (the phone's own language is suggested first). After that, everything is in that language: the buttons, Gemma's explanation, the scam warning, and the voice.
| Status | Languages |
|---|---|
Tested, works well with gemma3:4b |
Hindi, Bengali, Marathi, Telugu, Tamil, Gujarati, Urdu, Kannada |
| Expected to work (same model family, untested here) | Punjabi, Assamese, Nepali, English |
| Beta (weak on a 4B model, shown with a warning) | Odia, Malayalam, Maithili, Dogri, Konkani, Sanskrit, Santali, Kashmiri, Sindhi, Manipuri, Bodo |
A few things make this safe across languages:
- Scam advice is human-written for each language in
public/languages.js, never generated. - Stray-script cleanup: small models drift into other scripts (Korean inside Bengali, Russian inside Malayalam). Those letters are stripped, and a badly drifted answer is retried once.
- Voice fallback: languages without their own phone voice use one that reads the same script (Maithili and Dogri through Hindi, Konkani through Marathi).
- Button labels: for Santali, Kashmiri, Sindhi, Manipuri, and Bodo, the buttons are in English until a native speaker translates them. The beta UI strings for the other languages also deserve a native speaker's review.
A bigger model (CHITHI_MODEL=gemma4:e4b, needs about 16 GB of RAM) should lift the beta languages.
https://chithi-teal.vercel.app runs the same app on Vercel, so anyone can try it without a laptop full of models. There, photos go to Gemma 4 (26B mixture-of-experts) on Google's free Gemini API tier, and the page says so. For family use, run it at home (below) so nothing leaves the house.
api/read.tsandapi/health.tsare the Vercel functions.core.tsholds the prompt, cleanup, retries and scam rules shared with the home server.cloud.tsasks Google which Gemma models exist and picks the best, because model names get retired.- Gemma 4 thinks before answering by default. Unchecked, it spent its whole output budget on thoughts and never answered, so thinking is set to
minimal. That took replies from about 40s to about 5s. - Each model call has a 35s timeout and one retry for stalls or 5xx errors, keeping requests under Vercel's 90s limit.
- Setup:
vercel env add GEMINI_API_KEY production(a free key from aistudio.google.com/apikey; no card needed), thenvercel deploy --prod.
brew install ollama && brew services start ollama
ollama pull gemma3:4b # or gemma4:e2b / gemma4:e4b on a 16 GB+ machine
bun run server.ts # prints the URL to open on the phone
bun run try-samples.ts # in another terminal: runs samples/*.png through it
LANGS=hi,ta,ur ONLY=scam bun run try-samples.ts # specific languages / samplesUse CHITHI_MODEL=gemma4:e4b bun run server.ts to switch models. Nothing else changes.
On the phone, open the printed http://<laptop-ip>:8787 URL in Chrome, then choose Add to Home screen.
For speech, install your language's voice in Android's Google Text-to-Speech settings (it works offline).
