Capsule
An Android and web messenger. The phone transcribes voice messages and generates a short summary.
- ExpoAndroid client
- Reactweb messenger
- Goserver
- Android
- The screens use TypeScript, React 19, React Native 0.86 and Expo SDK 57. Native Kotlin modules integrate sharing, audio, video, the gallery, system call controls and picture-in-picture.
- UI and local data
- Expo Router handles navigation and Zustand manages screen state. React Native Skia, Reanimated and Gesture Handler power graphics, animation and gestures. Drizzle ORM accesses a local SQLite database encrypted with SQLCipher.
- Web messenger
- A separate React 19, TypeScript, Vite 8 and CSS client supports chats, attachments and calls. IndexedDB stores key material and WebAssembly runs the cryptographic module in the browser.
Three web interfaces
The public site serves static HTML, CSS and JavaScript exported from a visual editor. The web messenger handles conversations and calls. A separate admin panel uses Go templates to render pages for managing requests, invitations and accounts.
Voice processing on the phone
Whisper and GigaAM v3 transcribe speech. Qwen3 generates the summary. The mobile stack uses sherpa-onnx, llama.rn and GGUF models. The project includes training data and scripts for tuning a LoRA adapter for summarisation.
Protected capsules and cloud chats
The mobile and web clients share a Rust core for protected capsules and control messages. It uses RustCrypto and AES-GCM, with UniFFI on Android and wasm-bindgen in the browser. Ordinary cloud chats are stored on the server without end-to-end encryption.
- VoiceA 0:42 recording
- TranscriptionSpeech to text on the device
- GistOne line, also on the device
- EncryptionBefore sending; only members hold the keys
- ServerStores and delivers, but cannot read
- RecipientDecrypts and reads one line
Server, calling and deployment
Go 1.26 and net/http handle registration, devices, profiles, chats and invitations. The server accesses PostgreSQL 17 through pgx and manages schema changes with SQL migrations. Media files are stored on disk and their metadata in the database.
WebSocket delivers events to connected clients and FCM sends Android push notifications. Voice and video calls use WebRTC and STUN/TURN with coturn. Gradle and the Android SDK/NDK build the APK, npm builds the web client and Cargo builds the Rust module. Ansible provisions the server, Caddy handles HTTPS and systemd manages services. Checks include Go tests, ESLint and Oxlint.