Do not treat a not-yet-loaded voice list as missing German voice, poll for voices, wait after cancel before speaking, keep utterances referenced, retry stalled speech, detect missing end events, unlock speech on first tap, and stop the microphone before the examiner speaks.
B1 Meister – ÖSD Zertifikat B1 Trainer (Deutsch ↔ Arabisch)
Next.js app to prepare for the ÖSD B1 exam: Hören, Lesen, Schreiben, Sprechen, Grammatik, Wortschatz – with Arabic translations, XP, levels, streaks, badges and daily reminders.
Start
npm install
npm run dev
Open http://localhost:3000 (best in Chrome or Edge – needed for German text-to-speech and speech recognition).
Optional: AI conversation partner
Without a key the app works fully with its built-in offline trainer. To enable free AI conversations (Sprechen) and AI text correction (Schreiben), create .env.local:
ANTHROPIC_API_KEY=your-key
and restart npm run dev.
Deploy with Coolify
- Push this folder to a Git repository (GitHub/GitLab/Gitea).
- Coolify → New Resource → your repo → Build Pack Docker Compose → file
docker-compose.yml. - Set the domain for service
app(Coolify provides HTTPS – required for microphone, notifications and installing the app on Android). - Optional: add
ANTHROPIC_API_KEYunder Environment Variables. - Deploy.
Daily reminders
Settings (⚙️) → "Jeden Tag erinnern". On a phone, install the app ("Add to Home screen") for background notifications. The most reliable option on any phone: "Als Kalender-Erinnerung speichern" (adds a daily repeating calendar alarm).
Content
- 28 listening exercises (all 4 parts, ~140 questions, TTS with different voices, exam mode)
- 22 reading texts (all 5 parts, ~115 questions) with glossary + full Arabic translation
- 24 writing tasks (3 task types) with Redemittel, self-check, model answers
- Speaking: 20 conversation topics (~110 questions), 8 planning tasks, 10 presentations with follow-up questions
- 20 grammar lessons explained in Arabic with ~260 exercises + random 20-question drill
- 332 B1 words in 22 topics: flashcards (spaced repetition), quiz, gap-fill, plural and hat/ist drills (generated from the word list), der/die/das game, memory
- Mock exam (Modelltest)
Progress is stored in the browser (localStorage).