Skip to content

Install

Terminal window
pnpm add @solvejet/whatsapp-cloud-api
# or: npm install @solvejet/whatsapp-cloud-api
# or: yarn add @solvejet/whatsapp-cloud-api
Runtime Status
Node.js 20 Verified in CI (built package is imported as ESM and CJS, signed request round trip)
Node.js 22, 24 Verified in CI (lint, typecheck, tests, build)
Bun Verified in CI (/web entry runs under Bun)
Deno Verified in CI only (/web entry runs under Deno)
Cloudflare Workers Verified in CI in workerd without nodejs_compat (/web entry)
Vercel, Next.js Use handleRequest with waitUntil or after(); documented, not run in CI

The HTTP client only needs fetch and AbortController. The main entry’s webhook helpers import node:crypto. On runtimes without it, import from @solvejet/whatsapp-cloud-api/web, which uses Web Crypto only. See Edge runtimes.

Verified against: Graph API v26.0, Meta changelog checked 2026-11-21. Change it with the apiVersion option.

Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.