We ship @wa-ma/sdk as the core TypeScript client for WAMA. It works in Node.js and modern browsers, talks to POST /send-message.php, and handles recipient sanitization plus media conversion for you.
1. Simple initialization
Pass your instance whatsapp_api_key from the dashboard: new Wama("YOUR_WHATSAPP_API_KEY"). Use sendText(), sendImage(), or sendDocument() depending on the payload.
2. Polymorphic media
Attach remote URLs, local paths (Node), Blobs/Files (browser), or buffers — the SDK builds the base64 data URI expected by the API.
3. Framework packages
React, Vue, and Angular wrappers (@wa-ma/react, @wa-ma/vue, @wa-ma/angular) depend on this SDK. For terminal workflows, use @wa-ma/cli.
Install with:
npm install @wa-ma/sdk


