WhatsApp's "Delete for Everyone" feature creates a highly volatile data environment. When a sender revokes a message, WhatsApp issues a global network packet that forces the receiver's local device to wipe the specific JSON payload from its SQLite database.
I needed a way to securely and permanently archive my personal data streams, ensuring that historical context was preserved regardless of the sender's actions after the fact.
The Privacy Triangle Architecture
Traditional modded Android APKs are prone to immediate bans and offer terrible data security. Instead, I built a headless "Companion Device" that runs in the cloud.
The system relies on a three-point data flow to ensure absolute privacy:
- The Source (WhatsApp): Messages are encrypted and sent via the official Linked Device WebSocket protocol using the Baileys Node.js library.
- The Processor (Render): A private Node server processes the incoming JSON payload and immediately pushes it. It does not log or save anything to local disk.
- The Vault (Firebase): A personal Google Firestore NoSQL database stores the logs. Strict security rules enforce that only the backend can write to it, and only the authenticated frontend can read it.
PWA Frontend & Smart Sync
Data is useless if it's trapped in a backend console. I engineered an installable PWA (Progressive Web App) frontend to act as a secure vault.
- Local Security: The UI is protected by a local 6-digit PIN or Biometric Fingerprint unlock, keeping the archive safe from physical prying eyes.
- Smart Sync: The app utilizes deep IndexedDB caching. Once downloaded, the chat history functions perfectly offline without constantly hitting the Firebase API.
- Advanced Search: Built-in indexing allows for global contact filtering, in-chat keyword highlighting, and direct jumps via a calendar UI.
By keeping the engine headless and off-device, the logger achieves zero battery drain on the host phone while guaranteeing perfect, continuous message capture.