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

n8n-nodes-whatsapp-webjs

v1.0.1

Published

n8n community node for WhatsApp Web.js

Readme

n8n-nodes-whatsapp-webjs

This is an n8n community node for WhatsApp Web.js. It allows you to automate WhatsApp interactions directly from n8n using a real WhatsApp session.

Features

  • Trigger Node: Listen for incoming messages, sent messages (message_create), and session events (QR code, ready, disconnected).
  • Action Node:
    • Send Text: Send simple text messages to any chat.
    • Send Media: Send images, documents, and videos via URL with optional captions.
    • Session Management: Retrieve current session status or the latest QR code for scanning.
  • Smart Session Management: Handles concurrent requests and prevents multiple browser instances for the same session.
  • Persistent Auth: Supports LocalAuth to keep you logged in across n8n restarts.

Installation

Follow the n8n community node installation guide.

In your n8n instance, go to Settings > Community Nodes and install n8n-nodes-whatsapp-webjs.

Credentials

To use this node, you need to create a WhatsApp Web.js API credential in n8n:

  • Session ID: A unique identifier for your session (e.g., my-whatsapp-session).
  • Auth Strategy: Choose local (recommended) to persist your login or none for a temporary session.

Usage Workflow

  1. Initialization: Add the WhatsApp Web.js Trigger node to your workflow.
  2. Authentication:
    • Execute the workflow or use the Session: Get QR Code operation in the action node.
    • The trigger node will emit a qr event with a Base64 Data URL.
    • Use a QR code decoder or display it to scan with your WhatsApp mobile app (Linked Devices > Link a Device).
  3. Ready: Once scanned, the trigger will emit a ready event. Your session is now active.
  4. Automation: You can now use the WhatsApp Web.js action node to send messages or the trigger node to react to incoming messages.

Trigger Output Fields

When a message is received or created, the trigger provides:

  • id: Unique message ID.
  • from: Sender's WhatsApp ID.
  • to: Recipient's WhatsApp ID.
  • body: Message content.
  • type: Message type (chat, image, video, etc.).
  • hasMedia: Boolean indicating if the message contains media.
  • fromMe: Boolean indicating if the message was sent by you.

License

MIT