mail.js engine.
mail.js is a real-time messaging engine that connects directly to custom WebSocket servers. It utilizes Public Key Identity mapping for session management and message routing, IndexedDB local storage, multi-server pool fallback, and client-side anti-spam rate limiting.
⚙️ Settings button to configure your identity:
alice).Public Key acts as your unique identity across all WebSocket sessions.wss://server1.korvali.net).✍️ Compose button:
{"success": true}.ws:// (development) or wss:// (secure production).
mail.js sends an initial auth frame (type: "INIT") containing publicKey and handle. The server MUST map the active WebSocket socket to this `publicKey` for message dispatch and routing.
MAIL_SEND packet, the target server MUST send back a JSON frame containing "success": true within 5 seconds to confirm relay.
1. Handshake Initialization Frame (Client → Server):
2. Outgoing Mail Payload (Client → Server):
3. Server Delivery Acknowledgement (Server → Client):
4. Incoming Mail Payload (Server → Client):
Power korvali Infrastructure
Support edge servers, domain renewals, and keep tools free forever.