Skip to content
kdbrianPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

otype

Read one-time / verification codes from your email the instant they arrive — no app-switching, one tap to copy. Kotlin Multiplatform + Compose Multiplatform, targeting Android and desktop (Windows / Linux).

Not redefining email. Just making "go get the code" fast.

How it works

Path Platform Latency Needs
Notification listener Android instant "Notification access" granted to otype
IMAP burst poll ("Watch for a code") Desktop + Android ~5 s An IMAP account + app password

Everything runs on-device. No backend, no telemetry. Email bodies are parsed and discarded — only the extracted code plus light metadata is stored, in a local JSON file; IMAP passwords live in the OS-encrypted SecretStore (Android Keystore / AES-GCM key file).

Modules

:core   KMP library — models, the OTP detector, repositories,
        IMAP client (Angus Mail), secret store, DI wiring
        commonMain (pure) → jvmSharedMain (JVM libs) → androidMain / desktopMain
:ui     Compose Multiplatform — design system, UDF screen models, screens
:app:android   com.android.application + notification listener service
:app:desktop   Compose for Desktop + system tray

The OTP detector (OtpExtractor) is dependency-free and unit-tested — keyword proximity, sender reputation, shape and isolation scoring, minus the usual false positives (years, money, order / tracking numbers, phone numbers, times).

Build

Requires JDK 21 and the Android SDK (platform 37, build-tools 36).

./gradlew :core:desktopTest              # run the detector test suite
./gradlew :app:android:assembleDebug     # Android APK  -> app/android/build/outputs/apk/debug/
./gradlew :app:desktop:run               # launch the desktop app
./gradlew :app:desktop:packageDistributionForCurrentOS   # MSI/EXE (Windows), DEB/RPM (Linux)

Toolchain (September 2026)

Kotlin 2.4.10 · AGP 9.4.0 (com.android.kotlin.multiplatform.library) · Gradle 9.6 · Compose Multiplatform 1.12.0 · Koin 4.2 · Angus Mail 2.0.4 · JDK 21.

Adding an email account

See docs/PROVIDERS.md for per-provider app-password steps. OAuth (PKCE, no client secret) and always-on IMAP IDLE are planned; v1 is app-password + on-demand burst poll.

Status

M0 scaffold · M1 detector + tests · M2 Android notification listener · M3 desktop IMAP burst poll · M4 onboarding / settings / theming · M5 packaging + docs.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages