Self-hosted Matrix + WhatsApp Bridge
Messaging InfrastructureProblem
Unify WhatsApp communication while retaining data ownership and encryption.
Constraints
- E2EE preservation
- Limited resources
- Avoid unnecessary third-party storage
Architecture
┌─────────────┐ ┌─────────────────┐ ┌──────────────┐
│ Matrix │────▶│ Mautrix-WA │────▶│ WhatsApp │
│ Client │ │ (Puppeting) │ │ Web API │
└─────────────┘ └─────────────────┘ └──────────────┘
│ │
▼ ▼
┌─────────────┐ ┌─────────────────┐
│ Synapse │◀────│ PostgreSQL │
│ Homeserver │ │ Database │
└─────────────┘ └─────────────────┘
Key Decisions
- Puppeting over relay to preserve identity
- Encryption-aware bots
- Controlled message retention