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

@techliftdigital/whatsapp-business

v1.0.1

Published

A comprehensive, strongly typed Node.js wrapper for the WhatsApp Business Cloud API. Supports Messaging (Text, Media, Templates), Webhooks, Automation, Flows, E-Commerce/Catalogs, QR Codes, and Analytics. Perfect for building chatbots and marketing automa

Readme

WhatsApp Business API Wrapper (Unofficial)

Disclaimer: This library is an unofficial third-party wrapper for the WhatsApp Business Cloud API. It is not endorsed, sponsored, affiliated with, or provided by Meta Platforms, Inc. or WhatsApp LLC. "WhatsApp" is a registered trademark of WhatsApp LLC.

A complete, typed Node.js wrapper for the WhatsApp Business API, supporting Messaging, Media, Templates, Analytics, Webhooks, Flows, E-Commerce, QR Codes, and BSP/Partner Features.

Installation

npm install @techliftdigital/whatsapp-business
# or
pnpm add @techliftdigital/whatsapp-business

Usage

Initialization

import { WhatsAppBusiness } from '@techliftdigital/whatsapp-business';

const whatsapp = new WhatsAppBusiness({
  accessToken: 'YOUR_ACCESS_TOKEN',
  senderPhoneNumberId: 'YOUR_PHONE_NUMBER_ID',
});

Messaging & E-Commerce

Text & Templates

await whatsapp.sendText('1234567890', 'Hello!');

E-Commerce & Catalogs

// 1. Send Product Catalog
await whatsapp.sendCatalog('1234567890', 'Check out our 2024 collection', 'THUMBNAIL_PRODUCT_ID');

// 2. Send Request for Address
await whatsapp.sendRequestAddress('1234567890', 'Please provide your shipping address');

// 3. Send Order Details (Review & Pay)
await whatsapp.sendOrderDetails('1234567890', {
    header: { type: 'image', image: { link: 'https://ex.com/invoice_banner.jpg'} },
    body: { text: 'Your order is ready!' },
    action: {
        name: 'review_and_pay',
        parameters: {
            reference_id: 'ORDER_123',
            type: 'physical-goods',
            payment_settings: {
                type: 'payment_gateway',
                payment_gateway: {
                    type: 'razorpay',
                    configuration_name: 'MyShop',
                    bill_id: 'BILL_001'
                }
            },
            currency: 'INR',
            total_amount: { value: 10000, offset: 100 }, // 100.00
            order: {
                status: 'pending',
                items: [ { retailer_id: 'P01', name: 'Shirt', amount: { value: 5000, offset: 100 }, quantity: 2 } ],
                subtotal: { value: 10000, offset: 100 }
            }
        }
    }
});

Management Features

QR Codes & Flows

// Create QR
const qr = await whatsapp.createQRCode('PHONE_ID', 'Start Chat');

// Create Flow
const flow = await whatsapp.createFlow('WABA_ID', 'Survey', ['SURVEY']);

BSP / Partner Features

// Allocate Credit
await whatsapp.allocateCredit('CREDIT_LINE_ID', { waba_id: 'WABA_ID', amount: '100', currency: 'USD' });

// Request Green Tick
await whatsapp.requestOfficialBusinessAccount('PHONE_ID', { phone_number_id: 'PHONE_ID', website_url1: 'https://brand.com' });

Features List

  • Messaging: Text, Templates, Media, Location, Interactive (Buttons, Lists).
  • E-Commerce:
    • Catalogs: Send single product, multi-product list, full catalog.
    • Orders: Request Address, Order Details (Review & Pay), Order Status.
  • Management: Flows, QR Codes, Templates (Create, Edit, Search), Analytics, Business Profile, Ice Breakers, Commands.
  • BSP: Credit Lines, OBA Requests (Green Tick), Embedded Signup Support.

Legal & Compliance

By using this software, you agree to:

  1. Meta's Terms: Comply with the WhatsApp Business Terms of Service and Meta Platform Terms.
  2. Opt-in Policy: Only send messages to users who have explicitly opted in to receive them.
  3. Prohibited Content: Adhere to the WhatsApp Commerce Policy.

This library facilitates interaction with the Cloud API but cannot prevent misuse. The implementer is solely responsible for compliance.

License

ISC