A Tibetan-language learning app for children aged 4–8. Yonten the yak guides the child along a treasure map that follows their Tibetan workbook. The child photographs things at home, hears the Tibetan names, and keeps every find, with their own photo, in a backpack.
- App: Flutter (
yonten/), a web PWA now; iOS and Android come from the same code. - Backend: Firebase only, with no server to run:
- Auth (anonymous first, linked by a parent later)
- Firestore (offline-first)
- Storage (children's photos, word audio)
- Hosting
- Cloud Functions in Python (
functions/) for Gemini and Monlam
- Rule: Gemini only identifies objects. Tibetan comes from Monlam's dictionary, and audio from Monlam's text-to-speech. Unverified Tibetan is never shown to a child.
| Path | What |
|---|---|
yonten/ |
Flutter app |
functions/ |
Cloud Functions (identify_object, get_word_audio) and seed scripts |
firebase/ |
Firestore and Storage rules, rules tests |
docs/ |
Spec, phase plan, architecture, developer commands |
DECISIONS.md |
Every deliberate departure from the spec, and why |
legacy/ |
The retired React and FastAPI app, for reference only |
Developer commands are in docs/yonten-dev.md.
cd yonten
flutter pub get
flutter run -d chrome # against production Firebase
flutter run -d chrome --dart-define=USE_EMULATORS=true # against local emulators
flutter testThe developer gallery (design tokens, debug controls) is at /#/gallery.
Firebase project tashi-learn. Cloud Functions need the Blaze plan.
cd yonten && flutter build web --release && cd ..
firebase deploy --only hosting,firestore:rules,storage --project tashi-learn
firebase deploy --only functions --project tashi-learn # after setting the two secretsSee docs/yonten-dev.md for secrets, seeding and App Check.