Official WAMA Packages
TypeScript SDK, CLI, and framework integrations — install and start sending in minutes.
npm
@wa-ma/sdk
Framework-agnostic TypeScript client for Node.js and browsers. Send text and media with automatic base64 handling.
TypeScriptView example
npm
@wa-ma/cli
Interactive terminal tool to log in, link instances via QR, send messages, and view history.
CLIView example
npm
@wa-ma/react
React context provider and useWama hook with loading and delivery state for Next.js and SPAs.
ReactView example
npm
@wa-ma/vue
Vue 3 composable (useWama) with reactive loading, success, and error state.
VueView example
npm
@wa-ma/angular
Injectable WamaService with WAMA_CONFIG token for Angular apps.
AngularView example
Installation
npm install @wa-ma/sdk
Integration notes
- Use your instance whatsapp_api_key from the dashboard (not the user API key) for send-message calls.
- Format recipients with country code, e.g. 966501234567 (leading + is optional).
- Messages are queued with anti-ban delays (~7s average) after the API accepts them.
Usage example
typescript
import { Wama } from '@wa-ma/sdk'
const wama = new Wama('YOUR_WHATSAPP_API_KEY')
const res = await wama.sendText('966501234567', 'Hello from WAMA SDK! 🚀')
if (res.success) {
console.log('Queued. ID:', res.id)
} else {
console.error(res.message)
}