Druta
A mobile-first real-time communication platform, currently in the system design phase.
Overview
Druta (Sanskrit for "swift") is a mobile-first messaging and calling platform. Its character is quiet, fast, human, light and precise: communication is the product, and everything else is secondary. It is in the system design phase, so there is no application code yet.
Design direction
The aim is a messenger that is fast on bad networks and cheap phones, and calm by design, with no feeds, stories or channel spam. It is Android first, with iOS kept architecturally compatible. Encryption starts on the server side, with a design that is ready for end-to-end encryption later.
Architecture
An Expo and React Native app keeps a local SQLite database as its source of truth, with an offline outbox and a sync engine. The backend is a single Elixir/Phoenix modular monolith whose context boundaries are enforced at compile time, and each context owns its own tables. PostgreSQL holds durable state, BEAM processes with PubSub and Presence hold ephemeral state, and media goes straight to S3 and CloudFront through presigned URLs, so Phoenix never carries bulk bytes. Sync is the source of correctness and live broadcast is only an optimisation: any live event may be lost, and the client recovers through sync.
What exists so far
Living design documents: a product requirements doc, the system architecture, the domain model, the WebSocket/Channel realtime protocol with delivery states and sync, a security threat model, Indian compliance notes (DPDP, IT Rules, DLT, CERT-In), an HTTP API overview, and Architecture Decision Records. The first build milestone is two phones exchanging text in real time, with messages that survive a reconnect in order.