I created 4SEND: a messenger without a phone number. This is how its architecture works

Discover 4SEND, a messenger without a phone number. Only username and password. Architecture, encryption, and security. No more ties to your identity!

viernes, 3 de julio de 2026 • 3 min read • Q2BSTUDIO Team

4SEND: secure messaging without a phone number or email

In a digital ecosystem where instant messaging has become the backbone of personal and professional communication, relying on a phone number as a unique identifier poses serious privacy challenges. Every time we register a chat application with our mobile phone, we are linking our real identity —passport, carrier, geolocation— to a service that, despite promising encryption, rarely does without that data. Faced with this reality, 4SEND emerges, a messenger that breaks the mold by requiring only a username and password: no email, no number, no associated identity. Its technical architecture deserves a detailed analysis, not only for its privacy proposition but also for the design decisions that make it viable.

The chosen technology stack —Node.js, Express, Socket.IO, MongoDB, and Mongoose— responds to the need to iterate quickly and rely on a mature ecosystem. However, the true innovation lies in how authentication is managed without personal data. Registration only requires a username and password; the server uses bcryptjs to hash passwords and JWT for sessions. There are no email or phone fields in the database, which drastically reduces the attack surface in case of a breach. This approach is especially relevant for companies seeking custom applications where user privacy is a design requirement, not an afterthought.

In terms of communication security, 4SEND opts for symmetric encryption in transit and at rest managed by the server. Although it is not end-to-end encryption like Signal's, the system is honest about its limitations and applies a fail-closed mechanism: if the key is not validated at startup, the server does not start. There are no silent fallbacks to plain text. Ephemeral messages are deleted through a dual security system: a server-side setTimeout and a TTL index in MongoDB. Attached files are physically erased from storage, with no file copies or soft deletions. This rigor is key for cybersecurity in projects handling sensitive information.

The transport layer with Socket.IO needed hardening. Mandatory JWT verification was implemented on every connection: no token, no socket. The sender is always assigned from the server, preventing impersonation. Rate limiting is tied to the username, not the IP, to avoid evasion through address rotation. Additionally, all REST input and Socket events go through recursive sanitization to prevent NoSQL injections. These practices are directly applicable in any custom software development aiming for a high security standard.

File upload management uses multer and sharp. A whitelist of extensions, magic byte signature validation, and automatic removal of EXIF metadata —such as GPS location or camera model— are applied. For link previews, private IP ranges (10.x, 172.16.x, 192.168.x, 127.x, ::1) are blocked, protocols are restricted to HTTP/HTTPS on standard ports, redirects are disabled, and strict timeouts are enforced. This prevents SSRF attacks. These measures are common in projects integrating AI for businesses and requiring secure handling of external content.

Performance was a recurring challenge. Migrating to MongoDB's aggregation pipeline improved the loading of long dialog lists by 10 times. The socket reconnection algorithm was also redesigned for devices waking from sleep, solving the classic zombie socket problem on mobiles. These optimizations are typical when developing AWS and Azure cloud services, where data access efficiency is critical.

Nevertheless, 4SEND acknowledges its weaknesses. The absence from the iOS App Store limits push notifications and the experience on that ecosystem, due to Apple's restrictions requiring user identification. The code is not yet fully open source (only the frontend), so trust in the encryption implementation rests on the development team. And, the most common challenge in messaging: a small user base reduces the network's utility. Overcoming these barriers requires multidisciplinary teams that combine AI agents to automate moderation, business intelligence services with Power BI to analyze usage patterns, and process automation to scale the platform.

At Q2BSTUDIO, as a company specialized in software development and technology, we support projects born from a bold vision of privacy and security. From implementing AWS and Azure cloud services to ensure scalability, to integrating artificial intelligence to enhance user experience without compromising their data, we offer custom solutions that transform ideas like 4SEND into robust products. The described architecture demonstrates that it is possible to build anonymous messengers with professional standards; only the right ecosystem is needed for them to flourish.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.