How to connect directly to WhatsApp Web without a browser
This tool creates a link to send and receive WhatsApp Web messages without launching a browser. It is a utility that handles the WhatsApp Web protocol directly on the server using websockets. You can design the flow for maintaining chat sessions and processing messages through code.
Major changes in version 7.0.0
The recent update to version 7.0.0 introduced breaking changes in several areas. Developers who have been using this library must check the migration guide. The new guide is still being written, so some pages or content may be missing. If you find errors or missing content, please report them. The previous guide remains accessible in the existing README or on the NPM page.
Websocket-based communication
This tool is a TypeScript library that operates based on websockets. It is designed to interact with the WhatsApp Web API. It can be used in various runtime environments, including Node.js, Deno, and Bun. Instead of browser automation, it manages websocket connections directly to send and receive messages. This provides a foundation for utilizing WhatsApp Web features on the server side.
Support and maintenance status
The current maintainer is Rajeh. If you need enterprise or business-level support, you can book a one-hour video chat via Discord. Slots fill up quickly, so it is recommended to book in advance. Corporate contributions are encouraged to support the costs of project development. You can help the project by booking meetings or through sponsorship. Support from companies of all sizes is welcome.
Legal boundaries to know before use
This project is not officially connected to or approved by WhatsApp or its subsidiaries. The maintainer does not support using this library for purposes that violate WhatsApp's terms of service. Spam, stalkerware, and bulk or automated message sending are strongly discouraged. Users must use this tool fairly at their own responsibility. The license is the MIT License, and the software is provided as is without any warranty. The maintainer does not accept responsibility for misuse.