Devices connect peer-to-peer first and only fall back when the network needs it.
Open Source · Privacy First
Messaging that stays yours.
HamGoftar is an end-to-end encrypted, peer-to-peer messaging platform. Your conversations live on your devices — not on our servers. No tracking. No middlemen. Just private chat.
- E2E encrypted by default
- Works offline
- Self-hostable
Identity, relay, and delivery states are shown as calm, readable status cues.
Messages can be relayed securely when a peer is not online, then delivered later.
Features
Built for privacy. Engineered for reliability.
Every message is encrypted on your device before it leaves. Here's what makes HamGoftar different.
End-to-End Encryption
X3DH key agreement and Double Ratchet protocol keep every message forward-secret and self-healing.
Peer-to-Peer
libp2p with WebRTC lets your messages travel directly between devices. The server only helps you find each other.
Cross-Platform
Native experiences on Web, Desktop (Windows, macOS, Linux), and Mobile (Android & iOS) — all sharing one secure core.
Offline Delivery
Encrypted message blobs are safely relayed when your contact is offline and delivered the moment they return.
Local Storage
Your conversation history stays on your device, encrypted at rest. No central database of your private chats.
Open Source
Every line is auditable. Self-host the signaling server on your own infrastructure, on your LAN, or behind your VPN.
How it works
From install to encrypted chat in four steps
No phone numbers. No email required. Just a username and strong cryptography.
Generate identity
Your device creates Ed25519 and X25519 key pairs locally. Nothing leaves your machine.
Register a username
Public pre-key bundles are uploaded so contacts can find and start secure sessions with you.
X3DH handshake
Clients negotiate a shared secret asynchronously — even if the recipient is offline.
Chat with forward secrecy
Double Ratchet delivers every message with a fresh key, self-healing if compromised.
Everywhere you are
One secure core. Three great apps.
Start on your phone, continue on your laptop. Your identity and conversations sync securely.
Web App
Install-free progressive web app that runs directly in your browser with full P2P support.
Desktop
Native installers for Windows, macOS, and Linux with local storage and system integration.
Mobile
Native mobile clients with low-power background delivery and secure keychain storage.
Security
Transparent cryptography. No magic.
Industry-standard primitives, auditable code, and a protocol designed for the modern threat model.
-
Forward secrecy on every message
Double Ratchet derives a unique message key per message. Compromise of one key reveals nothing else.
-
Self-healing after compromise
Every DH ratchet step provides break-in recovery — your future messages re-establish secrecy automatically.
-
Asynchronous key agreement
X3DH lets anyone send you a first message securely even when you are completely offline.
-
Signed device identity
Every signaling request and offline relay blob is Ed25519-signed with replay protection.
Cryptographic stack
Get started
Running in under a minute
Clone, install, start. Your own private messaging stack on localhost.
Take back your conversations.
Join developers and privacy advocates building a messaging platform that respects your data and your freedom.