An interactive, high-performance multi-language learning platform offering 15 world languages across 210 bidirectional language pairs, featuring 14,500+ studio-quality neural audio recordings, adaptive spaced-repetition quizzes, interactive grammar & flashcards, 8 non-Latin phonetic virtual keyboards, single-file offline audio binary packs, and Progressive Web App (PWA) support.
Basic Language School (basiclanguage.school) unifies foundational world language education into a single streamlined, ad-free web application. Learn any of 15 major world languages directly from any of the 15 supported base interface languages (210 bidirectional learning directions) with zero paywalls, shared authentication, cross-course progress tracking, and zero-latency studio neural audio.
| Code | Language | Native Script | Curriculum Scope | Neural Voice Model |
|---|---|---|---|---|
en |
English | Latin | Phonics AโZ, phrases, numbers & time, 500+ words, grammar & quiz | en-US-JennyNeural |
es |
Spanish | Latin | Alphabet (รฑ), phrases, numbers & time, 500+ words, grammar & quiz |
es-MX-JorgeNeural |
fr |
French | Latin | Alphabet, liaisons & nasal vowels, phrases, numbers, 500+ words, grammar | fr-FR-HenriNeural |
de |
German | Latin | Alphabet (รค, รถ, รผ, ร), cases & genders, phrases, numbers, 500+ words |
de-DE-ConradNeural |
pt |
Portuguese | Latin | Alphabet (รง, accents), phrases, numbers & time, 500+ words, grammar |
pt-BR-AntonioNeural |
id |
Indonesian | Latin | Alphabet phonetics, phrases, numbers & time, 500+ words, grammar | id-ID-ArdiNeural |
tr |
Turkish | Latin | Alphabet (รง, ฤ, ฤฑ, i, รถ, ล, รผ), phrases, numbers, 500+ words, grammar |
tr-TR-AhmetNeural |
ru |
Russian | Cyrillic | 33 Cyrillic letters, phonetic keyboard, phrases, numbers, 500+ words, grammar | ru-RU-SvetlanaNeural |
zh |
Mandarin Chinese | Hanzi & Pinyin | Pinyin & 4-tone guide, Hanzi basics, phonetic IME, phrases, 500+ words | zh-CN-XiaoxiaoNeural |
ja |
Japanese | Hiragana / Katakana | Kana charts, phonetic keyboard, phrases, numbers, 500+ words, grammar | ja-JP-NanamiNeural |
ko |
Korean | Hangul | Jamo syllable blocks, phonetic keyboard, phrases, numbers, 500+ words | ko-KR-InJoonNeural |
hi |
Hindi | Devanagari | Vowels & consonants, phonetic keyboard, phrases, numbers, 500+ words | hi-IN-SwaraNeural |
ar |
Arabic | Arabic (RTL) | 28 letters & forms, RTL layout, phonetic keyboard, phrases, 500+ words | ar-SA-ZariyahNeural |
bn |
Bengali | BengaliโAssamese | Sworoborno & Byanjonborno, phonetic keyboard, phrases, 500+ words | bn-BD-NabanitaNeural |
ur |
Urdu | Nastaliq (RTL) | ArabicโPersian script, RTL layout, phonetic keyboard, phrases, 500+ words | ur-PK-UzmaNeural |
- ๐ 210 Bidirectional Language Pairs (15 Languages): Set your native interface language ("I speak") and target course ("I want to learn") independently across all 15 languages with automatic audio halting, RTL layout adaptation (
ar,ur), localized grammar explanations, and dedicated SVG academic emblems (AppEmblem.tsx). - ๐ Interactive Grammar, Verb Tables & Gender/Rule Flashcards: Interactive noun-gender tabs, verb conjugation tables, grammar descriptions with neural audio speakers, and expanded 16-card rule/gender flashcards with clickable option neural audio and crisp Web Audio API sound chimes (
correct/incorrect). - ๐ฎ Mandarin Pinyin & Tones Guide (
PinyinGuide.tsx): Dedicated multi-tab Pinyin companion covering the 4 Mandarin tones, syllable anatomy (Initials/Finals), phonetic IME typing workflows, and interactive sound filters. - ๐๏ธ Cultural & Script Origins (
LanguageAbout.tsx): Localized deep dives into each language's history, writing system evolution (such as Simplified vs. Traditional Chinese comparisons), timelines, and structural traits. - โจ๏ธ 8 Non-Latin Phonetic Virtual Keyboards + Live Sound-Out Spacebar Conversion: Integrated clickable phonetic keyboards and live sound-it-out + Spacebar conversion in quiz input mode across all 8 non-Latin scripts (
ru,ar,ur,hi,bn,ja,ko,zh). - ๐๏ธ 14,500+ Studio Neural Audio Recordings & Speed Controls: Pre-rendered native MP3 pronunciations generated via Microsoft Edge Neural TTS with variable speed control (
0.5รto1.25ร), word/example playback inside revealed cards, and clean browser TTS fallback. - ๐ฆ Instant Single-File Offline Audio Binary Packs (
offline-pack.bin): Each language bundles all its MP3 clips into a single contiguous binary archive (public/audio/<lang>/offline-pack.bin) with byte-offset manifests (manifest.json), enabling rapid one-click offline downloads into browser Cache Storage for full Airplane Mode playback (OfflineAudioModal.tsx). - ๐ฏ Adaptive Quiz Engine with Fuzzy Typo Tolerance: Supports Source-to-Target, Target-to-Source, Listening Mode, smart script normalization, and Levenshtein typo detection that accepts harmless slips while rejecting near-miss real words.
- โ๏ธ Cloud Sync & Privacy-First Guest Mode (Supabase): Local progress persistence by default with optional Google, Microsoft Entra ID, and GitHub OAuth 2.0 / OIDC cloud synchronization (
progressService.ts) backed by PostgreSQL Row Level Security (RLS).
- Strict Content Security Policy (CSP): Enforces
script-src 'self'(no'unsafe-inline'or'unsafe-eval'),worker-src 'self',manifest-src 'self',object-src 'none',base-uri 'self',frame-ancestors 'none',form-action 'self', andupgrade-insecure-requests. - OWASP HTTP Headers: Configured in
netlify.tomlwith HSTS (max-age=31536000; includeSubDomains; preload),X-Frame-Options: DENY,X-Content-Type-Options: nosniff,X-XSS-Protection: 0,Cross-Origin-Opener-Policy: same-origin-allow-popups,Referrer-Policy: strict-origin-when-cross-origin, and restrictivePermissions-Policy. - Database Row Level Security (RLS) & Constraints: PostgreSQL tables (
public.profiles,public.quiz_sessions,public.word_progress) revokeanonaccess, enforceauth.uid() = id/auth.uid() = user_idRLS policies across allSELECT/INSERT/UPDATE/DELETEoperations, and validate score/mastery/URL bounds via SQLCHECKconstraints (seedocs/schema.sql). - Zero Password Handling & Safe Client Storage: Passwordless federated OAuth 2.0 / OIDC sign-in, strict
https:validation on Supabase endpoints and OAuth avatar URLs (referrerPolicy="no-referrer"), audio pack filename sanitization, and prototype-pollution-safelocalStorageparsing.
Detailed system architecture and database design are documented in docs/BACKEND_PLAN.md.
This project is actively developed and architected using Google Antigravity paired with Google Gemini / Advanced Agentic AI.
- Agentic Pair Programming: Used Antigravity's autonomous multi-step workflows to build and audit 15 languages across 210 bidirectional pairs, implement phonetic virtual keyboards and offline binary audio packs, harden security headers and RLS schemas, and maintain Vitest and Playwright test suites.
- Architectural Velocity: Demonstrates AI-accelerated full-stack engineering while maintaining strict TypeScript type safety, comprehensive test coverage, and security standards.
- Frontend: React 19.3, TypeScript 5.9, Modern CSS (CSS Variables, Flexbox/Grid, RTL support, Glassmorphism)
- Routing: Universal multi-language dual routing (
/learn/:lang/:section,/:lang/:section, and root routes) with dynamic SEO metadata - Build System & PWA: Vite 6,
@vitejs/plugin-reactv5,vite-plugin-pwav2 (Workbox), custom offline audio pack bundler (scripts/build-offline-packs.mjs) - Testing:
- Unit & Integration: Vitest 5, React Testing Library 16, JSDOM (1,565 tests across 58 suites)
- End-to-End: Playwright Chromium (21 E2E browser specs covering desktop, 390px mobile, RTL, Pinyin, phonetic typing, offline Airplane Mode, and neural audio)
- Backend & Auth: Supabase PostgreSQL, Row Level Security (RLS), OAuth 2.0 / OIDC (Google, Microsoft Entra ID, GitHub)
- Audio Pipeline: Python
edge-ttsstudio batch synthesis (scripts/generate-all-audio.py) + Web Speech API fallback - Hosting & CDN: Netlify (
301domain redirects, OWASP security headers, SSL, SPA fallback rules)
basic-language-school/
โโโ CONTRIBUTING.md # Contribution guidelines & curriculum PR workflow
โโโ SECURITY.md # Security policy & vulnerability reporting
โโโ docs/
โ โโโ BACKEND_PLAN.md # Cloud sync & OAuth integration architecture
โ โโโ schema.sql # Supabase PostgreSQL schema with RLS policies
โโโ e2e/
โ โโโ chinesePinyinAboutAndTypoQuiz.spec.ts
โ โโโ languageMatrixAndLayout.spec.ts
โโโ scripts/
โ โโโ build-offline-packs.mjs # Packages each language's MP3s into offline-pack.bin
โ โโโ generate-offline-manifests.mjs
โ โโโ generate-all-audio.py # Microsoft Edge Neural TTS batch generator
โ โโโ render-og-image.js # Renders public/og-image.svg -> public/og-image.png
โโโ public/
โ โโโ audio/ # Pre-rendered neural MP3s & offline-pack.bin per language
โ โโโ privacy/index.html # Static Privacy Policy page
โ โโโ terms/index.html # Static Terms of Service page
โ โโโ app-icon.svg # Universal app crest vector source
โ โโโ manifest.json # PWA Web App Manifest
โ โโโ og-image.svg / .png # 15-language OpenGraph social preview banner
โ โโโ robots.txt & sitemap.xml
โ โโโ favicon.ico
โโโ src/
โโโ App.tsx # Main application shell, routing & dynamic SEO metadata
โโโ contexts/
โ โโโ LanguageContext.tsx # Base/target language state, routing sync & audio halt
โโโ components/
โ โโโ Alphabet.tsx # Alphabet, script, Grammar & Cultural About host
โ โโโ AppEmblem.tsx # Custom SVG graduation-cap emblems for all 15 languages
โ โโโ FlagIcon.tsx # Cross-platform vector SVG flags for all 15 languages
โ โโโ Grammar.tsx # Noun genders, verbs, descriptions & audio flashcards
โ โโโ LanguageAbout.tsx # Localized cultural, historical & script origins tabs
โ โโโ LanguageSwitcher.tsx# Base & target language picker modals
โ โโโ NumbersAndTime.tsx # Number reference & telling-time grammar guides
โ โโโ OfflineAudioModal.tsx # Offline pack selector & Cache Storage progress UI
โ โโโ PhoneticKeyboard.tsx# Virtual phonetic keyboards (ar, ur, hi, bn, ja, ko, zh)
โ โโโ Phrases.tsx # Categorized phrases & 500+ topic vocabulary packs
โ โโโ PinyinGuide.tsx # Mandarin tones, initials/finals & phonetic IME guide
โ โโโ PronunciationButton.tsx # Offline CacheFirst MP3 & Web Speech fallback button
โ โโโ Quiz.tsx # Adaptive quiz engine with phonetic typing & feedback
โ โโโ RussianKeyboard.tsx # On-screen Cyrillic keyboard with live phonetic mapping
โ โโโ ProgressModal.tsx # Cross-language accuracy & spaced-repetition dashboard
โโโ data/
โ โโโ aboutTranslations.ts# App About & Contact translations
โ โโโ legalTranslations.ts# Localized Privacy Policy & Terms of Service
โ โโโ languages/ # 15 course datasets, grammar flashcards & cultural guides
โโโ services/
โ โโโ offlineAudioService.ts # Binary .bin unpacker & Cache Storage manager
โ โโโ progressService.ts # Local & Supabase cloud quiz progress sync
โ โโโ supabaseClient.ts # Supabase client setup
โโโ utils/
โโโ fuzzyMatcher.ts # Typo-tolerant quiz grading across scripts
โโโ phoneticTyping.ts # Sound-out + Spacebar IME conversion for 8 scripts
โโโ speech.ts # Audio playback queue & Web Speech API fallback
โโโ translationResolver.ts # Matrix UI localization across 15x15 pairs
- Node.js:
v22.xor later (seeenginesinpackage.json) - npm:
v10.xor later - Python:
v3.10+withedge-tts(optional, only for regenerating studio MP3 audio)
git clone https://github.com/JohnBendfeldt/basic-language-school.git
cd basic-language-school
npm installCreate a .env.local file in the project root (optional; Guest Mode works without environment variables):
VITE_SUPABASE_URL=https://<your-project-ref>.supabase.co
VITE_SUPABASE_ANON_KEY=<your-anon-key>npm run dev
# Vite dev server starts at http://localhost:5173# Unit & integration suite (58 suites, 1,565 tests)
npm test
# Strict TypeScript check
npx tsc --noEmit --noUnusedLocals --noUnusedParameters
# Playwright end-to-end suite (21 browser tests)
npx playwright testnpm run build
# Compiles TypeScript, builds Vite bundle to dist/, and packages offline-pack.bin archives
npm run preview
# Preview the production build locallyTo regenerate neural audio files (edge-tts) or rebuild the single-file offline binary packs (offline-pack.bin + manifest.json):
# Generate studio neural MP3s (all 15 languages)
pip3 install edge-tts
python3 scripts/generate-all-audio.py --all
# Rebuild single-file offline binary packs & manifests for all 15 languages
npm run build-offline-packs| Domain | Role | Action |
|---|---|---|
basiclanguage.school |
Primary Application | Production deployment on Netlify |
basiclanguage.academy |
Secondary Domain | 301 Permanent Redirect to basiclanguage.school |
basiclanguage.courses |
Secondary Domain | 301 Permanent Redirect to basiclanguage.school |
basicrussian.org |
Standalone Legacy App | Preserved independently with its own database |
- Contributing: Translation fixes, native-speaker refinements, accessibility improvements, and bug fixes with tests are welcome โ please read
CONTRIBUTING.mdbefore opening a pull request. - Security: Please report suspected vulnerabilities privately rather than opening a public issue; see
SECURITY.mdfor disclosure instructions.
John Bendfeldt
- GitHub: @JohnBendfeldt
- Platform: basiclanguage.school
- Contact: dev@basiclanguage.school
This project's source code is licensed under the MIT License - see the LICENSE file for details.
Branding Note: While the source code is open source under MIT, the Basic Language School name, domain branding (
basiclanguage.school), and custom academic emblems are reserved for the official platform.