Language Labs
March to October 2026An experiment in getting AI to build a whole language course. Thai and French so far.
- Runs on
- A phone, installed as a PWA. Works offline.
- Model
- Runs on your own OpenRouter, Gemini, OpenAI or Anthropic account. Speech can use ElevenLabs, OpenAI or Gemini; live voice uses Gemini.
- Stack
- React 19, TypeScript, Vite, Tailwind v4, React Router 7, ts-fsrs, Dexie (IndexedDB), vite-plugin-pwa, Express, PostgreSQL
# What it is
Language Labs works like a structured course, not an open-ended chatbot. Right now it teaches Thai and French.
Each lesson introduces something new, lets you practice it with hints, then tests you without them. Spaced repetition brings older material back so it sticks. A daily practice adds extra vocabulary, expressions and short dialogues. It installs on your phone and works offline, lessons and progress included.
# How AI fits
The tutor always knows which lesson you’re on, so the conversation stays on what you’re learning. You can also have a live voice conversation with it. The course’s pronunciation audio is generated once and shared by everyone.
Text chat with the tutor is included. You can also connect your own OpenRouter account, or use your own Gemini, OpenAI or Anthropic key. Chat, pronunciation and speech-to-text can each use a different provider. The included tutor and connected accounts have spending limits, and calls made with your own key are tracked on your phone.
# Schematics
A lesson
- TeachExplanations, examples and audio introduce something new.
- PracticeExercises with hints, to try it out.
- TestExercises without hints, to check you understood it.
- ReviewSpaced repetition brings it back over time.
On the phone
- OfflineLessons, flashcards and progress are kept on the phone, so they work offline.
- SyncSign in and your progress follows you to your other devices.
- BackupExport everything to a file.
next harness-workflow work home