← all work

project 1 of 4

gujarati mitra

a web app that teaches gujarati to children aged 3 to 12, with mor the peacock as their guide.

role
solo developer
year
2026
  • Next.js
  • TypeScript
  • Tailwind
  • Framer Motion
  • ElevenLabs
  • Web Speech API

the problem

Gujarati Mitra is for children aged 3 to 12 whose families speak Gujarati at home. I built it for families in Sydney. These children hear Gujarati around them, but school, friends and screens are all in English, so the language needs regular, friendly practice to stay.

The app gives them that practice in short sessions. Mor the peacock guides a child through listening, repeating, tracing letters, quizzes and stories. The examples come from Sydney life and the meanings are written in Australian English, so the words feel like their own world.

Because the users are children, three things mattered as much as the lessons:

  • It must be safe. The children’s screens have no ads and no links to other sites. The parent area sits behind a gate.
  • It must be private. Nothing about a child leaves the device, and a child’s voice is never recorded.
  • It must cost nothing to play. A family should be able to use it every day without anyone paying per tap.

the demo

video, no sound · Hear a word, trace the letter ક, and earn stars. Recorded with a made-up profile; the microphone is never used.
The home screen: Mor, today's challenge, the levels and the activities.
A letter, half traced. The orange dot shows where to go next.
The first screen, with one test profile.
A 'repeat after me' card, while Mor says the sentence.
A quiz round: listen, then tap the picture.
Story time. The line being read is outlined.
The parent gate: a sum to solve.

open gujarati mitra →works in the browser, no sign-up

how it works

The app has two separate halves. Everything that costs money or needs checking happens before anyone plays, on my computer. Once the site is deployed, the child’s device does the rest by itself.

before anyone plays · on my computercontentbatchesplain text filesof words,sentences andstoriesmerge andcheckno duplicates,right script,right length,child-safethe contentbank2,225 words,1,533 sentences,51 stories, 18conversationsvoice, madeonceElevenLabs readseach phrase asingle timesaved clipsnamed by afingerprint ofthe text, shippedwith the sitethe site is deployed. from here on, nothing paid is called.while a child plays · on their devicetoday'ssessionbuilt from thedate, the childand what theyfind hardthe activitieslisten, repeat,trace, quiz,read, with Mor asthe guidesoundthe saved clip,or the browser'sown voice ifthere is none yetspeech checkdone inside thebrowser; nothingis recordedprogressstars and reviewdates, saved onthe device onlybefore anyone plays · on my computercontent batchesplain text files of words, sentencesand storiesmerge and checkno duplicates, right script, rightlength, child-safethe content bank2,225 words, 1,533 sentences, 51stories, 18 conversationsvoice, made onceElevenLabs reads each phrase asingle timesaved clipsnamed by a fingerprint of the text,shipped with the sitethe site is deployed. from hereon, nothing paid is called.while a child plays · on their devicetoday's sessionbuilt from the date, the child andwhat they find hardthe activitieslisten, repeat, trace, quiz, read,with Mor as the guidesoundthe saved clip, or the browser's ownvoice if there is none yetspeech checkdone inside the browser; nothing isrecordedprogressstars and review dates, saved on thedevice only
two halves: what i prepare, and what runs on the child's device

In plain words:

  1. I write content in batches. A batch is a simple text file: a Gujarati line, its English meaning, and an emoji.
  2. Scripts merge and check it. They skip duplicates and reject anything in the wrong script, too long for its level, or not suitable for children.
  3. The result is the content bank, a set of JSON files. The app only ever reads from this bank.
  4. A script makes the voice. It sends each phrase to ElevenLabs once and saves the clip under a fingerprint of the text. A phrase that already has a clip is skipped.
  5. When a child plays, a session is built for that day. It uses the date, the child’s profile and how many sessions they have played, so no two sessions are the same.
  6. Spaced repetition decides what comes back. Weak items return soon and often. Mastered items return only now and then.
  7. Speech is checked in the browser. The browser turns what the child says into text, and only that text is compared with the answer.
  8. Progress stays on the device, in the browser’s own storage.

There is also a loop back from parents. In the parent area a fluent speaker can listen to any item, correct it, and export the corrections as a file. A script writes those corrections into the content bank for everyone.

key decisions

no paid ai at runtime

The app never calls an AI service while a child plays. All content is fixed and can be reviewed line by line.

Why: a children’s app should not show a child something nobody has checked, and a free family app cannot carry a cost for every tap.

make the voice once, then keep it

Each phrase is spoken by ElevenLabs one time and saved. Making clips on demand is switched off by default.

Why: the deployed site only plays saved files, so it cannot spend credits, however many children use it.

never record the child's voice

Speech is checked with the browser’s own speech recognition, set to Gujarati. Where a browser does not support it, the child taps “I said it!” and a grown-up confirms.

Why: a child’s voice is personal data. The safest recording is the one that is never made.

progress on the device, no accounts

Stars, levels and review dates are saved in the browser. There is no sign-up and no server database.

Why: no account means no children’s data to protect or to lose. The cost is that progress stays on one device, so the storage code sits behind one small interface that a database can replace later.

what was hard

A Gujarati voice on a free plan. Only the newer ElevenLabs models speak Gujarati, the free plan only allows the built-in voices through the API, and the full voice bank needs about 89,000 characters against 10,000 free credits a month. I solved it in three parts. The script makes clips in order of usefulness: praise and greetings first, then tracing letters, then words. It takes a spending cap, so a run stops at the budget and the next run carries on from there. And any phrase without a clip is spoken by the browser’s built-in voice, so the app is usable today while the bank fills up.

Keeping sessions fresh without an AI. With fixed content, a child could see the same items in the same order. The session builder mixes several simple ideas instead: topics rotate daily and differ for each child, spaced repetition changes what comes back, a daily challenge picks five new items, and new sentences are made by dropping words the child already knows into safe sentence patterns.

Trusting content I did not write by hand. The first content was written by an AI, and the “how to say it” spellings come from a rule-based script. That needs a fluent human check. So I built a review screen in the parent area, an export file, and a script that applies the corrections. Every item’s ID is a fingerprint of its Gujarati text, so a child’s progress survives merges and corrections.

Drawing Gujarati letters for tracing. The letter shapes in the font overlap themselves, which left gaps when I drew them on the canvas. Drawing the outline first and the fill on top fixed it. Tracing checks that the whole letter is covered; it does not yet check stroke order.

results

  • 2,225words in the content bank
  • 1,533sentences
  • 51stories, plus 18 mini conversations
  • 20topics, across 4 levels
  • 159voice clips made so far, of about 4,400
  • 0paid AI calls while a child plays

These numbers come from the project itself. I am not quoting user numbers, because I have not measured any yet.

  • The voice bank is about 4% done. 159 clips exist out of roughly 4,400. Everything else uses the browser’s built-in voice for now: a Gujarati voice if the device has one, otherwise a Hindi voice reading the same sounds, which is lower quality.
  • Levels open with stars: Medium at 40, Intermediate at 120 and Advanced at 250. A parent can open all levels.
  • It is live and runs with no keys and no cost on the deployed site.

what i learned, and what’s next

What I learned

  • Limits made the design better. “No AI at runtime” and “free plan only” forced a simpler app that is safer for children and cheaper to run.
  • Every feature needs a fallback. The saved clip falls back to the browser voice, and speech recognition falls back to a grown-up’s tap.
  • In a learning app the content is the product. The tools for adding, checking and correcting content took as much care as the screens.

What’s next

  • Finish the voice bank, month by month, in the same order of usefulness.
  • A full review by a fluent speaker, using the review screen.
  • Teach stroke order in letter tracing, not only coverage.
  • Optional sync, so progress can follow a child from one device to another.