A managed browser comes with an account decision
whatsapp-web.js uses Puppeteer to access WhatsApp Web's internal functions through a managed browser. Its documented messaging features make it a candidate for Node.js integrations whose operators can maintain that browser and its sessions. Before choosing API methods, decide whether unofficial access is acceptable for the account you intend to connect.
The README disclaims official WhatsApp authorization. It warns that blocking remains possible. Someone responsible for the account needs to accept that risk before adoption; a successful package installation cannot resolve it.
What happened when we ran it
Our whatsapp-web.js run installed in 35 seconds and failed tests after 6 seconds. Installation recorded 427 dependencies and 186 MB on disk. Build was skipped because no build script or target existed. The test command exited 1. The run used commit 064a3d5 on 2026-11-07, with a recorded configuration of 3 CPUs, 8 GB RAM and image label lab-node:22.
The retained failure tail shows Node loading modules and Mocha importing files. The initiating exception is absent, so those frames cannot identify a configuration error, incompatible package or product defect. The record provides no passing-test count. Account pairing, message exchange, attachment downloads and session recovery remain unverified by this run. The image label does not establish which Node version actually ran.
npm audit reported 30 known vulnerabilities: 1 critical, 19 high, 9 moderate and 1 low. These dependency advisory findings do not demonstrate exploits against a deployed messaging application. The supplied record does not identify affected paths or successful remediation. Review the advisory details against the dependency resolution you intend to deploy.
The checkout contained 186 files, approximately 15,271 source lines and 2.6 MB. The scan found 9 CI workflow files and a tests directory, with no Dockerfile detected. These repository signals do not establish that account operations work.
Saving a session needs a storage choice
The authentication guide says the default strategy saves no session information, requiring another QR scan after restart.
LocalAuth requires a persistent filesystem to restore sessions. It passes a persistent user data directory to the browser. If your host discards local files during deployment, provide durable storage or choose another strategy. Keep session files private.
RemoteAuth stores sessions remotely, with MongoDB and S3 options documented in the guide. The guide warns that the ready event does not mean the remote session has been saved. Before relying on unattended restarts, verify that a saved session restores after restarting the client. Our sandbox did not perform that recovery check.
Attachment presence does not guarantee a download
The attachment guide documents hasMedia for detecting attachments and downloadMedia for retrieving them. The downloadMedia method can return undefined when media cannot be downloaded. Check that result before reading the returned object's data or MIME type.
For an inbox, show a retrieval failure when an attachment is unavailable and keep any accompanying text usable. These are application design recommendations based on the documented return value, not behavior verified in our sandbox.
For video and GIF sending, the guide says Chromium lacks AAC and H.264 support and directs users to a separately installed Chrome browser for that functionality. A text-only example cannot establish media suitability. An account trial should cover the actual attachment types your workflow needs, including receipt and retrieval.
Check feature requirements and maintenance evidence separately
The README marks sending buttons and lists as deprecated, while listing ordinary messages, media and polls as supported. Avoid this library if your workflow requires those deprecated message types. The listed capabilities are upstream documentation claims, not features verified by our run.
The README requires Node.js 18 or newer. That requirement does not establish the runtime used in our sandbox.
The supplied repository metadata records a last push on November 8, 2026. Push recency alone does not establish issue responsiveness or community health, which remain unassessed.
Compare the connection model
Baileys is a WebSockets-based TypeScript library for interacting with the WhatsApp Web API. Its README says it connects directly through a WebSocket without requiring a browser. Evaluate it when avoiding a managed browser is an architectural priority. Its disclaimer also disclaims official WhatsApp authorization. The README warns of breaking changes introduced in 7.0.0 and says the new guide is in development. We measured no resource or reliability differences between these clients.
WPPConnect combines Puppeteer with the browser automation layer used by the ecosystem. Its README describes a library for applications that manage browser and session lifecycle. It requires Chrome or Chromium and operating-system dependencies. WPPConnect Server is a separate REST-service project, so choosing the library does not itself supply that service.
How the documentation score works
Documentation earns 4 on this editorial scale: 1 means missing core instructions, 3 means a usable path with material omissions, and 5 requires detailed guidance independently checked across the reviewed paths. Intermediate scores reflect partial coverage. The supplied README and session and attachment guides support 4 because they explain requirements, authentication choices and media failure conditions, while their account examples remain unverified here. This score assesses the supplied guidance, not runtime reliability.
Before adopting whatsapp-web.js, review the dependency advisories, choose durable session storage and verify pairing, restart recovery and the message types your workflow needs.

