npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@meta-kit/whatsapp

v0.1.1

Published

A flexible and easy-to-use Node.js module for sending messages via the WhatsApp Business API. This module provides builders for different message types, such as text, image, and template messages, and allows easy integration with the WhatsApp Business API

Readme

A flexible and easy-to-use Node.js module for sending messages via the WhatsApp Business API. This module provides builders for different message types, such as text, image, and template messages, and allows easy integration with the WhatsApp Business API.

Features

  • [x] Send message
  • [x] Build a Text message
  • [x] Build a Image message
  • [x] Build a Template message
  • [x] Build a Audio message
  • [x] Build a Interactive message
  • [ ] Webhook Gateway
  • [ ] Phone number utils
  • [ ] Get list of templates
  • [ ] Media upload service

Installation

You can install the module from npm:

npm install @meta-kit/whatsapp

Setup

First, import the necessary classes and types into your application:

import { Client, SendMessage, TextMessageBuilder } from '@meta-kit/whatsapp';

Methods

The sendMessage() method takes a MessageAny object and sends it to the recipient.

1. Message Builders

To send a message, you can use specific builders based on the type of message. Here are examples for text, image, and template messages.

Example: Sending a Text Message

const client = new Client({
  token: 'YOUR_WHATSAPP_TOKEN',
  baseURL: 'https://graph.facebook.com/v22.0/YOUR_PHONE_ID',
});

const sendMessageUseCase = new SendMessage(client);

const message = new TextMessageBuilder()
  .setRecipient('5511999999999')
  .setText('Hello World')
  .build();

sendMessageUseCase
  .execute(message)
  .then(() => console.log('Success send message!'))
  .catch((error) => console.error('Error', error));
  • SendMessage: Create a instance to send a message.
  • TextMessageBuilder: Builds a Message of type text.

Example Project

For a practical demonstration, check out the example folder:

  • /examples: Contains example implementations for sending messages.

Authors

Disclaimer

This package is not affiliated with Meta Platforms in any way. It is an open-source project developed by and for the community. WhatsApp is a registered trademark of Meta Platforms. This package is not endorsed, sponsored, or officially connected with Meta Platforms. All copyrights, trademarks, logos, and service marks are the property of their respective owners.

License

MIT