Designing Keptra
100% Local-First Knowledge, AI Chat & Diary Vault for Android
How CODEWITHSK engineered a zero-server native Android application with Kotlin, Jetpack Compose, Material 3, and SQLite—giving users one private vault for AI conversations, web articles, PDFs, ML Kit OCR scans, and voice memos.

Local-first SQLite & device media storage
CODEWITHSK backend servers or tracking
AndroidKeyStore AES-GCM key encryption
One-tap export to PDF, Markdown & HTML

Why Keptra Exists
The Problem
- ✕Valuable AI answers and links get buried across chat logs and browser tabs.
- ✕Cloud note apps force sign-ups, subscriptions, and server-side storage of private notes.
- ✕Offline PDFs, OCR screenshots, and voice memos rarely live cleanly in one place.
The Keptra Solution
- ✓Unified Vault & Diary notebook with Android Share Sheet capture and URL extraction.
- ✓On-device SQLite + app-private media storage protected by BiometricPrompt.
- ✓Ask Vault RAG chat using your own encrypted Gemini key, local Ollama, or offline fallback.
Inside the App

Zero-Server Data Pipeline
Capture Anything
Android Share Sheet, pasted URLs (WebPageExtractor), ML Kit OCR scans, PDFs, or voice notes.
Structure Offline
ThreadParser detects AI platforms, Markdown tables, code blocks, and inline media markers.
Private Storage
VaultDatabaseHelper writes to threadvault.db while attachments stay in app-private storage.
Ask & Share
Instant snippet search, ByokAiService RAG chat (Gemini / Ollama), and PDF/MD/HTML export.
Storefront Showcase
Click any screenshot to zoom in.
What’s Next for Keptra
Foundation & Play Launch
- •Vault & Diary capture with OCR, PDFs & voice
- •Ask Vault BYOK Gemini / Ollama RAG
- •Warm Cream & Obsidian Dark themes
Capture & Reading Upgrades
- •Native EPUB book chapter reader
- •Daily timeline grouping in Diary
- •Live CameraX OCR viewfinder & Mermaid renderer
Sync, Widgets & Pro
- •1-tap Quick-Paste home screen widget
- •Encrypted .keptra archive backup/restore
- •Optional user-owned Google Drive App-Folder sync
Try Keptra on Android Today
Built by CODEWITHSK — zero accounts, zero tracking, 100% yours.