How offrange/keygo works
KeyGo is an Android password vault for locally stored credentials, passkeys, cards, and TOTP secrets. The main user path is entering the app, unlocking access, then managing vault data; system autofill is a separate entry point that extracts a form and offers matching datasets or a save prompt. Security, backup, and Rust-backed functionality are important supporting capabilities. The tree and excerpts establish only selected calls, so uncertain links are shown as dashed rather than asserted as runtime wiring.
Main entry points: Item.kt Vault items · AppShell.kt App navigation · KeyGoAutofillService.kt Autofill service · pipeline.rs Sync pipeline
Components 21
App experience
- App navigation
app/src/main/kotlin/de/davis/keygo/app/presentation/navigation/AppShell.kt - Dashboard
app/src/main/kotlin/de/davis/keygo/dashboard/presentation/DashboardEntries.kt - Authentication UI
feature/auth/src/main/kotlin/de/davis/keygo/feature/auth/presentation/AuthContent.kt
Vault management
- Vault items
core/item/src/main/kotlin/de/davis/keygo/core/item/domain/model/Item.kt - Vault context
- Item database
core/item/src/main/kotlin/de/davis/keygo/core/item/data/local/datasource/ItemDatabase.kt - TOTP codes
core/rust/src/main/kotlin/de/davis/keygo/rust/totp/Totp.kt - Passkeys
core/rust/src/main/kotlin/de/davis/keygo/rust/passkey/PasskeyManager.kt - Card management
core/rust/src/main/kotlin/de/davis/keygo/rust/card/Card.kt
Identity and security
- Item encryption
core/security/src/main/kotlin/de/davis/keygo/core/security/data/crypto/CryptographicScopeImpl.kt - Android keystore
core/security/src/main/kotlin/de/davis/keygo/core/security/data/KeyStoreManagerImpl.kt - Account access
core/identity/src/main/kotlin/de/davis/keygo/core/identity/domain/repository/AccountRepository.kt - Biometric unlock
core/identity/src/main/kotlin/de/davis/keygo/core/identity/domain/usecase/UnlockWithBiometricsUseCase.kt
System integrations
- Autofill service
feature/autofill/src/main/kotlin/de/davis/keygo/feature/autofill/presentation/KeyGoAutofillService.kt - Backup jobs
feature/backup/src/main/kotlin/de/davis/keygo/feature/backup/worker/BackupWorker.kt - Backup formats
core/rust/src/main/kotlin/de/davis/keygo/rust/backup/JsonBackupManager.kt
Rust services
- Sync client
rust/crates/keygo-client/src/sync/client.rs - Sync pipeline
rust/crates/keygo-client/src/sync/pipeline.rs - Session tokens
rust/crates/keygo-client/src/sync/tokens.rs - HTTP transport
rust/crates/keygo-client/src/sync/transport.rs
Other components
- User
Connections 21
- User → App navigation: opens
- App navigation → Dashboard: navigates
- App navigation → Authentication UI: routes to
- Dashboard → Vault items: opens vault
- Authentication UI → Account access: checks access
- Account access → Biometric unlock: supports unlock
- Vault items → Item database: persists locally
- Vault items → Item encryption: encrypts per item
- Item encryption → Android keystore: requests cipher
core/security/src/main/kotlin/de/davis/keygo/core/security/data/KeyStoreManagerImpl.kt - Vault items → Vault context: uses context
- User → Autofill service: requests fill
- Autofill service → Account access: checks access
feature/autofill/src/main/kotlin/de/davis/keygo/feature/autofill/presentation/KeyGoAutofillService.kt - Autofill service → Vault items: offers credentials
- User → Backup jobs: starts backup
- Backup jobs → Backup formats: exports data
- Vault items → TOTP codes: generates codes
- Vault items → Passkeys: manages passkeys
- Vault items → Card management: manages cards
- Sync client → Sync pipeline: dispatches calls
rust/crates/keygo-client/src/sync/client.rs - Sync pipeline → HTTP transport: sends requests
rust/crates/keygo-client/src/sync/pipeline.rs - Sync pipeline → Session tokens: uses session tokens
rust/crates/keygo-client/src/sync/pipeline.rs