Last updated: 2026-06-29
This is the one-stop engineer reference for a complete first-contact understanding of the repository. It is designed so a new contributor can start from this file and make safe edits without searching outside docs/.
Use this document when you need:
If you need raw file-by-file descriptions, this atlas intentionally points to the canonical inventories:
docs/reference/ios-file-inventory.mddocs/reference/android-file-inventory.mddocs/reference/web-file-inventory.mdFor backend function contracts and behavior details, use:
docs/reference/backend-functions-detailed-map.mddocs/reference/backend-functions-deep-dive.mdBefore any behavior change, open in this exact order:
README.mdAGENTS.mddocs/index.mddocs/contracts/speech-workflow-contract.mddocs/contracts/native-speech-parity-anchor.mddocs/reference/repository-total-engineering-atlas.md (this file)ios-file-inventory.md, android-file-inventory.md, web-file-inventory.md)backend-functions-*)docs/ops/*Then open the exact files you will edit.
ios/: native SwiftUI surface and app platform runtime.android/: native Android Compose surface.backend/: Supabase contract boundary, SQL schema, migrations, edge functions.web/marketing/: static marketing and waitlist landing behavior.web/python-web-app/: compatibility web runtime and service path retained for parity and migration.docs/: architecture, contracts, ops, runbooks.scripts/: regression gates and migration proof helpers.Use docs/reference/ios-file-inventory.md whenever you need explicit ownership by path.
High-level map:
ios/SpeakTrue/SpeakTrueApp.swiftios/SpeakTrue/ContentView.swiftios/SpeakTrue/AuthGateView.swiftios/SpeakTrue/StartupLoadingView.swiftios/SpeakTrue/MainTabView.swiftios/SpeakTrue/SettingsTabView.swiftios/SpeakTrue/SettingsView.swiftios/SpeakTrue/AIProxyService.swiftios/SpeakTrue/AuthService.swiftios/SpeakTrue/AuthState.swiftios/SpeakTrue/SupabaseClientProvider.swiftios/SpeakTrue/CloudStorageService.swiftios/SpeakTrue/StorageManager.swiftios/SpeakTrue/UserSettingsSyncService.swiftios/SpeakTrue/UserSettings.swiftios/SpeakTrue/TTSViewModel.swift, TextToSpeechView.swift, TTSCatSelectView.swift, VoiceModelSelectionView.swift, TextInputView.swiftios/SpeakTrue/STTViewModel.swift, SpeechToTextView.swiftios/SpeakTrue/STSViewModel.swift, SpeechToSpeechView.swift, RealtimeSTTService.swift, LiveVoiceSTSService.swift, LiveVoiceAudioPlayer.swiftios/SpeakTrue/SoundboardView.swift, SoundboardViewModel.swift, SoundboardCacheManager.swift, SoundboardCacheIndex.swiftios/SpeakTrue/VoiceCloneViewModel.swift, VoiceCloneTabView.swiftios/SpeakTrue/PronunciationGlossaryView.swift, PronunciationGlossaryViewModel.swiftios/SpeakTrue/AIDataSharingAgreementService.swift, AIDataSharingConsent*.swiftios/SpeakTrue/AppTheme.swift, ColorExtension.swift, WaveFormView.swift, AudioControlsView.swift, HeaderViewTTS.swift, HeaderViewSTT.swift, GenerateButtonView.swift, ResetButtonView.swiftAudioPlayerService.swift, AudioRecorderService.swift, BreakManager.swift, DebugLogger.swiftios/SpeakTrueTests/*ios/SpeakTrueUITests/*Use docs/reference/android-file-inventory.md whenever you need exact per-path behavior.
High-level map:
android/app/src/main/java/com/speaktrue/app/SpeakTrueApp.ktandroid/app/src/main/java/com/speaktrue/app/MainActivity.ktandroid/app/src/main/java/com/speaktrue/ui/navigation/AppNavGraph.ktandroid/app/src/main/java/com/speaktrue/core/*core/auth, core/config, core/network, core/audio, core/storage, core/supabase, core/reliability, core/permissionsfeatures/<feature>/{data,presentation,ui}):
features/ttsfeatures/sttfeatures/stsfeatures/soundboardfeatures/voiceclonefeatures/settingsfeatures/agreementfeatures/dictionaryfeatures/presets, features/languagefeatures/tutorialfeatures/shared, ui/themeandroid/app/src/main/AndroidManifest.xml, android/app/src/main/res/*, icon sets and stylesandroid/app/src/test/java/com/speaktrue/**android/app/src/androidTest/java/com/speaktrue/**Use docs/reference/web-file-inventory.md for per-file ownership.
High-level map:
web/marketing/index.htmlweb/marketing/auth/callback/index.htmlweb/marketing/scripts/*web/marketing/styles/*_headers, _redirects, site.webmanifest, deploy-version.json)web/python-web-app/wsgi.py, src/app.py, src/config.py, src/legacy_runtime.py, src/legacy_runtime_adapter.pysrc/routes/*.pysrc/services/*.pysrc/storage/*.pyweb/python-web-app/Dockerfile, Procfile, docker-compose.yml, docker-entrypoint.shweb/python-web-app/testsweb/python-web-app/tests/jsUse:
docs/reference/backend-functions-deep-dive.md for behavior contracts.docs/reference/backend-functions-detailed-map.md for file-level function matrix and blast radius.Primary boundaries:
backend/supabase/functions/*backend/supabase/functions/_shared/*backend/supabase/migrations/*.sqlbackend/supabase/config.tomlFunction endpoints are available at /functions/v1/<directory-name>.
/account-delete: deletes the signed-in user and user-owned resources./billing-apple-sync: syncs Apple transaction state with entitlements./billing-apple-notifications: processes Apple webhook events and applies entitlement mutations./billing-google-play-sync: validates Google Play sync payloads and updates entitlement./billing-stripe-webhook: verifies Stripe signatures and dispatches subscription payment events./user-settings-get: reads persisted settings with migration-safe defaults./user-settings-update: validates and patches settings./quota-status: returns usage and quota state for the calling principal./byok-resolve: returns sanitized BYOK status for runtime./byok-upsert: upserts BYOK config and enablement state./voices-list: enumerates accessible voices./models-list: enumerates model catalog with policy filtering./pronunciation-dictionary: CRUD and listing for pronunciation hints./tts-generate: main TTS contract path (validation, policy, provider call, artifact metadata)./language-recommend: returns language recommendations for speech modes./style-presets: CRUD/read defaults for presets used by generation UX./stt-transcribe: non-streaming STT endpoint./sts-near-realtime-session: starts near-realtime STS session./sts-realtime-session: starts realtime STS session./sts-live-voice-tts-session: starts live voice-to-speech session./sts-realtime-finalize: finalizes near-realtime and realtime STS sessions./sts-live-interpreter-session: scaffold-only./sts-live-interpreter-tts-session: scaffold-only./soundboard-save-generated: stores generated clip metadata and storage references./soundboard-delete: deletes clip artifacts and storage references with ownership checks./clip-order-batch: persists drag/drop + reorder intent./soundboard-clip-ingest: scaffold-only migration route./voice-clone-preflight: readiness checks before clone creation./voice-clone-create: provider-backed voice clone creation./voice-clone-delete: clone deletion and provider cleanup./bug-report-submit: bug payload capture and reporting./waitlist-signup: stores waitlist intents with dedupe guards.Edit:
tts-generate, voices-list, models-list, _shared/entitlements.ts, _shared/usage.ts, _shared/quotas.ts, optionally backend/supabase/migrations/*ios/SpeakTrue/AIProxyService.swift, TTSViewModel.swift, TextToSpeechView.swift, TTSCatSelectView.swift, VoiceModelSelectionView.swiftfeatures/tts/data/*, features/tts/presentation/TTSViewModel.kt, features/tts/ui/TTSScreen.ktweb/python-web-app/src/routes/tts.py, src/services/tts_service.pyValidation:
backend/supabase/functions/tts-generate/*_test.ts and related catalog testsGenerationContractParityTest, TTS testsrepository-ultimate-engineering-bible.md if contracts changeEdit:
stt-transcribe, sts-near-realtime-session, sts-realtime-session, sts-live-voice-tts-session, sts-realtime-finalizeSTTViewModel.swift, STSViewModel.swift, SpeechToSpeechView.swift, RealtimeSTTService.swift, LiveVoiceSTSService.swift, SpeechToTextView.swiftfeatures/stt/*, features/sts/*, especially repositories and STSViewModel.ktweb/python-web-app/src/routes/stt.py, src/services/stt_service.py, relevant JS runtime filesValidation:
Edit:
soundboard-save-generated, soundboard-delete, clip-order-batchSoundboardView.swift, SoundboardViewModel.swift, SoundboardCacheManager.swift, SoundboardCacheIndex.swiftfeatures/soundboard/data/*, features/soundboard/presentation/SoundboardViewModel.kt, features/soundboard/ui/SoundboardScreen.ktsrc/routes/soundboard.py, src/services/soundboard_service.py, soundboard JS and templatesEdit:
voice-clone-preflight, voice-clone-create, voice-clone-deleteVoiceCloneViewModel.swift, VoiceCloneTabView.swiftfeatures/voiceclone/data/*, presentation/VoiceCloneViewModel.kt, ui/VoiceCloneScreen.ktsrc/routes/voice_clone.py, src/services/voice_clone_service.pyAuthService.swift, AuthState.swift, Android core/auth/*, Android feature authUserSettings.swift, AIDataSharingAgreementService.swift, AIDataSharingConsent*.swift, Settings*; Android features/settings/*, features/agreement/*user-settings-get, user-settings-update, quota-status, entitlements policy modules in _shared/*backend/supabase/functions/<new-name>/{index.ts,handler.ts,tests...}.ios/Config/App.*.xcconfig and runtime values in ios/SpeakTrue/SupabaseConfig.swift.docs/ops/RELEASE checklists as requested by your release type../gradlew -p android :app:compileDebugKotlin./gradlew -p android :app:testDebugUnitTest./gradlew -p android :app:lintDebug./gradlew -p android :app:bundleReleasedocs/ops/ANDROID_PLAY_RELEASE_CHECKLIST.mddocs/ops/ANDROID_PLAY_RELEASE_EVIDENCE_TEMPLATE.mdnpx -y deno@latest test backend/supabase/functions/<function>/*_test.tsbash scripts/coverage_backend_contracts.shbash scripts/regression_migration_paths.shbackend/supabase/migrationsweb/python-web-app/wsgi.py as runtime entry.python -m pytest web/python-web-app/testsweb/python-web-app/tests/api and tests/jsgb_tts_app.py and broad legacy runtime entrypoints compatibility-only.web/marketing/*.docs/ops/CLOUDFLARE_PAGES_DEPLOY.md.git diff --check before handoff.rg --files iosrg --files android/app/src/main/java/com/speaktruerg --files android/app/src/test/java/com/speaktruerg --files web/python-web-app/srcrg --files web/marketingfind backend/supabase/functions -maxdepth 2 -type d | sortgit status --shortgit diff --checkdocs/reference/repository-ultimate-engineering-bible.mddocs/reference/{ios,android,web}-file-inventory.mddocs/reference/backend-functions-detailed-map.mddocs/ops/*