TerraCrypt
Messenger
End-to-end encrypted messenger spanning iOS, Android, Tauri desktop & a full self-hosted Go backend with admin dashboard and observability stack. Group chats, voice, video, file transfer, all protected by custom-curve cryptography running on every device.
iOS Native · Swift / SwiftUI
Modular monorepo of internal Swift packages, each feature as its own package, fully unit-tested.
- SwiftUI + Combine reactive UI
- Notification Service Extension for E2E push decryption
- Group calls via WebRTC + custom signaling
- Background sync, biometric vault, secure enclave
- iPad & Mac Catalyst support
Internal Packages
- CoreCrypto: primitives & key exchange
- CoreCryptoDM, CoreCryptoGroup: chat encryption
- CoreChat / CoreChatUI: chat engine + UI
- CoreNetwork: gRPC / REST client + reconnect
- CoreDatabase: encrypted SQLite via SQLCipher
- CoreMessages, CoreFriends, CoreParticipants
Android Native · Kotlin / Compose
Full Kotlin codebase with Jetpack Compose UI, Gradle KTS build system, mirrors iOS feature set 1:1.
- Jetpack Compose declarative UI
- Coroutines + Flow for async + reactive streams
- Hilt dependency injection
- Room (encrypted) + DataStore
- Foreground services for calls + sync
- FCM with custom decryption pipeline
Architecture
- Clean architecture: data / domain / ui
- Multi-module Gradle for fast builds
- Native crypto via JNI bridges to C
- WorkManager for reliable background tasks
Desktop · Tauri (Rust + TypeScript)
Cross-platform desktop client: Windows, macOS & Linux from one codebase. Native performance, web-tech UI, ~20 MB installer.
- Rust core: crypto + database + IPC
- TypeScript + Vite + Tailwind front-end
- Native menus, tray, notifications
- AppImage / .dmg / .msi packaging
- Auto-updater + code signing
Why Tauri
10× smaller than Electron, true-native shell, sandboxed IPC, no Chromium overhead.
Backend · Go monorepo
Self-hosted, horizontally scalable, deployed via Docker Compose stack. Zero-downtime live updates on the production server.
- Go services: API, signaling, push, payments
- PostgreSQL: main store, with custom migrations
- Redis: sessions, rate-limit, presence
- CoTURN: WebRTC TURN/STUN for NAT traversal
- MinIO: S3-compatible encrypted media storage
- Apache + Nginx reverse proxies (vhosts per service)
- PHP modules for legacy payment / OTP flows
Observability stack
- Grafana: dashboards & alerts
- Loki: log aggregation
- Fluent-bit: log shipping
- Kibana: search & analytics
- APM: distributed tracing
- Prometheus metrics endpoints
Admin Dashboard
Internal control plane for operators: user management, server health, content moderation, audit logs, billing.
- React + TypeScript SPA
- Server-side rendered via Dockerfile.admin
- Role-based access (RBAC) with audit trail
- Real-time metrics streaming
- Subscription & payment overview
Highlights
- Live broadcast notifications to clients
- One-click user revocation + key rotation
- Migration runner for DB schema
- Backup & data-restore tooling